/* TakeoverCloud - Modern Security Platform Theme - Core Styles */

/* ===== VARIABLES ===== */
:root {
  /* Color Palette - Updated for modern look */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #f59e0b;
  --secondary-dark: #d97706;
  --secondary-light: #fcd34d;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --accent-light: #67e8f9;
  
  /* Neutrals */
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --fg: #111827;
  --fg-light: #4b5563;
  --fg-lighter: #9ca3af;
  
  /* UI Elements - Enhanced for modern look */
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.04), 0 4px 10px rgba(0, 0, 0, 0.03);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Transitions - Smoother animations */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed header */
  font-size: 16px; /* Base font size */
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  body {
    overflow-x: hidden;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style-position: inside;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

p {
  margin-bottom: var(--space-4);
}

button {
  cursor: pointer;
  font-family: var(--font-sans);
}

input, textarea {
  font-family: var(--font-sans);
}

section {
  padding: var(--space-16) var(--space-4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITY CLASSES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

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

.hidden {
  display: none;
}

/* ===== NAVIGATION ===== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  margin-right: var(--space-2);
  font-size: 1.25rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-6);
}

.nav-links a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-2) var(--space-1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

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

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

.nav-toggle {
  display: none;
  background: rgba(99, 102, 241, 0.2);
  border: none;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all var(--transition-fast);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-toggle i {
  font-size: 1.25rem;
}

.nav-toggle:hover {
  color: var(--primary);
  background-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.nav-toggle.active {
  color: var(--primary);
  background-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-50%) rotate(90deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--shadow-md);
  padding: var(--space-20) var(--space-4) var(--space-6);
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  margin-bottom: var(--space-4);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80%;
}

.mobile-nav-links li {
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: calc(var(--i, 0) * 0.05s);
}

.mobile-menu.active .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-links a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-align: center;
}

.mobile-nav-links a:hover {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  transform: translateX(5px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.btn i {
  margin-left: var(--space-2);
  transition: transform var(--transition-fast);
}

.btn:hover i {
  transform: translateX(3px);
}

.btn-primary {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 6px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(245, 158, 11, 0.3);
  color: white;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
  color: white;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-12);
}

.section-header.light {
  color: white;
}

.section-tag {
  display: inline-block;
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: var(--space-1) var(--space-3);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header.light .section-tag {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  color: var(--fg);
}

.section-header.light h2 {
  color: white;
}

.section-description {
  font-size: 1.125rem;
  color: var(--fg-light);
  max-width: 700px;
  margin: 0 auto;
}

.section-header.light .section-description {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
  .nav {
    padding: var(--space-4) var(--space-4);
  }
}

@media (max-width: 768px) {
  .nav {
    padding: var(--space-3) var(--space-4);
    position: relative;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }
  
  section {
    padding: var(--space-12) var(--space-4);
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .btn {
    padding: var(--space-3) var(--space-5);
  }
}

@media (max-width: 480px) {
  .nav {
    padding: var(--space-2) var(--space-3);
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .btn {
    width: 100%;
    padding: var(--space-4) var(--space-4);
  }
}
