/* ===== Global Styles ===== */
/* Hanoukia: header-centered integration (responsive incl. mobile) */
.nav-container { position: relative; display: flex; align-items: center; }

.hanoukia-wrapper {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: clamp(96px, 18vw, 160px) !important;
  margin: 0 auto !important;
  pointer-events: none;
  z-index: 1000;
}
.hanoukia-glow {
  position: absolute;
  inset: -8px -8px -8px -8px;
  width: auto !important;
  height: auto !important;
}
@media (max-width: 768px) {
  .hanoukia-wrapper { width: clamp(96px, 28vw, 160px) !important; display: block !important; }
  .invitation-card.chabbat-card::before { background-size: 100% 100% !important; }
}

/* === Hanoukia scroll (mobile-first) — alt, not used */
.hanoukia-wrapper-alt {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  width: min(58vw, 180px);
  pointer-events: none;
  z-index: 999;
}

/* Hanoukia overrides: alt, not used */
.hanoukia-wrapper-alt {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: clamp(40px, 4vw, 55px) !important;
  margin: 0 auto;
}

.hanoukia-glow { background: radial-gradient(circle, rgba(214, 40, 40, 0.22), rgba(214, 40, 40, 0) 70%) !important; }

@media (max-width: 768px) {
  .hanoukia-wrapper { 
    display: block !important;
  }
}
.hanoukia-glow { filter: blur(5px); pointer-events: none; z-index: 0; }

/* === Menora (Header) built from off/on SVGs === */
.menora-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
}

.hanoukia-container {
  display: flex;
  align-items: flex-end;
  gap: 0px;
  height: 100%;
  justify-content: center;
}

.hanoukia-flame {
  height: 35px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
  margin-left: -10px;
}

.hanoukia-flame:first-child {
  margin-left: 0;
}

.hanoukia-flame.shamash {
  height: 42px;
  transform: translateY(-5px);
}
.menora-wrapper::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: 1;
  background: radial-gradient(ellipse at var(--shine-x) 12%, rgba(255,255,255,var(--shine-opacity)), rgba(255,255,255,0) 42%);
}
.menora-wrapper.mode-3d::after, .menora-wrapper.mode-3d-intent::after { display: none !important; }
.menora-glow { position: absolute; inset: -8px; background: radial-gradient(circle, rgba(214,40,40,.22), rgba(214,40,40,0) 70%); filter: blur(5px); z-index: 0; }
.menora-stack { position: relative; width: 100%; aspect-ratio: 1 / 1; z-index: 1; }
.menora-base, .menora-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; pointer-events: none; }
.menora-base { z-index: 1; opacity: 1; }
.menora-layer { z-index: 2; opacity: 0; transform: scale(0.98); transition: opacity .28s ease, transform .28s ease; }
.menora-layer.lit { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 8px rgba(214,40,40,.65)); animation: hanou-flicker 2.2s ease-in-out var(--flicker-delay,0s) infinite alternate; }

/* Use WebKit-friendly masks to slice the ON image into 9 vertical bands */
.menora-layer {
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0,
    transparent var(--left,0%),
    #000 var(--left,0%),
    #000 var(--right,100%),
    transparent var(--right,100%),
    transparent 100%
  );
  mask-image: linear-gradient(90deg,
    transparent 0,
    transparent var(--left,0%),
    #000 var(--left,0%),
    #000 var(--right,100%),
    transparent var(--right,100%),
    transparent 100%
  );
}

/* Segment boundaries (approx equal bands, shamash centered) */
.menora-1 { --left: 2%;  --right: 11%; }
.menora-2 { --left: 11%; --right: 22%; }
.menora-3 { --left: 22%; --right: 33%; }
.menora-4 { --left: 33%; --right: 42%; }
.menora-shamash { --left: 45%; --right: 55%; }
.menora-6 { --left: 58%; --right: 67%; }
.menora-7 { --left: 67%; --right: 78%; }
.menora-8 { --left: 78%; --right: 89%; }
.menora-9 { --left: 89%; --right: 98%; }

@media (max-width: 768px) {
  .hanoukia-container {
    gap: 3px;
  }
  
  .hanoukia-flame {
    width: 22px;
    height: 22px;
  }
}

/* Bouton Waze */
.waze-btn {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
}

.waze-btn:hover {
  transform: translateY(-50%) scale(1.1);
}

.waze-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .waze-btn {
    right: 1rem;
  }
  .waze-btn img {
    width: 28px;
    height: 28px;
  }
}

/* Menora row: 9 repeated candles (off below, on above) */
.menora-row { position: relative; --bar-h: clamp(6px, 1.6vw, 12px); display: grid; grid-template-columns: repeat(9, 1fr); align-items: end; gap: clamp(0px, 0.8vw, 6px); width: 100%; transform-style: preserve-3d; will-change: transform; z-index: 1; }
.menora-row::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--bar-h); background: linear-gradient(180deg, #d4af37 0%, #c9a961 60%, #b8924a 100%); border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.15), 0 0 24px rgba(201,169,97,.35); z-index: 0; }
.menora-candle { position: relative; width: 100%; pointer-events: none; }
.menora-candle.shamash { transform: translateY(-6%); }
.menora-candle { filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.menora-candle::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: 6%; width: 28%; height: 62%; border-radius: 999px; background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.22), rgba(255,255,255,0) 65%); opacity: .08; pointer-events: none; z-index: 3; mix-blend-mode: screen; transition: opacity .35s ease, transform .35s ease; }
.menora-candle.lit-candle::after { opacity: .14; }
.menora-candle.shine::after { opacity: .28; transform: translateX(-50%) scaleX(1.15); }
.menora-candle::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: var(--bar-h); width: clamp(3px, 0.6vw, 6px); height: clamp(14px, 4vw, 36px); background: linear-gradient(180deg, #d4af37 0%, #c9a961 60%, #b8924a 100%); border-radius: 3px; box-shadow: 0 1px 6px rgba(0,0,0,.12); z-index: 0; }
.menora-candle.shamash::before { height: clamp(20px, 5.8vw, 48px); }
.menora-candle img { display: block; width: 100%; height: auto; object-fit: contain; }
.menora-off { position: relative; z-index: 1; opacity: 1; }
.menora-on { position: absolute; inset: 0; z-index: 2; opacity: 0; transform: scale(0.98); transition: opacity .28s ease, transform .28s ease; }
.menora-on.lit { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 8px rgba(214,40,40,.65)); animation: hanou-flicker 2.2s ease-in-out var(--flicker-delay,0s) infinite alternate; }

.menora-on.flare { animation: hanou-flicker 2.2s ease-in-out var(--flicker-delay,0s) infinite alternate, menora-flare .5s ease-out; filter: drop-shadow(0 0 14px rgba(255,180,72,.9)) saturate(1.2) brightness(1.08); }
@keyframes menora-flare {
  0% { transform: scale(0.96); filter: drop-shadow(0 0 6px rgba(214,40,40,.5)) brightness(1); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 18px rgba(255,180,72,.95)) brightness(1.18); }
  100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(214,40,40,.65)) brightness(1); }
}

/* Realistic flames overlay (mobile-first) */
.menora-candle .menora-flame { position: absolute; left: 50%; bottom: 58%; width: clamp(10px, 2.8vw, 16px); height: clamp(16px, 5vw, 30px); transform: translate(-50%, 0); transform-origin: 50% 100%; pointer-events: none; z-index: 4; mix-blend-mode: screen; opacity: 0; transition: opacity .18s ease-out, transform .18s ease-out; }
.menora-candle.shamash .menora-flame { bottom: 66%; }
.menora-candle .menora-flame.lit { opacity: 1; }
.menora-candle .menora-flame .core, .menora-candle .menora-flame .halo, .menora-candle .menora-flame .glow { position: absolute; inset: 0; border-radius: 50% 50% 42% 42% / 62% 62% 38% 38%; pointer-events: none; }
.menora-candle .menora-flame .core { background: radial-gradient(ellipse at 50% 58%, rgba(255,255,255,0.98) 0%, rgba(255,249,160,0.95) 40%, rgba(255,179,64,0.0) 70%); transform: scale(0.96) translateY(2%); animation: flame-core 1.8s ease-in-out var(--flicker-delay, 0s) infinite; filter: blur(.2px); }
.menora-candle .menora-flame .halo { background: radial-gradient(ellipse at 50% 60%, rgba(255,208,112,0.85) 0%, rgba(255,153,51,0.55) 38%, rgba(255,102,0,0.0) 76%); transform: scale(1.05) translateY(-2%); filter: blur(1.2px); animation: flame-halo 2.2s ease-in-out calc(var(--flicker-delay, 0s) + .1s) infinite; }
.menora-candle .menora-flame .glow { background: radial-gradient(circle, rgba(255,210,90,0.45), rgba(255,210,90,0) 60%); transform: scale(1.35) translateY(-8%); filter: blur(4px); opacity: .85; animation: flame-glow 2.6s ease-in-out calc(var(--flicker-delay, 0s) + .2s) infinite; border-radius: 50%; }

@keyframes flame-core { 0%, 100% { transform: scale(0.95) translateY(2%); } 50% { transform: scale(1.03) translateY(-6%); } }
@keyframes flame-halo { 0%, 100% { transform: scale(1.03) translateY(-2%); opacity: .9; } 50% { transform: scale(1.12) translateY(-8%); opacity: 1; } }
@keyframes flame-glow { 0%, 100% { transform: scale(1.3) translateY(-6%); opacity: .75; } 50% { transform: scale(1.45) translateY(-10%); opacity: .95; } }

/* Spark particles when a candle lights */
.menora-flame .spark { position: absolute; bottom: 0; left: 50%; width: 3px; height: 3px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,1), rgba(255,255,255,0)); filter: drop-shadow(0 0 6px rgba(255,220,120,.9)); opacity: 0; pointer-events: none; }
.menora-flame .spark.s1 { animation: spark-fly-1 .9s ease-out forwards; }
.menora-flame .spark.s2 { animation: spark-fly-2 1.05s ease-out forwards; }
.menora-flame .spark.s3 { animation: spark-fly-3 .95s ease-out forwards; }
@keyframes spark-fly-1 { 0% { opacity: 0; transform: translate(-50%, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% - 6px), -26px) scale(.6); } }
@keyframes spark-fly-2 { 0% { opacity: 0; transform: translate(-50%, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + 4px), -22px) scale(.7); } }
@keyframes spark-fly-3 { 0% { opacity: 0; transform: translate(-50%, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% - 2px), -30px) scale(.55); } }

.menora-row.sweep::after { content: ""; position: absolute; bottom: 0; height: var(--bar-h); left: -30%; width: 40%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.9), rgba(255,255,255,0)); border-radius: 999px; filter: blur(2px); z-index: 3; animation: menora-bar-sweep .7s ease-out; }
@keyframes menora-bar-sweep { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translateX(300%); opacity: 0; } }

.menora-wrapper.glow-on .menora-glow { animation: menora-full-glow 1.4s ease-out; }
@keyframes menora-full-glow { 0% { opacity: 1; filter: blur(5px); } 40% { opacity: 1; filter: blur(6px); } 60% { opacity: 1; filter: blur(8px); } 100% { opacity: 1; filter: blur(5px); } }

.menora-3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 2; }
.menora-wrapper.mode-3d .menora-on, .menora-wrapper.mode-3d .menora-off { visibility: hidden; }
.menora-wrapper.mode-3d .menora-flame { display: none !important; }
.menora-wrapper.mode-3d .menora-row { visibility: hidden !important; display: none !important; }
.menora-wrapper.mode-3d .menora-row::before { display: none !important; }
.menora-wrapper.mode-3d .menora-row.sweep::after { display: none !important; }
.menora-wrapper.mode-3d .menora-candle::before { display: none !important; }
.menora-wrapper.mode-3d .menora-candle::after { display: none !important; }
.menora-wrapper.mode-3d .menora-glow { display: none !important; }

/* Hide 2D while 3D is initializing to avoid flash */
.menora-wrapper.mode-3d-intent .menora-on,
.menora-wrapper.mode-3d-intent .menora-off,
.menora-wrapper.mode-3d-intent .menora-flame { visibility: hidden !important; display: none !important; }
.menora-wrapper.mode-3d-intent .menora-row { visibility: hidden !important; }
.menora-wrapper.mode-3d-intent .menora-row::before,
.menora-wrapper.mode-3d-intent .menora-row.sweep::after,
.menora-wrapper.mode-3d-intent .menora-candle::before,
.menora-wrapper.mode-3d-intent .menora-candle::after { display: none !important; }
.menora-wrapper.mode-3d-intent .menora-glow { display: none !important; }

.hanoukia-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* square for full 8+1 visibility */
  z-index: 1;
}

/* CSS flames overlay (alternative to masked image layers) */
.hanoukia-flames { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hanoukia-flames .flame {
  position: absolute;
  top: auto !important;
  bottom: 58%;
  left: 50%;
  width: clamp(8px, 1.9vw, 14px);
  height: clamp(12px, 3.8vw, 24px);
  display: block;
  transform: translate(-50%, 0) scale(0.9);
  transform-origin: 50% 100%;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 55%, #fff 0%, #ffe17a 35%, #ff9d2f 68%, rgba(255,157,47,0) 90%);
  filter: drop-shadow(0 0 6px rgba(255,200,60,0.6));
  opacity: 0;
  animation: none !important;
  transition: opacity .3s ease-out, transform .3s ease-out, filter .3s ease-out;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hanoukia-flames .flame.lit {
  opacity: 1;
  transform: translate(-50%, -2px) scale(1);
  animation: hanou-flicker 2.2s ease-in-out var(--flicker-delay, 0s) infinite alternate;
  filter: drop-shadow(0 0 10px rgba(255,210,90,0.75));
}

/* Positions: approximate left offsets across the hanoukia; shamash a bit higher */
.hanoukia-flames .flame-1 { left: 7%; }
.hanoukia-flames .flame-2 { left: 18%; }
.hanoukia-flames .flame-3 { left: 29%; }
.hanoukia-flames .flame-4 { left: 40%; }
.hanoukia-flames .flame-shamash { left: 50%; bottom: 66%; width: clamp(7px, 1.9vw, 13px); height: clamp(12px, 3.6vw, 22px); }
.hanoukia-flames .flame-6 { left: 60%; }
.hanoukia-flames .flame-7 { left: 71%; }
.hanoukia-flames .flame-8 { left: 82%; }
.hanoukia-flames .flame-9 { left: 93%; }

.hanoukia-base { z-index: 1; }
.hanoukia-base,
.hanoukia-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  will-change: opacity, transform;
}

@media (max-width: 768px) {
  .hanoukia-base { opacity: 0.85; }
}

.hanoukia-layer {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0,
    transparent var(--left, 0%),
    #000 var(--left, 0%),
    #000 var(--right, 100%),
    transparent var(--right, 100%),
    transparent 100%
  );
  mask-image: linear-gradient(90deg,
    transparent 0,
    transparent var(--left, 0%),
    #000 var(--left, 0%),
    #000 var(--right, 100%),
    transparent var(--right, 100%),
    transparent 100%
  );
}

.hanoukia-layer.lit {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 8px rgba(214, 40, 40, 0.7));
  animation: hanou-flicker 2.3s ease-in-out var(--flicker-delay, 0s) infinite alternate;
}

@keyframes hanou-flicker {
  0% {
    filter: drop-shadow(0 0 6px rgba(214, 40, 40, 0.4));
    transform: translateY(0);
  }
  50% {
    filter: drop-shadow(0 0 11px rgba(214, 40, 40, 0.85));
    transform: translateY(-0.5px);
  }
  100% {
    filter: drop-shadow(0 0 7px rgba(214, 40, 40, 0.55));
    transform: translateY(0.25px);
  }
}

.hanoukia-layer.lit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(214, 40, 40, 0.6), rgba(214, 40, 40, 0) 50%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: hanou-ray 0.4s ease-out;
  pointer-events: none;
}

@keyframes hanou-ray {
  0% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

.candle-1 { --left: 1%; --right: 9%; }
.candle-2 { --left: 9%; --right: 18%; }
.candle-3 { --left: 18%; --right: 27%; }
.candle-4 { --left: 27%; --right: 36%; }
.candle-shamash { --left: 45%; --right: 55%; }
.candle-6 { --left: 64%; --right: 73%; }
.candle-7 { --left: 73%; --right: 82%; }
.candle-8 { --left: 82%; --right: 91%; }
.candle-9 { --left: 91%; --right: 99%; }

@media (max-width: 480px) {
  .hanoukia-wrapper-alt {
    top: 0.2rem;
    right: 0.35rem;
    width: 135px;
  }
  .hanoukia-glow {
    height: 135px;
  }
}
:root {
    /* Colors */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #93c5fd;
    --secondary: #6b7280;
    --dark: #1f2937;
    --darker: #111827;
    --light: #f9fafb;
    --lighter: #ffffff;
    --gray: #9ca3af;
    --light-gray: #e5e7eb;
    --dark-gray: #4b5563;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --section-padding: 6rem 0;
    --container-width: 1200px;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 2rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--lighter);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--darker);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

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

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section {
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-left: 1rem;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn i {
    margin-left: 0.5rem;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    z-index: -1;
    transition: var(--transition);
}

.btn:hover::before {
    opacity: 0.9;
    transform: scale(1.05);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: calc(0.75rem - 2px) 1.75rem;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--darker);
    text-decoration: none;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

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

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

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

.nav-link.btn {
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.nav-link.btn::after {
    display: none;
}

.nav-link.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    z-index: 0;
    border-bottom-left-radius: 100px;
}

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

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--darker);
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(59, 130, 246, 0.2);
    z-index: -1;
    border-radius: 5px;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-xl);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.profile-image:hover {
    transform: translateY(-10px);
}

.floating-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(45deg, var(--primary-light), var(--primary));
    opacity: 0.2;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: -30px;
    animation-delay: 1s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: -30px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--dark);
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

.scroll-down i {
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

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

/* About Section */
.about {
    background-color: var(--lighter);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e5e7eb' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--darker);
    line-height: 1.3;
}

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

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

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0;
    font-weight: 500;
}

.about-skills {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    height: fit-content;
}

.about-skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--darker);
    text-align: center;
}

.skills-container {
    margin-top: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-info span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 5px;
    position: relative;
    transition: width 1.5s ease-in-out;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) skewX(-20deg);
    }
    100% {
        transform: translateX(100%) skewX(-20deg);
    }
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.skill-tags span {
    background-color: #f0f7ff;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid #dbeafe;
    transition: var(--transition);
}

.skill-tags span:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23dbeafe' fill-opacity='0.3' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

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

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: var(--transition);
    z-index: -1;
}

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

.service-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--darker);
    transition: var(--transition);
}

.service-card p {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    transition: var(--transition);
}

.service-card:hover h3,
.service-card:hover p {
    color: var(--darker);
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.service-link i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: var(--transition);
}

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

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

/* Projects Section */
.projects {
    background-color: var(--lighter);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e5e7eb' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

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

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
    opacity: 0;
}

.project-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.2s;
    opacity: 0;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.3s;
    opacity: 0;
}

.project-card:hover .project-info h3,
.project-card:hover .project-info p,
.project-card:hover .project-links {
    transform: translateY(0);
    opacity: 1;
}

.project-link,
.project-zoom {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.project-link:hover,
.project-zoom:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Testimonials Section */
.testimonials {
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23dbeafe' fill-opacity='0.3' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.quote-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    right: 2rem;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-content p::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    padding: 2px;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--darker);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0;
}

.testimonial-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.testimonial-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: -1;
}

.testimonial-cta p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: white;
}

.testimonial-cta .btn {
    background-color: white;
    color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.testimonial-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Contact Section */
.contact {
    background-color: var(--lighter);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e5e7eb' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    padding-right: 2rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--darker);
}

.contact-info p {
    color: var(--secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--darker);
}

.contact-text a,
.contact-text p {
    color: var(--secondary);
    margin: 0;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--primary);
}

.contact-form {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    pointer-events: none;
    background-color: white;
    padding: 0 0.5rem;
    transform-origin: left center;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-1.75rem) scale(0.9);
    color: var(--primary);
    font-weight: 500;
}

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

/* Footer */
.footer {
    background-color: var(--darker);
    color: #e5e7eb;
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233b82f6' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.footer-about {
    max-width: 300px;
}

.footer-about .logo {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-about p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h3,
.footer-services h3,
.footer-newsletter h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

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

.footer-links ul li a,
.footer-services ul li a {
    color: #9ca3af;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-newsletter p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: white;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.newsletter-form input::placeholder {
    color: #6b7280;
}

.newsletter-form .btn {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-legal a {
    color: #9ca3af;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.35rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero::before {
        width: 100%;
        height: 60%;
        top: auto;
        bottom: 0;
        border-top-left-radius: 100px;
        border-bottom-left-radius: 0;
    }
    
    .image-wrapper {
        max-width: 400px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-stats {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        padding-right: 0;
        text-align: center;
    }
    
    .contact-details {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        max-width: 800px;
        margin: 0 auto 3rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 0;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 7rem 0 5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-about {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-newsletter {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .newsletter-form {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.25rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links,
    .footer-services {
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-services h3::after,
    .footer-newsletter h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

.delay-5 {
    transition-delay: 0.5s;
}

/* Typewriter Effect */
.typewriter {
    display: inline-block;
    position: relative;
    color: var(--primary);
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -5px;
    animation: blink 0.7s infinite;
}

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

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection Styles */
::selection {
    background-color: var(--primary);
    color: white;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: none;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    
    img {
        max-width: 100% !important;
    }
    
    @page {
        margin: 2cm;
    }
}

/* Wedding Theme Additions */
.hero-wedding,
.carte-hero {
    position: relative;
    min-height: 100vh;
    padding: 7rem 1.25rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #f5f0e8;
    background-image: url("data:image/svg+xml,%3Csvg width='220' height='220' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='damask' x='0' y='0' width='220' height='220' patternUnits='userSpaceOnUse'%3E%3Cpath d='M110,18 Q120,38 110,58 Q100,38 110,18 M110,58 L98,78 L122,78 Z M70,110 Q84,98 110,98 Q136,98 150,110 Q136,122 110,122 Q84,122 70,110 M48,168 Q60,156 72,168 Q60,180 48,168 M168,168 Q156,156 148,168 Q160,180 168,168' fill='none' stroke='%23c9a961' stroke-width='1.4' opacity='0.35'/%3E%3Ccircle cx='110' cy='110' r='8' fill='%23c9a961' opacity='0.18'/%3E%3Cpath d='M110,138 Q100,150 110,162 Q120,150 110,138' fill='%23c9a961' opacity='0.12'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='220' height='220' fill='url(%23damask)'/%3E%3C/svg%3E");
    background-size: 300px 300px;
}

.hero-inner { width: 100%; max-width: 980px; display: flex; flex-direction: column; gap: 2rem; align-items: center; }

.countdown { display: flex; gap: 2.2rem; padding: 0.75rem 1.25rem; background: rgba(255,255,255,0.7); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); backdrop-filter: blur(6px); }
.countdown-item { display: flex; flex-direction: column; align-items: center; min-width: 70px; }
.countdown-number { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: #a0824b; line-height: 1; }
.countdown-label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #6d5d47; margin-top: 0.3rem; }

.photo-frame { position: relative; width: 100%; max-width: 760px; aspect-ratio: 16/10; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.25); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.initials-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 24px; color: #fff; text-shadow: 0 0 20px rgba(0,0,0,0.5), 0 0 40px rgba(0,0,0,0.25); pointer-events: none; }
.initials-overlay .i-j, .initials-overlay .i-s { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(4rem, 12vw, 8rem); line-height: 1; }
.initials-overlay .i-et { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.8rem, 8vw, 5rem); opacity: 0.9; }

.btn-primary { display: inline-block; padding: 0.95rem 2.5rem; border-radius: 999px; background: #a0824b; color: #fff; text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.95rem; border: 2px solid #a0824b; box-shadow: 0 12px 28px rgba(160,130,75,0.28); transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.btn-primary:hover { background: transparent; color: #a0824b; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(160,130,75,0.36); }

/* Carte page */
.carte-photo { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16/11; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.2); margin-bottom: 1.25rem; }
.carte-meta { display: flex; gap: .75rem; align-items: center; justify-content: center; color: #6d5d47; margin-bottom: 1.25rem; font-size: .95rem; }
.carte-meta .sep { opacity: .6; }

.tabs { display: flex; gap: .75rem; margin: 1.5rem 0 2rem; }
.tab-btn { padding: .75rem 1rem; border: 0; border-radius: 10px; color: #fff; background: #a0824b; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,0.16); transition: transform .2s ease, background .2s ease; }
.tab-btn:hover { transform: translateY(-2px); }
.tab-btn.active { background: #6d5d47; }

.tab-pane { display: none; width: 100%; max-width: 640px; animation: fadeIn .4s ease; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px);} to { opacity:1; transform: translateY(0);} }

/* Elegant card redesign */
.invitation-card {
  position: relative;
  padding: 3rem 2.25rem;
  border-radius: 24px;
  color: #3d2f22;
  text-align: center;
  overflow: hidden;
  /* floating shadow + halo glow */
  box-shadow:
    inset 0 0 0 2px rgba(201,169,97,0.75), /* gold liseré */
    0 26px 70px rgba(0,0,0,0.18), /* depth */
    0 14px 24px rgba(0,0,0,0.12),
    0 0 60px rgba(201,169,97,0.28), /* soft gold halo */
    0 0 120px rgba(255,240,210,0.22); /* warm ivory halo */
  transform: translateY(-6px);
  animation: floatCard 7s ease-in-out infinite alternate;
}
.invitation-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('image/image(17).png');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transform: scale(1.03);
  filter: saturate(1.05);
  z-index: 0;
}
.invitation-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.70) 60%, rgba(255,255,255,0.78) 100%);
  backdrop-filter: blur(0.5px);
  z-index: 1;
  display: none; /* Désactivé par défaut pour montrer le fond */
}
.invitation-card > * { position: relative; z-index: 2; }
.invitation-card.soft::after { background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.86) 60%, rgba(255,255,255,0.92) 100%); }

.invitation-card .section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  color: #6b553a;
  margin-bottom: 1.5rem;
}

.invitation-card .section-title::after,
.card-section .section-title::after {
  display: none !important;
  content: none !important;
}

.invitation-card .parents {
  color: #7b6a54;
  opacity: .95;
  font-size: 1rem;
  margin: .35rem 0 1.25rem;
}
.invitation-card .names {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: 4rem;
  display: flex; gap: .6rem; align-items: center; justify-content: center;
  margin: 1rem 0 1.25rem;
  color: #52422f;
}
.invitation-card .names .et { font-size: 2.6rem; opacity: .85; padding: 0 .3rem; }
.invitation-card .details { font-weight: 600; line-height: 1.8; color: #6b553a; }
.invitation-card .note { margin-top: 1.1rem; font-size: .95rem; opacity: .9; color: #7b6a54; }

/* decorative divider */
.invitation-card .divider { width: 120px; height: 1px; background: linear-gradient(90deg, rgba(107,85,58,0), rgba(107,85,58,.5), rgba(107,85,58,0)); margin: 1rem auto 1.2rem; }

/* Hover/lift refinement - desktop only */
@media (hover: hover) and (min-width: 769px) {
  .card-section > .invitation-card:hover {
    transform: translateY(-10px);
    box-shadow:
      inset 0 0 0 2px rgba(201,169,97,0.9),
      0 35px 90px rgba(0,0,0,0.25), 
      0 20px 35px rgba(0,0,0,0.16),
      0 0 55px rgba(201,169,97,0.75), 
      0 0 95px rgba(212,175,55,0.55),
      0 0 140px rgba(255,215,130,0.35);
  }
}

@keyframes floatCard {
  0% { transform: translateY(-6px); }
  100% { transform: translateY(-2px); }
}

/* RSVP */
.rsvp-form { display: grid; gap: 1rem; }
.rsvp-form .grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.rsvp-form label { display: grid; gap: .4rem; font-size: .95rem; }
.rsvp-form input[type="text"],
.rsvp-form input[type="number"],
.rsvp-form textarea { width: 100%; padding: .75rem .9rem; border: 2px solid #c9a961; border-radius: 10px; background: #fff; font: inherit; transition: box-shadow .2s ease, border-color .2s ease; }
.rsvp-form input:focus,
.rsvp-form textarea:focus { outline: none; border-color: #a0824b; box-shadow: 0 0 0 3px rgba(160,130,75,.15); }
.rsvp-form .check { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 8px; background: rgba(201,169,97,.08); }
.rsvp-form button.btn-primary { justify-self: center; margin-top: .5rem; }

@media (max-width: 768px) {
    .countdown { gap: 1rem; }
    .countdown-number { font-size: 1.8rem; }
    .countdown-item { min-width: 56px; }
    .initials-overlay .i-j, .initials-overlay .i-s { font-size: clamp(3rem, 14vw, 5.2rem); }
    .initials-overlay .i-et { font-size: clamp(2rem, 10vw, 3.6rem); }
    .rsvp-form .grid { grid-template-columns: 1fr; }
}

/* Header overrides for wedding pages */
.header { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; background: transparent !important; box-shadow: none !important; border-bottom: none !important; z-index: 2000 !important; }
.header--overlay { position: fixed !important; top: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 80%) !important; z-index: 2000 !important; }
.header--overlay .nav-container { padding-top: 0.05rem; padding-bottom: 0.05rem; }
.header--overlay .nav-container { min-height: clamp(40px, 5vw, 50px); max-height: 50px; align-items: center; padding-top: 0.15rem; padding-bottom: 0.15rem; }
.header.scrolled, .header.scroll-up, .header.scroll-down { background: transparent !important; box-shadow: none !important; }
.nav-container { max-width: 980px; margin: 0 auto; padding: 0.15rem 1rem; display: flex; align-items: center; gap: 0.8rem; }
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.header-logo {
  height: 100%;
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.logo { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 0.8rem; letter-spacing: .08em; color: #6d5d47; text-decoration: none; line-height: 1; }
.nav-links { list-style: none; display: flex; gap: .5rem; font-size: 0.75rem; line-height: 1; }
.nav-links a { text-decoration: none; color: #6d5d47; font-weight: 500; }

.hero-wedding { background-image: url('image/image(17).png'); background-size: cover; background-position: center top; background-repeat: no-repeat; }

.carte-hero-visual { width: 100vw; padding: 0; margin: 0; background: transparent; position: relative; }
.carte-hero-img { width: 100vw; height: 90vh; object-fit: cover; object-position: center top; display: block; }
/* Fade-out at the bottom of hero to blend into the page background */
.carte-hero-visual::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16vh; pointer-events: none; background: linear-gradient(180deg, rgba(245,240,232,0) 0%, rgba(245,240,232,0.55) 65%, rgba(245,240,232,0.9) 90%, rgba(245,240,232,1) 100%); }

/* Contenu empilé ensuite */
.carte-content { position: relative; z-index: 1; padding: 2rem 0 3rem; }
/* Soft top fade to make the join even smoother */
.carte-content::before { content: ""; position: absolute; top: -10vh; left: 0; right: 0; height: 12vh; background: linear-gradient(180deg, rgba(245,240,232,1) 0%, rgba(245,240,232,0) 100%); pointer-events: none; }
.carte-content {
  background-image: url('image/cartebg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}
.card-section { width: 100%; display: flex; justify-content: center; padding: 1rem; }
.card-section > .invitation-card { width: 100%; max-width: 1100px; }
.card-section + .card-section { margin-top: 2.5rem; }

/* Main event cards as full sections - CORRECTED nth-child */
.card-section:nth-child(2) > .invitation-card,
.card-section:nth-child(3) > .invitation-card {
  min-height: 85vh;
  max-width: 95vw;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.15em;
}

.card-section:nth-child(2) > .invitation-card .section-title,
.card-section:nth-child(3) > .invitation-card .section-title {
  font-size: 2rem;
  margin-bottom: 1.8rem;
}

.card-section:nth-child(2) > .invitation-card .parents,
.card-section:nth-child(3) > .invitation-card .parents {
  min-height: 3em;
  margin-bottom: 0.5rem;
}

/* Pattern background for Soirée card - 100% width & 100% height */
.card-section:nth-child(2) > .invitation-card::before {
  content: "" !important;
  background-image: url('image/LYcarte1.png') !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  transform: scale(1.0) !important;
  filter: saturate(1.05) !important;
}

/* Pattern background for Chabbat Hatan card */
.card-section:nth-child(3) > .invitation-card::before {
  content: "" !important;
  background-image: url('image/LYfond.png') !important;
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  transform: scale(1.0) !important;
  filter: saturate(1.05) !important;
}

/* Supprimer le voile pour les cartes principales */
.card-section:nth-child(2) > .invitation-card::after,
.card-section:nth-child(3) > .invitation-card::after {
  display: none !important;
}

.card-section:nth-child(2) > .invitation-card .names,
.card-section:nth-child(3) > .invitation-card .names {
  font-size: 3.5rem;
  margin: 2rem 0;
}

.card-section:nth-child(2) > .invitation-card .details,
.card-section:nth-child(3) > .invitation-card .details {
  font-size: 1.3rem;
  line-height: 2;
}

/* RSVP form card stays compact */
.card-section:nth-child(4) > .invitation-card {
  max-width: 700px;
  padding: 2.8rem 2.2rem;
}

/* Scroll animations */
.card-section { opacity: 0; transform: translateY(80px) rotateX(8deg); transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); position: relative; }
.card-section.card-visible { opacity: 1; transform: translateY(0) rotateX(0); }
.card-section.card-visible .invitation-card { 
  box-shadow: 
    inset 0 0 0 2px rgba(201,169,97,0.85), 
    0 28px 75px rgba(0,0,0,0.2), 
    0 16px 26px rgba(0,0,0,0.14), 
    0 0 45px rgba(201,169,97,0.6), 
    0 0 80px rgba(212,175,55,0.4),
    0 0 120px rgba(255,215,130,0.25); 
}
.card-section:nth-child(2) { transition-delay: 0.15s; }
.card-section:nth-child(3) { transition-delay: 0.3s; }


@media (max-width: 768px) {
  /* Mobile: header ultra compact */
  .header--overlay { background: linear-gradient(180deg, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0) 25%) !important; }
  .header--overlay .nav-container { padding: .08rem .4rem; gap: .3rem; }
  .header-logo { max-height: 40px; }
  .logo { font-size: 14px; letter-spacing: .05em; }
  .nav-links { display: none !important; }
  .hamburger { display: none !important; }

  .carte-hero-img { height: 85vh; }
  .carte-hero-visual::after { height: 14vh; background: linear-gradient(180deg, rgba(245,240,232,0) 0%, rgba(245,240,232,0.55) 60%, rgba(245,240,232,0.9) 90%, rgba(245,240,232,1) 100%); }
  .carte-content::before { top: -8vh; height: 10vh; }
  .card-section > .invitation-card { max-width: 96vw; padding: 2.4rem 1.5rem; border-radius: 22px; }
  .card-section > .invitation-card { animation-duration: 9s; }
  
  /* Maintain full-section sizing on mobile for main cards - CORRECTED */
  .card-section:nth-child(2) > .invitation-card,
  .card-section:nth-child(3) > .invitation-card {
    min-height: 85vh;
    padding: 2.5rem 1.8rem;
  }
  
  /* Ajuster le fond pour mobile - carte 1 */
  .card-section:nth-child(2) > .invitation-card::before {
    background-image: url('image/LYcarte1.png') !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transform: scale(1.0) !important;
  }
  
  /* Ajuster le fond pour mobile - carte 2 */
  .card-section:nth-child(3) > .invitation-card::before {
    background-image: url('image/LYfond.png') !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transform: scale(1.0) !important;
  }
  
  .card-section:nth-child(2) > .invitation-card .names,
  .card-section:nth-child(3) > .invitation-card .names {
    font-size: 2.8rem;
  }
  
  .card-section:nth-child(2) > .invitation-card .parents,
  .card-section:nth-child(3) > .invitation-card .parents {
    min-height: 2.5em;
  }
  
  .card-section > .invitation-card,
  .card-section > .invitation-card:hover {
    /* reduce halos on mobile for comfort */
    box-shadow:
      inset 0 0 0 2px rgba(201,169,97,0.7),
      0 18px 48px rgba(0,0,0,0.16),
      0 10px 18px rgba(0,0,0,0.12),
      0 0 40px rgba(201,169,97,0.22),
      0 0 90px rgba(255,240,210,0.18);
  }
  .invitation-card .section-title { font-size: 1.5rem; }
  .invitation-card .names { font-size: 2.2rem; }
  .invitation-card .names .et { font-size: 1.4rem; }
  .invitation-card .parents { font-size: 0.85rem; }
  .invitation-card .details { font-size: 0.9rem; line-height: 1.6; }
  .invitation-card .note { font-size: 0.8rem; }
  .invitation-card { padding: 2rem 1.2rem; }
  
  .card-section:nth-child(2) > .invitation-card .names,
  .card-section:nth-child(3) > .invitation-card .names {
    font-size: 2rem;
  }
  
  .card-section:nth-child(2) > .invitation-card .section-title,
  .card-section:nth-child(3) > .invitation-card .section-title {
    font-size: 1.4rem;
  }
  
  .card-section:nth-child(2) > .invitation-card .details,
  .card-section:nth-child(3) > .invitation-card .details {
    font-size: 1rem;
  }
  
  .hebrew-text { font-size: 0.85rem !important; }
.memorial { font-size: 0.7rem !important; }
}
.site-footer{background:linear-gradient(135deg,#f8fafc 0%,#ffffff 100%);border-top:1px solid #e5e7eb;padding:1.25rem 0}
.site-footer .inner{width:100%;max-width:var(--container-width);margin:0 auto;padding:0 1.5rem;display:flex;align-items:center;justify-content:center;gap:.5rem}
.footer-note{color:#8b6b52;font-weight:500;letter-spacing:.02em}
.footer-link{color:#8b6b52;font-weight:700;position:relative}
.footer-link::after{content:"";position:absolute;left:0;bottom:-3px;width:100%;height:2px;background:linear-gradient(90deg,#c9a961,#8b6b52);border-radius:2px;opacity:.6}
.footer-heart{display:inline-block;color:#e63946;transform:translateY(2px);font-size:1.05em}
.invitation-card.chabbat-card::before { background-size: 100% 100% !important; }
