/* CSS Design System for NDTechHub - Modern 2026 Bento & Glassmorphism */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Dark Theme (Default) */
  --bg-primary: #080c14;
  --bg-secondary: #0e1420;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-primary: #00f2fe; /* Cyan */
  --accent-secondary: #4facfe; /* Royal Blue */
  --accent-tertiary: #7f00ff; /* Electric Violet */
  --accent-glow: rgba(0, 242, 254, 0.15);
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7f00ff 100%);
  --accent-gradient-text: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(14, 20, 32, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.5);
  --glass-blur: 20px;
  
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-hover-border: rgba(0, 242, 254, 0.3);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --nav-height: 64px;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-primary: #0284c7;
  --accent-secondary: #2563eb;
  --accent-tertiary: #7c3aed;
  --accent-glow: rgba(2, 132, 199, 0.1);
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  --accent-gradient-text: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: rgba(15, 23, 42, 0.08);
  
  --card-bg: rgba(255, 255, 255, 0.4);
  --card-border: rgba(0, 0, 0, 0.05);
  --card-hover-border: rgba(2, 132, 199, 0.25);
}

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

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 242, 254, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(127, 0, 255, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(79, 172, 254, 0.02) 0px, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
}

/* Header & Floating Bento Navbar */
header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.bento-navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1100px;
  height: var(--nav-height);
  padding: 0 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  box-shadow: 0 10px 30px -10px var(--glass-shadow);
  transition: var(--transition-smooth);
}

.nav-brand {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  color: var(--text-primary);
}

.nav-brand .brand-tech {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-brand .dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-primary);
  margin-left: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .nav-links {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--text-secondary);
  display: inline-block;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav-links a:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-links li.active a {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--glass-border);
}

[data-theme="light"] .nav-links li.active a {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle, .mobile-toggle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

[data-theme="light"] .theme-toggle, [data-theme="light"] .mobile-toggle {
  background: rgba(0, 0, 0, 0.02);
}

.theme-toggle:hover, .mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.05);
  border-color: var(--card-hover-border);
}

[data-theme="light"] .theme-toggle:hover, [data-theme="light"] .mobile-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

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

.theme-toggle .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: block;
}

.mobile-toggle {
  display: none;
}

/* Page Containers */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 110px 20px 60px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  font-weight: 500;
}

/* Footer Section */
footer {
  margin-top: 80px;
  padding: 50px 0 30px 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(6, 10, 18, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand .nav-brand {
  font-size: 22px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-weight: 500;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0 auto;
  padding: 20px 20px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
  color: var(--text-muted);
}

[data-theme="light"] .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #080c14;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7f00ff 0%, #4facfe 50%, #00f2fe 100%);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.45);
  color: #ffffff;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: var(--card-hover-border);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Mobile Responsiveness for Navigation */
@media (max-width: 768px) {
  header {
    top: 15px;
  }
  
  .bento-navbar {
    width: 92%;
    padding: 0 16px;
    height: 56px;
    border-radius: 28px;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 85px;
    left: 4%;
    right: 4%;
    flex-direction: column;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 24px;
    padding: 16px;
    gap: 8px;
    box-shadow: 0 20px 45px -10px var(--glass-shadow);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 14px;
    font-size: 14px;
  }
  
  .nav-links li.active a {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
  background-color: #20ba5a;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}
