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

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f1f5f9;
    --accent: #ec4899;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 5%;
    background: rgba(15, 23, 42, 0.98);
}

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

.logo {
    font-size: 1.5rem; 
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    z-index: 1000;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.hero {
    margin-top: 80px;
    padding: 100px 5% 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent);
    animation: pulse 8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.3; }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.3rem;
    color: #94a3b8;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 80px 0;
    animation: fadeIn 1s ease;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
}

.rom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.rom-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.4s ease;
}

.rom-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.4);
}

.rom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rom-title {
    font-size: 1.5rem;
    color: var(--primary);
}

.rom-version {
    background: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.rom-info {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.module-item, .root-item {
    background: rgba(99, 102, 241, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.module-item:hover, .root-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(10px);
}

.credit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.credit-item {
    padding: 2rem;
    border-radius: 15px;
    background: rgba(99, 102, 241, 0.05);
    transition: all 0.3s ease;
}

.credit-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-5px);
}

.credit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

footer {
    background: var(--dark);
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
    color: var(--accent);
}

/* ▼▼▼ STYLES FOR GALLERY MODAL ▼▼▼ */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

#gallery-prev {
    left: 20px;
}

#gallery-next {
    right: 20px;
}
/* ▲▲▲ END OF GALLERY STYLES ▲▲▲ */


.upload-section {
    background: rgba(99, 102, 241, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 2px dashed var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.upload-section:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

input[type="file"] {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

/* 🔽 Hamburger Menu Styling */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: var(--light);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* 🔄 Animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Styles for Upload Sections */
.upload-section-link {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
    background: rgba(15, 23, 42, 0.8);
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.upload-section-link h2 {
    color: #f1f5f9;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.upload-section-link p {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 25px;
}

.upload-btn {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: scale(1.05);
}

/* Styles for Credit Section */
.credit-section {
    padding: 60px 20px;
    background: var(--dark, #0f172a);
    color: var(--light, #f1f5f9);
    text-align: center;
}

.credit-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary, #6366f1);
    margin-bottom: 15px;
}

.credit-name {
    font-size: 1.1em;
    margin-bottom: 5px;
    font-weight: 600;
}

.credit-role {
    font-size: 0.9em;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.credit-link {
    display: inline-block;
    text-decoration: none;
    color: var(--primary, #6366f1);
    font-weight: 500;
    border: 1px solid var(--primary, #6366f1);
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.credit-link:hover {
    background: var(--primary, #6366f1);
    color: white;
}

/* Keyframe animations for notifications */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;}
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ▼▼▼ STYLES FOR OG DEVELOPER SECTION ▼▼▼ */
#og-developer .og-dev-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 700px; /* Set a max-width for the profile card */
    margin: 0 auto; /* Center the card */
    text-align: center;
    border: 1px solid var(--primary);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

#og-developer .og-dev-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.og-dev-card .credit-img {
    width: 120px; /* Make profile pic larger than grid items */
    height: 120px;
    margin-bottom: 1.5rem;
    border-width: 4px;
}
/* ▲▲▲ END OF OG DEV STYLES ▲▲▲ */


/* 🔽 Add overlay styles below */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 900;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ▼▼▼ STYLES FOR SCREENSHOT GALLERY CARDS ▼▼▼ */
.screenshot-placeholder {
    width: 100%;
    height: 200px;
    background: var(--dark);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 1rem;
}

.screenshot-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rom-card:hover .screenshot-placeholder img {
    transform: scale(1.05);
}
/* ▲▲▲ END OF SCREENSHOT GALLERY STYLES ▲▲▲ */


/* 📱 Show hamburger on mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .rom-grid {
        grid-template-columns: 1fr;
    }

    .gallery-nav {
        font-size: 2rem;
        padding: 0.2rem 0.5rem;
    }
    #gallery-prev {
        left: 5px;
    }
    #gallery-next {
        right: 5px;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        width: 70%;
        height: 100%;
        padding-top: 120px;
        transition: right 0.3s ease;
        text-align: left;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px;
    }
    
    .upload-section-link {
        padding: 30px 10px;
    }
    .upload-section-link h2 {
        font-size: 1.5rem;
    }
    .upload-btn {
        padding: 10px 24px;
        font-size: 1rem;
    }
}
/* ▼▼▼ STYLES FOR NAVBAR DONATE BUTTON ▼▼▼ */
.nav-links a#open-donate-modal {
    color: var(--light);
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a#open-donate-modal:hover {
    background: var(--accent);
    color: #fff;
}

/* Don't show underline animation for this button */
.nav-links a#open-donate-modal::after {
    display: none;
}

/* Adjust donate button for mobile menu */
@media (max-width: 768px) {
    .nav-links a#open-donate-modal {
        display: inline-block;
        margin-top: 1rem;
        text-align: center;
    }
}
/* ▲▲▲ END OF NAVBAR DONATE BUTTON STYLES ▲▲▲ */


/* ▼▼▼ STYLES FOR DONATION MODAL ▼▼▼ */
/* We re-use the .modal class from your gallery */

.modal-content-donate {
    background: var(--dark);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--primary);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    animation: zoomIn 0.3s ease; /* Reusing existing animation */
}

.donate-qr {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 15px;
    border: 2px solid var(--light);
}

#upi-id {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--secondary);
    background: var(--darker);
    color: var(--light);
    text-align: center;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

#copy-upi-btn {
    width: 100%;
}
/* ▲▲▲ END OF DONATION MODAL STYLES ▲▲▲ */
