/* ============================================
   İRYA GROUP — Landing Page Design System
   ============================================ */

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

/* --- Tokens --- */
:root {
  --c-primary: #2596be;
  --c-primary-light: #5cb8d9;
  --c-primary-dark: #1a7a9e;
  --c-accent: #0d3b50;
  --c-accent-glow: #3edcff;
  --c-surface: #f5f5f5;
  --c-surface-alt: #e8f4f8;
  --c-white: #ffffff;
  --c-text: #1a2a35;
  --c-text-muted: #5a7a8a;
  --c-border: rgba(37, 150, 190, 0.12);
  --ff: 'Work Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 8px 40px rgba(13, 59, 80, 0.10);
  --shadow-hover: 0 16px 56px rgba(13, 59, 80, 0.18);
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff);
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 42px;
  transition: height 0.3s var(--ease);
}

.navbar.scrolled .navbar-logo img {
  height: 60px;
}

.navbar-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-white);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.navbar.scrolled .navbar-links a {
  color: var(--c-text);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-primary);
  transition: width 0.3s var(--ease);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  background: var(--c-primary);
  color: var(--c-white) !important;
  padding: 10px 24px !important;
  border-radius: 8px;
  transition: background 0.3s, transform 0.3s !important;
}

.navbar-cta::after {
  display: none !important;
}

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

.navbar.scrolled .navbar-cta {
  color: var(--c-white) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: all 0.3s;
}

.navbar.scrolled .nav-toggle span {
  background: var(--c-text);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-accent);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--c-accent);
  background-image: url('../images/irya-banner.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(13, 59, 80, 0.82) 0%,
      rgba(37, 150, 190, 0.55) 50%,
      rgba(13, 59, 80, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-white);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent-glow);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(62, 220, 255, 0.5);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(62, 220, 255, 0);
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--c-accent-glow), var(--c-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--ff);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.35s var(--ease);
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 4px 20px rgba(37, 150, 190, 0.35);
}

.btn-primary:hover {
  background: var(--c-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 150, 190, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: 120px 0;
  background: var(--c-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-primary);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 44px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.45s var(--ease);
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--c-border);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--c-surface-alt);
  transition: background 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(37, 150, 190, 0.1);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--c-primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--c-text);
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--c-text-muted);
  font-weight: 400;
}

/* ============================================
   ABOUT / STATS SECTION
   ============================================ */
.about {
  padding: 120px 0;
  background: var(--c-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-card .logo-watermark {
  width: 160px;
}

.about-float-stat {
  position: absolute;
  bottom: -28px;
  right: -28px;
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 24px 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.about-float-stat .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
}

.about-float-stat .label {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.about-content .section-tag,
.about-content .section-title {
  text-align: left;
}

.about-text {
  font-size: 1rem;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px 0;
}

.stat-item .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================
   WHY US — FEATURES
   ============================================ */
.features {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--c-accent);
  color: var(--c-white);
}

.features-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.features-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-video-bg .video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(13, 59, 80, 0.85) 0%, 
    rgba(10, 46, 62, 0.95) 100%);
  z-index: 1;
}

.features .container {
  position: relative;
  z-index: 2;
}

.features .section-tag {
  color: var(--c-accent-glow);
}

.features .section-title {
  color: var(--c-white);
}

.features .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s var(--ease);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(92, 184, 217, 0.3);
  transform: translateY(-6px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 18px;
  display: block;
}

.feature-icon svg {
  stroke: var(--c-accent-glow);
  margin: 0 auto;
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================
   3D SCROLL REVEAL SYSTEM
   ============================================ */
.reveal-3d {
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}

.reveal-3d[data-direction="left"] {
  transform: perspective(800px) rotateY(8deg) translateX(-80px);
}

.reveal-3d[data-direction="right"] {
  transform: perspective(800px) rotateY(-8deg) translateX(80px);
}

.reveal-3d[data-direction="up"] {
  transform: perspective(800px) rotateX(-8deg) translateY(60px);
}

.reveal-3d.visible {
  opacity: 0.9;
  transform: perspective(800px) rotateY(0) rotateX(0) translateX(0) translateY(0);
}

/* ============================================
   WHAT WE DO SECTIONS
   ============================================ */
.wwd-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.wwd-section--1 {
  background: var(--c-white);
}

.wwd-section--2 {
  background: var(--c-surface);
}

.wwd-section--3 {
  background: var(--c-white);
}

.wwd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.wwd-grid--reverse {
  direction: rtl;
}

.wwd-grid--reverse>* {
  direction: ltr;
}

/* 3D Visual Card */
.wwd-card-3d {
  perspective: 600px;
}

.wwd-card-face {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 64px rgba(13, 59, 80, 0.25);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  overflow: hidden;
}

.wwd-card-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(62, 220, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.wwd-card-face:hover {
  transform: rotateY(-5deg) rotateX(5deg) scale(1.02);
  box-shadow: 0 32px 80px rgba(13, 59, 80, 0.35);
}

.wwd-icon-large {
  position: relative;
  z-index: 1;
}

.wwd-icon-large svg {
  stroke: var(--c-accent-glow);
  filter: drop-shadow(0 0 20px rgba(62, 220, 255, 0.3));
}

.wwd-card-number {
  position: absolute;
  bottom: 20px;
  right: 28px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
}

/* Video Card Variant */
.wwd-card-face--video {
  background: #000;
  padding: 0;
}

.wwd-card-face--video::before {
  display: none;
}

.wwd-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  z-index: 0;
}

.wwd-video-overlay {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(180deg,
      transparent 40%,
      rgba(13, 59, 80, 0.35) 100%);
  z-index: 1;
  pointer-events: none;
}

.wwd-card-face--video .wwd-card-number {
  z-index: 2;
  color: rgba(255, 255, 255, 0.12);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Content Side */
.wwd-content .section-tag {
  text-align: left;
}

.wwd-content .section-title {
  text-align: left;
}

.wwd-text {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  font-weight: 400;
}

.wwd-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wwd-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text);
}

.wwd-feat svg {
  stroke: var(--c-primary);
  flex-shrink: 0;
}

/* ============================================
   INFO METRICS BAR
   ============================================ */
.info-bar {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--c-accent) 0%, #0a2e3e 100%);
  position: relative;
  overflow: hidden;
}

.info-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(62, 220, 255, 0.04);
  pointer-events: none;
}

.info-bar-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.info-bar-item {
  flex: 1;
  text-align: center;
  padding: 20px 32px;
}

.info-bar-num {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--c-accent-glow);
  line-height: 1;
  margin-bottom: 8px;
}

.info-bar-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.info-bar-divider {
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
  padding: 100px 0;
  background: var(--c-surface-alt);
  position: relative;
}

.partners-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.partners-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: 20px 0;
}

.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-left 35s linear infinite;
}

.partners-carousel:hover .partners-track {
  animation-play-state: paused;
}

.partner-logo {
  flex-shrink: 0;
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  border-radius: 16px;
  padding: 20px;
  margin: 0 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.4s var(--ease);
  filter: grayscale(100%) opacity(0.6);
  cursor: pointer;
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  filter: grayscale(0%) opacity(1);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

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

@media (max-width: 768px) {
  .partner-logo {
    width: 160px;
    height: 80px;
    margin: 0 15px;
    padding: 15px;
  }
}

/* ============================================
   CONTACT FORM SECTION
   ============================================ */
.contact-section {
  padding: 120px 0;
  background-color: var(--c-surface);
  background-image: url('../images/irya-banner-v2.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: flex-start;
}

.contact-info .section-tag {
  color: var(--c-accent-glow);
  text-align: left;
}

.contact-info .section-title {
  color: var(--c-white);
  text-align: left;
}

.contact-info-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: 40px;
  font-weight: 400;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-detail-icon svg {
  stroke: var(--c-accent-glow);
}

.contact-detail-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 2px;
}

.contact-detail-item span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

/* Form Card */
.contact-form-wrap {
  background: var(--c-white);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--c-border);
  background: transparent;
  padding: 16px 0 8px;
  font-family: var(--ff);
  font-size: 0.95rem;
  color: var(--c-text);
  outline: none;
  transition: border-color 0.3s var(--ease);
  resize: none;
}

.form-group textarea {
  min-height: 100px;
}

.form-group label {
  position: absolute;
  top: 16px;
  left: 0;
  font-size: 0.95rem;
  color: var(--c-text-muted);
  font-weight: 400;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  transform-origin: left;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label,
.form-group input:valid~label,
.form-group textarea:valid~label {
  top: -4px;
  font-size: 0.72rem;
  color: var(--c-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-primary);
  transition: width 0.4s var(--ease);
}

.form-group input:focus~.form-line,
.form-group textarea:focus~.form-line {
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: transparent;
}

/* Validation states */
.form-group.error input,
.form-group.error textarea {
  border-color: #e74c3c;
}

.form-group.error .form-line {
  background: #e74c3c;
  width: 100%;
}

.form-group.success input,
.form-group.success textarea {
  border-color: #2ecc71;
}

.form-group.success .form-line {
  background: #2ecc71;
  width: 100%;
}

.btn-submit {
  align-self: flex-start;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-submit:hover::after {
  transform: translateX(100%);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 100px 0;
  background: var(--c-surface);
  text-align: center;
}

.cta-inner {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  border-radius: 24px;
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.cta-inner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-inner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
  font-weight: 300;
}

.cta-inner .btn {
  position: relative;
  z-index: 1;
  background: var(--c-white);
  color: var(--c-primary);
}

.cta-inner .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--c-accent);
  color: var(--c-white);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  font-weight: 300;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 0;
  transition: color 0.3s;
  font-weight: 400;
}

.footer-col a:hover {
  color: var(--c-accent-glow);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--c-primary-light);
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .wwd-grid,
  .wwd-grid--reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .wwd-grid--reverse {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 59, 80, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a {
    font-size: 1.2rem;
    color: var(--c-white) !important;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-float-stat {
    right: 16px;
    bottom: -20px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    padding: 140px 0 100px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .cta-inner {
    padding: 48px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .wwd-section {
    padding: 80px 0;
  }

  .wwd-card-face {
    aspect-ratio: 4/3;
  }

  .info-bar-grid {
    flex-direction: column;
    gap: 8px;
  }

  .info-bar-divider {
    width: 60px;
    height: 1px;
  }

  .info-bar-item {
    padding: 16px;
  }

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

  .contact-form-wrap {
    padding: 32px 24px;
  }

  .contact-section {
    padding: 80px 0;
  }

  .reveal-3d[data-direction="left"] {
    transform: translateY(40px);
  }

  .reveal-3d[data-direction="right"] {
    transform: translateY(40px);
  }

  .reveal-3d.visible {
    transform: translateY(0);
  }
}