/* ==========================================================================
   Auranem — Global CSS System
   ========================================================================== */

/* Brand & Typography Variable Set */
:root {
  /* Colors */
  --color-bg: #FFFFFF;
  --color-bg-light: #FFF3C8;
  --color-bg-lighter: rgba(229, 203, 144, 0.25);
  --color-primary: #34A99D;
  --color-secondary: #458393;
  --color-accent: #E5CB90;
  --color-text-primary: #458393;
  --color-text-muted: rgba(69, 131, 147, 0.85);
  --color-text-dark: rgba(69, 131, 147, 0.5);
  --color-border: rgba(69, 131, 147, 0.15);
  
  /* Fonts */
  --font-headings: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Easing Functions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Layout */
  --nav-height: 80px;
  --z-preloader: 9999;
  --z-cursor: 9998;
  --z-modal: 9990;
  --z-navbar: 990;
  --z-default: 1;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg);
}

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

/* Custom Scrollbar for Chrome/Safari/Edge */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-bg-light);
  border-left: 2px solid var(--color-bg);
  border-right: 2px solid var(--color-bg);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  z-index: var(--z-preloader);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.8s var(--ease-expo-out), opacity 0.8s var(--ease-expo-out);
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  font-family: var(--font-headings);
  font-weight: 900;
  font-size: 3rem;
  letter-spacing: 0.5rem;
  color: var(--color-text-primary);
  margin-bottom: 2rem;
  display: flex;
}

.preloader-logo .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.5);
}

.preloader-progress-container {
  width: 250px;
  height: 3px;
  background: rgba(69, 131, 147, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.preloader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 3px;
  transition: width 0.1s ease;
}

.preloader-percentage {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-top: 0.8rem;
  letter-spacing: 1px;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-cursor);
}

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
  will-change: transform;
}

.cursor-circle {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-expo-out), height 0.3s var(--ease-expo-out), border-color 0.3s;
  will-change: transform;
}

.cursor-label {
  position: absolute;
  font-family: var(--font-headings);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-bg);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.3s var(--ease-expo-out), opacity 0.3s;
  pointer-events: none;
}

/* Cursor Interactive States */
body.hover-interactive .cursor-circle {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 212, 255, 0.1);
  border-color: transparent;
}

body.hover-portfolio .cursor-circle {
  width: 80px;
  height: 80px;
  background-color: var(--color-primary);
  border-color: transparent;
}

body.hover-portfolio .cursor-label {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ==========================================================================
   Global Layout & Typography Helper Classes
   ========================================================================== */
.main-content {
  position: relative;
  z-index: 2;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.section-label {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.text-cyan { color: var(--color-primary); }
.text-coral { color: var(--color-secondary); }
.text-gold { color: var(--color-accent); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease-expo-out), border-color 0.4s, transform 0.3s;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border: 1px solid var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s var(--ease-smooth);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

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

.btn-outline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--color-primary);
  z-index: -1;
  transition: height 0.3s var(--ease-smooth);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-bg);
  transform: translateY(-2px);
  z-index: 1;
}

.btn-outline:hover::after {
  height: 100%;
}

/* ==========================================================================
   Navigation Bar (Sticky)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: var(--z-navbar);
  display: flex;
  align-items: center;
  transition: background-color 0.4s, backdrop-filter 0.4s, height 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  height: 70px;
  border-bottom: 1px solid var(--color-border);
}

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

.nav-logo {
  font-family: var(--font-headings);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--color-text-primary);
  transition: transform 0.3s;
}

.nav-logo span {
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s;
}

/* Hamburger toggle active morphing */
.nav-toggle.open .bar-1 {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open .bar-2 {
  opacity: 0;
}
.nav-toggle.open .bar-3 {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-family: var(--font-headings);
  font-size: 6.5rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
}

.hero-title .letter {
  display: inline-block;
  cursor: default;
  transition: transform 0.3s var(--ease-bounce), color 0.3s;
  will-change: transform;
}

.hero-title .letter:hover {
  color: var(--color-primary);
  transform: translateY(-15px) scale(1.15) rotate(5deg);
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  min-height: 1.6em; /* Prevent layout shift during typewriter */
  border-right: 2px solid var(--color-primary);
  display: inline-block;
  width: fit-content;
  padding-right: 4px;
}

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

.hero-visual {
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

.mockup-3d-wrapper {
  transform-style: preserve-3d;
  will-change: transform;
}

.laptop-mockup {
  position: relative;
  width: 440px;
  height: 280px;
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-18deg);
  transition: transform 0.1s ease-out;
}

.laptop-screen {
  position: absolute;
  width: 440px;
  height: 260px;
  background-color: #0c0f1d;
  border: 12px solid #1e2235;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.1);
  overflow: hidden;
  transform: translateZ(10px);
}

.mockup-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  transform: translate(-30%, -30%) rotate(25deg);
  pointer-events: none;
}

.laptop-base {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 480px;
  height: 20px;
  background-color: #2c314c;
  border-radius: 0 0 15px 15px;
  transform: rotateX(80deg);
  transform-origin: bottom center;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4), 0 10px 10px rgba(0, 212, 255, 0.15);
}

.laptop-keyboard {
  position: absolute;
  top: 4px;
  left: 30px;
  right: 30px;
  height: 8px;
  background-color: #161926;
  border-radius: 2px;
}

.laptop-trackpad {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background-color: #1e2235;
  border-radius: 1px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: opacity 0.5s;
}

.scroll-text {
  animation: bounceText 2s infinite;
}

.chevron-down {
  animation: bounceChevron 2s infinite;
}

@keyframes bounceChevron {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

@keyframes bounceText {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.section-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(0, 212, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
}

.about-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 6rem;
  align-items: center;
}

.about-title {
  font-family: var(--font-headings);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-bottom: 2rem;
}

.about-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 3.5rem;
}

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

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

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat-suffix {
  color: var(--color-secondary);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.orbital-graphic-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 1;
}

.orbital-svg {
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.15));
}

.pulse-glow {
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% { r: 6px; fill-opacity: 0.8; filter: drop-shadow(0 0 3px var(--color-primary)); }
  100% { r: 10px; fill-opacity: 1; filter: drop-shadow(0 0 12px var(--color-primary)); }
}

/* Orbit Node Rotations handled by GSAP or simple CSS */
.orbit-node {
  transform-origin: 200px 200px;
  animation: rotateOrbit 12s linear infinite;
}

.node-2 { animation-duration: 20s; animation-direction: reverse; }
.node-3 { animation-duration: 30s; }

@keyframes rotateOrbit {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Services Hub
   ========================================================================== */
.services-section {
  padding: 8rem 0;
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.services-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header-center {
  text-align: center;
  margin-bottom: 5rem;
}

.services-title {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.services-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

.tab-switcher-wrapper {
  position: relative;
  display: inline-flex;
  background-color: var(--color-bg);
  padding: 5px;
  border-radius: 30px;
  border: 1px solid var(--color-border);
}

.tab-slider-pill {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  background-color: var(--color-primary);
  border-radius: 25px;
  z-index: 1;
  transition: width 0.4s var(--ease-elastic), left 0.4s var(--ease-elastic);
}

.tab-btn {
  position: relative;
  z-index: 2;
  padding: 0.8rem 2.2rem;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 25px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.tab-btn.active {
  color: var(--color-bg);
}

.services-pillar-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}

.services-pillar-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.services-grid {
  display: grid;
  gap: 2rem;
}

.marketing-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.it-grid {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

/* Service Card Design */
.service-card {
  background-color: var(--color-bg);
  border: 1px solid rgba(69, 131, 147, 0.1);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.1s ease-out, box-shadow 0.3s;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(0, 212, 255, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.service-card:hover .card-glow {
  opacity: 1;
}

.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.06);
}

.card-content {
  transform: translateZ(30px);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 2;
}

.service-icon-wrapper {
  color: var(--color-primary);
  margin-bottom: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-bounce);
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.1);
  color: var(--color-secondary);
}

.service-card h3 {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
  transition: color 0.3s;
}

.service-card:hover h3 {
  color: var(--color-primary);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-number {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-family: var(--font-headings);
  font-weight: 900;
  font-size: 2.5rem;
  color: rgba(69, 131, 147, 0.04);
  line-height: 1;
  transition: color 0.3s;
}

.service-card:hover .card-number {
  color: rgba(0, 212, 255, 0.05);
}

/* Micro animations on service SVG icons */
.envelope-flap {
  transform-origin: top center;
  transition: transform 0.4s;
}
.service-card:hover .envelope-flap {
  transform: scaleY(-0.7) translateY(-3px);
  color: var(--color-secondary);
}

.ripple-ring-1, .ripple-ring-2 {
  transform-origin: center;
  animation: svgRipple 2s infinite linear;
  opacity: 0.3;
}
.ripple-ring-2 { animation-delay: 1s; }
@keyframes svgRipple {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

.service-card:hover .node-line-1, .service-card:hover .node-line-2 {
  stroke-dasharray: 4 4;
  animation: linePulse 1.5s infinite linear;
}
@keyframes linePulse {
  to { stroke-dashoffset: -8; }
}

.service-card:hover .graph-bar-1 { animation: growBar 0.8s alternate infinite ease-in-out; }
.service-card:hover .graph-bar-2 { animation: growBar 0.8s alternate infinite ease-in-out 0.2s; }
.service-card:hover .graph-bar-3 { animation: growBar 0.8s alternate infinite ease-in-out 0.4s; }
@keyframes growBar {
  0% { y2: 11; }
  100% { y2: 4; }
}

.service-card:hover .attracted-dot-1 { animation: magnetize 0.8s infinite alternate; }
.service-card:hover .attracted-dot-2 { animation: magnetize 1.2s infinite alternate; }
.service-card:hover .attracted-dot-3 { animation: magnetize 0.6s infinite alternate; }
@keyframes magnetize {
  to { transform: translateY(-6px) scale(1.3); }
}

.scanner-line {
  animation: scan 2s infinite ease-in-out;
}
@keyframes scan {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(8px); }
}

.orbit-path {
  transform-origin: center;
  animation: spinOrbit 15s infinite linear;
}
.social-node-1, .social-node-2, .social-node-3 {
  transform-origin: 12px 12px;
  animation: spinOrbit 8s infinite linear;
}
.social-node-2 { animation-delay: -2.6s; }
.social-node-3 { animation-delay: -5.3s; }
@keyframes spinOrbit {
  to { transform: rotate(360deg); }
}

.service-card:hover .cursor-pointer {
  animation: cursorPulse 1s infinite alternate;
}
@keyframes cursorPulse {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2px, -2px); }
}

/* IT card preview windows sliding up */
.it-card-preview {
  position: absolute;
  bottom: -150px;
  left: 2.5rem;
  right: 2.5rem;
  height: 100px;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  transition: transform 0.5s var(--ease-expo-out);
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.service-card:hover .it-card-preview {
  transform: translateY(-150px);
}

.preview-browser-head {
  height: 18px;
  background-color: #0c0f1d;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}

.preview-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-text-dark);
}

.preview-browser-body {
  padding: 10px;
  height: calc(100% - 18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(10, 25, 47, 0.95);
}

.preview-shimmer-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  margin-bottom: 8px;
}
.preview-shimmer-line.title { width: 50%; }

.preview-shimmer-grid {
  display: flex;
  gap: 6px;
}

.preview-shimmer-box {
  flex: 1;
  height: 35px;
  background: rgba(0, 212, 255, 0.05);
  border-radius: 4px;
}

.preview-chart-bars {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 6px;
}

.preview-chart-bar {
  flex: 1;
  background-color: var(--color-primary);
  border-radius: 2px 2px 0 0;
}

.preview-console {
  font-family: monospace;
  font-size: 8px;
  color: var(--color-text-muted);
}
.preview-console .cmd { color: var(--color-primary); }
.preview-console .res { color: var(--color-secondary); }

.preview-phone {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 60px;
  margin: 0 auto;
  height: 100%;
  border: 4px solid var(--color-border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.phone-screen-card {
  height: 20px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 2px;
}

.spinning-gear {
  transform-origin: center;
}
.service-card:hover .spinning-gear {
  animation: gearSpin 6s infinite linear;
}
@keyframes gearSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(69, 131, 147, 0.5);
  backdrop-filter: blur(10px);
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.service-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%) scale(0.9);
  width: 90%;
  max-width: 580px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 4rem 3.5rem;
  z-index: calc(var(--z-modal) + 1);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease-elastic), opacity 0.5s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.1);
}

.service-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--color-secondary);
}

.modal-body h2 {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.modal-desc {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.modal-tech-stack {
  margin-bottom: 3rem;
}

.modal-tech-stack h5 {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-tags span {
  padding: 0.5rem 1rem;
  background-color: var(--color-bg-light);
  border: 1px solid rgba(69, 131, 147, 0.15);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  color: var(--color-primary);
}

.modal-cta {
  width: 100%;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-section {
  padding: 8rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.process-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header-left {
  margin-bottom: 6rem;
}

.section-header-left h2 {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header-left p {
  color: var(--color-text-muted);
  max-width: 500px;
}

.process-timeline-wrapper {
  position: relative;
  padding: 4rem 0;
}

.timeline-line-svg {
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%;
  height: 10px;
  z-index: 1;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
}

.step-dot-wrapper {
  position: relative;
  margin-bottom: 2.5rem;
}

.step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 4px solid var(--color-bg-lighter);
  transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s;
}

.timeline-step.active .step-dot {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary);
}

.step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-text-dark);
  transition: color 0.4s;
}

.timeline-step.active .step-number {
  color: var(--color-primary);
}

.step-card {
  background-color: var(--color-bg-light);
  border: 1px solid rgba(69, 131, 147, 0.15);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.5s var(--ease-elastic), border-color 0.4s, box-shadow 0.4s;
  transform: translateY(15px);
  opacity: 0.5;
  width: 100%;
}

.timeline-step.active .step-card {
  transform: translateY(0);
  opacity: 1;
  border-color: var(--color-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.step-icon-wrapper {
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
}

.timeline-step.active .step-icon-wrapper {
  color: var(--color-primary);
}

.step-card h4 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio-section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--color-border);
}

.portfolio-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-filters {
  position: relative;
  display: inline-flex;
  background-color: var(--color-bg-light);
  padding: 5px;
  border-radius: 30px;
  margin-top: 1rem;
  border: 1px solid rgba(69, 131, 147, 0.15);
}

.filter-slider-pill {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  background-color: var(--color-primary);
  border-radius: 25px;
  z-index: 1;
  transition: width 0.4s var(--ease-elastic), left 0.4s var(--ease-elastic);
}

.filter-btn {
  position: relative;
  z-index: 2;
  padding: 0.6rem 1.8rem;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 25px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.filter-btn.active {
  color: var(--color-bg);
}

.portfolio-masonry {
  columns: 2;
  column-gap: 2rem;
  margin-top: 4rem;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s, transform 0.4s var(--ease-smooth);
}

.portfolio-img-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(69, 131, 147, 0.1);
}

.portfolio-mock-img {
  width: 100%;
  aspect-ratio: var(--aspect, 1.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  transition: transform 0.6s var(--ease-smooth);
}

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

/* Simulated screen aesthetics inside mock portfolio images */
.portfolio-inner-mockup {
  background-color: rgba(10, 25, 47, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.mock-tag {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
}

.mock-chart-line {
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
  margin: 1.5rem 0;
  width: 80%;
  position: relative;
}
.mock-chart-line::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -3px;
  width: 10px;
  height: 10px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-secondary);
}

.mock-val {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 800;
}

.mock-browser-bar {
  height: 10px;
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
}
.mock-browser-bar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-text-dark);
}

.mock-code-lines {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.mock-code-lines code {
  display: block;
}

.mock-circle-chart {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  margin: 1rem 0;
  animation: rotateOrbit 4s infinite linear;
}

.mock-funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 1rem 0;
}
.funnel-1 { width: 60px; height: 10px; background-color: var(--color-secondary); border-radius: 2px; }
.funnel-2 { width: 35px; height: 10px; background-color: var(--color-primary); border-radius: 2px; }

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.7) 60%, transparent 100%);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.portfolio-img-container:hover .portfolio-overlay {
  opacity: 1;
}

.project-category {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.portfolio-overlay h3 {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.case-btn {
  width: fit-content;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
  padding: 8rem 0;
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.testimonials-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-slider-viewport {
  width: 100%;
  max-width: 800px;
  margin: 4rem auto 0 auto;
  position: relative;
  height: 380px;
}

.testimonials-deck {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1000px;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 4rem;
  opacity: 0;
  transform: translateZ(-200px) rotateY(15deg);
  pointer-events: none;
  transition: transform 0.6s var(--ease-expo-out), opacity 0.6s, border-color 0.3s;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.testimonial-card.active {
  opacity: 1;
  transform: translateZ(0) rotateY(0);
  pointer-events: auto;
  z-index: 5;
}

.testimonial-card.prev {
  opacity: 0.4;
  transform: translateZ(-100px) rotateY(-10deg) translateX(-15%);
  z-index: 2;
}

.testimonial-card.next {
  opacity: 0.4;
  transform: translateZ(-100px) rotateY(10deg) translateX(15%);
  z-index: 2;
}

.testimonial-decor-quote {
  color: var(--color-primary);
  opacity: 0.15;
  margin-bottom: 2rem;
}

.testimonial-text {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: var(--color-text-primary);
}

.testimonial-user-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.user-avatar-wrapper {
  position: relative;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--color-bg);
  font-size: 1.2rem;
}

.testimonial-user-info h4 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
}

.testimonial-user-info .user-title {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.nav-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, border-color 0.3s;
}

.nav-arrow:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.liquid-dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background-color: var(--color-text-dark);
  cursor: pointer;
  transition: width 0.4s var(--ease-elastic), background-color 0.3s;
}

.dot.active {
  width: 24px;
  background-color: var(--color-primary);
}

/* ==========================================================================
   Stats & Client Marquee
   ========================================================================== */
.marquee-stats-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.logo-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.logo-marquee-track {
  display: inline-flex;
  gap: 6rem;
  animation: scrollMarquee 25s linear infinite;
}

.logo-marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--color-text-dark);
  transition: color 0.3s, transform 0.3s;
  cursor: default;
}

.marquee-item:hover {
  color: var(--color-primary);
  transform: scale(1.1);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

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

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.cta-mesh-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(0, 212, 255, 0.1), transparent 50%),
    radial-gradient(ellipse at 80% 75%, rgba(255, 107, 107, 0.08), transparent 50%);
  pointer-events: none;
}

.cta-container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

.cta-btn {
  padding: 1.2rem 3rem;
  font-size: 1rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  padding: 8rem 0;
  background-color: var(--color-bg);
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--color-border);
}

.contact-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

.contact-form-column h2 {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3.5rem;
}

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

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 0.8rem 0;
  border-bottom: 2px solid var(--color-text-dark);
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: var(--color-primary);
}

.form-label {
  position: absolute;
  top: 0.8rem;
  left: 0;
  font-family: var(--font-headings);
  font-size: 1rem;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: transform 0.3s var(--ease-expo-out), font-size 0.3s, color 0.3s;
  transform-origin: left center;
}

/* Float logic for floating labels */
.form-input:focus ~ .form-label,
.form-input:valid ~ .form-label,
.form-input:not([value=""]) ~ .form-label {
  transform: translateY(-2.2rem) scale(0.85);
  color: var(--color-primary);
}

/* Adjust select option dropdown style */
select.form-input {
  appearance: none;
  cursor: pointer;
}

select.form-input option {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
}

.select-label {
  pointer-events: none;
}

/* Custom expand underline bar */
.form-bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s var(--ease-smooth), left 0.3s var(--ease-smooth);
}

.form-input:focus ~ .form-bar {
  width: 100%;
  left: 0;
}

/* Inline verification styles */
.field-feedback-icon {
  position: absolute;
  right: 0;
  top: 0.8rem;
  font-size: 1.1rem;
  pointer-events: none;
  transition: opacity 0.3s;
}

.form-input.valid {
  border-color: #34A99D;
}
.form-input.valid ~ .form-bar {
  background-color: #34A99D;
}
.form-input.valid ~ .field-feedback-icon::before {
  content: '✓';
  color: #34A99D;
}

.form-input.invalid {
  border-color: var(--color-secondary);
}
.form-input.invalid ~ .form-bar {
  background-color: var(--color-secondary);
}
.form-input.invalid ~ .field-feedback-icon::before {
  content: '×';
  color: var(--color-secondary);
}

/* Shake Animation on error */
.shake-animation {
  animation: errorShake 0.4s linear;
}

@keyframes errorShake {
  8%, 41% { transform: translateX(-8px); }
  25%, 58% { transform: translateX(8px); }
  75% { transform: translateX(-4px); }
  92% { transform: translateX(4px); }
  0%, 100% { transform: translateX(0); }
}

/* Submit button morphing styles */
.submit-btn {
  align-self: flex-start;
  padding: 1.2rem 3.5rem;
}

.submit-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(69, 131, 147, 0.2);
  border-top-color: var(--color-bg);
  border-radius: 50%;
  animation: rotateOrbit 0.8s infinite linear;
}

.submit-btn.loading .submit-text { display: none; }
.submit-btn.loading .submit-spinner { display: block; }
.submit-btn.success { background-color: #34A99D; border-color: #34A99D; color: var(--color-bg); }

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

.info-blocks {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-block h5 {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.info-block p {
  font-size: 1.1rem;
  font-weight: 500;
}

.minimal-map-container {
  width: 100%;
  aspect-ratio: 1.6;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  padding: 1rem;
}

.minimal-map-svg {
  display: block;
}

.map-ripple-ring-1, .map-ripple-ring-2 {
  transform-origin: 150px 90px;
  animation: mapRipple 3s infinite linear;
}
.map-ripple-ring-2 { animation-delay: 1.5s; }

@keyframes mapRipple {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

.map-pin {
  transform-origin: 150px 90px;
  animation: mapPinBounce 2s infinite ease-in-out;
}

@keyframes mapPinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   Revealed Footer
   ========================================================================== */
.footer-revealed {
  position: relative;
  z-index: 1;
  background-color: var(--color-accent);
  padding: 6rem 0;
  border-top: 1px solid rgba(0, 212, 255, 0.05);
}

/* Standard sticky reveal footer behaviour desktop */
@media (min-width: 1025px) {
  .footer-revealed {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: -1;
  }
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-brand h3 {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

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

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

.footer-links-col h5, .footer-newsletter h5 {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links-col a:hover {
  color: var(--color-primary);
}

.footer-newsletter p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 4px;
  border-radius: 4px;
}

.newsletter-input {
  flex: 1;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
}

.newsletter-input::placeholder {
  color: var(--color-text-dark);
}

.newsletter-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(69, 131, 147, 0.15);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

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

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 1px solid rgba(69, 131, 147, 0.15);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-bounce);
}

.social-icon-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-5px);
}

/* Tooltip overlay styling */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background-color: var(--color-primary);
  color: var(--color-bg);
  font-family: var(--font-headings);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet Layout: up to 1024px */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 5rem;
  }
  
  .hero-container, .about-container, .contact-container {
    gap: 3rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-newsletter {
    grid-column: span 2;
  }
}

/* Mobile Layout: up to 768px */
@media (max-width: 768px) {
  /* Disable custom cursors and 3D tilts for performance and touch friendliness */
  .custom-cursor {
    display: none;
  }
  
  body {
    cursor: default !important;
  }
  
  .navbar {
    height: 70px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: var(--color-bg);
    border-left: 1px solid var(--color-border);
    transition: right 0.4s var(--ease-expo-out);
    z-index: var(--z-navbar);
    padding: 3rem;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .nav-actions {
    gap: 1rem;
  }
  
  .nav-cta-btn {
    display: none; /* Hide top CTA button, let menu handle links */
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-title {
    justify-content: center;
    font-size: 4rem;
  }
  
  .hero-subtitle {
    margin: 0 auto 2rem auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .laptop-mockup {
    width: 100%;
    max-width: 320px;
    height: 200px;
    transform: none !important; /* Disable 3D tilt on mobile */
  }
  .laptop-screen {
    width: 100%;
    max-width: 320px;
    height: 185px;
    transform: none !important;
  }
  .laptop-base {
    width: 350px;
    left: -15px;
    transform: rotateX(80deg) !important;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-title {
    font-size: 2.2rem;
  }
  
  .about-stats-grid {
    gap: 1.5rem;
  }
  
  .stat-number-wrapper {
    font-size: 2.5rem;
  }
  
  .services-pillar-content.active {
    padding: 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: 2.5rem 2rem;
  }
  
  .it-card-preview {
    display: none; /* Disable previews on mobile */
  }
  
  .service-card:hover {
    transform: none !important; /* Disable 3D tilt */
  }
  
  .service-modal {
    padding: 3rem 2rem;
  }
  
  .process-timeline-wrapper {
    padding: 0;
  }
  
  .timeline-line-svg {
    display: none; /* Hide SVG drawing line on mobile */
  }
  
  .timeline-steps {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  
  .timeline-step {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .step-dot-wrapper {
    margin-bottom: 0;
    padding-top: 10px;
  }
  
  .step-number {
    position: static;
    transform: none;
    text-align: center;
    margin-top: 5px;
  }
  
  .step-card {
    transform: none !important;
    opacity: 1 !important;
    text-align: left;
  }
  
  .step-icon-wrapper {
    justify-content: flex-start;
  }
  
  .portfolio-masonry {
    columns: 1;
  }
  
  .portfolio-overlay {
    padding: 2rem;
  }
  
  .testimonials-slider-viewport {
    height: 480px;
  }
  
  .testimonial-card {
    padding: 2.5rem;
    transform: none !important;
  }
  .testimonial-card.prev, .testimonial-card.next {
    display: none; /* Hide stacked cards on mobile to avoid overlap */
  }
  
  .testimonial-text {
    font-size: 1.15rem;
  }
  
  .logo-marquee-track {
    gap: 3rem;
  }
  
  .cta-title {
    font-size: 2.2rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-newsletter {
    grid-column: auto;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Button ripple circle styling */
.btn-ripple-circle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.35);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: btnRippleAnim 0.6s ease-out;
  pointer-events: none;
}
@keyframes btnRippleAnim {
  to {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}
