/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Color Variables & Themes */
:root {
  /* Default: Dark Theme */
  --bg-color: hsl(222, 47%, 6%);
  --bg-gradient: radial-gradient(circle at top, hsl(222, 47%, 12%) 0%, hsl(222, 47%, 6%) 100%);
  --card-bg: rgba(13, 20, 35, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: hsl(210, 40%, 98%);
  --text-muted: hsl(215, 20%, 65%);
  --primary: hsl(250, 85%, 65%);
  --primary-hover: hsl(250, 85%, 70%);
  --primary-glow: rgba(99, 102, 241, 0.35);
  --secondary: hsl(190, 90%, 50%);
  --secondary-glow: rgba(6, 182, 212, 0.25);
  --accent: hsl(325, 90%, 60%);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(13, 20, 35, 0.75);
}

[data-theme="light"] {
  --bg-color: hsl(220, 33%, 97%);
  --bg-gradient: linear-gradient(180deg, hsl(220, 33%, 95%) 0%, hsl(220, 33%, 97%) 100%);
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(0, 0, 0, 0.08);
  --text-main: hsl(222, 47%, 12%);
  --text-muted: hsl(215, 16%, 45%);
  --primary: hsl(250, 80%, 55%);
  --primary-hover: hsl(250, 80%, 48%);
  --primary-glow: rgba(99, 102, 241, 0.15);
  --secondary: hsl(190, 85%, 40%);
  --secondary-glow: rgba(6, 182, 212, 0.15);
  --accent: hsl(325, 80%, 50%);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.12);
  --header-bg: rgba(255, 255, 255, 0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo img {
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:not(.btn):hover {
  color: var(--text-main);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Selector & Switcher Styling */
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrapper svg {
  position: absolute;
  right: 12px;
  pointer-events: none;
  stroke: var(--text-muted);
  width: 14px;
  height: 14px;
}

.lang-select {
  appearance: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.lang-select:hover {
  border-color: var(--text-muted);
}

.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Hide light/dark icons accordingly */
[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}
html:not([data-theme="light"]) .theme-toggle .moon-icon {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: var(--card-border);
  transform: translateY(-2px);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--primary);
  animation: float 4s ease-in-out infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--secondary-glow);
}

.hero h1 {
  font-size: 64px;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

/* Interactive Showcase Mockup */
.mockup-container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

.mockup-container:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--card-border);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f56;
}

.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #27c93f; }

.mockup-address {
  margin-left: 24px;
  background: rgba(0, 0, 0, 0.1);
  padding: 4px 16px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  width: 300px;
  text-align: left;
}

.mockup-screen {
  position: relative;
  background: #000;
  border-radius: 0 0 12px 12px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

/* Features Grid Section */
.features {
  padding: 100px 0;
  position: relative;
}

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

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(99, 102, 241, 0.2);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  flex-grow: 1;
}

/* Interactive Showcase Section */
.showcase {
  padding: 100px 0;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.showcase-display {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.showcase-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.showcase-text h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.showcase-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 15px;
}

.showcase-bullets {
  list-style: none;
}

.showcase-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}

.showcase-bullets li svg {
  margin-top: 3px;
  flex-shrink: 0;
  stroke: var(--secondary);
}

.showcase-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #000;
  aspect-ratio: 16 / 10;
}

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

/* About Developer Section */
.about {
  padding: 100px 0;
  position: relative;
}

.about-card {
  max-width: 850px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.about-card::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.about-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card-border);
  box-shadow: var(--shadow);
  flex-shrink: 0;
  transition: var(--transition);
}

.about-card:hover .about-img {
  border-color: var(--primary);
  transform: scale(1.05);
}

.about-info {
  flex-grow: 1;
}

.about-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.about-info h3 {
  font-size: 32px;
  margin-bottom: 4px;
}

.about-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-subtitle svg {
  stroke: var(--text-muted);
}

.about-info p {
  font-size: 15px;
  margin-bottom: 24px;
  color: var(--text-muted);
}

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

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  transition: var(--transition);
}

.about-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Call To Action Banner Section */
.cta-banner {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.cta-banner-content {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 24px;
  padding: 60px 40px;
  color: white;
  box-shadow: 0 20px 50px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.cta-banner-content h2 {
  font-size: 42px;
  margin-bottom: 16px;
}

.cta-banner-content p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.cta-banner-content .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-banner-content .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-hover);
}

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-text {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-logo {
  font-size: 20px;
}

/* Keyframes animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 48px;
  }
  
  .showcase-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .about-card {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }
  
  .about-img {
    margin: 0 auto;
  }

  .about-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-header h2 {
    font-size: 32px;
  }
  
  .cta-banner-content h2 {
    font-size: 32px;
  }

  .cta-banner-content {
    padding: 40px 24px;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto 40px;
  }
}
