/* Color theme variables */
:root {
  --color-primary: #2563eb;   /* Modern blue */
  --color-primary-dark: #1d4ed8;
  --color-accent: #3b82f6;    /* Lighter blue */
  --color-light: #f8fafc;     /* Very light gray */
  --color-dark: #1e293b;      /* Dark slate */
  --color-text: #334155;      /* Slate for text */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--color-text);
  background: #FFFFFF;
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-dark);
  font-weight: 700;
}

h1 { 
  font-size: 2.5em; 
  margin: 20px 0;
  line-height: 1.2;
}

h2 { 
  font-size: 2em; 
  margin: 20px 0 10px;
}

h3 { 
  font-size: 1.5em; 
  margin: 15px 0 8px;
}

p { 
  margin-bottom: 15px;
  color: var(--color-text);
}

/* Layout container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

nav .logo {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

nav .logo a {
  color: var(--color-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5em;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav li {
  position: relative;
}

nav a {
  color: var(--color-dark);
  font-weight: 600;
  padding: 0.5rem 0;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #FFFFFF;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 600px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23ffffff" fill-opacity="0.1" width="100" height="100"/></svg>');
  opacity: 0.1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.hero-image {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 0 2rem;
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero h1 {
  color: #FFFFFF;
  font-size: 3em;
  margin: 0 0 20px;
  position: relative;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}

.hero .cta {
  display: inline-block;
  background: #FFFFFF;
  color: var(--color-primary);
  padding: 15px 40px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.hero .cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--color-light);
}

/* Services Overview */
.services-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 4rem auto;
  padding: 2rem 0;
  max-width: 1200px;
  text-align: center;
}

.services-overview h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 2rem;
}

/* Service Images */
.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  margin-bottom: 1rem;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
  transform: scale(1.05);
}

/* Service Items */
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: var(--color-light);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-item h3 {
  margin: 1rem 0;
  text-align: center;
}

.service-item p {
  text-align: center;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: var(--color-dark);
  color: #FFFFFF;
  padding: 3rem 0;
  margin-top: 4rem;
}

footer p {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo-image {
  height: 100px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo-image:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }

  nav ul.active {
    display: flex;
    transform: translateY(0);
  }

  nav ul li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
  }

  nav ul.active li {
    opacity: 1;
    transform: translateX(0);
  }

  nav ul li:nth-child(1) { transition-delay: 0.1s; }
  nav ul li:nth-child(2) { transition-delay: 0.2s; }
  nav ul li:nth-child(3) { transition-delay: 0.3s; }
  nav ul li:nth-child(4) { transition-delay: 0.4s; }
  nav ul li:nth-child(5) { transition-delay: 0.5s; }

  .mobile-menu-btn i {
    transition: transform 0.3s ease;
  }

  nav ul.active + .mobile-menu-btn i {
    transform: rotate(90deg);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 160px 0 60px;
  }

  .hero-content {
    margin-bottom: 2rem;
  }

  .hero-image {
    margin-top: 2rem;
  }

  .hero-image img {
    max-width: 100%;
  }

  .service-image {
    height: 150px;
  }

  .services-overview {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-item {
  animation: fadeIn 0.5s ease-out forwards;
}

.service-item:nth-child(2) {
  animation-delay: 0.1s;
}

.service-item:nth-child(3) {
  animation-delay: 0.2s;
}

.service-item:nth-child(4) {
  animation-delay: 0.3s;
}

/* About – Values List */
.values li {
  margin-bottom: 10px;
}

/* About – Team Section */
.team {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}
.team .member {
  flex: 1 1 200px;
  text-align: center;
}
.team .member img {
  border-radius: 50%;
  max-width: 100%;
  height: auto;
}
.team .member h3 {
  margin: 10px 0 5px;
}
.team .member p {
  font-size: 0.9em;
  color: #555555;
}

/* Insights – Articles List */
.insight {
  border-bottom: 1px solid #cccccc;
  padding: 20px 0;
}
.insight:last-child {
  border-bottom: none;
}
.insight .date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 5px;
}
.insight h2 {
  font-size: 1.2em;
  margin-bottom: 5px;
}
.insight p {
  margin-bottom: 0;
}

/* Contact – Layout */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  margin: 20px 0;
}
.contact-details {
  flex: 1;
  min-width: 250px;
}
.contact-form {
  flex: 2;
  min-width: 250px;
}
.contact-details a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Contact – Form Elements */
form {
  max-width: 600px;
}
.form-row {
  display: flex;
  gap: 20px;
}
.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 5px;
  font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
}
.form-group textarea {
  resize: vertical;
}
.form-group select {
  background-color: #ffffff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 32px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  outline: none;
}
button[type="submit"] {
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
}
button[type="submit"]:hover {
  background: var(--color-accent);
}

/* Service Icons */
.service-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin: 1rem 0;
  text-align: center;
}

/* About Page Styles */
.about-hero {
  min-height: 500px;
}

.about-content {
  margin: 4rem 0;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.value-item {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.team-member {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.member-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
  transform: scale(1.05);
}

.team-member h3 {
  margin: 1rem 1rem 0.5rem;
  color: var(--color-primary);
}

.team-member .position {
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 1rem;
}

.team-member .bio {
  margin: 1rem;
  font-size: 0.9em;
}

/* Services Page Styles */
.services-hero {
  min-height: 500px;
}

.service-detail-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 4rem 0;
  align-items: center;
}

.service-detail-item:nth-child(even) {
  direction: rtl;
}

.service-detail-item:nth-child(even) .service-content {
  direction: ltr;
}

.service-image {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-detail-item:hover .service-image img {
  transform: scale(1.05);
}

.service-features {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.service-features li {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features i {
  color: var(--color-primary);
}

/* Insights Page Styles */
.insights-hero {
  min-height: 500px;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.insight-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.insight-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.insight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.insight-card:hover .insight-image img {
  transform: scale(1.05);
}

.insight-content {
  padding: 1.5rem;
}

.insight-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9em;
  color: var(--color-text);
}

.insight-meta .date {
  color: var(--color-accent);
}

.insight-meta .category {
  background: var(--color-light);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

.insight-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5em;
}

.insight-content p {
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.read-more {
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--color-accent);
  gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .service-detail-item {
    grid-template-columns: 1fr;
  }

  .service-detail-item:nth-child(even) {
    direction: ltr;
  }

  .service-image {
    height: 200px;
  }

  .team-grid,
  .values-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .member-image {
    height: 200px;
  }
}

.logo-image {
  height: 80px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

.contact-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #FFFFFF;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 400px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 4rem 0;
  padding: 2rem 0;
}

.contact-details {
  padding: 2rem;
  background: var(--color-light);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.contact-info {
  margin-top: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item i {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.info-item a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: var(--color-primary);
}

.contact-form {
  padding: 2rem;
  background: var(--color-light);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.contact-form h2 {
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #FFFFFF;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.cta-button i {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Form Response Styles */
#formResponse {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

#formResponse.loading {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

#formResponse.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#formResponse.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

#formResponse pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 3px;
    margin-top: 10px;
    overflow-x: auto;
}

/* Contact Form Styles */
.contact-form textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.contact-form textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.contact-form textarea::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* Responsive adjustments for textarea */
@media (max-width: 768px) {
    .contact-form textarea {
        min-height: 150px;
        font-size: 14px;
    }
}

