:root {
    --primary-red: #E50914;
    --gold: #D4AF37;
    --bg-dark: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #b3b3b3;
}

* {
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: radial-gradient(circle at 50% 50%, #1a0505 0%, #0a0a0a 100%);
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#intro-logo-container {
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#intro-logo-img {
    width: 180px;
    height: auto;
    opacity: 0;
    filter: drop-shadow(0 0 30px rgba(229, 9, 20, 0.8));
}

#3d-logo-container {
    width: 450px;
    height: 450px;
    position: relative;
    margin: 2rem auto;
    cursor: grab;
    z-index: 5;
    opacity: 0;
    background: 
        radial-gradient(circle at 30% 30%, 
            rgba(255, 255, 255, 0.15) 0%, 
            rgba(255, 255, 255, 0.08) 40%, 
            rgba(229, 9, 20, 0.05) 100%),
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.12) 0%, 
            rgba(255, 255, 255, 0.06) 50%, 
            rgba(255, 255, 255, 0.12) 100%);
    border-radius: 25px;
    border: 
        2px solid transparent,
        1px solid rgba(255, 255, 255, 0.3);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    backdrop-filter: blur(15px) saturate(1.2);
    box-shadow: 
        0 15px 45px rgba(229, 9, 20, 0.4),
        0 0 80px rgba(229, 9, 20, 0.2),
        0 0 120px rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.15),
        inset 0 0 60px rgba(229, 9, 20, 0.08);
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#3d-logo-container:active {
    cursor: grabbing;
    transform: scale(1.02);
}

#3d-logo-container:hover {
    box-shadow: 
        0 20px 55px rgba(229, 9, 20, 0.5),
        0 0 100px rgba(229, 9, 20, 0.15),
        0 0 150px rgba(255, 255, 255, 0.12),
        inset 0 0 40px rgba(255, 255, 255, 0.2),
        inset 0 0 80px rgba(229, 9, 20, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.01);
}

#3d-logo-container canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 25px;
    box-shadow: 
        inset 0 0 40px rgba(255, 255, 255, 0.25),
        inset 0 0 80px rgba(229, 9, 20, 0.15),
        inset 0 0 120px rgba(255, 255, 255, 0.1);
    mix-blend-mode: screen;
    filter: 
        contrast(1.3) 
        brightness(1.2) 
        saturate(1.1)
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    backdrop-filter: blur(2px) brightness(1.1);
}

.hidden {
    display: none !important;
}

/* Header & Nav */
header {
    padding: 0.8rem 1.5rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    min-height: 55px;
    display: flex;
    align-items: center;
}

nav {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: nowrap;
}

#nav-logo-container {
    width: 35px;
    height: 35px;
    min-width: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

#nav-logo {
    width: 100%;
    height: auto;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.5));
    transition: opacity 0.5s ease;
}

#nav-logo.visible {
    opacity: 1;
}

#nav-title {
    font-size: clamp(0.85rem, 3.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.3) translateY(5px);
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
    position: relative;
    overflow: visible;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 3rem;
    align-items: center;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-text {
    z-index: 10;
    max-width: 600px;
    opacity: 0;
    transform: translateY(50px);
    margin-bottom: 2rem;
    text-align: center;
}

.gradient-text {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(270deg, #ffffff, #E50914, #D4AF37, #ff4d4d, #ffffff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: colorFlow 8s ease-in-out infinite, glow 3s ease-in-out infinite alternate;
    transform: translateY(20px);
    text-align: center;
    filter: drop-shadow(0 4px 12px rgba(229, 9, 20, 0.3));
    transition: all 0.3s ease;
}

.gradient-text:hover {
    animation-duration: 4s, 2s;
    filter: drop-shadow(0 6px 20px rgba(229, 9, 20, 0.5));
    transform: translateY(20px) scale(1.02);
}

@keyframes colorFlow {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 0%;
    }
    75% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 4px 12px rgba(229, 9, 20, 0.3)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 4px 20px rgba(229, 9, 20, 0.6)) brightness(1.2);
    }
    100% {
        filter: drop-shadow(0 4px 12px rgba(229, 9, 20, 0.3)) brightness(1);
    }
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hero-text p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
    margin: 0 auto 1.5rem;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    letter-spacing: 0.01em;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Content Section */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.3s ease;
}

.content-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
}

.content-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.content-card ul {
    list-style: none;
    padding-left: 0;
}

.content-card li {
    padding: 0.5rem 0;
    color: var(--text-dim);
    position: relative;
    padding-left: 1.5rem;
}

.content-card li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.content-card p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}

.primary {
    background: var(--primary-red);
    color: white;
}

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

.secondary:hover {
    background: var(--primary-red);
    color: white;
}

/* Expandable Sections */
.expandable-sections {
    width: 100%;
    max-width: 400px;
}

.accordion-item {
    background: var(--card-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease, border-color 0.4s ease;
}

.accordion-item.active {
    border-color: var(--primary-red);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.2);
}

.accordion-header {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-red);
}

.accordion-header:hover {
    background: rgba(229, 9, 20, 0.1);
}

.arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--primary-red);
    transition: transform 0.3s ease;
}

.accordion-item.active .arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.accordion-content p {
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
}

.accordion-content li {
    padding: 0.5rem 0;
    color: var(--text-dim);
    position: relative;
    padding-left: 1.5rem;
}

.accordion-content li:before {
    content: '£';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.accordion-content .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    min-width: 180px;
}

.btn-icon {
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Windows button specific styling */
.windows-btn {
    background: linear-gradient(135deg, #0078D4 0%, #005A9E 100%);
    border: 1px solid #0078D4;
}

.windows-btn:hover {
    background: linear-gradient(135deg, #106EBE 0%, #004A8C 100%);
    box-shadow: 0 5px 15px rgba(0, 120, 212, 0.3);
}

/* Android button specific styling */
.android-btn {
    background: linear-gradient(135deg, #3DDC84 0%, #2ECC71 100%);
    border: 1px solid #3DDC84;
}

.android-btn:hover {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    box-shadow: 0 5px 15px rgba(61, 220, 132, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin: 0;
    padding: 0;
    border: none;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    animation: slideIn 0.4s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(229, 9, 20, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(229, 9, 20, 1);
    transform: scale(1.1);
}

#guide-content {
    height: 100%;
    overflow-y: auto;
    padding: 2rem;
    scrollbar-width: thin;
    scrollbar-color: #E50914 #2d2d2d;
}

/* Custom scrollbar for Webkit browsers */
#guide-content::-webkit-scrollbar {
    width: 12px;
}

#guide-content::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#guide-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #E50914 0%, #ff4d4d 50%, #D4AF37 100%);
    border-radius: 10px;
    border: 2px solid #2d2d2d;
    transition: all 0.3s ease;
}

#guide-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff4d4d 0%, #E50914 50%, #D4AF37 100%);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

#guide-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #D4AF37 0%, #E50914 50%, #ff4d4d 100%);
    transform: scale(0.95);
}

/* Custom scrollbar for Firefox */
#guide-content {
    scrollbar-width: thin;
    scrollbar-color: #E50914 #2d2d2d;
}

/* Additional scrollbar styling for all scrollable content */
.guide-content::-webkit-scrollbar {
    width: 12px;
}

.guide-content::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #E50914 0%, #ff4d4d 50%, #D4AF37 100%);
    border-radius: 10px;
    border: 2px solid #2d2d2d;
    transition: all 0.3s ease;
}

.guide-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff4d4d 0%, #E50914 50%, #D4AF37 100%);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

.guide-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #D4AF37 0%, #E50914 50%, #ff4d4d 100%);
    transform: scale(0.95);
}

/* Developer Section Styles */
.developer-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.developer-image {
    flex: 0 0 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8);
    opacity: 0;
}

.developer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.developer-info {
    flex: 1;
    min-width: 250px;
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.developer-info h4 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.developer-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Accordion transition effects */
.accordion-item.active .developer-image {
    transform: scale(1);
    opacity: 1;
}

.accordion-item.active .developer-info {
    transform: translateX(0);
    opacity: 1;
}

.developer-image:hover img {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .gradient-text {
        font-size: 2.5rem;
    }
    
    #intro-logo-container {
        width: 150px;
        height: 150px;
    }
    
    header {
        padding: 0.6rem 1rem;
        min-height: 45px;
    }
    
    nav {
        gap: 0.5rem;
    }
    
    #nav-logo-container {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }
    
    #nav-title {
        font-size: clamp(0.75rem, 4vw, 1rem);
        font-weight: 600;
        letter-spacing: 0.2px;
        line-height: 1.1;
    }
    
    /* Extra small screens */
    @media (max-width: 480px) {
        header {
            padding: 0.5rem 0.8rem;
            min-height: 40px;
        }
        
        #nav-logo-container {
            width: 25px;
            height: 25px;
            min-width: 25px;
        }
        
        #nav-title {
            font-size: clamp(0.7rem, 5vw, 0.9rem);
            letter-spacing: 0.1px;
        }
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-left {
        order: 1;
    }
    
    .hero-right {
        order: 2;
    }
    
    .hero-text {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .expandable-sections {
        max-width: 100%;
    }
    
    #3d-logo-container {
        width: 350px;
        height: 350px;
    }
}
