/* ============================================
   AQX Cert - Modern Design System
   Version: 3.0 (Premium Redesign)
   Colors: Deep Navy & Electric Rose
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    /* Color Palette - Core */
    --primary: #ec4899;
    --primary-foreground: #ffffff;
    --primary-gradient: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    --primary-glow: rgba(236, 72, 153, 0.3);
    
    --secondary: #0a0f1e;
    --secondary-foreground: #f8fafc;
    
    --accent: #f472b6;
    --accent-foreground: #ffffff;

    /* Neutrals */
    --background: #ffffff;
    --foreground: #0f172a;
    
    --card: #ffffff;
    --card-foreground: #0f172a;
    
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    
    --border: #e2e8f0;
    --input: #f8fafc;
    --ring: rgba(236, 72, 153, 0.5);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    --shadow-pink: 0 10px 30px -10px rgba(236, 72, 153, 0.3);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #020617;
        --foreground: #f8fafc;
        
        --card: #0a0f1e;
        --card-foreground: #f8fafc;
        
        --muted: #1e293b;
        --muted-foreground: #94a3b8;
        
        --border: #1e293b;
        --input: #0f172a;
    }
}

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

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

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

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

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
}

@media (prefers-color-scheme: dark) {
    h1, h2, h3, h4, h5, h6 {
        color: var(--foreground);
    }
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

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

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

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-2xl) 0;
    }
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   Components
   ============================================ */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    gap: var(--spacing-sm);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--muted);
    border-color: var(--muted-foreground);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.premium-card {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary);
}

/* Glassmorphism - Forced Dark for Header/Nav */
.glass {
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--muted);
    color: var(--muted-foreground);
}

.badge-primary {
    background: var(--primary-glow);
    color: var(--primary);
}

/* ============================================
   Animations
   ============================================ */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

/* ============================================
   Header & Navigation (Custom Component Styles)
   ============================================ */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

header.scrolled {
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.nav-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-desktop { display: none !important; }
    .menu-button { display: block !important; }
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: var(--transition-base);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    transform: translateY(-1px);
}

/* New Mobile Navigation Styles (Premium) */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0f1e !important; /* Force solid navy */
    display: flex;
    flex-direction: column;
    z-index: 9999 !important; /* Ensure it stays above everything */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.nav-mobile.active {
    transform: translateX(0);
    visibility: visible;
}

.nav-link-mobile {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff !important;
    text-decoration: none;
    transition: var(--transition-fast);
    letter-spacing: -0.02em;
}

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

.menu-button {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .nav-desktop { display: none !important; }
    .menu-button { display: block !important; }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
    margin-bottom: var(--spacing-2xl);
}

.footer-link {
    display: block;
    color: var(--muted-foreground);
    margin-bottom: var(--spacing-sm);
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted-foreground);
}
