@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --dark: #0f172a;
    --light: #f8fafc;
    --card-bg: rgba(15, 23, 42, 0.9);
    --hover-bg: rgba(99, 102, 241, 0.1);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--dark);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Updated Navigation Styles */
.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Add Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

/* Profile Menu Fixes */
.profile-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.profile-btn:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.profile-menu:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.profile-dropdown a:hover {
    background: var(--hover-bg);
    transform: translateX(5px);
}

.profile-dropdown hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--light);
    border: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

/* Main content wrapper */
.main-content {
    padding-top: 80px; /* Height of navbar */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Hero Section - Updated position */
.hero {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--light);
    border: none;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Features Section - Updated spacing */
.features {
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: var(--hover-bg);
}

.feature-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dashboard Section */
.dashboard {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        padding: 1rem;
    }

    .nav-content {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 70px; /* Height of nav */
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        height: auto;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        text-align: center;
    }

    .main-content {
        padding-top: 60px;
    }

    .hero {
        margin: 0 1rem;
        top: 80px; /* Adjusted for mobile */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }

    .features {
        margin-top: 120px; /* Adjusted for mobile */
        grid-template-columns: 1fr;
    }

    .nav-content {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .profile-menu {
        width: 100%;
    }

    .profile-btn {
        width: 100%;
        justify-content: center;
    }

    .profile-dropdown {
        position: static;
        width: 100%;
        margin-top: 1rem;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .profile-menu:hover .profile-dropdown {
        display: block;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Cookie Consent Styles */
.cookie-consent {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.cookie-content p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Updated Cookie Options Layout */
.cookie-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.cookie-option {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cookie-option:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.cookie-option input[type="checkbox"] {
    margin-top: 0.25rem;
}

.cookie-option span {
    font-weight: 500;
    color: var(--light);
}

.cookie-option small {
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Updated Cookie Actions */
.cookie-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-btn {
    min-width: 120px;
    text-align: center;
}

.cookie-btn.primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
}

.cookie-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem;
    }

    .cookie-content h3 {
        font-size: 1.1rem;
    }

    .cookie-content p {
        font-size: 0.9rem;
    }

    .cookie-option {
        padding: 0.5rem;
    }

    .cookie-option small {
        font-size: 0.75rem;
    }

    .cookie-actions {
        justify-content: center;
    }

    .cookie-btn {
        min-width: auto;
        flex: 1;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .cookie-options {
        grid-template-columns: 1fr;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}