/* ==========================================================================
   Asahi Tech - Design System & Modern Cybernetic Theme
   Domain: https://asahitech.in/ | Contact: info@asahitech.in
   ========================================================================== */

/* 1. Design Tokens & CSS Variables */
:root {
  /* Color Palette */
  --bg-dark: #0B0F19;
  --bg-darker: #06080F;
  --bg-card: rgba(22, 31, 51, 0.7);
  --bg-card-hover: rgba(30, 42, 69, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  
  --primary-cyan: #00F2FE;
  --primary-indigo: #4FACFE;
  --primary-blue: #2563EB;
  
  --accent-gold: #FFB703; /* Asahi - Rising Sun Gold */
  --accent-gold-glow: rgba(255, 183, 3, 0.35);
  --accent-emerald: #10B981;
  --accent-rose: #F43F5E;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  --border-gold-glow: rgba(255, 183, 3, 0.4);
  
  /* Gradients */
  --grad-hero: linear-gradient(135deg, #00F2FE 0%, #4FACFE 50%, #FFB703 100%);
  --grad-primary: linear-gradient(135deg, #00F2FE 0%, #2563EB 100%);
  --grad-gold: linear-gradient(135deg, #FFB703 0%, #FB8500 100%);
  --grad-dark-card: linear-gradient(180deg, rgba(22, 31, 51, 0.8) 0%, rgba(11, 15, 25, 0.9) 100%);
  --grad-cyan-glow: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
  --grad-gold-glow: radial-gradient(circle, rgba(255, 183, 3, 0.12) 0%, transparent 70%);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Shadows & Glows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --glow-cyan: 0 0 20px rgba(0, 242, 254, 0.35);
  --glow-gold: 0 0 20px rgba(255, 183, 3, 0.4);
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  background: var(--bg-dark);
  position: relative;
  min-height: 100vh;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-cyan);
}

/* Background Particle Canvas & Glow Effects */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.bg-ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.4;
}

.bg-ambient-glow-1 {
  top: -100px;
  right: -100px;
  background: var(--grad-cyan-glow);
}

.bg-ambient-glow-2 {
  bottom: 10%;
  left: -150px;
  background: var(--grad-gold-glow);
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

.text-cyan {
  color: var(--primary-cyan);
}

.text-gold {
  color: var(--accent-gold);
}

.text-muted {
  color: var(--text-muted);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-tag.tag-gold {
  background: rgba(255, 183, 3, 0.1);
  border-color: var(--border-gold-glow);
  color: var(--accent-gold);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
}

/* 3. Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 42px;
  width: auto;
  border-radius: var(--radius-sm);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.brand-title span {
  color: var(--accent-gold);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-primary);
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
  color: #000;
}

.btn-gold {
  background: var(--grad-gold);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
  color: #000;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

/* Mobile Hamburger Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* 4. Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-badges {
  display: flex;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.hero-badge-item {
  display: flex;
  flex-direction: column;
}

.hero-badge-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font-code);
}

.hero-badge-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Media / Preview Visual */
.hero-visual {
  position: relative;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.hero-visual-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-visual-card:hover img {
  transform: scale(1.03);
}

.hero-floating-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  padding: 16px 20px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 5. Services Grid Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-cyan);
  margin-bottom: 24px;
}

.service-card.gold-card .service-icon {
  background: rgba(255, 183, 3, 0.1);
  border-color: var(--border-gold-glow);
  color: var(--accent-gold);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.service-features li::before {
  content: '✓';
  color: var(--primary-cyan);
  font-weight: bold;
}

/* 6. Protocol & Tech Specs */
.tech-banner {
  margin-top: 60px;
  padding: 40px;
  text-align: center;
}

.protocol-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.protocol-pill {
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--primary-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.protocol-pill span {
  color: var(--accent-gold);
}

/* 7. Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px 0;
  margin-top: 80px;
}

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

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

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

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

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-contact-info a {
  color: var(--accent-gold);
  text-decoration: none;
  font-family: var(--font-code);
}

.footer-contact-info a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* 8. Back to Top Floating Button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold-glow);
  color: var(--accent-gold);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--grad-gold);
  color: #000;
  border-color: var(--accent-gold);
  box-shadow: var(--glow-gold);
  transform: translateY(-4px);
}

/* Media Queries & Mobile Responsiveness */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: rgba(11, 15, 25, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 30px;
    gap: 24px;
    transition: right 0.35s ease;
    border-left: 1px solid var(--border-subtle);
  }
  
  .nav-links.active {
    right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
