/* ============================================
   SAI ZIRAPE — Portfolio & Services
   White Glowy Premium Theme
   ============================================ */

/* Google Fonts loaded via HTML <link> for faster parallel loading */

:root {
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e8eaed;
  --mid-gray: #9aa0a6;
  --dark: #0a0a0a;
  --accent: #6c63ff;
  --accent-2: #00d4ff;
  --accent-glow: rgba(108, 99, 255, 0.35);
  --accent-glow-2: rgba(0, 212, 255, 0.25);
  --gradient-hero: linear-gradient(135deg, #6c63ff 0%, #00d4ff 50%, #ff6bcb 100%);
  --shadow-glow: 0 0 40px var(--accent-glow), 0 0 80px var(--accent-glow-2);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
::selection { background: var(--accent); color: white; }

/* ======== NAVBAR ======== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 20px 60px;
  display: flex; align-items: center; justify-content: space-between;
  /* ── Apple Liquid Glass ── */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
}
.navbar.scrolled { padding: 14px 60px; box-shadow: 0 2px 40px rgba(0,0,0,0.06); }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo span { font-weight: 700; font-size: 1.2rem; color: var(--dark); letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--dark); font-weight: 500; font-size: 0.92rem;
  position: relative; transition: var(--transition); letter-spacing: 0.01em;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gradient-hero); border-radius: 2px; transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  padding: 10px 28px !important; background: var(--dark); color: var(--white) !important;
  border-radius: 50px; font-weight: 600; font-size: 0.88rem;
  transition: var(--transition); border: none; cursor: pointer;
}
.nav-cta:hover {
  background: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.nav-cta::after { display: none !important; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.menu-toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* ======== FIXED CAMERA CANVAS ======== */
#cameraCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  display: block;
  background: #C8C8CC;
  will-change: transform;
}

/* ======== GLOBAL GLASS OVERLAY ======== */
.global-glass-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  pointer-events: none; /* Let clicks pass through to canvas if needed */
}

/* ======== CAMERA LOADER ======== */
.camera-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: #C8C8CC;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.camera-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-content {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
}
.loader-spinner {
  width: 44px; height: 44px;
  border: 2px solid rgba(0,0,0,0.12);
  border-top-color: rgba(0,0,0,0.65);
  border-radius: 50%;
  animation: loaderSpin 0.8s linear infinite;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }
.loader-text {
  font-family: var(--font); font-size: 0.78rem; font-weight: 500;
  color: rgba(0,0,0,0.4); letter-spacing: 0.1em; text-transform: uppercase;
}
.loader-progress-bar {
  width: 180px; height: 2px; background: rgba(0,0,0,0.1); border-radius: 2px; overflow: hidden;
}
.loader-progress-fill {
  height: 100%; width: 0%; background: rgba(0,0,0,0.45);
  border-radius: 2px; transition: width 0.12s linear;
}
.loader-percent {
  font-family: var(--font); font-size: 0.72rem; font-weight: 600;
  color: rgba(0,0,0,0.3); letter-spacing: 0.05em;
}
/* ======== HERO (overlaid on fixed canvas) ======== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  background: transparent; /* canvas shows through */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.30);
  border-top-color: rgba(255,255,255,0.50);
  border-radius: 50px; font-size: 0.82rem; font-weight: 500; color: rgba(0,0,0,0.55);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset;
}
.hero-badge .dot {
  width: 8px; height: 8px; background: #34d399; border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 20px;
  color: rgba(0,0,0,0.88);
  animation: fadeUp 0.8s ease 0.12s both;
}
.hero h1 .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
  font-size: 1.1rem; color: rgba(0,0,0,0.55); max-width: 800px;
  margin: 0 auto 36px; line-height: 1.7; font-weight: 400;
  animation: fadeUp 0.8s ease 0.24s both;
}
.hero-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.36s both;
}

/* ======== SCROLL INDICATOR ======== */
.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(0,0,0,0.25);
  border-radius: 20px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: rgba(0,0,0,0.35);
  border-radius: 4px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%  { transform: translateY(0);    opacity: 1; }
  70% { transform: translateY(9px);  opacity: 0; }
  100%{ transform: translateY(0);    opacity: 0; }
}
.scroll-indicator span {
  font-size: 0.65rem; font-weight: 500;
  color: rgba(0,0,0,0.3); letter-spacing: 0.12em; text-transform: uppercase;
}

/* ======== BUTTONS (shared) ======== */
.btn-primary {
  padding: 16px 38px; background: var(--dark); color: var(--white);
  border: none; border-radius: 50px; font-family: var(--font); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover {
  background: var(--accent); transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.btn-secondary {
  padding: 16px 38px; background: rgba(255,255,255,0.8); color: var(--dark);
  border: 1.5px solid rgba(0,0,0,0.12); border-radius: 50px;
  font-family: var(--font); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: var(--accent); color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.12);
  background: white;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse  { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }

/* ======== SECTION COMMON ======== */
section { padding: 120px 60px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); margin-bottom: 16px;
}
.section-label .line { width: 30px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 20px;
}
.section-desc { font-size: 1.05rem; color: var(--mid-gray); max-width: 540px; line-height: 1.7; }

/* ======== SERVICES ======== */
.services {
  background: transparent;
}
.services-header { text-align: center; margin-bottom: 72px; }
.services-header .section-desc { margin: 0 auto; }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; max-width: 1200px; margin: 0 auto;
}

.service-card {
  /* ── Apple Liquid Glass ── */
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius); padding: 44px 36px;
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.06) inset,
    0 1px 0 rgba(255,255,255,0.45) inset,
    0 -1px 0 rgba(0,0,0,0.02) inset,
    0 8px 32px rgba(0,0,0,0.06),
    0 2px 8px rgba(0,0,0,0.03);
  transition: var(--transition);
  position: relative; overflow: hidden; cursor: default;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
  opacity: 0; transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-glow);
  border-color: rgba(108, 99, 255, 0.2);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; font-size: 1.5rem; position: relative; z-index: 1;
  transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.service-icon.icon-social { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.service-icon.icon-content { background: linear-gradient(135deg, #f093fb, #f5576c); color: white; }
.service-icon.icon-ads { background: linear-gradient(135deg, #4facfe, #00f2fe); color: white; }
.service-icon.icon-web { background: linear-gradient(135deg, #43e97b, #38f9d7); color: white; }
.service-icon.icon-video { background: linear-gradient(135deg, #fa709a, #fee140); color: white; }
.service-icon.icon-motion { background: linear-gradient(135deg, #a18cd1, #fbc2eb); color: white; }

.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; position: relative; z-index: 1; }
.service-card p { font-size: 0.92rem; color: var(--mid-gray); line-height: 1.65; position: relative; z-index: 1; }

/* ======== CAROUSEL VIDEO LAYOUTS ======== */
.work {
  background: transparent;
}
.work-dark {
  background: transparent;
}
.work-header { text-align: center; margin-bottom: 40px; }
.work-header .section-desc { margin: 0 auto; }

/* Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  padding: 40px 0;
}

.carousel-track {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

#short-form .carousel-track {
  max-width: 900px;
  height: 540px;
}

#long-form .carousel-track {
  max-width: 1100px;
  height: 380px;
}

/* Video Card in Carousel */
.video-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 290px;
  height: 515px;
  border-radius: var(--radius);
  overflow: hidden;
  
  /* ── Apple Liquid Glass ── */
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.70);

  /* Add padding so the glass forms a frame around the video */
  padding: 16px;

  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, z-index 0.6s ease, box-shadow 0.4s ease;
  pointer-events: auto;
}

#long-form .video-card {
  width: 530px;
  height: 298px; /* 16:9 ratio */
}

.video-card.active {
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.06) inset,
    0 1px 0 rgba(255,255,255,0.45) inset,
    0 -1px 0 rgba(0,0,0,0.02) inset,
    0 20px 60px rgba(0,0,0,0.12),
    var(--shadow-glow);
}

.video-card video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: calc(var(--radius) - 8px); /* curve the video corners inside the padding */
}

/* Nav Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.carousel-nav:hover {
  background: var(--white);
  color: var(--accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-glow);
}
.prev-btn { left: 40px; }
.next-btn { right: 40px; }

/* Mini Controls (Bottom Right) */
.mini-controls {
  position: absolute; bottom: 16px; right: 16px;
  display: flex; gap: 8px; z-index: 10;
  opacity: 0; transition: var(--transition);
}
.video-card.active:hover .mini-controls { opacity: 1; }

.mute-btn, .fullscreen-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.mute-btn:hover, .fullscreen-btn:hover { background: rgba(0,0,0,0.6); transform: scale(1.1); }
.mute-btn svg, .fullscreen-btn svg { width: 16px; height: 16px; fill: white; stroke: white; }
.fullscreen-btn svg { fill: none; }

/* Play Flash Icon (YouTube Shorts Style) */
.play-flash-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5);
  width: 72px; height: 72px; background: rgba(0,0,0,0.5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; z-index: 10; backdrop-filter: blur(4px);
}
.play-flash-icon svg { width: 32px; height: 32px; fill: white; stroke: white; display: none; }
.play-flash-icon.animate-play .icon-play-flash { display: block; }
.play-flash-icon.animate-pause .icon-pause-flash { display: block; }

@keyframes flashAnimation {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}
.play-flash-icon.animate-play, .play-flash-icon.animate-pause {
  animation: flashAnimation 0.6s ease-out forwards;
}

/* Mute icon toggle */
.mute-btn .icon-muted { display: none; }
.mute-btn.is-muted .icon-unmuted { display: none; }
.mute-btn.is-muted .icon-muted { display: block; }

/* Fullscreen Modal */
.fullscreen-modal {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.95); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.fullscreen-modal.active { opacity: 1; pointer-events: auto; }
.modal-content {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.modal-content video {
  max-width: 90%; max-height: 90vh; border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
#modal-close {
  position: absolute; top: 24px; right: 24px; z-index: 10001;
  width: 48px; height: 48px; background: rgba(255,255,255,0.1); border-radius: 50%;
  border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); backdrop-filter: blur(10px);
}
#modal-close:hover { background: rgba(255,255,255,0.2); transform: scale(1.1) rotate(90deg); }
#modal-close svg { width: 24px; height: 24px; }
#modal-prev, #modal-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10000;
  width: 56px; height: 56px; background: rgba(255,255,255,0.1); border-radius: 50%;
  border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); backdrop-filter: blur(10px);
}
#modal-prev { left: 32px; }
#modal-next { right: 32px; }
#modal-prev:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) translateX(-5px) scale(1.1); }
#modal-next:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) translateX(5px) scale(1.1); }
#modal-prev svg, #modal-next svg { width: 28px; height: 28px; }
.modal-info {
  position: absolute; bottom: 32px; left: 32px; color: white; z-index: 10000;
}
.modal-info h4 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.modal-info span { font-size: 1rem; opacity: 0.8; }

.video-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 24px; background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white; opacity: 0; transition: var(--transition); pointer-events: none;
}
.video-card.active:hover .video-overlay { opacity: 1; }
.video-overlay h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.video-overlay span { font-size: 0.78rem; opacity: 0.7; }

/* ======== ABOUT ======== */
.about {
  background: transparent;
}
.about-container {
  max-width: 1100px; margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-visual { position: relative; }
.about-img-wrapper {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  background: linear-gradient(135deg, #f0f0ff 0%, #e8f4f8 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-img-wrapper img { width: 60%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08)); }

.about-floating-badge {
  position: absolute; background: white; padding: 14px 22px;
  border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 8px;
  animation: badgeFloat 4s ease-in-out infinite;
}
.about-floating-badge.badge-1 { top: 20px; right: -20px; }
.about-floating-badge.badge-2 { bottom: 30px; left: -20px; animation-delay: 2s; }
@keyframes badgeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.about-text h2 { margin-bottom: 24px; }
.about-text p { color: var(--mid-gray); line-height: 1.75; margin-bottom: 20px; font-size: 1rem; }
.about-stats { display: flex; gap: 40px; margin-top: 36px; }
.stat h3 {
  font-size: 2rem; font-weight: 800;
  background: var(--gradient-hero); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat span { font-size: 0.82rem; color: var(--mid-gray); font-weight: 500; }

/* ======== CONTACT CARDS ======== */
.contact {
  background: transparent;
  text-align: center;
}
.contact-header { margin-bottom: 60px; }
.contact-header .section-desc { margin: 0 auto; }

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.contact-card {
  /* ── Apple Liquid Glass ── */
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.55);
  padding: 40px 32px; border-radius: var(--radius);
  text-decoration: none; color: var(--dark); transition: var(--transition);
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.06) inset,
    0 1px 0 rgba(255,255,255,0.45) inset,
    0 -1px 0 rgba(0,0,0,0.02) inset,
    0 8px 32px rgba(0,0,0,0.05),
    0 2px 8px rgba(0,0,0,0.03);
}
.contact-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-glow);
  border-color: rgba(108, 99, 255, 0.15); background: var(--white);
}
.contact-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; transition: var(--transition);
}
.contact-card:hover .contact-icon { transform: scale(1.15) rotate(5deg); }
.contact-icon.email-icon { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.contact-icon.whatsapp-icon { background: linear-gradient(135deg, #25d366, #128c7e); color: white; }
.contact-icon.insta-icon { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.contact-card h4 { font-weight: 700; font-size: 1.05rem; }
.contact-card p { font-size: 0.88rem; color: var(--mid-gray); line-height: 1.5; }

/* ======== EMAIL FORM SECTION ======== */
.email-section {
  background: transparent;
  padding: 120px 60px;
}
.email-container {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start;
}
.email-left .section-desc { margin-bottom: 36px; }

.email-info { display: flex; flex-direction: column; gap: 16px; }
.email-info-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; font-weight: 500; color: var(--dark);
}

.email-form {
  /* ── Apple Liquid Glass ── */
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.55);
  padding: 44px; border-radius: var(--radius);
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.06) inset,
    0 1px 0 rgba(255,255,255,0.45) inset,
    0 -1px 0 rgba(0,0,0,0.02) inset,
    0 8px 32px rgba(0,0,0,0.05),
    0 2px 8px rgba(0,0,0,0.03);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--dark); margin-bottom: 8px; letter-spacing: 0.02em;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.92rem;
  color: var(--dark); background: var(--off-white);
  transition: var(--transition); outline: none; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent); background: var(--white);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--mid-gray); font-weight: 400;
}

.form-submit {
  width: 100%; justify-content: center; margin-top: 8px; padding: 18px;
  font-size: 1rem;
}

.form-success {
  text-align: center; padding: 40px; animation: fadeUp 0.5s ease;
}
.form-success h3 { font-size: 1.4rem; margin-bottom: 8px; }
.form-success p { color: var(--mid-gray); }

/* ======== FOOTER ======== */
.footer { background: var(--dark); color: white; padding: 60px; text-align: center; }
.footer-content { max-width: 600px; margin: 0 auto; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.footer-logo img { height: 36px; filter: invert(1); }
.footer-logo span { font-weight: 700; font-size: 1.15rem; }
.footer p { color: rgba(255,255,255,0.4); font-size: 0.85rem; line-height: 1.6; margin-bottom: 24px; }

.footer-socials { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 32px; }
.footer-socials a {
  height: 42px; padding: 0 16px; border-radius: 12px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: white; text-decoration: none; transition: var(--transition); font-size: 0.9rem;
}
.footer-socials a:hover { background: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 25px var(--accent-glow); }

.footer-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 24px; }
.footer-bottom { color: rgba(255,255,255,0.3); font-size: 0.78rem; }

/* ======== ANIMATIONS ======== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ======== RESPONSIVE ======== */
@media (max-width: 1200px) {
  #long-form .video-card {
    width: 440px;
    height: 248px;
  }
  #long-form .carousel-track {
    height: 320px;
  }
}

@media (max-width: 1024px) {
  section { padding: 80px 40px; }
  .navbar { padding: 16px 30px; }
  .about-container { grid-template-columns: 1fr; gap: 40px; }
  .email-container { grid-template-columns: 1fr; gap: 40px; }
  .email-section { padding: 80px 40px; }
}

@media (max-width: 992px) {
  .prev-btn { left: 16px; }
  .next-btn { right: 16px; }
  #short-form .carousel-track {
    max-width: 600px;
  }
  #long-form .carousel-track {
    max-width: 800px;
  }
  #long-form .video-card {
    width: 380px;
    height: 214px;
  }
}

@media (max-width: 768px) {
  section { padding: 60px 20px; }
  .navbar { padding: 14px 20px; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px; height: 100vh;
    background: white; flex-direction: column; padding: 100px 40px 40px; gap: 28px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1); transition: var(--transition);
  }
  .nav-links.open { right: 0; }
  .menu-toggle { display: flex; }

  .hero { padding: 120px 24px 80px; min-height: auto; }
  .hero h1 { font-size: 2.5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 24px; }
  .about-floating-badge { display: none; }
  .email-section { padding: 60px 20px; }
  .email-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer { padding: 40px 20px; }

  .carousel-nav {
    width: 44px;
    height: 44px;
  }
  #short-form .carousel-track {
    max-width: 100%;
    height: 450px;
  }
  #short-form .video-card {
    width: 230px;
    height: 408px;
  }
  #long-form .carousel-track {
    max-width: 100%;
    height: 400px;
  }
  #long-form .video-card {
    width: 85vw;
    height: calc((85vw - 32px) * 9 / 16 + 32px);
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  #short-form .carousel-track {
    height: 380px;
  }
  #short-form .video-card {
    width: 190px;
    height: 338px;
  }
  #long-form .carousel-track {
    height: 280px;
  }
  #long-form .video-card {
    width: 90vw;
    height: calc((90vw - 32px) * 9 / 16 + 32px);
  }
}

@media (hover: none) {
  .video-controls {
    opacity: 1;
  }
  .video-overlay {
    opacity: 1;
  }
}




/* Fix Ae and Pr icons overlap on mobile / tablet / small landscape views */
@media (max-width: 1280px) {
  .hero-floating-icon { display: none !important; }
}

/* ======== INTERACTIVE ENHANCEMENTS ======== */

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #ff6bcb);
  z-index: 10000; border-radius: 0 3px 3px 0;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Dual Cursor — glow blob + precise dot */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
  filter: blur(16px); opacity: 0; z-index: 99998;
  transition: width 0.3s, height 0.3s, opacity 0.3s, background 0.3s;
}
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 99999; opacity: 0;
  transition: width 0.2s, height 0.2s, opacity 0.2s, background 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  body:hover .cursor-glow { opacity: 0.5; }
  body:hover .cursor-dot  { opacity: 1; }
}
.cursor-glow.active { width: 80px; height: 80px; background: var(--accent-2); opacity: 0.35; }
.cursor-dot.active  { width: 12px; height: 12px; background: var(--accent-2); }
.cursor-dot.clicking { transform: translate(-50%, -50%) scale(0.6); }

/* Ripple Effect */
.btn-primary, .btn-secondary, .carousel-nav { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%;
  transform: scale(0); animation: rippleAnim 0.65s linear;
  background: rgba(255,255,255,0.35); pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* Tilt Card Shine */
.tilt-card { position: relative; }
.card-shine {
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 1; transition: background 0.1s ease;
}

/* Video Card Brightness Transition */
.video-card {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.6s ease, filter 0.4s ease,
              box-shadow 0.4s ease;
}

/* Shimmer on Active Video Card Hover */
.video-card.active::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(108,99,255,0.06) 0%, transparent 60%);
  pointer-events: none; opacity: 0;
  transition: opacity 0.3s ease;
}
.video-card.active:hover::after { opacity: 1; }

/* Page Load Body Transition */
body { opacity: 0; transition: opacity 0.5s ease; }
body.loaded { opacity: 1; }

/* Stat Counter Styling */
.stat h3 {
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
}

/* Floating Form Labels */
.form-group { position: relative; }
.form-group label {
  position: absolute; top: 16px; left: 16px; font-size: 0.95rem; color: rgba(0,0,0,0.4);
  pointer-events: none; transition: 0.2s ease all; z-index: 1;
}
.form-group input, .form-group textarea { padding-top: 24px; padding-bottom: 8px; }
.form-group input:focus ~ label, .form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label, .form-group textarea:not(:placeholder-shown) ~ label {
  top: 8px; font-size: 0.75rem; color: var(--accent);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(0,0,0,0.25); opacity: 0; transition: opacity 0.2s;
}
.form-group input:focus::placeholder, .form-group textarea:focus::placeholder { opacity: 1; }

/* Submit Button States */
#submit-btn { position: relative; overflow: hidden; }
#submit-btn.loading { pointer-events: none; }
#submit-btn.loading > * { opacity: 0; }
#submit-btn.loading::after {
  content: ''; position: absolute;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: white;
  border-radius: 50%; animation: spin 0.8s linear infinite;
  left: calc(50% - 10px); top: calc(50% - 10px);
}
#submit-btn.success { background: #10b981 !important; pointer-events: none; }
#submit-btn.success > * { opacity: 0; }
#submit-btn.success::before {
  content: 'Message Sent ✓'; position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-weight: 600; color: white; white-space: nowrap;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Film Grain Overlay */
.film-grain {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9998; opacity: 0.03;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}
@media (max-width: 768px) {
  .film-grain { display: none; }
}

/* ======== HERO CARD — MOBILE ======== */
@media (max-width: 768px) {
  .hero-content {
    padding: 40px 28px;
    border-radius: 20px;
    margin: 0 16px;
  }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero p  { font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .scroll-indicator { bottom: 20px; }
}
