/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Blue Color Palette */
  --primary-color: #4b648d;
  --primary-light: #5987a8;
  --primary-lighter: #b9e4f4;
  --primary-lightest: #e7fbf9;

  /* Complementary Colors */
  --secondary-color: #f59e0b;
  --accent-color: #10b981;
  --accent-light: #34d399;

  /* Text Colors */
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --text-muted: #a0aec0;

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-tertiary: #edf2f7;
  --bg-dark: #2d3748;
  --bg-overlay: rgba(75, 100, 141, 0.1);

  /* Border Colors */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #cbd5e0;

  /* Shadow System */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  --gradient-soft: linear-gradient(
    135deg,
    var(--primary-lighter) 0%,
    var(--primary-lightest) 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--accent-light) 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    #f7fafc 0%,
    #edf2f7 50%,
    #e2e8f0 100%
  );

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
    "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.875rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to bottom,
    var(--primary-lightest) 0%,
    var(--primary-lighter) 100%
  );
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all var(--transition-normal);
  overflow: visible;
}

.nav-container {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.company-name {
  order: 1;
  margin-left: 0;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
  padding-left: 0;
}

.logo-link:hover {
  transform: none;
}

.logo-image {
  height: 128px;
  max-height: 88px; /* fit inside navbar */
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  transition: all var(--transition-normal);
}

.logo-link:hover .logo-image {
  transform: none;
}

.nav-menu {
  order: 2;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link i {
  font-size: 0.9rem;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--primary-color);
  background: var(--primary-lightest);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(75, 100, 141, 0.2);
  border: 1px solid var(--primary-lighter);
}

.nav-link:hover i {
  transform: scale(1.1);
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
    url("../img/HERO.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(35, 48, 67, 0.3) 50%,
    rgba(35, 48, 67, 0.8) 100%
  );
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: blur(8px);
  transform: scale(1.1);
  z-index: -1;
}

/* Wavy Separator */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--primary-light) 25%,
    var(--accent-color) 50%,
    var(--primary-light) 75%,
    var(--primary-color) 100%
  );
  background-size: 200% 100%;
  animation: gradientMove 3s ease-in-out infinite;
  clip-path: polygon(
    0% 100%,
    0% 85%,
    25% 80%,
    50% 90%,
    75% 75%,
    100% 85%,
    100% 100%
  );
  z-index: 1;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Alternative wavy separator with SVG for smoother curves */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 1;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-wave path {
  fill: url(#waveGradient);
  animation: waveMove 4s ease-in-out infinite;
}

@keyframes waveMove {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(0);
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Hero Background Video */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-media {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.7);
  pointer-events: none;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: slideInFromLeft 1.2s ease-out;
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
  max-width: 600px;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: slideInFromRight 1.4s ease-out;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: slideInFromBottom 1.6s ease-out;
}

/* Montfort-inspired minimal panels */
.panel-dark {
  background: #233043; /* lighten slightly from #1f2937 */
  color: white;
  padding: 4rem 0;
  position: relative;
}

.panel-dark .section-title,
.panel-dark .section-description {
  color: rgba(255, 255, 255, 0.95);
}

.panel-dark .section-description {
  color: rgba(255, 255, 255, 0.8);
}

.diagonal-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 20px
  );
  pointer-events: none;
}

.slim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.slim-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
}

.slim-card i {
  font-size: 0.95rem;
  color: var(--primary-lighter);
}

.slim-card strong {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.pill-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.esg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.esg-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
}

.esg-card h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.esg-list {
  margin: 0;
  padding-left: 1rem;
}

.esg-list li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.scroll-animate-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.scroll-animate-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Split Text Animation */
.split-text {
  overflow: hidden;
}

.split-text .split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.split-text.animate .split-word {
  opacity: 1;
  transform: translateY(0);
}

.split-text .split-word:nth-child(1) {
  transition-delay: 0.1s;
}
.split-text .split-word:nth-child(2) {
  transition-delay: 0.2s;
}
.split-text .split-word:nth-child(3) {
  transition-delay: 0.3s;
}
.split-text .split-word:nth-child(4) {
  transition-delay: 0.4s;
}
.split-text .split-word:nth-child(5) {
  transition-delay: 0.5s;
}
.split-text .split-word:nth-child(6) {
  transition-delay: 0.6s;
}
.split-text .split-word:nth-child(7) {
  transition-delay: 0.7s;
}
.split-text .split-word:nth-child(8) {
  transition-delay: 0.8s;
}
.split-text .split-word:nth-child(9) {
  transition-delay: 0.9s;
}
.split-text .split-word:nth-child(10) {
  transition-delay: 1s;
}

/* Scroll animations for cards */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Center text on service pages and other non-homepage pages */
.services-hero .hero-content,
.about-hero .hero-content,
.portfolio-hero .hero-content,
.blog-hero .hero-content,
.contact-hero .hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.services-hero .hero-title,
.about-hero .hero-title,
.portfolio-hero .hero-title,
.blog-hero .hero-title,
.contact-hero .hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.services-hero .hero-description,
.about-hero .hero-description,
.portfolio-hero .hero-description,
.blog-hero .hero-description,
.contact-hero .hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.section-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Overview */
.services-overview {
  padding: 4rem 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../img/ABOUT US BACKGROUND.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  position: relative;
}

.services-overview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, white, rgba(255, 255, 255, 0));
  z-index: 1;
}

.services-overview::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, white, rgba(255, 255, 255, 0));
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.25rem; /* tighter */
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  min-height: 220px;
  backdrop-filter: blur(10px);
  display: block; /* allow <a> to behave as card */
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
  cursor: crosshair;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-soft);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
}

.service-icon i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.15rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-title-link {
  color: inherit;
  text-decoration: none;
}
.service-title-link:hover {
  color: var(--primary-color);
}

.service-card p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 0.4vw + 0.75rem, 1rem);
  display: -webkit-box;
  -webkit-line-clamp: 2; /* clamp to two lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* service-link removed on homepage */

.services-cta {
  text-align: center;
}

/* About Preview */
.about-preview {
  padding: 6rem 0;
  background: white;
  position: relative;
}

.about-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
  z-index: 1;
}

.about-preview::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0), white);
  z-index: 1;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 250px;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.about-image {
  position: relative;
}

.about-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* Portfolio Preview */
.portfolio-preview {
  padding: 3rem 0;
  background: var(--bg-secondary);
}

.portfolio-preview .section-title {
  color: var(--text-primary);
}

.portfolio-preview .section-description {
  color: var(--text-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.portfolio-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.portfolio-image img {
  display: none;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.portfolio-link {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid white;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio-link:hover {
  background: white;
  color: var(--primary-color);
}

.portfolio-cta {
  text-align: center;
}

/* Blog Preview */
.blog-preview {
  padding: 4rem 0;
  background: white;
}

.blog-preview .section-title {
  color: var(--text-primary);
}

.blog-preview .section-description {
  color: var(--text-secondary);
}

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

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.blog-image {
  height: 220px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  position: relative;
}

.blog-card:hover .blog-image {
  transform: scale(1.03);
}

/* Dark gradient overlay for readability */
.blog-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

/* Position text over the image */
.blog-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem;
  z-index: 2;
}

/* Make text visible on images */
.blog-card .blog-date {
  color: rgba(255, 255, 255, 0.85);
}
.blog-card .blog-content h3 {
  color: #fff;
}
.blog-card .blog-content p {
  color: rgba(255, 255, 255, 0.92);
}
.blog-card .blog-link {
  color: #fff;
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  font-size: 0.875rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0 1rem 0;
  color: var(--text-primary);
}

.blog-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.blog-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.blog-link:hover {
  gap: 1rem;
}

.blog-cta {
  text-align: center;
}

/* Contact CTA */
.contact-cta {
  padding: 3rem 0;
  background: var(--gradient-primary);
  text-align: center;
}

.cta-content h2 {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-content .btn-primary {
  background: white;
  color: var(--primary-color);
}

.cta-content .btn-primary:hover {
  background: var(--bg-secondary);
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.contact .section-title {
  color: var(--text-primary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-intro h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-intro p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.contact-benefits i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
}

.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-lighter);
}

.method-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-icon i {
  color: white;
  font-size: 1.2rem;
}

.method-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.method-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-normal);
}

.contact-link:hover {
  color: var(--primary-dark);
}

.contact-details-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.contact-card-header {
  background: var(--gradient-primary);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.contact-card-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card-header p {
  opacity: 0.9;
  font-size: 0.95rem;
}

.contact-card-body {
  padding: 2rem;
}

.office-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.office-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.office-detail i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.office-detail strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.office-detail p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.quick-contact {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.quick-contact h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.response-times {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.response-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.response-type {
  font-weight: 500;
  color: var(--text-primary);
}

.response-time {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-info-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-icon i {
  font-size: 1.5rem;
  color: white;
}

.contact-details h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-details p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: all var(--transition-normal);
  font-family: inherit;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--bg-overlay);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 2.5rem 0 1.5rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo .logo {
  height: 40px;
}

.footer-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
  color: var(--primary-color);
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: white;
}

.footer-about {
  flex: 1;
  max-width: 300px;
  min-width: 250px;
}

.footer-section {
  flex: 1;
  min-width: 150px;
}

.footer-links a {
  font-size: 0.9rem;
}

/* Minimal, horizontal footer variant */
.footer-slim {
  align-items: center;
  margin-bottom: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand .logo-text {
  font-size: 1.125rem;
}

.brand-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-icons a,
.location-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.footer-icons a:hover,
.location-pill:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

.location-pill {
  padding: 0 10px;
  width: auto;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-pill span {
  font-size: 0.75rem;
}

.footer-bottom-content p {
  margin: 0;
}

.contact-info .contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.contact-info .contact-item i {
  color: var(--primary-color);
  width: 16px;
  flex-shrink: 0;
}

/* Tablet and Small Desktop Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .portfolio-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    gap: 3rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  /* Container adjustments */
  .container {
    padding: 0 16px;
  }

  /* Navigation improvements */
  .navbar {
    overflow: visible;
  }
  .nav-container {
    padding: 0 12px 0 0;
    height: 80px;
  }

  .logo-image {
    max-height: 70px;
  }

  /* New dropdown grid menu under navbar */
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    width: 100vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(48px, auto);
    gap: 0.25rem;
    padding: 0; /* remove top/middle/bottom padding */
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 9999;
    height: auto; /* auto-size to content */
    max-height: calc((var(--vh, 1vh) * 100) - 80px); /* scroll only if needed */
    overflow-y: auto;
  }

  .nav-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Ensure grid display */
  .nav-menu {
    display: grid !important;
  }

  .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.25rem; /* tighter items */
    margin: 0;
    width: 100%;
    border-radius: 10px;
    font-size: 0.9rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
  }

  .nav-link i {
    font-size: 1.05rem;
    color: var(--primary-color);
  }

  .nav-toggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    order: 4;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    gap: 4px;
  }

  .nav-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .nav-toggle .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: background 0.2s ease;
  }

  .nav-toggle.active .dot {
    background: var(--primary-color);
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Hero section improvements */
  .hero {
    min-height: 90vh;
    padding-top: 80px;
  }

  .hero-container {
    text-align: center;
    padding: 2rem 16px;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    line-height: 1.3;
  }

  .section-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Services grid improvements */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .service-card {
    padding: 1.5rem;
    min-height: auto;
  }

  .service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .service-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Panel sections */
  .panel-dark {
    padding: 3rem 0;
  }

  .slim-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .esg-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  /* Portfolio improvements */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .portfolio-item {
    margin-bottom: 1rem;
  }

  .portfolio-overlay {
    padding: 1.5rem;
  }

  .portfolio-overlay h3 {
    font-size: 1.3rem;
  }

  /* Blog improvements */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .blog-content {
    padding: 1.25rem;
  }

  .blog-content h3 {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  /* Contact section improvements */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-method {
    padding: 1.25rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .method-content h4 {
    font-size: 1.1rem;
  }

  .contact-card-body {
    padding: 1.5rem;
  }

  .office-detail {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* About content */
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats-container {
    order: -1;
  }

  .about-stats {
    flex-direction: row;
    gap: 1rem;
    max-width: none;
  }

  .stat {
    flex: 1;
    padding: 1rem;
  }

  /* Footer improvements */
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }

  .footer-about,
  .footer-section {
    flex: none;
    max-width: none;
    min-width: none;
  }

  .brand-tagline {
    display: none;
  }

  .footer-icons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 1.5rem;
  }

  /* Typography improvements */
  h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
  }

  /* Button improvements */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  /* Spacing improvements */
  .services-overview,
  .portfolio-preview,
  .blog-preview,
  .contact {
    padding: 3rem 0;
  }

  .contact-cta {
    padding: 2.5rem 0;
  }

  .cta-content h2 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }

  /* Remove checkbox fallback (JS handles toggle) */

  /* Ensure logo pinned left and dots at right */
  .company-name {
    margin-left: 0;
  }
  .logo-link {
    padding-left: 0;
  }

  @media (max-width: 768px) {
    .nav-container {
      position: relative;
    }
    .nav-toggle {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
    }
  }
}

@media (max-width: 480px) {
  /* Extra small screens - enhanced mobile experience */
  .container {
    padding: 0 12px;
  }

  /* Navigation for very small screens */
  .nav-container {
    padding: 0 12px 0 0;
    height: 70px;
  }

  .logo-image {
    max-height: 60px;
  }

  .nav-menu {
    top: 70px;
    padding: 0; /* remove extra padding on small screens */
    height: auto;
    max-height: calc((var(--vh, 1vh) * 100) - 70px);
  }

  .nav-link {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    margin: 0.25rem 0;
  }

  /* Hero section for small screens */
  .hero {
    min-height: 85vh;
    padding-top: 70px;
  }

  .hero-container {
    padding: 1.5rem 12px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 260px;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  /* Section headers for small screens */
  .section-header {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .section-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Services grid for small screens */
  .services-grid {
    gap: 1.25rem;
    padding: 0 0.5rem;
  }

  .service-card {
    padding: 1.25rem;
  }

  .service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .service-card p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }

  .service-icon i {
    font-size: 1.25rem;
  }

  /* Panel sections for small screens */
  .panel-dark {
    padding: 2.5rem 0;
  }

  .slim-grid,
  .esg-grid {
    padding: 0 0.5rem;
    gap: 0.875rem;
  }

  .slim-card,
  .esg-card {
    padding: 0.875rem 1rem;
  }

  /* Portfolio for small screens */
  .portfolio-grid {
    gap: 1.25rem;
    padding: 0 0.5rem;
  }

  .portfolio-overlay {
    padding: 1.25rem;
  }

  .portfolio-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .portfolio-overlay p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  /* Blog for small screens */
  .blog-grid {
    gap: 1.25rem;
    padding: 0 0.5rem;
  }

  .blog-content {
    padding: 1rem;
  }

  .blog-content h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  /* Contact section for small screens */
  .contact-content {
    gap: 1.5rem;
  }

  .contact-method {
    padding: 1rem;
    gap: 0.875rem;
  }

  .method-icon {
    width: 45px;
    height: 45px;
  }

  .method-icon i {
    font-size: 1.1rem;
  }

  .method-content h4 {
    font-size: 1rem;
    margin-bottom: 0.125rem;
  }

  .method-content p {
    font-size: 0.85rem;
    margin-bottom: 0.375rem;
  }

  .contact-link {
    font-size: 0.9rem;
  }

  .contact-card-header {
    padding: 1.25rem;
  }

  .contact-card-header h3 {
    font-size: 1.2rem;
  }

  .contact-card-body {
    padding: 1.25rem;
  }

  .office-detail {
    gap: 0.375rem;
  }

  .office-detail i {
    font-size: 1.1rem;
  }

  .office-detail strong {
    font-size: 0.95rem;
  }

  .office-detail p {
    font-size: 0.85rem;
  }

  .quick-contact {
    padding: 1.25rem;
  }

  .response-item {
    padding: 0.625rem 0.875rem;
  }

  .response-type {
    font-size: 0.9rem;
  }

  .response-time {
    font-size: 0.8rem;
  }

  /* Footer for small screens */
  .footer {
    padding: 2rem 0 1.25rem 0;
  }

  .footer-content {
    gap: 1.25rem;
  }

  .footer-brand .logo-text {
    font-size: 1rem;
  }

  .footer-icons {
    gap: 0.5rem;
  }

  .footer-icons a,
  .location-pill {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .location-pill {
    padding: 0 8px;
  }

  .location-pill span {
    font-size: 0.7rem;
  }

  /* Typography for small screens */
  h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  h3 {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
  }

  p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Button improvements for small screens */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  /* Spacing for small screens */
  .services-overview,
  .portfolio-preview,
  .blog-preview,
  .contact {
    padding: 2.5rem 0;
  }

  .contact-cta {
    padding: 2rem 0;
  }

  .cta-content h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 0.75rem;
  }

  .cta-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  /* Rotating text adjustments */
  .rotating-text {
    padding: 0.1rem 0.375rem;
    font-size: 0.95em;
  }

  /* Scroll indicator */
  .hero-scroll {
    bottom: 1.5rem;
  }

  .scroll-indicator {
    font-size: 0.8rem;
  }
}

/* Touch-friendly improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
  /* Touch-friendly button sizes */
  .btn,
  .nav-link,
  .portfolio-link,
  .blog-link,
  .contact-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Remove hover effects on touch devices */
  .service-card:hover,
  .portfolio-item:hover,
  .blog-card:hover,
  .contact-method:hover {
    transform: none;
    box-shadow: inherit;
  }

  /* Improve touch targets */
  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  .footer-icons a {
    min-height: 44px;
    min-width: 44px;
  }

  /* Better touch feedback */
  .btn:active,
  .nav-link:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding-top: 80px;
  }

  .hero-container {
    padding: 1rem 16px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: auto;
    min-width: 140px;
    max-width: none;
  }

  .nav-container {
    height: 70px;
  }

  .nav-menu {
    top: 70px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Mobile device specific styles */
.mobile-device {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.mobile-device .btn,
.mobile-device .nav-link,
.mobile-device .portfolio-link {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  user-select: none;
}

/* Reduced motion preferences */
.reduced-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Mobile notification styles */
.mobile-notification {
  font-family: inherit;
}

.mobile-notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-notification .notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.mobile-notification .notification-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* iOS Safari specific fixes */
@supports (-webkit-appearance: none) {
  .hero {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
  }

  .mobile-device .hero {
    min-height: calc(var(--vh, 1vh) * 100);
  }
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    max-width: 100vw;
  }
}

/* Improve focus visibility on mobile */
@media (max-width: 768px) {
  .btn:focus,
  .nav-link:focus,
  .portfolio-link:focus,
  .blog-link:focus,
  .contact-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Prevent body scroll when mobile nav is open */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Mobile navigation overlay */
.nav-menu.active::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* Enhanced mobile nav styling */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex !important;
  }

  .nav-menu {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 3rem;
  }

  .nav-link {
    width: auto;
    max-width: 280px;
    margin: 0.75rem auto;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(75, 100, 141, 0.2);
    transition: all 0.3s ease;
  }

  .nav-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 100, 141, 0.3);
  }
}

/* Safe area insets for devices with notches */
@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  @media (max-width: 480px) {
    .container {
      padding-left: max(12px, env(safe-area-inset-left));
      padding-right: max(12px, env(safe-area-inset-right));
    }
  }
}

/* Rotating Text Styles */
.rotating-text {
  position: relative;
  display: inline-block;
  min-height: 1.2em;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.rotating-word {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-in-out;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rotating-word.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.rotating-word.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

/* Optional solid variant for stronger contrast */
.rotating-solid {
  --rotating-bg: rgba(75, 100, 141, 0.2);
  --rotating-border: rgba(75, 100, 141, 0.35);
  --rotating-text: #ffffff;
  background: var(--rotating-bg);
  border: 1px solid var(--rotating-border);
  color: var(--rotating-text);
}

.hero-title .rotating-solid .rotating-word {
  -webkit-text-fill-color: currentColor;
  background: none;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease-out;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Services Page Styles */
.services-hero {
  position: relative;
  padding: 8rem 0 4rem 0;
  color: white;
  text-align: center;
  background: #0b1c26;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.services-hero > .container {
  position: relative;
  z-index: 1;
}

.services-hero .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.services-hero .hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.services-main {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.service-card-large {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.service-card-large:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-header .service-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-header .service-icon i {
  font-size: 1.5rem;
  color: white;
}

.service-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.service-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.service-features li i {
  color: var(--accent-color);
  font-size: 0.875rem;
}

.services-cta {
  padding: 4rem 0;
  background: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Service Detail Page Styles */
.service-detail-hero {
  position: relative;
  padding: 8rem 0 4rem 0;
  color: white;
  text-align: center;
  background: #0b1c26;
  background-image: var(--service-hero-image, none);
  background-size: cover;
  background-position: center;
}

.service-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.service-detail-hero > .container {
  position: relative;
  z-index: 1;
}

.service-detail-hero .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.service-detail-hero .hero-description {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.back-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  transition: all var(--transition-normal);
  opacity: 0.9;
}

.back-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transform: translateX(-2px);
}

/* Team Section Styles */
.team-section {
  padding: 6rem 0;
  background: #f8f9fa;
}

.team-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.team-members {
  display: flex;
  gap: 2rem;
  transition: transform 0.3s ease;
  width: max-content;
}

.team-member {
  flex: 0 0 250px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.member-photo {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.member-info {
  padding: 1.5rem;
  text-align: center;
}

.member-info h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
}

.member-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.slider-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Tablet and Mobile Responsive */
@media (max-width: 1024px) {
  .features-grid {
    gap: 1rem;
  }

  .feature-card {
    flex: 0 0 220px;
  }

  .team-member {
    flex: 0 0 220px;
  }

  .member-photo {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    align-items: center;
  }

  .feature-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
  }

  /* Team Slider Mobile Styles */
  .team-members {
    gap: 1rem;
  }

  .team-member {
    flex: 0 0 200px;
  }

  .member-photo {
    height: 200px;
  }

  .member-info {
    padding: 1rem;
  }

  .member-info h3 {
    font-size: 1rem;
  }

  .member-info p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .team-member {
    flex: 0 0 180px;
  }

  .member-photo {
    height: 180px;
  }
}

.service-detail-content {
  padding: 6rem 0;
  background: white;
}

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

.service-detail-main h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.service-detail-main h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: var(--text-primary);
}

.service-detail-main p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-detail-main ul {
  margin-bottom: 1.5rem;
}

.service-detail-main li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.service-detail-sidebar {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 16px;
  position: sticky;
  top: 100px;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-form-sidebar {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.contact-form-sidebar .form-group {
  margin-bottom: 1rem;
}

.contact-form-sidebar input,
.contact-form-sidebar textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
}

.contact-form-sidebar textarea {
  resize: vertical;
  min-height: 80px;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.process-step {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  position: relative;
}

.process-step-number {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Pricing Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pricing-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

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

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.pricing-period {
  color: var(--text-light);
  font-size: 0.875rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* About Page Styles */
.about-hero {
  position: relative;
  padding: 8rem 0 4rem 0;
  color: white;
  text-align: center;
  background: #0b1c26;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.about-hero > .container {
  position: relative;
  z-index: 1;
}

.about-hero .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-hero .hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.company-overview {
  padding: 6rem 0;
  background: white;
}

.overview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.overview-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.overview-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.overview-image {
  position: relative;
}

.about-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.mission-vision-values {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

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

.mvv-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.mvv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.mvv-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.mvv-icon i {
  font-size: 2rem;
  color: white;
}

.mvv-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.mvv-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.why-choose-us {
  padding: 6rem 0;
  background: white;
}

.features-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.feature-card {
  flex: 0 0 250px;
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.team-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

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

.team-member {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.member-image {
  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.1);
}

.member-info {
  padding: 2rem;
}

.member-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.member-role {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.member-bio {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.member-social {
  display: flex;
  gap: 0.75rem;
}

.member-social .social-link {
  width: 35px;
  height: 35px;
  background: var(--bg-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.member-social .social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.company-stats {
  padding: 4rem 0;
  background: var(--gradient-primary);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.stat-item .stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.our-approach {
  padding: 6rem 0;
  background: white;
}

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.approach-step {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.approach-step:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-cta {
  padding: 4rem 0;
  background: var(--bg-secondary);
  text-align: center;
}

.about-cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about-cta p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Portfolio Page Styles */
.portfolio-hero {
  padding: 8rem 0 4rem 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.portfolio-hero .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.portfolio-hero .hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.portfolio-filter {
  padding: 2rem 0;
  background: var(--bg-secondary);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-color);
  background: white;
  color: var(--text-secondary);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.portfolio-main {
  padding: 4rem 0;
  background: white;
}

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

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.portfolio-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.portfolio-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.portfolio-image img {
  display: none !important;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay-content {
  text-align: center;
  padding: 2rem;
  color: white;
}

.overlay-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.overlay-content p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.portfolio-link {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid white;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.portfolio-link:hover {
  background: white;
  color: var(--primary-color);
}

/* Case Studies Section */
.case-studies {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

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

.case-study-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.case-study-image {
  height: 200px;
  overflow: hidden;
}

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

.case-study-card:hover .case-study-image img {
  transform: scale(1.1);
}

.case-study-content {
  padding: 2rem;
}

.case-study-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.case-study-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.case-study-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.case-study-stats .stat {
  text-align: center;
}

.case-study-stats .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.case-study-stats .stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-study-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.case-study-link:hover {
  gap: 1rem;
}

.portfolio-cta {
  padding: 4rem 0;
  background: white;
  text-align: center;
}

.portfolio-cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.portfolio-cta p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Page Styles */
.blog-hero {
  padding: 8rem 0 4rem 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.blog-hero .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-hero .hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.blog-filter {
  padding: 2rem 0;
  background: var(--bg-secondary);
}

.blog-main {
  padding: 4rem 0;
  background: white;
}

.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.blog-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Featured Article */
.blog-article.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.blog-article.featured:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.blog-article.featured .article-image {
  height: 300px;
}

.blog-article.featured .article-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Regular Articles Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-article {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.blog-article.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Safety: if JS fails, still show blog content */
.blog-preview .blog-article,
.blog-preview .blog-card {
  opacity: 1;
  transform: none;
}

.blog-article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.article-image {
  position: relative;
  height: 320px;
  overflow: hidden;
}

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

.blog-article:hover .article-image img {
  transform: scale(1.1);
}

.article-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-content {
  padding: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Improve blog text visibility */
.blog-article .article-content h2,
.blog-article .article-content h3,
.blog-article .article-content p {
  color: var(--text-primary);
}

.blog-article .article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.blog-article .article-content p {
  font-size: 1.05rem;
}

.article-date,
.article-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-date::before {
  content: "\f073";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.article-author::before {
  content: "\f007";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.article-title {
  margin-bottom: 1rem;
}

.article-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.article-title a:hover {
  color: var(--primary-color);
}

.article-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--primary-color);
  color: white;
}

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

.read-more:hover {
  gap: 1rem;
}

.load-more-section {
  text-align: center;
  margin-top: 2rem;
}

/* Blog Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 16px;
}

.sidebar-widget h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* Search Form */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.875rem;
}

.search-btn {
  padding: 0.75rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: var(--primary-dark);
}

/* Recent Posts */
.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.recent-post img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.recent-post-content h4 {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.recent-post-content h4 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
  color: var(--primary-color);
}

.recent-post-date {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Category List */
.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 0.75rem;
}

.category-list a {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.category-list a:hover {
  color: var(--primary-color);
}

.category-list span {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud .tag {
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag-cloud .tag:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Newsletter Widget */
.newsletter-widget {
  background: var(--gradient-primary);
  color: white;
}

.newsletter-widget h3,
.newsletter-widget p {
  color: white;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input {
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
}

.newsletter-form .btn {
  background: white;
  color: var(--primary-color);
}

.newsletter-form .btn:hover {
  background: var(--bg-secondary);
}

/* Responsive Design for All Pages */
@media (max-width: 768px) {
  .services-hero .hero-title,
  .about-hero .hero-title,
  .portfolio-hero .hero-title,
  .blog-hero .hero-title {
    font-size: 2.5rem;
  }

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

  .service-card-large {
    padding: 2rem;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail-sidebar {
    position: static;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .overview-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .features-grid {
    flex-direction: column;
    align-items: center;
  }

  .feature-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach-step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .approach-step:hover {
    transform: translateY(-5px);
  }

  .portfolio-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-article.featured {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 100%;
    max-width: 200px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}
