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

/* ===== ENHANCED SHARED STYLES FOR SOPHISTICATED ELEGANCE ===== */

:root {
    --gradient-primary: linear-gradient(135deg, #00f5ff 0%, #ff00f5 50%, #ffff00 100%);
    --gradient-secondary: linear-gradient(45deg, rgba(0, 245, 255, 0.1), rgba(255, 0, 245, 0.1));
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    --shadow-elegant: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --border-radius-elegant: 24px;
    --border-radius-button: 60px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --backdrop-blur: blur(40px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::selection {
    background: rgba(0, 245, 255, 0.3);
    color: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.65;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Update .container */
.container {
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== SOPHISTICATED HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    min-height: 80px;
}

.logo {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 900;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-smooth);
    animation: gradientShift 8s ease-in-out infinite;
    letter-spacing: -0.02em;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.4));
}

.nav-links {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.01em;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

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

.menu-toggle {
    display: none;
    font-size: 1.75rem;
    color: #00f5ff;
    text-decoration: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.menu-toggle:hover {
    background: var(--glass-bg);
    transform: scale(1.1);
}

/* ===== ELEGANT FOOTER ===== */
footer {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: var(--backdrop-blur);
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.4;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.footer-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section h3 {
    color: #00f5ff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    letter-spacing: 0.02em;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: 2px;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin: 0.75rem 0;
    transition: var(--transition-smooth);
    font-weight: 400;
    font-size: clamp(0.875rem, 1.2vw, 0.95rem);
    position: relative;
    padding: 0.25rem 0;
}

.footer-section a:hover {
    color: #00f5ff;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid var(--glass-border);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ===== SOPHISTICATED BUTTONS ===== */
.cta-button, .cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.875rem, 2vw, 1.125rem) clamp(2rem, 4vw, 3rem);
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    border-radius: var(--border-radius-button);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-elegant);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
    min-width: 160px;
}

.cta-button::before, .cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before, .cta-primary:hover::before {
    left: 100%;
}

.cta-button:hover, .cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 35px 70px -12px rgba(0, 245, 255, 0.4);
    background-position: 100% 0;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.875rem, 2vw, 1.125rem) clamp(2rem, 4vw, 3rem);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-button);
    transition: var(--transition-smooth);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.85rem;
    min-width: 160px;
}

.cta-secondary:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-elegant);
}

/* ===== SOPHISTICATED CARDS ===== */
.card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-elegant);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

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

.card:hover::after {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-elegant);
    border-color: rgba(0, 245, 255, 0.2);
}

.card h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 2;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 400;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.explore-more {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    color: #00f5ff;
    font-weight: 600;
    transition: var(--transition-smooth);
    font-size: clamp(0.875rem, 1.1vw, 0.95rem);
    position: relative;
    z-index: 2;
}

.explore-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition-smooth);
}

.card:hover .explore-more {
    transform: translateX(8px);
}

.card:hover .explore-more::after {
    transform: translateX(4px);
}

/* ===== ELEGANT SECTIONS ===== */
.section {
    padding: clamp(4rem, 8vw, 8rem) 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: -0.02em;
    animation: gradientShift 8s ease-in-out infinite;
    line-height: 1.1;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    max-width: min(700px, 90vw);
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* ===== SOPHISTICATED HERO ===== */
/* Update .hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center; /* Add this */
    padding: 4rem 0 2rem; /* Add padding instead of relying on height */
}
}

.hero-content {
    z-index: 10;
    max-width: min(900px, 95vw);
    margin: 0 auto;
    text-align: center; /* Add this */
    padding: 0 var(--space-lg); /* Add this */
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 750;
    line-height: 1.1;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    text-align: center; /* Add this */
}

.hero p {
    font-size: clamp(0.9rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.6;
    max-width: min(900px, 90vw);
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Add this */
}



/* Update .card */
.card {
    text-align: center; /* Add this */
    padding: var(--space-xl); /* Update this */
}

.card h3 {
    text-align: center; /* Add this */
    line-height: 1.3; /* Add this */
}

.card p {
    text-align: center; /* Add this */
    line-height: 1.6; /* Add this */
}

/* Update footer */
.footer-content {
    text-align: center; /* Add this */
}

.footer-section {
    text-align: center; /* Add this */
}

.footer-section h3 {
    text-align: center; /* Add this */
}

.footer-section a {
    text-align: center; /* Add this */
}

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

/* ===== RESPONSIVE ELEGANCE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 clamp(1rem, 5vw, 2rem);
    }

    nav {
        padding: 1rem 0;
        min-height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: var(--backdrop-blur);
        position: absolute;
        top: 100%;
        right: clamp(1rem, 5vw, 2rem);
        padding: 1.5rem;
        border-radius: var(--border-radius-elegant);
        gap: 1rem;
        transition: var(--transition-smooth);
        min-width: 220px;
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-elegant);
    }

    .nav-links.show {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-button, .cta-primary, .cta-secondary {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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


/* Typography Scale */
:root {
    --text-xs: clamp(0.75rem, 1vw, 0.875rem);
    --text-sm: clamp(0.875rem, 1.1vw, 1rem);
    --text-base: clamp(1rem, 1.2vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.4vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.6vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 2vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 2.5vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 3vw, 3rem);
}

/* Apply consistent typography */
p {
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: var(--text-4xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1.2;
    margin: 2.5rem 0 1.5rem;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.3;
    margin: 2rem 0 1rem;
}

h4 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}


/* Spacing Scale */
:root {
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(0.75rem, 1.5vw, 1rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2rem);
    --space-xl: clamp(2rem, 4vw, 3rem);
    --space-2xl: clamp(3rem, 6vw, 4rem);
    --space-3xl: clamp(4rem, 8vw, 6rem);
}

/* Apply consistent spacing */
.section {
    padding: var(--space-3xl) 0;
}

.card {
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
}