/* Custom Properties based on Theme */
:root {
    --primary: #6A5ACD; /* Slate Blue */
    --secondary: #FF69B4; /* Hot Pink */
    --tertiary: #48D1CC; /* Medium Turquoise */
    --background: #fdfdfd;
    --surface: #ffffff;
    --on-surface: #2D2D2D;
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--shadow);
    border-radius: 24px;
}

/* Typography & Layout */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.small-text { font-size: 0.85rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.small-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 10px 30px;
    border-radius: 40px;
}

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

.nav-container.nav-right-only {
    justify-content: flex-end;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo-text {
    height: 48px;
    width: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
}

.sidebar-header, .sidebar-search {
    display: none;
}

.sidebar-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Mobile Menu Toggle (Checkbox Hack) */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--on-surface);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--on-surface);
    font-weight: 500;
    transition: color 0.3s;
}

.sidebar-link svg {
    display: none;
}

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

.sidebar-link.active-sidebar {
    color: var(--primary);
    font-weight: 700;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(106, 90, 205, 0.15) 0%, rgba(255, 105, 180, 0.0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 40px;
}



.hero-title {
    font-size: 4rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.hero-cta a img {
    height: 60px;
    transition: transform 0.3s ease;
}

.hero-cta a:hover img {
    transform: translateY(-3px);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Abstract Mockup Animation */
.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-mockup-wrapper {
    perspective: 1000px;
    z-index: 1;
}

.mockup-img {
    width: 300px;
    height: auto;
    border-radius: 40px;
    padding: 0; /* Removing padding for the actual image */
    overflow: hidden;
    display: block;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-img:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Features Section */
.features {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Collaboration Section */
.collaboration {
    padding: 100px 5%;
    text-align: center;
    margin: 60px 0;
}

.collab-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(72, 209, 204, 0.2) 0%, rgba(72, 209, 204, 0) 70%);
    border-radius: 50%;
    filter: blur(20px);
}

/* Footer Section */
.footer {
    background: var(--surface);
    padding: 60px 5% 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

/* Responsiveness */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    /* Navbar & Mobile Menu */
    .navbar.glass-card {
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
        padding: 12px 20px;
        background: rgba(253, 253, 253, 0.9);
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 0;
        z-index: 1000;
        position: fixed;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1001; /* Must be strictly above .nav-links */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: 100dvh;
        background: #fdfdfd;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        border: none;
        z-index: 999;
        overflow-y: auto;
    }

    .sidebar-header {
        display: flex;
        align-items: center;
        padding: 40px 24px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        margin-top: 10px; /* Space for hamburger X */
    }
    
    .sidebar-avatar {
        width: 48px;
        height: 48px;
        background: #f1f3f5;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        overflow: hidden;
    }
    
    .sidebar-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .sidebar-user-info {
        display: flex;
        flex-direction: column;
    }
    
    .sidebar-name {
        font-weight: 600;
        font-size: 1.1rem;
        color: #111;
    }
    
    .sidebar-email {
        font-size: 0.85rem;
        color: #666;
    }

    .sidebar-search {
        display: flex;
        align-items: center;
        margin: 24px 24px 10px;
        padding: 12px 16px;
        background: #f1f3f5;
        border-radius: 12px;
        color: #555;
    }
    
    .sidebar-search svg {
        margin-right: 10px;
        color: #888;
    }
    
    .sidebar-search input {
        border: none;
        background: transparent;
        flex-grow: 1;
        font-size: 1rem;
        outline: none;
        color: #333;
    }
    
    .search-shortcut {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 2px 8px;
        font-size: 0.8rem;
        color: #888;
    }

    .sidebar-menu {
        display: flex;
        flex-direction: column;
        padding: 0 16px;
        gap: 4px;
        margin-top: 10px;
        align-items: stretch;
    }

    .sidebar-link {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 500;
        color: #444;
        transition: background 0.2s, color 0.2s;
        border-bottom: none;
        width: auto;
    }
    
    .sidebar-link svg {
        display: block;
        margin-right: 16px;
        color: #888;
        stroke-width: 2.2px;
        transition: color 0.2s;
    }

    .sidebar-link:hover, .sidebar-link:active {
        background: #f8f9fa;
        color: #111;
    }

    .sidebar-link:hover svg, .sidebar-link:active svg {
        color: #111;
    }
    
    .sidebar-link.active-sidebar {
        background: #ffffff;
        color: #111;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        font-weight: 600;
    }
    
    .sidebar-link.active-sidebar svg {
        color: #111;
    }

    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
        padding-bottom: 40px;
        min-height: auto;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-logo-text {
        height: 40px;
        width: 40px;
    }
    
    .nav-brand {
        transform: none;
    }

    .mockup-img {
        width: 260px;
    }

    /* Features */
    .features {
        padding: 60px 5%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-cta a img {
        height: 50px;
    }

    .mockup-img {
        width: 220px;
    }

    .glass-container {
        padding: 2rem 1.5rem;
    }
}

/* Fix for auth.html and other dark/themed pages */
.dark-theme {
    --background: #0f172a;
    --surface: rgba(255, 255, 255, 0.05);
    --on-surface: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
}
