/* 
  beynworks Design System & Stylesheet
  Aesthetics: Futuristic Glassmorphism, Neon Neural Glow, Deep Space Shadows
  Typography: Plus Jakarta Sans
*/

/* -------------------------------------------------------------
   1. Design System & CSS Variables
------------------------------------------------------------- */
:root {
  /* Fonts */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Color Palette (Huşu Focused) */
  --bg-dark: hsl(175, 25%, 5%);
  --bg-darker: hsl(175, 30%, 3%);
  --card-bg: hsla(175, 15%, 10%, 0.6);
  --card-border: hsla(175, 15%, 25%, 0.25);
  --card-border-glow: hsla(175, 85%, 45%, 0.2);

  --text-white: hsl(42, 20%, 98%); /* Slightly warmer white */
  --text-gray: hsl(175, 10%, 75%);
  --text-muted: hsl(175, 8%, 55%);

  /* Accent Colors */
  --color-primary: hsl(175, 75%, 45%);       /* Huşu Serene Teal */
  --color-primary-rgb: 20, 184, 166;
  --color-secondary: hsl(42, 85%, 55%);      /* Huşu Gold/Cream */
  --color-teal: hsl(175, 75%, 45%);          
  --color-teal-glow: hsla(175, 75%, 45%, 0.4);
  --color-gold: hsl(42, 85%, 55%);           
  --color-gold-glow: hsla(42, 85%, 55%, 0.4);

  /* Gradients */
  --gradient-main: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-teal: linear-gradient(135deg, hsl(175, 75%, 45%), hsl(150, 75%, 45%));
  --gradient-gold: linear-gradient(135deg, hsl(42, 85%, 55%), hsl(25, 85%, 50%));
  --gradient-dark: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));

  /* Shadows & Layout */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(124, 58, 237, 0.25);
  --shadow-teal: 0 0 24px rgba(20, 184, 166, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* -------------------------------------------------------------
   3. Visual Elements & Floating Glowing Blobs
------------------------------------------------------------- */
.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  animation: blobFloat 25s infinite alternate ease-in-out;
}

.blob-1 {
  background: radial-gradient(circle, var(--color-primary), transparent 60%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  background: radial-gradient(circle, var(--color-secondary), transparent 60%);
  top: 50%;
  left: -200px;
  animation-delay: -5s;
  width: 600px;
  height: 600px;
}

.blob-3 {
  background: radial-gradient(circle, var(--color-teal), transparent 60%);
  bottom: -150px;
  right: -150px;
  animation-delay: -10s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, -50px) scale(1.15);
  }
  100% {
    transform: translate(-40px, 80px) scale(0.9);
  }
}

/* -------------------------------------------------------------
   4. Glassmorphism Helper Classes
------------------------------------------------------------- */
.glass {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255,255,255,0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

/* -------------------------------------------------------------
   5. Reusable Typography & Custom Buttons
------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.glow-text {
  text-shadow: 0 0 30px rgba(124, 58, 237, 0.35);
}

.section-header {
  margin-bottom: 60px;
}

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

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

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 650px;
  margin: 0 auto;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-main);
  color: var(--text-white);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  transition: var(--transition-normal);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.45);
}

.btn-primary:hover::before {
  opacity: 1;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-white);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  background: hsla(240, 15%, 20%, 0.7);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.btn-secondary:active {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-teal {
  background: var(--gradient-teal);
  box-shadow: var(--shadow-teal);
}
.btn-teal::before {
  background: linear-gradient(135deg, hsl(150, 75%, 45%), hsl(175, 75%, 45%));
}
.btn-teal:hover {
  box-shadow: 0 15px 30px rgba(20, 184, 166, 0.4);
}

.btn-gold {
  background: var(--gradient-gold);
  box-shadow: var(--shadow-gold);
}
.btn-gold::before {
  background: linear-gradient(135deg, hsl(25, 85%, 50%), hsl(42, 85%, 55%));
}
.btn-gold:hover {
  box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4);
}

.w-full {
  width: 100%;
}

/* Helper Text Colors */
.text-indigo { color: hsl(260, 85%, 65%); }
.text-pink { color: var(--color-secondary); }
.text-teal { color: hsl(175, 75%, 50%); }
.text-gold { color: var(--color-gold); }

/* -------------------------------------------------------------
   6. Header Section (Main Header)
------------------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
}

.main-header.scrolled {
  height: 70px;
  background: hsla(240, 25%, 4%, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.header-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}

.brand-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-bounce);
}

.logo:hover .brand-logo {
  transform: scale(1.08) rotate(2deg);
}

.logo-text {
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  font-weight: 800;
  color: var(--text-white);
  transition: var(--transition-normal);
}

.logo:hover .logo-text {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.nav-menu {
  display: flex;
  align-items: center;
}

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

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

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

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

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

.nav-link.active {
  color: var(--text-white);
  font-weight: 600;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  z-index: 1010;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* -------------------------------------------------------------
   7. Hero Section with Particles Canvas
------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.synapse-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.badge {
  background: hsla(260, 85%, 60%, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: hsl(260, 85%, 75%);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 10;
}

.mouse-scroll {
  display: block;
  width: 28px;
  height: 48px;
  border: 2px solid var(--text-muted);
  border-radius: 100px;
  position: relative;
}

.mouse-wheel {
  display: block;
  width: 4px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 100px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseWheelMove 2s infinite ease-in-out;
}

@keyframes mouseWheelMove {
  0% {
    top: 8px;
    opacity: 1;
  }
  50% {
    top: 24px;
    opacity: 0;
  }
  100% {
    top: 8px;
    opacity: 1;
  }
}

/* Hero Logo Showcase (Centered Shield) */
.hero-logo-showcase {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-brand-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 250px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  animation: heroLogoFloat 6s ease-in-out infinite;
  transition: var(--transition-bounce);
}

.hero-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.hero-brand-shield:hover {
  transform: scale(1.05) rotate(2deg);
}

.hero-brand-shield:hover .hero-brand-logo {
  transform: scale(1.05);
}

@keyframes heroLogoFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Animations */
.animate-fade-in {
  animation: fadeInUp 1s forwards ease-out;
}
.animate-slide-up {
  animation: fadeInUp 1s forwards ease-out 0.2s;
  opacity: 0;
}
.animate-slide-up-delayed {
  animation: fadeInUp 1s forwards ease-out 0.4s;
  opacity: 0;
}
.animate-fade-in-delayed {
  animation: fadeInUp 1s forwards ease-out 0.6s;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* -------------------------------------------------------------
   8. Studio Pillars (About Section)
------------------------------------------------------------- */
.studio-section {
  padding: 120px 0;
  position: relative;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pillar-card {
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition-bounce), border-color var(--transition-normal);
  cursor: default;
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-border-glow);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  background: hsla(240, 15%, 15%, 0.8);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.pillar-card:hover .pillar-icon {
  background: var(--gradient-main);
  color: var(--text-white);
  border-color: transparent;
  transform: rotate(6deg) scale(1.05);
}

.pillar-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pillar-text {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* -------------------------------------------------------------
   9. Projects Section & Smartphone Emulator
------------------------------------------------------------- */
.projects-section {
  padding: 120px 0;
  background-color: var(--bg-darker);
  position: relative;
}

.project-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.project-showcase:last-child {
  margin-bottom: 0;
}

.project-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.project-reverse .showcase-content {
  order: 2;
}
.project-reverse .showcase-visual {
  order: 1;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.text-teal-bg {
  background: rgba(20, 184, 166, 0.1);
  color: hsl(175, 75%, 45%);
  border: 1px solid rgba(20, 184, 166, 0.2);
}
.dot-teal { background-color: hsl(175, 75%, 50%); }

.text-gold-bg {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.dot-gold { background-color: var(--color-gold); }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px currentColor;
}

.project-name {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.1;
}

.project-subname {
  font-weight: 500;
  display: block;
  font-size: 1.8rem;
  color: var(--color-teal);
  letter-spacing: -0.5px;
  margin-top: 4px;
}

.project-desc {
  font-size: 1.05rem;
  color: var(--text-gray);
  margin-bottom: 32px;
  line-height: 1.6;
}

.project-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.project-features li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.15);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.feature-text strong {
  color: var(--text-white);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.project-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
}

.app-status-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 200px;
}

/* SMARTPHONE SIMULATOR */
.showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 120px;
}

.phone-simulator {
  position: relative;
  width: 290px;
  height: 590px;
  perspective: 1000px;
}

.phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #0d0d0f;
  border: 10px solid #242429;
  border-radius: 40px;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.8),
    inset 0 0 4px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* App buttons on phone frame edge */
.phone-frame::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 100px;
  width: 3px;
  height: 40px;
  background: #111;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 40px 0 #111; /* volume buttons */
}

.phone-frame::after {
  content: '';
  position: absolute;
  right: -13px;
  top: 120px;
  width: 3px;
  height: 55px;
  background: #111;
  border-radius: 0 3px 3px 0; /* power button */
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background-color: #242429;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch::after {
  content: '';
  width: 35px;
  height: 4px;
  background: #111;
  border-radius: 2px;
  margin-top: -6px;
}

.phone-screen {
  flex: 1;
  background-color: var(--bg-darker);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Premium Glass Glare Overlay */
.phone-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0) 70%,
    transparent 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 99;
  transition: left 0.75s ease-out;
}

/* On simulator hover, sweep the glare across the screen */
.phone-simulator:hover .phone-screen::after {
  left: 150%;
}

/* App Status Bar */
.screen-status-bar {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 0.7rem;
  color: var(--text-white);
  z-index: 90;
  background: transparent;
}

.status-icons {
  display: flex;
  gap: 6px;
}

/* App navigation bar at bottom */
.screen-navigation-bar {
  height: 54px;
  background-color: hsla(240, 15%, 8%, 0.95);
  border-top: 1px solid var(--card-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 90;
}

/* SCREENSHOT & CAROUSEL INTEGRATION */
.screenshot-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.app-screenshot {
  width: 100%;
  height: 114%;
  object-fit: cover;
  object-position: center top;
  transform: translateY(-6.5%);
  transition: transform var(--transition-normal);
}

/* Align actual app screenshot within simulated screen */
#app-page-vakitler .app-screenshot {
  height: 114%;
  transform: translateY(-6.5%);
}

/* Gallery slider container inside the phone frame */
.gallery-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 114%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  transform: translateY(-6.5%) scale(0.96);
  pointer-events: none;
  object-fit: cover;
  object-position: center top;
}

.gallery-slide.active {
  opacity: 1;
  z-index: 2;
  transform: translateY(-6.5%) scale(1);
  pointer-events: auto;
}

.gallery-caption {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  background: rgba(13, 13, 15, 0.88);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  z-index: 10;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--color-teal);
  animation: slideCaptionUp 0.3s ease-out;
  pointer-events: none;
}

@keyframes slideCaptionUp {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.gallery-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(13, 13, 15, 0.75);
  border: 1px solid var(--card-border);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  z-index: 10;
  transition: var(--transition-fast);
  cursor: pointer;
}

.gallery-nav:hover {
  background: var(--gradient-teal);
  border-color: transparent;
  color: var(--bg-darker);
}

.gallery-nav.prev {
  left: 8px;
}

.gallery-nav.next {
  right: 8px;
}

.screen-navigation-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.screen-navigation-bar button i {
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.screen-navigation-bar button:hover {
  color: var(--text-white);
}

.screen-navigation-bar button.nav-tabactive {
  color: var(--color-teal);
}

.screen-navigation-bar button.nav-tabactive i {
  transform: translateY(-2px);
  text-shadow: 0 0 10px var(--color-teal-glow);
}

/* Screen Page Switcher */
.app-page {
  flex: 1;
  display: none;
  flex-direction: column;
  padding: 12px 16px 8px;
  animation: pageFadeIn 0.3s ease-out forwards;
}

.app-page.active {
  display: flex;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.app-title {
  font-size: 1.05rem;
  font-weight: 800;
}

/* Simulated App Screen 1: Vakitler */
.app-next-prayer-card {
  background: linear-gradient(135deg, hsla(175, 75%, 45%, 0.15), hsla(175, 75%, 25%, 0.05));
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  margin-bottom: 12px;
}

.prayer-countdown-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.prayer-countdown-time {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-shadow: 0 0 15px rgba(20, 184, 166, 0.3);
}

.prayer-location {
  font-size: 0.65rem;
  color: var(--color-teal);
  font-weight: 600;
}

.prayer-times-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.prayer-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: hsla(240, 15%, 8%, 0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.prayer-time-row.active {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.05);
}

.prayer-name {
  font-weight: 500;
  color: var(--text-gray);
}
.prayer-time-row.active .prayer-name {
  color: var(--text-white);
  font-weight: 700;
}

.prayer-hour {
  font-weight: 600;
  color: var(--text-white);
}

.active-badge {
  font-size: 0.55rem;
  background-color: var(--color-teal);
  color: var(--bg-darker);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  box-shadow: 0 0 8px var(--color-teal-glow);
}

/* Simulated App Screen 2: Zikirmatik */
.global-badge {
  font-size: 0.55rem;
  background-color: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--color-teal);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.global-badge i {
  animation: pulseOpacity 1.5s infinite alternate ease-in-out;
}

@keyframes pulseOpacity {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.tasbih-display {
  background: hsla(240, 15%, 8%, 0.8);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  margin-bottom: 14px;
}

.tasbih-target-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.tasbih-main-count {
  font-size: 2rem;
  font-weight: 800;
  font-family: monospace;
  color: var(--text-white);
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.tasbih-target-desc {
  font-size: 0.55rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.tasbih-clicker-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tasbih-button {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, rgba(20, 184, 166, 0.02) 80%);
  border: 1px solid rgba(20, 184, 166, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-fast);
  box-shadow: 0 0 25px rgba(20, 184, 166, 0.1);
}

.tasbih-button::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(20, 184, 166, 0.2);
  animation: spinSlow 15s linear infinite;
}

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

.tasbih-button-inner {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--gradient-teal);
  border: 2px solid var(--bg-darker);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bg-darker);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.tasbih-button-inner i {
  font-size: 1.6rem;
  margin-bottom: 4px;
  transition: var(--transition-fast);
}

.tasbih-button-inner span {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Tap trigger active animation */
.tasbih-button:active {
  transform: scale(0.94);
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.05);
}

.tasbih-button:active .tasbih-button-inner {
  background: var(--text-white);
  box-shadow: inset 0 3px 5px rgba(0,0,0,0.2);
}

.tasbih-button-scale-up {
  animation: tasbihBounce 0.12s ease-out;
}

@keyframes tasbihBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.tasbih-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
  padding-top: 10px;
}

.tasbih-action-btn {
  background: hsla(240, 15%, 8%, 0.8);
  border: 1px solid var(--card-border);
  color: var(--text-gray);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.tasbih-action-btn:hover {
  border-color: var(--color-teal);
  color: var(--text-white);
}

.tasbih-user-session-text {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.tasbih-user-session-text span {
  color: var(--color-teal);
  font-weight: 700;
}

/* Simulated App Screen 3: Kıble */
.compass-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.compass-dial {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: hsla(240, 15%, 8%, 0.8);
  border: 2px solid var(--card-border);
  position: relative;
  box-shadow: 
    0 10px 25px rgba(0,0,0,0.5),
    inset 0 0 15px rgba(255,255,255,0.02);
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  transform: rotate(0deg);
}

.compass-dial::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

.compass-direction {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.compass-direction.north { top: 6px; left: 50%; transform: translateX(-50%); color: var(--color-teal); }
.compass-direction.east { right: 8px; top: 50%; transform: translateY(-50%); }
.compass-direction.south { bottom: 6px; left: 50%; transform: translateX(-50%); }
.compass-direction.west { left: 8px; top: 50%; transform: translateY(-50%); }

.qibla-line-arrow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 50%;
  background: linear-gradient(to top, transparent 40%, var(--color-teal) 100%);
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(128deg); /* points to Qibla */
}

.qibla-line-arrow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--color-teal);
  box-shadow: 0 5px 15px var(--color-teal-glow);
}

.kaaba-icon-container {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%) rotate(128deg);
  transform-origin: bottom center;
  width: 16px;
  height: 55px;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.kaaba-icon-container i {
  font-size: 0.75rem;
  color: var(--color-teal);
  text-shadow: 0 0 10px var(--color-teal-glow);
  transform: translateY(-8px);
}

.compass-info {
  text-align: center;
  background-color: hsla(240, 15%, 8%, 0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.compass-angle-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 2px;
}

.compass-angle-text span {
  color: var(--color-teal);
}

.compass-status {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.compass-status i {
  margin-right: 2px;
}

.phone-shadow {
  position: absolute;
  bottom: -20px;
  left: 5%;
  width: 90%;
  height: 15px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.6) 0%, transparent 70%);
  z-index: -1;
  filter: blur(5px);
}

/* TABLET PREVIEW MOCKUP (Huşu Learn) */
.tablet-simulator {
  position: relative;
  width: 420px;
  height: 290px;
  perspective: 1000px;
}

.tablet-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #0d0d0f;
  border: 8px solid #242429;
  border-radius: var(--radius-lg);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.8),
    inset 0 0 4px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
}

.tablet-screen {
  flex: 1;
  background-color: var(--bg-darker);
  display: flex;
  flex-direction: column;
  user-select: none;
}

.tablet-app-header {
  height: 38px;
  background: hsla(240, 15%, 8%, 0.95);
  border-bottom: 1px solid var(--card-border);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.tablet-logo {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tablet-logo .sub {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.65rem;
}

.tablet-badge {
  font-size: 0.6rem;
  background-color: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--color-gold);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
}

.tablet-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 95px 1fr;
}

.tablet-sidebar {
  background-color: hsla(240, 15%, 6%, 0.8);
  border-right: 1px solid var(--card-border);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item {
  padding: 6px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-item.active {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--color-gold);
}

.tablet-main {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}

.tablet-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-white);
}

.letter-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex: 1;
  margin-bottom: 8px;
}

.letter-card {
  background-color: hsla(240, 15%, 8%, 0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  position: relative;
  transition: var(--transition-fast);
}

.letter-card.active {
  border-color: var(--color-gold);
  background: rgba(245, 158, 11, 0.05);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.05);
}

.letter-card.locked {
  opacity: 0.4;
  background-color: hsla(240, 15%, 4%, 0.3);
}

.arabic-letter {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.letter-card.locked .arabic-letter {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.letter-name {
  font-size: 0.55rem;
  color: var(--text-muted);
}
.letter-card.active .letter-name {
  color: var(--color-gold);
  font-weight: 600;
}

.audio-wave {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.5rem;
  color: var(--color-gold);
  animation: pulseOpacity 1s infinite alternate;
}

.tablet-progress-card {
  background: hsla(240, 15%, 8%, 0.8);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.progress-bar-bg {
  height: 4px;
  background-color: var(--card-border);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 10px;
}

.tablet-shadow {
  position: absolute;
  bottom: -20px;
  left: 5%;
  width: 90%;
  height: 15px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.6) 0%, transparent 70%);
  z-index: -1;
  filter: blur(5px);
}

/* -------------------------------------------------------------
   10. Technology Stack Section
------------------------------------------------------------- */
.tech-section {
  padding: 120px 0;
  position: relative;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.tech-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  transition: var(--transition-bounce), border-color var(--transition-normal);
  cursor: default;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-glow);
}

.tech-icon {
  font-size: 2.8rem;
  margin-bottom: 24px;
  display: inline-block;
  transition: var(--transition-normal);
}

.tech-card:hover .tech-icon {
  transform: scale(1.15);
  text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.tech-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tech-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* -------------------------------------------------------------
   11. Contact Section & Glassmorphic Form
------------------------------------------------------------- */
.contact-section {
  padding: 120px 0;
  background-color: var(--bg-darker);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.contact-desc-text {
  font-size: 1.05rem;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.contact-method-item {
  display: flex;
  gap: 20px;
  align-items: center;
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: hsla(240, 15%, 8%, 0.8);
  border: 1px solid var(--card-border);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.method-details {
  display: flex;
  flex-direction: column;
}

.method-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-white);
  transition: var(--transition-fast);
}

.method-value:hover {
  color: var(--color-primary);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: hsla(240, 15%, 8%, 0.8);
  border: 1px solid var(--card-border);
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-normal);
}

.social-links a:hover {
  border-color: var(--color-primary);
  color: var(--text-white);
  background: var(--gradient-main);
  transform: translateY(-4px);
}

/* Glassmorphic Contact Form */
.contact-form-container {
  padding: 40px;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  background: hsla(240, 15%, 6%, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  padding: 16px 16px 16px 46px;
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

/* Floating Label Logic */
.input-wrapper label {
  position: absolute;
  left: 46px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition-normal);
  pointer-events: none;
}

.input-wrapper textarea ~ label {
  top: 24px;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition-normal);
  pointer-events: none;
}

.input-wrapper textarea ~ .input-icon {
  top: 24px;
  transform: none;
}

/* Active/Focused Inputs */
.input-wrapper input:focus,
.input-wrapper textarea:focus {
  border-color: var(--color-primary);
  background: hsla(240, 15%, 4%, 0.9);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper textarea:focus ~ .input-icon {
  color: var(--color-primary);
}

/* Floating behavior */
.input-wrapper input:focus ~ label,
.input-wrapper input:not(:placeholder-shown) ~ label {
  top: 0;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--bg-darker);
  padding: 0 6px;
  border-radius: 4px;
}

.input-wrapper textarea:focus ~ label,
.input-wrapper textarea:not(:placeholder-shown) ~ label {
  top: -6px;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--bg-darker);
  padding: 0 6px;
  border-radius: 4px;
}

/* Validation Styling */
.form-group.invalid .input-wrapper input,
.form-group.invalid .input-wrapper textarea {
  border-color: hsl(0, 85%, 60%);
}

.form-group.invalid .input-wrapper label {
  color: hsl(0, 85%, 60%);
}

.form-group.invalid .input-wrapper .input-icon {
  color: hsl(0, 85%, 60%);
}

.error-msg {
  display: none;
  font-size: 0.75rem;
  color: hsl(0, 85%, 60%);
  margin-top: 6px;
  padding-left: 4px;
  font-weight: 600;
}

.form-group.invalid .error-msg {
  display: block;
}

/* Form status feedback alerts */
.form-status {
  margin-top: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  color: hsl(150, 75%, 45%);
}

.form-status.error {
  display: block;
  color: hsl(0, 85%, 60%);
}

.form-status.loading {
  display: block;
  color: var(--color-primary);
}

.form-status.loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinSlow 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

/* -------------------------------------------------------------
   12. Footer Section
------------------------------------------------------------- */
.main-footer {
  background-color: var(--bg-darker);
  border-top: 1px solid var(--card-border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.brand-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links-group h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.footer-links-group h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-main);
}

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

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

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

.footer-contact-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-contact-info i {
  color: var(--color-primary);
  width: 20px;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 40px;
}

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

/* -------------------------------------------------------------
   13. Scroll Animation Triggers & Transitions
------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   14. Responsiveness Media Queries
------------------------------------------------------------- */

/* Tablet Layout (1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-showcase, .project-reverse {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .project-reverse .showcase-content {
    order: 1;
  }
  .project-reverse .showcase-visual {
    order: 2;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Small Tablet / Mobile Large (768px) */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .main-header {
    height: 70px;
  }
  .mobile-toggle {
    display: flex;
  }

  /* Hamburger transformations */
  .mobile-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-darker);
    border-top: 1px solid var(--card-border);
    padding: 40px;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

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

  .nav-link {
    font-size: 1.3rem;
  }

  .header-actions .btn-primary {
    display: none; /* Hide primary CTA on very small headers, navigation link will serve */
  }

  .hero-title {
    font-size: 2.6rem;
  }
  .hero-description {
    font-size: 1.1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 320px;
  }

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

  .contact-form-container {
    padding: 30px 20px;
  }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .project-name {
    font-size: 2rem;
  }
  .project-subname {
    font-size: 1.4rem;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .project-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .phone-simulator {
    width: 260px;
    height: 530px;
  }
  .tablet-simulator {
    width: 290px;
    height: 200px;
  }
  .tablet-sidebar {
    display: none; /* Hide tablet sidebar on extremely small screens */
  }
  .tablet-grid {
    grid-template-columns: 1fr;
  }
  .letter-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------------------------------
   15. Global Keyframe Animations
------------------------------------------------------------- */
@keyframes synapsePulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(124, 58, 237, 0.4));
  }
  100% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.85));
  }
}

/* -------------------------------------------------------------
   Interactive Features & Phone Simulator V2
------------------------------------------------------------- */
.interactive-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.feature-tab {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 18px 24px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--text-gray);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.feature-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition-normal);
}

.feature-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateX(8px);
}

.feature-tab.active {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(124, 58, 237, 0.1);
  transform: translateX(12px) scale(1.02);
}

.feature-tab.active::before {
  opacity: 1;
}

.feature-tab .feature-icon {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.3);
  transition: var(--transition-normal);
  background: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-tab.active .feature-icon {
  color: #fff;
  background: var(--gradient-main);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.feature-text span {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.8;
}

/* Phone Simulator V2 */
.phone-simulator-v2 {
  position: relative;
  width: 280px;
  height: 600px;
  margin: 0 auto;
  perspective: 1000px;
}

@media (min-width: 768px) {
  .phone-simulator-v2 {
    width: 320px;
    height: 680px;
  }
}

.phone-hardware-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  border-radius: 20px;
  box-shadow: 
    0 0 0 6px #1a1a1c,
    0 0 0 8px #333,
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-screen-v2 {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  border-radius: 14px;
}

.app-screen-img {
  position: absolute;
  top: -45px;
  left: 0;
  width: 100%;
  height: calc(100% + 45px);
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.03) translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.app-screen-img.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.phone-shadow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 25px;
  background: rgba(124, 58, 237, 0.15);
  filter: blur(15px);
  border-radius: 50%;
  z-index: 1;
}
.clean-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background: #0a0a0c;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.status-icons {
  display: flex;
  gap: 6px;
  font-size: 0.75rem;
}

/* -------------------------------------------------------------
   Store Badges (Premium)
------------------------------------------------------------- */
.store-badges {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.store-badge-btn {
  display: flex;
  align-items: center;
  background-color: hsla(175, 15%, 15%, 0.8);
  color: var(--text-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}
.store-badge-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.store-badge-btn i {
  font-size: 2.2rem;
  margin-right: 1rem;
}
.store-badge-btn .badge-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.store-badge-btn .small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  opacity: 0.7;
  line-height: 1;
  margin-bottom: 3px;
}
.store-badge-btn .big {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
