/* ============================================
   FeGa Studio - Modern Design System
   Bootstrap 5.3 Override & Custom Styles
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================
   Design Tokens — Light Mode (Default)
   ============================================ */
:root {
  /* Colors — Light */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.6);
  --bg-glass-border: rgba(0, 0, 0, 0.08);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-primary: #6C63FF;
  --accent-secondary: #0ea5e9;
  --accent-tertiary: #A855F7;
  --accent-gradient: linear-gradient(135deg, #6C63FF 0%, #0ea5e9 50%, #A855F7 100%);
  --accent-gradient-reverse: linear-gradient(135deg, #0ea5e9 0%, #6C63FF 50%, #A855F7 100%);

  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Glass — Light */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --glass-blur: blur(20px);

  /* Navbar scrolled bg */
  --navbar-scrolled-bg: rgba(248, 250, 252, 0.85);
  --navbar-scrolled-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);

  /* Code block */
  --code-bg: #1e293b;
  --code-header-bg: rgba(255, 255, 255, 0.04);
  --code-border: rgba(255, 255, 255, 0.08);

  /* Particle color */
  --particle-color: 108, 99, 255;

  /* Hamburger icon stroke */
  --hamburger-stroke: rgba(15, 23, 42, 0.8);

  /* Offcanvas close btn */
  --btn-close-invert: 0;

  /* Spacing */
  --section-padding: 100px 0;
  --navbar-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ============================================
   Design Tokens — Dark Mode
   ============================================ */
[data-theme="dark"] {
  --bg-primary: #0a0f1c;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-secondary: #00D4FF;

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  --navbar-scrolled-bg: rgba(10, 15, 28, 0.85);
  --navbar-scrolled-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);

  --code-bg: rgba(17, 24, 39, 0.9);
  --code-header-bg: rgba(255, 255, 255, 0.03);
  --code-border: rgba(255, 255, 255, 0.08);

  --particle-color: 108, 99, 255;

  --hamburger-stroke: rgba(241, 245, 249, 0.8);

  --btn-close-invert: 1;
}

/* Theme transition */
body,
body *:not(canvas):not(script):not(style) {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ============================================
   Theme Toggle Button
   ============================================ */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(108, 99, 255, 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Show/hide icons based on theme */
.theme-toggle .bi-moon-fill { display: inline-block; }
.theme-toggle .bi-sun-fill  { display: none; }

[data-theme="dark"] .theme-toggle .bi-moon-fill { display: none; }
[data-theme="dark"] .theme-toggle .bi-sun-fill  { display: inline-block; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(108, 99, 255, 0.3);
  color: #fff;
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

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

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ============================================
   Navbar
   ============================================ */
.navbar-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 20px 0;
  transition: var(--transition-base);
  background: transparent;
}

.navbar-main.scrolled {
  padding: 10px 0;
  background: var(--navbar-scrolled-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--navbar-scrolled-shadow);
}

.navbar-brand-custom {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.navbar-brand-custom:hover {
  opacity: 0.9;
}

.nav-link-custom {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 18px !important;
  border-radius: var(--radius-full);
  transition: var(--transition-base) !important;
  position: relative;
}

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

.nav-link-custom.active {
  background: rgba(108, 99, 255, 0.15);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  transform: translateX(-50%);
}

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

.navbar-toggler-custom {
  border: 1px solid var(--glass-border) !important;
  padding: 6px 10px;
}

.navbar-toggler-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15,23,42,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

[data-theme="dark"] .navbar-toggler-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(241,245,249,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-cta-btn {
  background: var(--accent-gradient) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-full) !important;
  transition: var(--transition-base) !important;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4) !important;
}

/* Mobile Offcanvas */
.offcanvas {
  background: var(--bg-primary) !important;
  border-left: 1px solid var(--glass-border) !important;
}

.offcanvas .nav-link-custom {
  font-size: 1.1rem;
  padding: 12px 20px !important;
}

.btn-close-white {
  filter: invert(var(--btn-close-invert));
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--navbar-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108, 99, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}

[data-theme="dark"] .hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--accent-secondary);
  font-weight: 500;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge i {
  font-size: 0.75rem;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

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

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 550px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-primary-gradient {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  transition: var(--transition-base);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
  color: #fff;
}

.btn-outline-glass {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-weight: 500;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(5px);
}

.btn-outline-glass:hover {
  background: var(--glass-bg);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 4rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

.hero-stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-lg);
  padding: 0;
  width: 100%;
  max-width: 480px;
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--code-header-bg);
  border-bottom: 1px solid var(--code-border);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

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

.code-filename {
  margin-left: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.code-body {
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 2;
  color: #94a3b8;
}

.code-body .code-keyword { color: #C084FC; }
.code-body .code-function { color: #60A5FA; }
.code-body .code-string { color: #34D399; }
.code-body .code-comment { color: var(--text-muted); font-style: italic; }
.code-body .code-variable { color: #F472B6; }
.code-body .code-bracket { color: #FBBF24; }
.code-body .code-number { color: #FB923C; }

.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background-color: var(--accent-primary);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* Floating Elements */
.floating-badge {
  position: absolute;
  padding: 10px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--glass-shadow);
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}

.floating-badge.badge-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.floating-badge.badge-2 {
  bottom: 15%;
  left: -5%;
  animation-delay: 2s;
}

.floating-badge .badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-icon.bg-purple { background: rgba(108, 99, 255, 0.2); color: var(--accent-primary); }
.badge-icon.bg-cyan { background: rgba(0, 212, 255, 0.2); color: var(--accent-secondary); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ============================================
   Section Common
   ============================================ */
.section-padding {
  padding: var(--section-padding);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

.section-description.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Services Section
   ============================================ */
.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition-base);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-icon.icon-mobile { background: rgba(108, 99, 255, 0.15); color: var(--accent-primary); }
.service-icon.icon-web { background: rgba(0, 212, 255, 0.15); color: var(--accent-secondary); }
.service-icon.icon-backend { background: rgba(168, 85, 247, 0.15); color: var(--accent-tertiary); }
.service-icon.icon-design { background: rgba(16, 185, 129, 0.15); color: var(--success); }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

/* ============================================
   Projects Section
   ============================================ */
.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-card-image.water-bg {
  background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 50%, #06b6d4 100%);
}

.project-card-image.coming-soon-bg {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
}

.project-card-image .project-icon {
  font-size: 4rem;
  z-index: 1;
}

.project-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(108, 99, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.project-card-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-card-body p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.25rem;
}

.project-tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.project-card-footer {
  padding: 0 28px 28px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-base);
}

.project-link:hover {
  color: var(--accent-secondary);
  gap: 12px;
}

.coming-soon-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================
   Technologies Section
   ============================================ */
.tech-section {
  position: relative;
  overflow: hidden;
}

.tech-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(108, 99, 255, 0.05) 0%, transparent 70%);
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  text-align: center;
}

.tech-item:hover {
  transform: translateY(-5px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-item i,
.tech-item .tech-emoji {
  font-size: 2.5rem;
  margin-bottom: 4px;
}

.tech-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-card {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(108, 99, 255, 0.08) 0%, transparent 50%);
  animation: cta-pulse 8s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.cta-card h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
}

.footer-brand {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 350px;
  line-height: 1.7;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

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

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

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-base);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: rgba(108, 99, 255, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   About Page
   ============================================ */
.page-header {
  padding: calc(var(--navbar-height) + 60px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(108, 99, 255, 0.12) 0%, transparent 60%);
}

.team-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-base);
  height: 100%;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-photo-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 3px solid transparent;
  background-image: var(--accent-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  padding: 3px;
  position: relative;
}

.team-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-photo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.team-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(108, 99, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.team-expertise {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.team-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.team-portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-base);
  text-decoration: none;
}

.team-portfolio-btn:hover {
  background: rgba(108, 99, 255, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Vision & Mission Cards */
.vm-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition-base);
  height: 100%;
}

.vm-card:hover {
  transform: translateY(-5px);
  border-color: rgba(108, 99, 255, 0.3);
}

.vm-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.vm-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.vm-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================================
   Project Detail Page
   ============================================ */
.project-detail-hero {
  padding: calc(var(--navbar-height) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}

.project-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 212, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
}

.project-detail-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.project-detail-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.project-detail-hero .hero-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 550px;
  line-height: 1.8;
}

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  height: 560px;
  background: #1a1a2e;
  border-radius: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: #0a0f1c;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100% - 28px);
  background: linear-gradient(180deg, #0c4a6e 0%, #0e7490 100%);
}

.phone-screen .water-drop {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.water-progress-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1rem;
}

.water-progress-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: var(--accent-secondary);
  border-right-color: var(--accent-secondary);
  animation: spin-slow 3s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.water-progress-text {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.phone-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Feature Cards */
.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-base);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* Store Button */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
  min-width: 200px;
}

.store-btn:hover {
  border-color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.1);
  color: var(--text-primary);
  transform: translateY(-3px);
}

.store-btn .store-icon {
  font-size: 2rem;
}

.store-btn .store-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-btn .store-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ============================================
   Privacy Policy Pages
   ============================================ */
.privacy-page {
  padding: calc(var(--navbar-height) + 60px) 0 80px;
  min-height: 100vh;
}

.privacy-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.privacy-card h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.privacy-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 2rem;
  color: var(--text-primary);
}

.privacy-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(108, 99, 255, 0.2); }
  50% { box-shadow: 0 0 40px rgba(108, 99, 255, 0.4); }
}

/* Typing cursor for code block */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent-primary);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

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

/* ============================================
   Back Button
   ============================================ */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-base);
  text-decoration: none;
  margin-bottom: 2rem;
  position: relative;
  z-index: 5;
}

.back-button:hover {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.1);
  border-color: var(--accent-primary);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
  .hero-stats {
    gap: 24px;
  }

  .hero-stat-number {
    font-size: 2rem;
  }

  .hero-visual {
    margin-top: 3rem;
  }

  .floating-badge {
    display: none;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .privacy-card {
    padding: 32px 24px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-padding: 60px 0;
    --navbar-height: 70px;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .hero-stats {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
    margin-top: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }
}

@media (max-width: 575.98px) {
  .hero-stats {
    gap: 20px;
  }

  .hero-stat-number {
    font-size: 1.75rem;
  }

  .store-btn {
    min-width: unset;
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Scrolling Gallery (Marquee)
   ============================================ */
.scrolling-gallery {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 20px 0;
  position: relative;
  /* Add fade effect on edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.scrolling-track {
  display: inline-flex;
  gap: 30px;
  animation: scrollGallery 25s linear infinite;
}

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

.scrolling-item {
  width: 250px;
  flex-shrink: 0;
}

.scrolling-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease;
}

.scrolling-item img:hover {
  transform: scale(1.05);
}

@keyframes scrollGallery {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate by exactly half since we doubled the items. 
       Calculation: 50% of the track width + half the gap distance 
       Actually with flex and inline-flex, duplicating items exactly doubles width.
       So -50% gets us precisely back to the start state if the gap is applied everywhere.
       Wait, gap is applied between all items. 
       Total items: 10. Gaps: 9.
       If we move -50%, we miss half a gap. 
       Let's use calc(-50% - 15px) */
    transform: translateX(calc(-50% - 15px));
  }
}

@media (max-width: 767.98px) {
  .scrolling-item {
    width: 180px;
  }
}

/* ============================================
   Projects Marquee
   ============================================ */
.projects-marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 20px 0;
  position: relative;
  /* Add fade effect on edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.projects-marquee-track {
  display: inline-flex;
  gap: 30px;
  /* Slower scroll for cards since they have more text */
  animation: scrollGallery 45s linear infinite;
}

.projects-marquee-track:hover {
  animation-play-state: paused;
}

.project-marquee-item {
  width: 350px;
  flex-shrink: 0;
  white-space: normal; /* allow text inside cards to wrap */
  display: flex;
}

@media (max-width: 767.98px) {
  .project-marquee-item {
    width: 280px;
  }
}
