/*Main*/
:root {
    --primary-dark: #0a1628;
    --primary: #1a2d4a;
    --primary-light: #2d4a6f;
    --secondary: #4ea125;
    --accent: #22c55e;
    --accent-hover: #16a34a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --light-color: #fff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-accent: 0 8px 25px rgba(34, 197, 94, 0.3);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
}

*,*::before,*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--light-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/*Header*/
header {
    height: 20vh;
    min-height: 200px;
    display: flex;
    align-items: center;
    color: var(--light-color);
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 4rem);
    padding: 0 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.85), rgba(26, 45, 74, 0.75));
    z-index: -1;
}

.header-oc { background-image: url(./gallery/online_class/oc1.jpg); }
.header-pc { background-image: url(./gallery/physical_class/pc1.jpg); }
.header-sa { background-image: url(./gallery/students_achievements/sa1.jpg); }
.header-ct { background-image: url(./gallery/chess_tournaments/ct1.jpg); }
.header-cc { background-image: url(./gallery/chess_camp/cc1.jpg); }

/*Album*/
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Scroll animation for gallery items */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

.album-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    aspect-ratio: 7/4;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    image-rendering: -webkit-optimize-contrast;
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background-color: #1a1a2e;
}

.album-img:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.top {
    object-position: 50% 30%;
}

/*Footer*/
footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0 10px;
    min-width: 100%;
}

.footer-content {
    display: grid;
    margin-bottom: 1rem;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--light-color);
    font-size: 1.2rem;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    color: var(--light-color);
    font-size: 1rem;
}

.footer-section p {
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
}

.footer-section i {
    color: var(--light-color);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.national-flags {
    margin: 0.15rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    padding-top: 1.5rem;
    font-size: 0.8rem;
}

.footer-creator {
    text-decoration: none;
    color: var(--light-color);
    transition: color 0.3s ease;
}

.footer-creator:hover {
    color: var(--secondary);
}

.contact-icon {
    position: fixed;
    bottom: 2%;
    right: 2%;
    max-width: 60px;
    width: 10%;
    height: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.1);
}

/*Media Queries*/
@media (min-width: 360px) {
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }

}

@media (min-width: 576px) {

    .footer-content {
        gap: 2rem;
    }


}

@media (min-width: 768px) {

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (min-width: 992px) {

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 3rem;
    }

    .footer-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .footer-section p {
        margin-bottom: 0.5rem;
    }

    .footer-links {
        padding-left: 100px;
    }

    .footer-bottom {
        padding-top: 2rem;
    }

}

@media (min-width: 1200px) {
}

@media (min-width: 1400px) {
}