/* theory/theory.css - Updated to match chords.css Deep Ocean Theme */
:root {
    --deep-ocean: #0A1929;
    --ocean-dark: #071423;
    --ocean-blue: #1E3A5F;
    --navy-blue: #0D2847;
    --crisp-blue: #2D5AA0;
    --highlight-blue: #3A7BC8;
    --electric-blue: #00BFFF;
    --seafoam: #2EC4B6;
    --crisp-white: #FFFFFF;
    --off-white: #F0F8FF;
    --light-gray: #E6F0FF;
    --medium-gray: #8FA3BF;
    --dark-gray: #4A5F7A;
    --shadow-blue: rgba(10, 25, 41, 0.8);
    --glow-blue: rgba(45, 90, 160, 0.4);
    
    --transition-crisp: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --shadow-crisp: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-deep: 0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-float: 0 8px 32px rgba(0, 0, 0, 0.8);
    --border-crisp: 2px solid var(--crisp-blue);
    --border-light: 1px solid rgba(45, 90, 160, 0.3);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Base styles matching chords.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        linear-gradient(135deg, var(--deep-ocean) 0%, var(--ocean-dark) 100%),
        url('/theory/chords/backg.png');
    background-repeat: repeat;
    background-size: 500px;
    background-blend-mode: overlay;
    color: var(--crisp-white);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(10, 25, 41, 0.1) 2px,
            rgba(10, 25, 41, 0.1) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(10, 25, 41, 0.1) 2px,
            rgba(10, 25, 41, 0.1) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.theory-main {
    padding-top: 80px;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Hero Section - Matching chords.css */
.theory-hero {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--ocean-blue) 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: var(--border-crisp);
    box-shadow: var(--shadow-deep);
    margin-bottom: 3rem;
}

.theory-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            transparent 0%, 
            rgba(45, 90, 160, 0.1) 50%, 
            transparent 100%);
}

.theory-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--crisp-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.theory-hero p {
    font-size: 1.2rem;
    color: var(--off-white);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* Links Grid - Updated to match chords.css cards */
.theory-links {
    padding: 3rem 0 6rem 0;
    position: relative;
    z-index: 2;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.link-card {
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-decoration: none;
    color: var(--crisp-white);
    transition: var(--transition-spring);
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--electric-blue), var(--seafoam), var(--electric-blue));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.link-card:hover::before {
    transform: translateX(0);
}

.link-card:hover {
    border-color: var(--crisp-blue);
    transform: translateY(-8px);
    box-shadow: 
        var(--shadow-float),
        0 0 30px var(--glow-blue);
}

.link-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--seafoam));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
}

.link-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--crisp-white);
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.link-card p {
    color: var(--off-white);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.9;
}

.link-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-features li {
    color: var(--light-gray);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.link-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--electric-blue);
    font-weight: bold;
    font-size: 1rem;
}

.link-features li[data-status="working"] {
    color: var(--medium-gray);
    font-style: italic;
    font-size: 0.9rem;
    padding-left: 1rem;
}

.link-features li[data-status="working"]:before {
    content: "🛠️";
    font-size: 0.9rem;
}

/* Navigation - Updated to match theme */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: var(--border-light);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--electric-blue), var(--seafoam));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--light-gray)!important;
    text-decoration: none!important;
    font-weight: 600!important;
    font-size: 1rem!important;
    transition: var(--transition-crisp)!important;
    position: relative!important;
    padding: 0.5rem 0!important;
}

.nav-link::after {
    content: ''!important;
    position: absolute!important;
    bottom: 0!important;
    left: 0!important;
    width: 0!important;
    height: 2px!important;
    background: linear-gradient(90deg, var(--electric-blue), var(--seafoam))!important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1)!important;
}

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

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%!important;
}
        /* Simplified Footer - Horizontal Links with Dots */
        .footer {
            background: var(--ocean-dark);
            padding: 1rem 0 1rem;
            border-top: var(--border-light);
            position: relative;
            z-index: 2;
        }
        
        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 1rem;
        }
        
        .footer-brand h3 {
            font-size: 1.2rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--electric-blue), var(--seafoam));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.25rem;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        .footer-brand p {
            color: var(--medium-gray);
            font-size: 0.85rem;
            margin-bottom: 0.5rem;
        }
        
        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            margin: 0.5rem 0;
        }
        
        .links-row {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.5rem;
            font-size: 0.9rem;
        }
        
        .links-row h4 {
            color: var(--light-gray);
            font-weight: 600;
            margin: 0;
            font-size: 0.9rem;
        }
        
        .links-row a {
            color: var(--electric-blue);
            text-decoration: none;
            transition: var(--transition-crisp);
        }
        
        .links-row a:hover {
            color: var(--seafoam);
            text-decoration: underline;
        }
        
        .dot-divider {
            color: var(--medium-gray);
            font-size: 0.8rem;
            opacity: 0.6;
        }
        
        .footer-copyright {
            margin-top: 0.5rem;
            padding-top: 0.75rem;
            border-top: 1px solid rgba(45, 90, 160, 0.2);
            color: var(--dark-gray);
            font-size: 0.8rem;
            width: 100%;
        }
        
        /* Responsive Footer */
        @media (max-width: 768px) {
            .footer {
                padding: 1.25rem 0 0.75rem;
            }
            
            .footer-brand h3 {
                font-size: 1.1rem;
            }
            
            .footer-brand p {
                font-size: 0.8rem;
            }
            
            .links-row {
                font-size: 0.85rem;
                gap: 0.4rem;
            }
            
            .links-row h4 {
                font-size: 0.85rem;
            }
            
            .dot-divider {
                font-size: 0.75rem;
            }
            
            .footer-copyright {
                font-size: 0.75rem;
                padding-top: 0.5rem;
            }
        }
        
        @media (max-width: 480px) {
            .links-row {
                flex-direction: column;
                gap: 0.25rem;
            }
            
            .links-row h4 {
                margin-bottom: 0.25rem;
            }
        }
/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--crisp-white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .theory-hero {
        padding: 3rem 0;
    }

    .theory-hero h1 {
        font-size: 2.5rem;
    }

    .theory-hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

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

    .link-card {
        padding: 1.5rem;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--navy-blue), var(--ocean-blue));
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: var(--border-light);
        box-shadow: var(--shadow-deep);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .footer {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .theory-hero h1 {
        font-size: 2rem;
    }

    .theory-hero p {
        font-size: 1rem;
    }

    .link-card h3 {
        font-size: 1.3rem;
    }

    .link-icon {
        font-size: 2.5rem;
    }

    .nav-logo h1 {
        font-size: 1.5rem;
    }
}

/* Scrollbar Styling matching chords.css */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(145deg, var(--navy-blue), var(--ocean-blue));
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, var(--crisp-blue), var(--highlight-blue));
    border-radius: var(--radius-sm);
    border: 2px solid var(--navy-blue);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(145deg, var(--highlight-blue), var(--electric-blue));
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--electric-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.3);
}

/* Smooth transitions for all interactive elements */
a, button, .link-card, .nav-link {
    transition: var(--transition-crisp);
}

/* Glass morphism effect */
.glass {
    background: rgba(10, 25, 41, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section with Video Background (Same size as before) */
.theory-hero {
    position: relative;
    height: auto;
    min-height: 400px;
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
    border-bottom: var(--border-crisp);
    box-shadow: var(--shadow-deep);
    margin-bottom: 3rem;
}

/* Video Background Container */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    opacity: 50%;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
}

/* Overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(10, 25, 41, 0.85) 0%, 
        rgba(29, 58, 95, 0.7) 50%, 
        rgba(10, 25, 41, 0.85) 100%
    );
    z-index: 2;
}

/* Hero content on top of video */
.theory-hero > .container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    padding: 0 2rem;
}

.theory-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--crisp-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.theory-hero p {
    font-size: 1.2rem;
    color: var(--off-white);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

/* Hero buttons - same as before */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-spring);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--crisp-blue), var(--highlight-blue));
    color: var(--crisp-white);
    box-shadow: var(--shadow-deep);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--highlight-blue), var(--electric-blue));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--glow-blue);
}

.btn-secondary {
    background: transparent;
    color: var(--light-gray);
    border: var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--crisp-blue);
    color: var(--crisp-white);
    transform: translateY(-3px);
}

/* Responsive design for hero */
@media (max-width: 768px) {
    .theory-hero {
        padding: 3rem 0;
    }
    
    .theory-hero h1 {
        font-size: 2.5rem;
    }
    
    .theory-hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}


.theory-hero {
    position: relative;
    height: auto;
    min-height: 150px!important;
    padding: 2rem 0;
    text-align: center;
    overflow: hidden;
    border-bottom: var(--border-crisp);
    box-shadow: var(--shadow-deep);
    margin-bottom: 3rem;
}