/* 
    Dhonipedia Design System
    Colors:
    - Primary Yellow: #FFCB05 (CSK Yellow)
    - Primary Blue: #004BA0 (CSK Blue)
    - Dark Primary: #121212 (Dark Mode Background)
    - Dark Secondary: #1E1E1E (Dark Mode Cards)
*/

:root {
    --primary: #FFCB05;
    --primary-light: #FFD700;
    --secondary: #004BA0;
    --accent: #FF5722;
    --text-main: #333;
    --text-light: #666;
    --bg-white: #FFFFFF;
    --bg-alt: #F9F9FB;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body.dark-mode {
    --bg-white: #121212;
    --bg-alt: #1A1A1A;
    --text-main: #EAEAEA;
    --text-light: #B0B0B0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: transparent;
    transition: var(--transition);
}

#navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.8rem;
    color: var(--primary);
    text-transform: uppercase;
}

.logo span {
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

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

#theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

#hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

#hamburger-menu span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: var(--transition);
}

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

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

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

.moon-icon {
    display: none;
}

body.dark-mode .sun-icon {
    display: none;
}

body.dark-mode .moon-icon {
    display: inline-block;
}

/* Hero Section */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #001F3F 100%);
    color: #fff;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 203, 5, 0.1) 0%, transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

.hero-tagline {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: flex-end;
}

.hero-image .image-box {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: transparent;
    max-width: 500px;
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.02);
}

.img-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--secondary);
    padding: 8px 16px;
    font-weight: 900;
    border-radius: 4px;
}

/* Achievements Timeline */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-title span {
    color: var(--secondary);
}

body.dark-mode .section-title span {
    color: var(--primary);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--secondary);
    opacity: 0.2;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    left: -58px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--secondary);
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    z-index: 2;
}

.timeline-date {
    font-weight: 900;
    color: var(--secondary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.timeline-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    display: block;
}

.timeline-content:hover .timeline-img {
    transform: scale(1.02);
}

.achievement-icon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    opacity: 0.2;
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.award-card {
    background: var(--glass-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.award-card:hover {
    transform: translateY(-10px);
    background: var(--bg-white);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

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

.award-year {
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.award-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

body.dark-mode .award-card h3 {
    color: var(--primary);
}

.award-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Hall of Fame Section */
.hall-of-fame-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hall-badge {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.hall-quote {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary);
    margin: 2rem 0;
}

.criteria-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.criteria-item {
    display: flex;
    gap: 1rem;
}

.criteria-icon {
    font-size: 2rem;
}

.criteria-info h4 {
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.criteria-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.gold-frame {
    position: relative;
    padding: 15px;
    background: linear-gradient(135deg, #d4af37, #fcf6ba, #d4af37);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gold-frame img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
}

.frame-label {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #d4af37;
    padding: 8px 25px;
    font-weight: 900;
    border: 2px solid #d4af37;
    white-space: nowrap;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 75, 160, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--glass-bg);
    padding: 3rem;
    text-align: center;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

body.dark-mode .stat-card h3 {
    color: var(--primary);
}

.stats-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.chart-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.progress-bar {
    background: var(--bg-alt);
    height: 40px;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.progress {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    border-radius: 50px;
}

.progress span {
    color: #fff;
    font-weight: 800;
}

/* Legendary Quote Section */
#quote-banner {
    background: var(--secondary);
    padding: 60px 0;
    text-align: center;
    border-top: 4px solid var(--primary);
    border-bottom: 4px solid var(--primary);
}

.glow-text {
    font-size: 4rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 203, 5, 0.5), 0 0 20px rgba(255, 203, 5, 0.3);
    letter-spacing: 5px;
    animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
    from {
        text-shadow: 0 0 10px rgba(255, 203, 5, 0.5);
    }

    to {
        text-shadow: 0 0 25px var(--primary), 0 0 45px var(--primary);
    }
}

/* FooterStyles */
footer {
    background: #121212;
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 1.5rem;
    font-weight: 800;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-image {
        justify-content: center;
    }

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

    .hall-of-fame-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hall-quote {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--primary);
        padding-top: 1rem;
    }

    .criteria-list {
        grid-template-columns: 1fr;
        text-align: left;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    #hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1050;
    }

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

    .nav-links li {
        margin: 2rem 0;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -38px;
    }

    .timeline-date {
        font-size: 1.2rem;
    }

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

    .stats-charts {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .glow-text {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-tagline {
        letter-spacing: 2px;
        font-size: 0.9rem;
    }

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

    .awards-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

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

    .hero-title {
        font-size: 2.2rem;
    }

    .stat-card {
        padding: 2rem 1rem;
    }

    .stat-card h3 {
        font-size: 2.2rem;
    }

    .glow-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
}