/* -------------------------------------------------------------
   CADETE WEB STUDIO - V1 Stylesheet
   Design system inspired by Apple / Vercel premium dark aesthetic
   ------------------------------------------------------------- */

/* VARIABLES & CUSTOM PROPERTIES */
:root {
  /* Default dark theme values */
  --bg-deep: #050811;
  --bg-main: #0B111E;
  --bg-card: #12192A;
  --bg-card-hover: #172239;
  --bg-header: rgba(11, 17, 30, 0.8);
  
  --accent-blue: #00A8FF;
  --accent-cyan: #00E5FF;
  --accent-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  --accent-glow: rgba(0, 229, 255, 0.25);
  --accent-text: var(--accent-cyan);
  
  --text-title: #FFFFFF;
  --text-body: #94A3B8;
  --text-muted: #64748B;
  --text-code-glow: #38BDF8;
  
  --border-thin: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(0, 229, 255, 0.25);
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  
  --transition-base: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease-out;
  
  --shadow-glow: 0 10px 30px -10px rgba(0, 168, 255, 0.2);
  --shadow-glow-cyan: 0 0 25px rgba(0, 229, 255, 0.15);
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 18px;
  
  --max-width: 1200px;
  
  /* Theme dependent items */
  --btn-primary-text: var(--bg-deep);
  --testimonial-bg: rgba(255, 255, 255, 0.02);
  --input-bg: rgba(255, 255, 255, 0.02);
}

/* Light Theme overrides (Cream / Matte white design system) */
:root.light-theme {
  --bg-deep: #F5F5F0;        /* Elegant premium cream matte background */
  --bg-main: #FAF9F6;        /* Alabaster white section background */
  --bg-card: #FFFFFF;        /* Solid white cards */
  --bg-card-hover: #EFEFE9;  /* Slightly darker cream on card hover */
  --bg-header: rgba(245, 245, 240, 0.85);
  
  --accent-blue: #2563EB;    /* Strong royal blue for readability */
  --accent-cyan: #0284C7;    /* Strong sky blue */
  --accent-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  --accent-glow: rgba(37, 99, 235, 0.1);
  --accent-text: var(--accent-blue);
  
  --text-title: #0F172A;     /* Deep slate black */
  --text-body: #334155;      /* Dark slate gray */
  --text-muted: #64748B;     /* Cool slate gray */
  --text-code-glow: #0284C7;
  
  --border-thin: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(37, 99, 235, 0.25);
  
  --shadow-glow: 0 10px 30px -10px rgba(37, 99, 235, 0.1);
  --shadow-glow-cyan: 0 0 25px rgba(37, 99, 235, 0.08);
  --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
  
  --btn-primary-text: #FFFFFF;
  --testimonial-bg: rgba(15, 23, 42, 0.025);
  --input-bg: rgba(15, 23, 42, 0.03);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul {
  list-style: none;
}

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

.font-mono {
  font-family: var(--font-mono);
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.grid {
  display: grid;
  gap: 24px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--btn-primary-text);
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-title);
  border: 1px solid var(--border-thin);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}

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

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.05);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-full {
  width: 100%;
}

/* HEADER & LOGO */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: var(--transition-base);
}

.site-header.scrolled {
  background-color: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-thin);
  height: 70px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 26px;
  transition: var(--transition-base);
}

.logo-link:hover .logo-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-subtext {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--accent-text);
  font-weight: 500;
  letter-spacing: 2px;
}

/* NAVIGATION */
.nav-menu {
  display: none; /* Hide on mobile initially */
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gradient);
  transition: var(--transition-base);
}

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

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

.nav-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* MOBILE TOGGLE BUTTON */
.mobile-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1001;
  margin-left: 8px;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-title);
  border-radius: 2px;
  transition: var(--transition-base);
  transform-origin: left center;
}

/* MOBILE MENU ACTIVE STATES */
.mobile-menu-active .nav-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--bg-deep);
  padding: 100px 30px 40px;
  z-index: 999;
  animation: fadeIn 0.25s ease-out forwards;
}

.mobile-menu-active .nav-list {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 40px;
}

.mobile-menu-active .nav-link {
  font-size: 1.5rem;
}

.mobile-menu-active .mobile-toggle .hamburger-bar:nth-child(1) {
  transform: rotate(45deg);
}

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

.mobile-menu-active .mobile-toggle .hamburger-bar:nth-child(3) {
  transform: rotate(-45deg);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO SECTION */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 70px;
  overflow: hidden;
  background-color: var(--bg-deep);
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.08) 0%, rgba(0, 229, 255, 0.03) 50%, transparent 100%);
  pointer-events: none;
  filter: blur(80px);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tech-badge-container {
  margin-bottom: 24px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-thin);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-title);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

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

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 700px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 50px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  border-top: 1px solid var(--border-thin);
  padding-top: 40px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-title);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* SECTION GLOBAL STYLES */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-label {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.25;
  margin-bottom: 16px;
}

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

/* SOLUTIONS SECTION */
.solutions-section {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-thin);
}

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

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-thin);
  border-radius: var(--border-radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 168, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-base);
}

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

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

.card-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  display: inline-block;
  background: rgba(0, 229, 255, 0.08);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 229, 255, 0.15);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 12px;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 24px;
}

.card-features {
  border-top: 1px solid var(--border-thin);
  padding-top: 20px;
  margin-bottom: 24px;
}

.card-features li {
  font-size: 0.85rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.card-features li::before {
  content: '→';
  color: var(--accent-cyan);
  font-weight: bold;
}

.card-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* PORTFOLIO SECTION & REDESIGNED BEFORE/AFTER */
.portfolio-section {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-thin);
}

.portfolio-intro {
  margin-bottom: 40px;
  max-width: 800px;
}

.project-tag {
  color: var(--accent-text);
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.project-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 16px;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 28px;
  line-height: 1.7;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 50px;
}

.mockup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-thin);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-base);
}

.mockup-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.mockup-header {
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-thin);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.light-theme .mockup-header {
  background: rgba(0, 0, 0, 0.03);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.mockup-dots .dot.red { background: #EF4444; }
.mockup-dots .dot.yellow { background: #F59E0B; }
.mockup-dots .dot.green { background: #10B981; }

.mockup-url {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.comparison-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.red-badge {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.green-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.mockup-content {
  position: relative;
  height: 220px; /* Fixed height for scrolling taller child images */
  overflow: hidden;
  background: #020408;
}

.mockup-img {
  width: 100%;
  height: auto; /* Allow image to preserve its height and overflow */
  display: block;
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.new-version .mockup-img {
  transition: transform 12s cubic-bezier(0.25, 1, 0.5, 1); /* Slower pan for the longer new page */
}

.mockup-card:hover .mockup-img {
  transform: translateY(calc(-100% + 220px)); /* Pan to bottom on mobile */
}

@media (min-width: 576px) {
  .mockup-content {
    height: 280px;
  }
  .mockup-card:hover .mockup-img {
    transform: translateY(calc(-100% + 280px)); /* Pan to bottom on tablet */
  }
}

@media (min-width: 992px) {
  .mockup-content {
    height: 350px;
  }
  .mockup-card:hover .mockup-img {
    transform: translateY(calc(-100% + 350px)); /* Pan to bottom on desktop */
  }
}

.mockup-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  padding: 20px 18px 12px;
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

.overlay-metric {
  font-size: 0.75rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.old-version .overlay-metric {
  border-color: rgba(239, 68, 68, 0.3);
}

.new-version .overlay-metric {
  border-color: rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.mockup-details {
  padding: 24px;
}

.mockup-details-title {
  font-size: 1.15rem;
  color: var(--text-title);
  margin-bottom: 10px;
  font-weight: 600;
}

.mockup-details-text {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
}

.portfolio-outro {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 50px;
}

.outro-metrics-box {
  flex: 1;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-thin);
  padding-bottom: 24px;
}

.pm-item {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
}

.pm-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-title);
}

#val-speed { color: var(--accent-text); }
#val-security { color: #10B981; } /* Emerald */
#val-lighthouse { color: #10B981; }

.pm-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.project-testimonial {
  background: var(--testimonial-bg);
  border-left: 2px solid var(--accent-blue);
  padding: 20px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.project-testimonial blockquote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 8px;
}

.project-testimonial cite {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* CASE STUDY VISUAL - THE DASHBOARD */
.case-study-visual {
  background: #060913;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.visual-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.circle-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.circle-btn.red { background-color: #EF4444; }
.circle-btn.yellow { background-color: #F59E0B; }
.circle-btn.green { background-color: #10B981; }

.visual-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 8px;
}

.visual-body {
  padding: 24px;
}

.lighthouse-scores {
  display: flex;
  justify-content: space-around;
  margin-bottom: 28px;
  gap: 12px;
}

.score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.radial-progress {
  width: 64px;
  height: 64px;
}

.radial-progress .circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 3.5;
}

.radial-progress .circle-fg {
  fill: none;
  stroke: #10B981;
  stroke-width: 3.5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: progressLoad 1s ease-out forwards;
}

.score-number {
  position: absolute;
  top: 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #10B981;
}

.score-name {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-body);
}

@keyframes progressLoad {
  from { stroke-dasharray: 0 100; }
}

/* TERMINAL SCREEN */
.mock-terminal {
  background-color: #020408;
  border-radius: var(--border-radius-sm);
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.term-line {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.5;
}

.term-prompt {
  color: var(--accent-cyan);
}

.term-line.success {
  color: #10B981;
}

.term-line.highlight {
  color: #F59E0B;
}

/* CONTACT SECTION */
.contact-section {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-thin);
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border-thin);
  padding-top: 32px;
}

.cd-item {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
}

.cd-label {
  color: var(--text-muted);
  width: 100px;
}

.cd-link:hover {
  color: var(--accent-cyan);
}

/* CONTACT FORM BOX */
.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-thin);
  border-radius: var(--border-radius-lg);
  padding: 30px 24px;
}

.contact-form {
  position: relative;
}

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

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

.form-label {
  font-size: 0.8rem;
  color: var(--text-title);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input, .form-textarea {
  background-color: var(--input-bg);
  border: 1px solid var(--border-thin);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  color: var(--text-title);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-base);
  width: 100%;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background-color: rgba(0, 229, 255, 0.02);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.05);
}

.form-error {
  font-size: 0.75rem;
  color: #EF4444;
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-input, 
.form-group.has-error .form-textarea {
  border-color: #EF4444;
}

.form-group.has-error .form-error {
  display: block;
}

/* LOADING SPINNER */
.loading-spinner {
  width: 20px;
  height: 20px;
  animation: rotateSpinner 2s linear infinite;
}

.loading-spinner .path {
  stroke: var(--bg-deep);
  stroke-linecap: round;
  animation: dashSpinner 1.5s ease-in-out infinite;
}

.hidden {
  display: none !important;
}

@keyframes rotateSpinner {
  100% { transform: rotate(360deg); }
}

@keyframes dashSpinner {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* SUCCESS BOX */
.form-success-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 24px;
  text-align: center;
  animation: fadeIn 0.4s ease-out forwards;
  margin-top: 20px;
}

.success-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.success-title {
  font-size: 1.15rem;
  color: var(--text-title);
  margin-bottom: 8px;
  font-weight: 600;
}

.success-text {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* FOOTER SECTION */
.site-footer {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-thin);
  padding: 60px 0 40px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 12px;
  display: block;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-thin);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-mentions {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-mentions p {
  margin-bottom: 6px;
}

.legal-mentions strong {
  color: var(--text-body);
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Header Actions & Theme Toggle Button */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-thin);
  transition: var(--transition-base);
  padding: 0;
}

.theme-toggle-btn:hover {
  color: var(--text-title);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.light-theme .theme-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.03);
}

/* Toggle Sun/Moon display */
.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

.light-theme .sun-icon {
  display: block;
}

.light-theme .moon-icon {
  display: none;
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN RULES (TABLETS & DESKTOP - MOBILE FIRST)
   ------------------------------------------------------------- */

/* SMALL TABLETS (576px +) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-actions {
    flex-direction: row;
    max-width: 100%;
    justify-content: center;
  }
  
  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .section-title {
    font-size: 2.25rem;
  }
}

/* TABLETS & SMALL DESKTOPS (768px +) */
@media (min-width: 768px) {
  section {
    padding: 100px 0;
  }
  
  .nav-menu {
    display: block; /* Show desktop nav */
  }
  
  .mobile-toggle {
    display: none; /* Hide menu toggler */
  }
  
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Make Card 3 span full-width on tablet for grid balance */
  .solutions-grid .card:nth-child(3) {
    grid-column: span 2;
  }
  
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .project-title {
    font-size: 1.85rem;
  }
  
  .contact-container {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .contact-header {
    flex: 1;
    position: sticky;
    top: 120px;
  }
  
  .contact-form-box {
    flex: 1.2;
    padding: 40px;
  }
  
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-group.full-width {
    grid-column: span 2;
  }
  
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* DESKTOPS (1024px +) */
@media (min-width: 1024px) {
  .hero-section {
    padding-top: 180px;
    padding-bottom: 120px;
  }
  
  .hero-title {
    font-size: 3.85rem;
    letter-spacing: -1px;
    line-height: 1.15;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 45px;
  }
  
  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .solutions-grid .card:nth-child(3) {
    grid-column: span 1;
  }
  
  .portfolio-outro {
    margin-top: 50px;
  }
  
  .outro-metrics-box {
    width: 100%;
  }
  
  .footer-container {
    gap: 60px;
  }
}

/* Checkbox / RGPD styling */
.form-checkbox-group {
  margin-top: 10px;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-body);
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--accent-cyan);
}

.checkbox-text {
  line-height: 1.4;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 17, 0.75);
  backdrop-filter: blur(8px);
}

.light-theme .modal-backdrop {
  background: rgba(15, 23, 42, 0.4);
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: var(--bg-card);
  border: 1px solid var(--border-thin);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  z-index: 2001;
}

.modal.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-thin);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-title);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-base);
}

.modal-close-btn:hover {
  color: var(--text-title);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

.modal-body h4 {
  color: var(--text-title);
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.modal-body h4:first-of-type {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-body ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-body li {
  margin-bottom: 4px;
}
