@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- CUSTOM VARIABLES & DESIGN SYSTEM --- */
:root {
  --primary-bg: #052F28;
  --secondary-bg: #03201B;
  --card-bg: rgba(3, 32, 27, 0.6);
  --accent-gold: #FFF0BE;
  --accent-gold-hover: #F2E1AD;
  --accent-gold-rgb: 255, 240, 190;
  --border-teal: #0A443A;
  --border-teal-glow: rgba(10, 68, 58, 0.6);
  --text-gold: #FFF0BE;
  --text-body: #D4ECE8;
  --text-muted: #7A9C96;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --glow-gold: 0 0 25px rgba(255, 240, 190, 0.2);
  --glow-teal: 0 0 30px rgba(10, 68, 58, 0.4);
  
  --max-width: 1400px;
}

/* --- RESET & BASE STYLE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--primary-bg);
}

body {
  font-family: var(--font-body);
  background-color: var(--primary-bg);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--primary-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border-teal);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Typography Selection */
::selection {
  background-color: var(--accent-gold);
  color: var(--secondary-bg);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-gold);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-body);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* --- REUSABLE UTILITIES & LAYOUTS --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

@media (max-width: 992px) {
  .container {
    padding: 0 2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.25rem;
  }
}

.section-padding {
  padding: 8rem 0;
}

@media (max-width: 992px) {
  .section-padding {
    padding: 6rem 0;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid Background */
.grid-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(10, 68, 58, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 68, 58, 0.15) 1px, transparent 1px);
  pointer-events: none;
  z-index: 1;
}

.radial-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(10, 68, 58, 0.4) 0%, rgba(5, 47, 40, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--secondary-bg);
  border: 1px solid var(--accent-gold);
  box-shadow: var(--glow-gold);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-gold);
  box-shadow: 0 0 30px rgba(255, 240, 190, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-body);
  border: 1px solid var(--border-teal);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-icon {
  margin-left: 0.75rem;
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* --- SCROLL REVEAL SYSTEM --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 100;
  transition: var(--transition-smooth);
}

header.scrolled {
  height: 90px;
  background-color: rgba(3, 32, 27, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(10, 68, 58, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  height: 40px;
  flex-shrink: 0;
}

.logo-container img {
  height: 100%;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-body);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--accent-gold);
}

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

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

.nav-cta {
  display: block;
}

/* Mobile Toggle Hamburger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
  width: 30px;
  height: 20px;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--accent-gold);
  position: absolute;
  transition: var(--transition-smooth);
}

.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 9px; }
.mobile-nav-toggle span:nth-child(3) { bottom: 0; }

.mobile-nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 992px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--secondary-bg);
    border-left: 1px solid var(--border-teal);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 3rem;
    gap: 2.5rem;
    transition: var(--transition-smooth);
    z-index: 105;
  }
  
  nav.open {
    right: 0;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-cta {
    width: 100%;
    margin-top: 1.5rem;
  }
  .nav-cta .btn {
    width: 100%;
  }
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 150px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-radial-1 {
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(10, 68, 58, 0.45) 0%, rgba(5, 47, 40, 0) 70%);
}

.hero-radial-2 {
  bottom: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(10, 68, 58, 0.35) 0%, rgba(5, 47, 40, 0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  z-index: 2;
  position: relative;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(10, 68, 58, 0.3);
  border: 1px solid var(--border-teal);
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* Sliding headline rotation text (Word Rotator) */
.word-rotator {
  display: inline-block;
  height: 1.25em;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
  margin-bottom: -0.15em;
}

.word-rotator-wrapper {
  display: block;
  text-align: left;
  animation: word-slide-keyframes 9s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.word-rotator-wrapper span.accent-word {
  display: block;
  height: 1.25em;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ECCFA0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 2px 10px rgba(255, 240, 190, 0.15));
  white-space: nowrap;
}

@keyframes word-slide-keyframes {
  0%, 25% { transform: translateY(0); }
  30%, 55% { transform: translateY(-1.25em); }
  60%, 85% { transform: translateY(-2.5em); }
  90%, 100% { transform: translateY(0); }
}

@media (max-width: 992px) {
  .word-rotator-wrapper {
    text-align: center;
  }
}

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-body);
  max-width: 600px;
  margin-bottom: 3rem;
  opacity: 0.9;
}

@media (max-width: 992px) {
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Geometric Floating Visual */
.hero-visual {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .hero-visual {
    height: 350px;
    max-width: 500px;
    margin: 0 auto;
  }
}

.geo-wireframe {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid var(--border-teal);
  border-radius: 12% 88% 18% 82% / 68% 28% 72% 32%;
  animation: float-shape 16s ease-in-out infinite alternate;
}

.geo-wireframe-2 {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px dashed var(--accent-gold);
  opacity: 0.25;
  border-radius: 54% 46% 73% 27% / 37% 57% 43% 63%;
  animation: float-shape 12s ease-in-out infinite alternate-reverse;
}

.geo-core {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(10, 68, 58, 0.8) 0%, rgba(3, 32, 27, 0.4) 100%);
  border: 2px solid var(--accent-gold);
  border-radius: 38% 62% 43% 57% / 54% 39% 61% 46%;
  box-shadow: var(--glow-gold), inset var(--glow-teal);
  animation: float-shape 8s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-core-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 15px rgba(197, 168, 128, 0.4));
  animation: float-logo 6s ease-in-out infinite alternate;
}

@keyframes float-logo {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.05) rotate(5deg); }
}

.geo-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-gold);
}

.dot-1 { top: 15%; left: 15%; animation: pulse-glow 3s infinite alternate; }
.dot-2 { bottom: 20%; right: 10%; animation: pulse-glow 4s infinite alternate-reverse; }

@keyframes float-shape {
  0% {
    transform: rotate(0deg) translate(0, 0) scale(1);
    border-radius: 38% 62% 43% 57% / 54% 39% 61% 46%;
  }
  50% {
    transform: rotate(180deg) translate(10px, -20px) scale(1.05);
    border-radius: 54% 46% 73% 27% / 37% 57% 43% 63%;
  }
  100% {
    transform: rotate(360deg) translate(-10px, 10px) scale(0.95);
    border-radius: 12% 88% 18% 82% / 68% 28% 72% 32%;
  }
}

@keyframes pulse-glow {
  0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 5px var(--accent-gold); }
  100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 20px var(--accent-gold); }
}

/* --- INFINITE SLIDING TEXT MARQUEE --- */
.marquee-container {
  overflow: hidden;
  background-color: var(--secondary-bg);
  border-top: 1px solid var(--border-teal);
  border-bottom: 1px solid var(--border-teal);
  padding: 1.8rem 0;
  width: 100%;
  display: flex;
  position: relative;
  z-index: 5;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 25s linear infinite;
  list-style: none;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.5vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  opacity: 0.9;
}

.marquee-item::after {
  content: '•';
  margin-left: 5rem;
  color: var(--border-teal);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- SUBPAGE TITLE HERO --- */
.subpage-hero {
  position: relative;
  padding: 12rem 0 6rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-teal);
}

@media (max-width: 992px) {
  .subpage-hero {
    padding: 9rem 0 4rem 0;
  }
}

@media (max-width: 576px) {
  .subpage-hero {
    padding: 7.5rem 0 3rem 0;
  }
}

.subpage-hero-grid {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
  position: relative;
}

.subpage-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.subpage-desc {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* --- STATS SECTION --- */
.stats-section {
  position: relative;
  background-color: var(--secondary-bg);
  border-top: 1px solid var(--border-teal);
  border-bottom: 1px solid var(--border-teal);
  padding: 4rem 0;
  z-index: 5;
}

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

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

@media (max-width: 480px) {
  .stat-num {
    justify-content: center;
  }
}

.stat-num::after {
  content: '+';
  color: var(--accent-gold);
  font-size: 1.8rem;
  margin-left: 0.15rem;
  font-weight: 400;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- SECTION GENERAL HEADERS --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
  position: relative;
  z-index: 5;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- SERVICES SECTION & PAGE --- */
.services-section {
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  z-index: 5;
  position: relative;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  z-index: 5;
  position: relative;
}

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

.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-teal);
  border-radius: 6px;
  padding: 3rem 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 240, 190, 0.05);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Service / Industry Card with Image */
.service-card.has-image {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.service-card.has-image .service-card-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-teal);
  background-color: var(--secondary-bg);
}

.service-card.has-image .service-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card.has-image:hover .service-card-image {
  transform: scale(1.05);
}

.service-card.has-image .service-card-content {
  padding: 2.5rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card.has-image .service-icon {
  margin-top: -4.5rem;
  position: relative;
  z-index: 10;
  background-color: var(--primary-bg);
  border-color: var(--border-teal);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.service-card.has-image:hover .service-icon {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--secondary-bg);
}

.service-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(10, 68, 58, 0.4);
  border: 1px solid var(--border-teal);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
  color: var(--accent-gold);
}

.service-card:hover .service-icon {
  background-color: var(--accent-gold);
  color: var(--secondary-bg);
  box-shadow: var(--glow-gold);
  border-color: var(--accent-gold);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-link svg {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-link svg {
  transform: translateX(5px);
}

/* Services Page Detailed Breakdowns */
.service-details-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  margin-bottom: 8rem;
  align-items: center;
}

.service-details-row:nth-child(even) {
  grid-template-columns: 1.1fr 0.9fr;
}

@media (max-width: 992px) {
  .service-details-row, .service-details-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
  }
}

.service-detail-visual {
  border: 1px solid var(--border-teal);
  border-radius: 8px;
  background-color: var(--secondary-bg);
  padding: 3rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-detail-visual::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(10, 68, 58, 0.4) 0%, transparent 70%);
}

.tech-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tech-badge {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-teal);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.tech-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.tech-badge:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Service Tech Stack Table */
.tech-matrix-container {
  margin-top: 5rem;
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-teal);
  border-radius: 8px;
  padding: 3rem;
  overflow-x: auto;
}

.tech-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.tech-matrix-table th {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold);
  padding: 1.2rem 1.5rem;
  border-bottom: 2px solid var(--border-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-matrix-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(10, 68, 58, 0.4);
  font-size: 0.95rem;
}

.tech-matrix-table tr:hover td {
  background-color: rgba(10, 68, 58, 0.15);
}

/* --- PORTFOLIO SECTION & PAGE --- */
.portfolio-section {
  position: relative;
  background-color: var(--secondary-bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  z-index: 5;
  position: relative;
}

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

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  z-index: 5;
  position: relative;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-teal);
  padding: 0.75rem 1.75rem;
  color: var(--text-body);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: var(--glow-gold);
}

.portfolio-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-teal);
  background-color: var(--primary-bg);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-item.hidden {
  display: none !important;
}

.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .portfolio-img-wrapper {
    height: 240px;
  }
}

.portfolio-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-smooth);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

/* Visual mockups for portfolio items */
.portfolio-mockup {
  width: 80%;
  height: 75%;
  background: var(--primary-bg);
  border: 1px solid var(--border-teal);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-header {
  display: flex;
  gap: 0.5rem;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-teal);
}

.mockup-dot:nth-child(1) { background: var(--accent-gold); }

.mockup-body {
  flex-grow: 1;
  border: 1px dashed var(--border-teal);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}

.mockup-line {
  width: 60%;
  height: 4px;
  background: var(--border-teal);
  border-radius: 2px;
}

.mockup-line-short {
  width: 40%;
}

.mockup-circle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  opacity: 0.4;
}

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

.portfolio-info {
  padding: 2rem;
  background-color: var(--secondary-bg);
  border-top: 1px solid var(--border-teal);
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover .portfolio-info {
  border-top-color: var(--accent-gold);
}

.portfolio-category {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

.portfolio-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.portfolio-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.portfolio-tag-badge {
  font-size: 0.75rem;
  background: rgba(0, 194, 168, 0.12);
  color: #00c2a8;
  border: 1px solid rgba(0, 194, 168, 0.3);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}

.portfolio-tag-badge.gold {
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-gold);
  border-color: rgba(212, 175, 55, 0.3);
}

.portfolio-action-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid rgba(0, 194, 168, 0.15);
  padding-top: 0.85rem;
  margin-top: auto;
}

/* --- PROCESS SECTION --- */
.process-section {
  position: relative;
  overflow: hidden;
}

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--border-teal);
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .process-timeline::before {
    left: 30px;
  }
}

.process-step {
  position: relative;
  margin-bottom: 5rem;
  width: 50%;
  padding-right: 3.5rem;
}

.process-step:nth-child(even) {
  align-self: flex-end;
  margin-left: 50%;
  padding-right: 0;
  padding-left: 3.5rem;
}

@media (max-width: 768px) {
  .process-step {
    width: 100%;
    margin-left: 0 !important;
    padding-left: 5rem !important;
    padding-right: 0 !important;
    margin-bottom: 4rem;
  }
}

.process-node {
  position: absolute;
  top: 0;
  right: -16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-bg);
  border: 3px solid var(--border-teal);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.process-step:nth-child(even) .process-node {
  right: auto;
  left: -16px;
}

@media (max-width: 768px) {
  .process-node {
    left: 14px !important;
    right: auto !important;
  }
}

.process-node::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  opacity: 0;
  transition: var(--transition-smooth);
}

.process-step:hover .process-node {
  border-color: var(--accent-gold);
  box-shadow: var(--glow-gold);
}

.process-step:hover .process-node::after {
  opacity: 1;
}

.process-num {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  display: block;
}

.process-step-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- CONTACT SECTION & PAGE --- */
.contact-section {
  position: relative;
  background-color: var(--secondary-bg);
  border-top: 1px solid var(--border-teal);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

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

.contact-details {
  z-index: 5;
}

.contact-heading {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 3rem;
  opacity: 0.9;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

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

.contact-info-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(10, 68, 58, 0.4);
  border: 1px solid var(--border-teal);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-gold);
}

.contact-info-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-info-text {
  font-size: 1.1rem;
  color: var(--text-body);
  font-weight: 500;
}

/* Form Styling */
.contact-form-container {
  background-color: var(--primary-bg);
  border: 1px solid var(--border-teal);
  border-radius: 6px;
  padding: 3.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  z-index: 5;
  position: relative;
}

@media (max-width: 576px) {
  .contact-form-container {
    padding: 2rem;
  }
}

.contact-form-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 240, 190, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

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

@media (max-width: 576px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.form-group {
  position: relative;
  margin-bottom: 2.25rem;
}

.form-input {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-teal);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--accent-gold);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Floating Label Animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -1.2rem;
  font-size: 0.8rem;
  color: var(--accent-gold);
}

textarea.form-input {
  min-height: 100px;
  resize: none;
}

/* Budget Range Slider CSS */
.budget-group {
  margin-bottom: 2.5rem;
}

.budget-label {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.budget-label span.val {
  color: var(--accent-gold);
  font-weight: 700;
  font-family: var(--font-heading);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border-teal);
  border-radius: 2px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: var(--glow-gold);
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.contact-form-container .btn {
  width: 100%;
  margin-top: 1rem;
}

/* Success Popup */
.form-status {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-bg);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 10;
}

.form-status.active {
  opacity: 1;
  pointer-events: auto;
}

.status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 240, 190, 0.1);
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  animation: pulse-glow 2s infinite alternate;
}

.status-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.status-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border-teal);
  padding: 6rem 0 3rem 0;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  position: relative;
  z-index: 5;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

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

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

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--border-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.social-link:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(255, 240, 190, 0.1);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-teal);
  padding-top: 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 5;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

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

/* --- DESKTOP NAV CARD DROPDOWN --- */
.nav-card-dropdown {
  position: absolute;
  width: 320px;
  background: linear-gradient(135deg, rgba(3, 32, 27, 0.98) 0%, rgba(10, 68, 58, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 240, 190, 0.15);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(10, 68, 58, 0.4);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 200;
}

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

.nav-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.nav-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.nav-card-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-body);
  opacity: 0.85;
  line-height: 1.5;
  margin: 0;
}

.nav-card-cta {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: #00ffcc; /* Bright premium green accent */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  transition: var(--transition-fast);
}

.nav-card-cta:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

/* Underline link indicator when dropdown is open */
.nav-link.dropdown-open::after {
  width: 100%;
}
.nav-link.dropdown-open {
  color: var(--accent-gold);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #03201b; /* Matches dark theme */
  border-top: 1px solid var(--border-teal);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  padding: 1.5rem 2.5rem;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner-container.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-banner-text h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.cookie-banner-text p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-body);
  opacity: 0.85;
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

/* Button styles matching the screenshot */
.btn-cookie-primary {
  background-color: #10b981; /* Premium green matching mockup */
  color: #03201b;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cookie-primary:hover {
  background-color: #059669;
  transform: translateY(-1px);
}

.btn-cookie-outline {
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.72rem 1.8rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cookie-outline:hover {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.btn-cookie-link {
  background-color: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cookie-link:hover {
  color: #FFFFFF;
}

/* Responsive banner */
@media (max-width: 992px) {
  .cookie-banner-container {
    padding: 1.5rem;
  }
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .btn-cookie-primary, .btn-cookie-outline {
    flex-grow: 1;
    text-align: center;
  }
}

/* --- CUSTOM CTA CARD HORIZONTAL --- */
.cta-card-horizontal {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 4rem !important;
  border: 1px solid var(--border-teal);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--secondary-bg), rgba(0, 168, 150, 0.05));
  transition: var(--transition-smooth);
}

.cta-card-horizontal:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 10px 30px rgba(255, 240, 190, 0.05);
}

@media (max-width: 768px) {
  .cta-card-horizontal {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem !important;
    gap: 1.5rem;
  }
}

/* --- SERVICES DETAIL MODAL --- */
.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.service-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 30, 0.85);
  backdrop-filter: blur(10px);
}

.service-modal-content {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-teal);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  padding: 2.2rem 2.5rem;
  z-index: 1010;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 168, 150, 0.05);
}

.service-modal.active .service-modal-content {
  transform: translateY(0) scale(1);
}

.service-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.service-modal-close:hover {
  color: var(--accent-gold);
  transform: rotate(90deg);
}

.service-modal-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  padding-right: 2.5rem; /* Leave room for absolute close button */
}

.service-modal-icon {
  color: var(--accent-gold);
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.service-modal-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.service-modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin: 0;
  line-height: 1.2;
}

.service-modal-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-modal-section {
  margin-bottom: 1rem;
}

.service-modal-subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gold);
  margin-bottom: 0.5rem;
}

.service-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.service-modal-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-modal-list li::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: bold;
}

.services-grid .service-card {
  cursor: pointer;
}

.service-explore-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-top: auto;
  padding-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-explore-link {
  color: var(--text-light);
  transform: translateX(4px);
}

/* --- TECHNOLOGY PILLS --- */
.tech-stack-section {
  border-top: 1px solid var(--border-teal);
  position: relative;
  z-index: 5;
}

.tech-pills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.tech-pill {
  background: #ffffff;
  color: #0b1a20;
  border-radius: 50px;
  padding: 0.75rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 20px rgba(0, 168, 150, 0.05);
  transition: var(--transition-smooth);
}

.tech-pill:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 168, 150, 0.2);
}

.tech-pill-logo {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-pill-logo svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .service-modal-content {
    padding: 2.5rem 2rem;
  }
  .service-modal-list {
    grid-template-columns: 1fr;
  }
}

/* Portfolio CTA Section */
.portfolio-cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #051923 0%, #0d3b36 100%);
  position: relative;
  z-index: 5;
  overflow: hidden;
  border-top: 1px solid var(--border-teal);
  border-bottom: 1px solid var(--border-teal);
}

.portfolio-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.portfolio-cta-content {
  max-width: 500px;
}

.cta-subtitle {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  margin-bottom: 1rem;
}

.cta-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.btn-outline-white {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline-white:hover {
  background: var(--text-light);
  color: #051923;
  border-color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Browser Mockup CSS */
.browser-mockup {
  background: #18181b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.browser-header {
  background: #0f0f11;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.browser-header .dot.red { background: #ef4444; }
.browser-header .dot.yellow { background: #eab308; }
.browser-header .dot.green { background: #22c55e; }

.browser-body {
  background: #f4f4f5;
  color: #18181b;
}

.mockup-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

/* Left panel (purple) */
.mockup-left {
  background: #1e0b36;
  color: #ffffff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.mockup-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.mockup-logo svg {
  width: 16px;
  height: 16px;
  fill: #a259ff;
}

.mockup-left-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.mockup-left-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.mockup-testimonial {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #a259ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 700;
}

.user-title {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

.testimonial-text {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.mockup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mockup-badges span {
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* Right panel (form) */
.mockup-right {
  background: #ffffff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #18181b;
  margin-bottom: 0.25rem;
}

.form-subtitle {
  font-size: 0.75rem;
  color: #71717a;
  margin-bottom: 1.5rem;
}

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

.mockup-form label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #71717a;
  display: block;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.mockup-form .label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-form .forgot-link {
  font-size: 0.65rem;
  color: #7c3aed;
  text-decoration: none;
  font-weight: 700;
}

.mockup-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.mockup-form .input-wrapper svg {
  position: absolute;
  left: 0.75rem;
  width: 14px;
  height: 14px;
  color: #a1a1aa;
}

.mockup-form .input-wrapper input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.2rem;
  border: 1px solid #e4e4e7;
  background: #f4f4f5;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #18181b;
  outline: none;
}

.mockup-form .eye-icon {
  position: absolute;
  right: 0.75rem;
  font-size: 0.8rem;
  color: #a1a1aa;
  cursor: pointer;
}

.remember-row {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  color: #71717a;
  margin-bottom: 1rem;
}

.remember-row input {
  margin-right: 0.4rem;
}

.btn-mockup-submit {
  width: 100%;
  padding: 0.6rem;
  background: #7c3aed;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: not-allowed;
  transition: opacity 0.2s;
}

.or-separator {
  font-size: 0.6rem;
  color: #a1a1aa;
  text-align: center;
  margin: 1rem 0;
  position: relative;
}

.or-separator::before,
.or-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 25%;
  height: 1px;
  background: #e4e4e7;
}

.or-separator::before { left: 0; }
.or-separator::after { right: 0; }

.social-login-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #27272a;
  cursor: not-allowed;
}

.social-btn svg {
  width: 14px;
  height: 14px;
}

.signup-prompt {
  font-size: 0.7rem;
  color: #71717a;
  text-align: center;
}

.signup-prompt a {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 700;
}

/* Responsive CTA */
@media (max-width: 991px) {
  .portfolio-cta-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .portfolio-cta-content {
    max-width: 100%;
    text-align: center;
  }
  .portfolio-cta-content .btn-outline-white {
    margin: 0 auto;
    display: inline-block;
  }
}


/* Infinite Sliding Marquee */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background-color: #0b1319;
  border-top: 1px solid rgba(0, 194, 168, 0.2);
  border-bottom: 1px solid rgba(0, 194, 168, 0.2);
  padding: 1.5rem 0;
  display: flex;
  position: relative;
  z-index: 10;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  animation: marquee-scroll 25s linear infinite;
  white-space: nowrap;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-item {
  color: var(--text-heading);
  font-family: var(--font-heading, sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.marquee-item:hover {
  color: var(--teal);
  transition: color 0.3s ease;
}

.marquee-item::after {
  content: '\2022';
  color: var(--teal);
  margin-left: 3rem;
  font-size: 1.5rem;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  .marquee-content {
    gap: 1.5rem;
    padding-right: 1.5rem;
    animation-duration: 18s;
  }
  .marquee-item {
    font-size: 1.1rem;
  }
  .marquee-item::after {
    margin-left: 1.5rem;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Comprehensive Responsive Grid System & Utilities
   ========================================================================== */

/* Vision 2-Column Split Section */
.vision-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.vision-side-content {
  border-left: 1px solid var(--border-teal);
  padding-left: 3rem;
}

@media (max-width: 992px) {
  .vision-side-content {
    border-left: none;
    border-top: 1px solid var(--border-teal);
    padding-left: 0;
    padding-top: 2rem;
  }
}

/* 3-Column Showcase Grids */
.industries-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 992px) {
  .industries-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
}

@media (max-width: 600px) {
  .industries-showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Case Breakdown 3-Column Grid */
.case-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .case-breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 600px) {
  .case-breakdown-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* 2-Item Stats Split Grid */
.stats-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 480px) {
  .stats-split-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
}

/* ==========================================================================
   Responsive Interactive Modals
   ========================================================================== */
.responsive-modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 1250px;
  height: 92vh;
  background-color: #0d1721;
  border: 1px solid #00c2a8;
  border-radius: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 30px rgba(0, 194, 168, 0.2);
}

@media (max-width: 768px) {
  .responsive-modal-dialog {
    width: 96% !important;
    height: 95vh !important;
    max-height: 95vh !important;
    border-radius: 6px;
  }
  .modal-header-responsive {
    padding: 0.75rem 1rem !important;
    gap: 0.5rem !important;
  }
  .modal-title-responsive {
    font-size: 0.95rem !important;
  }
  .modal-nav-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }
  .modal-nav-btn.prev {
    left: 8px !important;
  }
  .modal-nav-btn.next {
    right: 8px !important;
  }
  .slide-thumb {
    height: 40px !important;
  }
}

@media (max-width: 480px) {
  .modal-title-responsive {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


