/* ===================================================================
   Karukol Studios — Main Stylesheet
   Theme: Unified Obsidian & Neon Craft
   Artisanal Soul meets Machine Precision
   =================================================================== */

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

:root {
  /* Obsidian Dark Palette */
  --bg-primary: #030a0c;
  --bg-secondary: #061518;
  --bg-surface: #0a1f24;
  --bg-surface-hover: #0e2930;
  
  /* Glassmorphism Surfaces */
  --glass-bg: rgba(10, 31, 36, 0.68);
  --glass-bg-elevated: rgba(14, 41, 48, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.2);

  /* Brand Accents */
  --coral: #FC7A58;
  --coral-light: #ff987a;
  --gold: #F4C96A;
  --gold-light: #ffde94;
  --cyan: #38bdf8;
  --purple: #a855f7;

  /* Typography Colors */
  --text-primary: #FAF5EE;
  --text-secondary: #94a8ad;
  --text-muted: #5d757c;

  /* Radius */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-full: 9999px;

  /* Lighting & Glows */
  --glow-coral: 0 0 30px rgba(252, 122, 88, 0.3);
  --glow-gold: 0 0 30px rgba(244, 201, 106, 0.28);
  --glow-cyan: 0 0 30px rgba(56, 189, 248, 0.25);
  --glow-card: 0 20px 45px rgba(0, 0, 0, 0.55);

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-primary);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Background ambient light mesh */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 10% 20%, rgba(252, 122, 88, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(244, 201, 106, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(56, 189, 248, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -2;
}

/* Subtle Film / Noise Texture Overlay (Linear / Luxury Studio Finish) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%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)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  transition: background var(--transition-fast);
}

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

/* Scroll-Reveal Choreography */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Stagger Delays for Sequential Sibling Reveal Elements */
.apps-grid .app-card:nth-child(2) { transition-delay: 0.15s; }
.contact-cards .contact-card:nth-child(2) { transition-delay: 0.12s; }

/* Accessibility Focus */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none !important;
  text-decoration-line: none !important;
  -webkit-text-decoration-line: none !important;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* ===================================================================
   Header & Navigation
   =================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 10, 12, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition-fast);
}

.brand:hover {
  transform: scale(1.02);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(252, 122, 88, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.brand b {
  color: var(--text-primary);
  font-size: 1.3rem;
  letter-spacing: -0.2px;
  font-weight: 800;
}

.brand b em {
  color: var(--coral);
  font-style: normal;
  background: linear-gradient(135deg, var(--coral), var(--coral-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 1px;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  border-radius: 2px;
  transition: width var(--transition-fast);
}

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

/* ===================================================================
   Custom Language Selector Dropdown
   =================================================================== */
#langSel {
  display: none;
}

.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.lang-trigger:hover,
.lang-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(244, 201, 106, 0.35);
  transform: translateY(-1px);
}

.lang-trigger .globe-icon {
  width: 15px;
  height: 15px;
  opacity: 0.85;
  transition: transform 0.4s ease;
}

.lang-trigger:hover .globe-icon {
  transform: rotate(25deg);
}

.lang-trigger .chevron-icon {
  width: 13px;
  height: 13px;
  opacity: 0.7;
  transition: transform 0.25s ease;
}

.lang-trigger[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: rgba(7, 23, 27, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--r-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(7, 31, 35, 0.5);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-spring), transform 0.2s var(--ease-spring);
  transform-origin: top right;
}

.lang-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
}

.lang-search-wrapper .search-icon {
  position: absolute;
  left: 22px;
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
  pointer-events: none;
}

.lang-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 7px 12px 7px 32px;
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.lang-search-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(252, 122, 88, 0.25);
}

.lang-search-clear {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.lang-search-clear:hover {
  color: var(--coral);
}

.lang-list {
  max-height: 270px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.lang-list::-webkit-scrollbar {
  width: 6px;
}

.lang-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.lang-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
  outline: none;
}

.lang-item:hover,
.lang-item:focus-visible {
  background: rgba(252, 122, 88, 0.2);
  color: var(--coral-light);
  padding-left: 18px;
}

.lang-item.active {
  background: rgba(244, 201, 106, 0.18);
  color: var(--gold);
  font-weight: 700;
}

.lang-item .active-check {
  width: 14px;
  height: 14px;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.lang-item.active .active-check {
  opacity: 1;
}

.no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.lang-overlay {
  display: none;
}

@media (max-width: 640px) {
  .lang-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    transform: translateY(100%);
    transform-origin: bottom center;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
    z-index: 200;
  }

  .lang-menu.open {
    transform: translateY(0);
  }

  .lang-list {
    max-height: 48vh;
  }

  .lang-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
  }

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

/* ===================================================================
   Hero Section & Interactive Canvas
   =================================================================== */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(rgba(252, 122, 88, 0.12) 1.5px, transparent 1.5px),
    radial-gradient(rgba(244, 201, 106, 0.08) 1.5px, transparent 1.5px);
  background-size: 38px 38px, 38px 38px;
  background-position: 0 0, 19px 19px;
  padding: 110px 0 90px;
  overflow: hidden;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-content h1 .ka {
  color: var(--coral);
  background: linear-gradient(135deg, var(--coral), var(--coral-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h1 .ko {
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  max-width: 650px;
  font-size: clamp(1.18rem, 2.3vw, 1.4rem);
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 400;
  margin: 0 auto 36px;
  text-align: center;
}

/* Hero Call to Action Buttons */
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 28px;
  position: relative;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--coral), var(--gold), transparent);
  border-radius: 2px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--coral), #ff683d);
  color: #040c0e;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 30px rgba(252, 122, 88, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-hero-primary::after {
  content: '';
  position: absolute;
  inset: -100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(35deg);
  transition: transform 0.65s ease;
}

.btn-hero-primary:hover::after {
  transform: translateX(180%) rotate(35deg);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(252, 122, 88, 0.52);
  color: #040c0e;
}

.btn-hero-primary svg {
  transition: transform 0.25s var(--ease-spring);
}

.btn-hero-primary:hover svg {
  transform: translateX(5px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid var(--glass-border);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 201, 106, 0.25);
}

/* Scroll Cue Pill */
.scrollcue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 31, 36, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 8px 18px;
  border-radius: var(--r-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.scrollcue:hover {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(244, 201, 106, 0.3);
  transform: translateX(-50%) translateY(-2px);
}

.scrollcue svg {
  width: 16px;
  height: 16px;
  animation: bobDown 1.8s ease-in-out infinite;
}

@keyframes bobDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ===================================================================
   Sections & Common Typography
   =================================================================== */
section {
  padding: 120px 0;
  position: relative;
  background-color: var(--bg-primary);
}

.h2 {
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.6px;
  color: var(--text-primary);
}

.lead {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.75;
}

/* ===================================================================
   About Section — The Signature Philosophy Equation
   =================================================================== */
#about {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}

#about::before,
#apps::before,
#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252, 122, 88, 0.3), rgba(244, 201, 106, 0.3), transparent);
}

.kk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 54px;
}

.kk-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-md);
  padding: 32px 42px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--glass-border);
  text-align: center;
  min-width: 155px;
  transition: all var(--transition-normal);
  position: relative;
}

.kk-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: var(--glow-coral);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: -1;
}

.kk-card:nth-child(3)::before {
  box-shadow: var(--glow-gold);
}

.kk-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  border-color: rgba(252, 122, 88, 0.4);
  background: var(--glass-bg-elevated);
}

.kk-card:nth-child(3):hover {
  border-color: rgba(244, 201, 106, 0.5);
}

.kk-card:hover::before {
  opacity: 1;
}

.kk-card .gly {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: "Noto Sans Bengali", system-ui, sans-serif;
  line-height: 1.2;
}

.kk-card svg {
  width: 38px;
  height: 38px;
  margin: 16px auto 0;
  color: var(--coral);
  transition: transform 0.35s ease;
}

/* Distinct SVG animations */
.kk-card:nth-child(1):hover svg {
  animation: drawPen 0.8s ease-in-out;
}

@keyframes drawPen {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(3px, -3px) rotate(-10deg); }
  75% { transform: translate(-2px, 2px) rotate(8deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.kk-card:nth-child(3) svg {
  color: var(--gold);
  animation: spinGear 14s linear infinite;
}

@keyframes spinGear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.kk-card:nth-child(3):hover svg {
  animation-duration: 4s;
}

.kk-op,
.kk-eq {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
  animation: pulseOp 3s ease-in-out infinite;
}

@keyframes pulseOp {
  0%, 100% { transform: scale(1); border-color: var(--glass-border); }
  50% { transform: scale(1.05); border-color: rgba(255, 255, 255, 0.2); }
}

.kk-result {
  font-size: 2rem;
  font-weight: 800;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px 36px;
  border-radius: var(--r-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--glass-border-hover);
  letter-spacing: -0.3px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.kk-result::after {
  content: '';
  position: absolute;
  inset: -100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(35deg);
  animation: shineSweep 5s ease-in-out infinite;
}

@keyframes shineSweep {
  0%, 70% { transform: translateX(-150%) rotate(35deg); }
  100% { transform: translateX(150%) rotate(35deg); }
}

.kk-result:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), var(--glow-coral);
}

.kk-result .ka {
  color: var(--coral);
  background: linear-gradient(135deg, var(--coral), var(--coral-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kk-result .ko {
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Philosophy Callout Quote */
.philosophy-quote {
  max-width: 820px;
  margin: 36px auto 0;
  padding: 30px 38px;
  background: rgba(10, 31, 36, 0.55);
  border-left: 3px solid var(--coral);
  border-right: 3px solid var(--gold);
  border-radius: var(--r-md);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.philosophy-quote .lead {
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* ===================================================================
   Apps Grid Section & Tailored App Identity Themes
   =================================================================== */
#apps {
  background: var(--bg-primary);
  position: relative;
}

#apps > .wrap > .reveal:first-child::after {
  content: '';
  display: block;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  margin: 28px auto 0;
  border-radius: 2px;
  opacity: 0.75;
}

/* ===================================================================
   App Cards — Redesigned
   =================================================================== */
.apps-grid {
  max-width: 1040px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
}

.app-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-lg);
  padding: 36px 32px 32px;
  text-align: left;
  box-shadow: var(--glow-card);
  border: 1px solid var(--glass-border);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

/* Ambient glow blob */
.card-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  top: -80px;
  right: -80px;
  opacity: 0.12;
  transition: opacity 0.4s ease;
  filter: blur(60px);
}
.card-glow-aqua  { background: #38bdf8; }
.card-glow-viom  { background: #a855f7; }
.app-card:hover .card-glow { opacity: 0.22; }

/* Hover lift */
.card-aquaplayer:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 28px 56px rgba(0,0,0,0.7), 0 0 40px rgba(56,189,248,0.18);
  background: var(--glass-bg-elevated);
}
.card-viom:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.32);
  box-shadow: 0 28px 56px rgba(0,0,0,0.7), 0 0 40px rgba(168,85,247,0.18);
  background: var(--glass-bg-elevated);
}

/* Top row: icon + tag */
.card-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.card-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-spring);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}
.card-icon-aqua { border: 1.5px solid rgba(56,189,248,0.3); box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 20px rgba(56,189,248,0.15); }
.card-icon-viom  { border: 1.5px solid rgba(168,85,247,0.3); box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 20px rgba(168,85,247,0.15); }

.app-card:hover .card-icon-wrap { transform: scale(1.08) rotate(-3deg); }

.card-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-full);
}
.card-tag-aqua {
  background: rgba(56,189,248,0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56,189,248,0.25);
}
.card-tag-viom {
  background: rgba(168,85,247,0.12);
  color: #d8b4fe;
  border: 1px solid rgba(168,85,247,0.25);
}

/* Body: title + description */
.card-body { flex-grow: 1; }

.card-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  line-height: 1.15;
  text-decoration: none;
  border: none;
  outline: none;
  -webkit-text-decoration: none;
}
.card-title-aqua {
  color: #7dd3fc;
}
.card-title-viom {
  color: #c084fc;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Feature list */
.card-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card-feature {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.1px;
}
.card-aquaplayer .card-feature svg { color: #38bdf8; flex-shrink: 0; }
.card-viom       .card-feature svg { color: #a855f7; flex-shrink: 0; }

/* CTA Button */
.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card-cta:hover::before { opacity: 1; }

.card-cta-aqua {
  background: linear-gradient(135deg, rgba(56,189,248,0.2) 0%, rgba(56,189,248,0.08) 100%);
  color: #e0f5ff;
  border: 1px solid rgba(56,189,248,0.35);
  box-shadow: 0 4px 16px rgba(56,189,248,0.15);
}
.card-cta-aqua:hover {
  background: linear-gradient(135deg, rgba(56,189,248,0.32) 0%, rgba(56,189,248,0.14) 100%);
  border-color: rgba(56,189,248,0.6);
  box-shadow: 0 8px 28px rgba(56,189,248,0.3);
  transform: translateY(-1px);
  color: #fff;
}

.card-cta-viom {
  background: linear-gradient(135deg, rgba(168,85,247,0.2) 0%, rgba(168,85,247,0.08) 100%);
  color: #f3e8ff;
  border: 1px solid rgba(168,85,247,0.35);
  box-shadow: 0 4px 16px rgba(168,85,247,0.15);
}
.card-cta-viom:hover {
  background: linear-gradient(135deg, rgba(168,85,247,0.32) 0%, rgba(168,85,247,0.14) 100%);
  border-color: rgba(168,85,247,0.6);
  box-shadow: 0 8px 28px rgba(168,85,247,0.3);
  transform: translateY(-1px);
  color: #fff;
}

.card-cta:active { transform: translateY(0); }
.card-cta svg { flex-shrink: 0; transition: transform 0.2s ease; }
.card-cta:hover svg { transform: translateX(3px); }

/* ===================================================================
   Contact Section — Contained Luxury Glass Panel
   =================================================================== */
#contact {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #020708 100%);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.contact-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 64px 48px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 122, 88, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contact-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(252, 122, 88, 0.1);
  border: 1px solid rgba(252, 122, 88, 0.3);
  color: var(--coral);
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.contact-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral);
  animation: pulseDot 2s infinite ease-in-out;
}

.contact-subtext {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 24px 28px;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contact-type {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.contact-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.contact-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.contact-arrow svg {
  width: 18px;
  height: 18px;
}

/* Card Hover Accents */
.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.contact-card:hover .contact-arrow {
  transform: translateX(4px) translateY(-4px);
}

.card-email:hover {
  border-color: rgba(252, 122, 88, 0.4);
  box-shadow: 0 12px 30px rgba(252, 122, 88, 0.25);
}

.card-email:hover .contact-icon {
  background: var(--coral);
  color: #040c0e;
}

.card-email:hover .contact-arrow {
  color: var(--coral);
}

/* Grouped Social Card */
.card-social-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: default;
}

.card-social-group:hover {
  border-color: rgba(244, 201, 106, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.social-group-header {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.social-icon-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Floating Tooltip */
.social-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 10px;
  border-radius: 6px;
  background: #0d1318;
  border: 1px solid var(--glass-border-hover);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  z-index: 20;
}

.social-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #0d1318 transparent transparent transparent;
}

.social-btn:hover .social-tooltip,
.social-btn:focus-visible .social-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.social-btn.btn-fb:hover {
  background: #1877F2;
  color: #ffffff;
  border-color: #1877F2;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.social-btn.btn-ig:hover {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 39, 67, 0.4);
}

.social-btn.btn-li:hover {
  background: #0A66C2;
  color: #ffffff;
  border-color: #0A66C2;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 102, 194, 0.4);
}

.social-btn.btn-x:hover {
  background: #ffffff;
  color: #040c0e;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

/* Footer Social Icon Group */
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-social-btn.link-fb:hover {
  background: #1877F2;
  color: #ffffff;
  border-color: #1877F2;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.35);
}

.footer-social-btn.link-ig:hover {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.35);
}

.footer-social-btn.link-li:hover {
  background: #0A66C2;
  color: #ffffff;
  border-color: #0A66C2;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.35);
}

.footer-social-btn.link-x:hover {
  background: #ffffff;
  color: #040c0e;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

/* ===================================================================
   Footer — Multi-Column Luxury Design
   =================================================================== */
footer {
  background: #010405;
  color: var(--text-muted);
  padding: 60px 0 32px;
  position: relative;
  z-index: 2;
}

.footer-divider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--coral) 30%, var(--gold) 70%, transparent 95%);
  opacity: 0.6;
}

.footer-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (min-width: 901px) {
  .footer-col:not(:last-child) {
    position: relative;
  }
  .footer-col:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 5%;
    right: -24px;
    height: 90%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  }
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
  color: var(--text-secondary);
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

/* ===================================================================
   Responsive Breakpoints
   =================================================================== */
@media (max-width: 900px) {
  .footer-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {

  .wrap {
    padding: 0 20px;
  }

  header .wrap {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  section {
    padding: 80px 0;
  }

  .kk {
    gap: 12px;
  }

  .kk-card {
    padding: 24px 28px;
  }

  .kk-result {
    padding: 16px 26px;
    font-size: 1.7rem;
  }

  .contact-panel {
    padding: 36px 20px;
  }

  .card-social-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .social-icon-group {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .social-btn {
    width: 44px;
    height: 44px;
    padding: 0;
  }

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