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

:root {
  /* Premium Solar Dusk Remix Theme System */
  --bg-primary: #fafaf9;
  --bg-secondary: #f5f5f4;
  --bg-glass: rgba(250, 250, 249, 0.85);
  --bg-glass-card: rgba(250, 250, 249, 0.6);
  --bg-glass-hover: rgba(250, 250, 249, 1);
  
  --border-glass: #e7e5e4;
  --border-glass-bright: #d6d3d1;
  
  --accent-cyan: #e11d48; /* Dusk Crimson */
  --accent-blue: #ea580c; /* Solar Orange */
  --accent-indigo: #7c3aed; /* Twilight Purple */
  --accent-silver: #78716c;
  
  --text-primary: #1c1917;
  --text-muted: #57534e;
  --text-dark: #78716c;
  
  --gradient-tech: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-blue) 60%, var(--accent-cyan) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(234, 88, 12, 0.05) 100%);
  
  /* Layout and Transitions */
  --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.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: transparent;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.12);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.4);
}

/* Layout container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Canvas Background wrapper */
#bg-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Page Glow Overlay */
.glow-spot {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, rgba(0, 210, 255, 0.01) 50%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.glow-spot-1 {
  top: -10%;
  right: -10%;
}

.glow-spot-2 {
  bottom: -10%;
  left: -10%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

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

.gradient-text {
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-fast);
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-glass-bright);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 110;
}

/* Glassmorphism Common styles */
.glass-panel {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.02);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.glass-panel:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-bright);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.06);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-tech);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: var(--border-glass-bright);
  transform: translateY(-1.5px);
}

/* Main Content Area */
main {
  flex: 1;
  padding-top: 80px; /* offset fixed header */
}

/* Section Common */
.section-padding {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

/* Footer style (Premium Dark Slate Footer on Light Theme) */
footer {
  background: #090b12;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4rem 0 2rem 0;
  position: relative;
  z-index: 5;
  color: #94a3b8;
}

footer h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

footer p {
  color: #94a3b8;
}

footer .footer-info p {
  margin-top: 1rem;
  max-width: 300px;
  font-size: 0.9rem;
}

footer .footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

footer .footer-links ul a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

footer .footer-links ul a:hover {
  color: #ffffff;
  padding-left: 4px;
}

footer .footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.newsletter-form input:focus {
  border-color: #00d2ff;
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
  background: var(--gradient-tech);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-form button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: #475569;
}

footer .footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

footer .footer-bottom-links a {
  color: #475569;
  text-decoration: none;
  transition: var(--transition-fast);
}

footer .footer-bottom-links a:hover {
  color: #94a3b8;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Grid/Flex Utilities */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-cols: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: var(--transition-normal);
    z-index: 99;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
    color: var(--text-primary);
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-cols: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Typewriter cursor styling */
.typewriter::after {
  content: '|';
  margin-left: 2px;
  animation: typewriterBlink 0.75s step-end infinite;
  font-weight: 400;
  color: var(--accent-blue);
}

@keyframes typewriterBlink {
  from, to { color: transparent }
  50% { color: var(--accent-blue) }
}
