/* Base Styles */
:root {
    /* Brand Colors based on logo */
    --primary-black: #000000;
    --primary-red: #D10000;
    --dark-red: #990000;
    --primary-gray: #666666;
    --light-gray: #f8f8f8;
    --white: #ffffff;
    --gradient-bg: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(50,0,0,0.95) 50%, rgba(180,0,0,0.9) 100%);
    --gradient-muted: linear-gradient(135deg, rgba(0,0,0,0.03) 0%, rgba(209,0,0,0.08) 100%);
    --gradient-hover: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(150,0,0,1) 100%);
    --gradient-card: linear-gradient(160deg, rgba(255,255,255,1) 0%, rgba(248,248,248,1) 100%);
    --gradient-section: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(209,0,0,0.05) 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 15px 40px rgba(150, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
    background-image: var(--gradient-section);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-black);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    background: var(--gradient-bg);
    color: var(--white);
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.btn:hover::after {
    width: 100%;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-bg);
    margin: 0 auto;
    border-radius: 2px;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
    border-bottom: 1px solid rgba(150,0,0,0.05);
}

header.scrolled {
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.95);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hover);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-black);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 0;
    padding-top: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 40px;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInDown 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
}

.hero-content span {
    color: var(--white);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.hero-content span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(209,0,0,0.6);
    z-index: -1;
}

.hero-content p {
    font-size: 1.3rem;
    margin: 30px 0;
    line-height: 1.6;
    animation: fadeInUp 1.2s ease;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .btn {
    background: var(--white);
    color: var(--primary-black);
    animation: fadeIn 1.5s ease;
    font-size: 1.1rem;
    padding: 15px 35px;
    border-radius: 50px;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-content .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hover);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
    transform: translateY(100%);
}

.hero-content .btn:hover {
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-content .btn:hover::before {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about {
    background: var(--gradient-section);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23d10000' fill-opacity='0.03'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-black);
}

.about-text p {
    margin-bottom: 15px;
}

.about-stats {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-box {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-box i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.stat-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Classes Section */
.classes {
    background: var(--gradient-muted);
    position: relative;
}

.classes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 1;
}

.classes .container {
    position: relative;
    z-index: 2;
}

.class-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.tab-btn {
    padding: 12px 28px;
    margin: 0 5px 10px;
    border: none;
    background: var(--gradient-card);
    color: var(--primary-black);
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0,0,0,0.05);
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
    transform: translateY(100%);
}

.tab-btn.active::before,
.tab-btn:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.tab-content {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: height 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.class-info {
    display: flex;
    flex-wrap: wrap;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
}

.class-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.class-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.class-info:hover .class-image img {
    transform: scale(1.05);
}

.class-details {
    flex: 1;
    min-width: 300px;
    padding: 35px;
    background: var(--gradient-card);
}

.class-details h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-black);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.class-details h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-bg);
    border-radius: 2px;
}

.class-details p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #444;
}

.class-details ul {
    margin-bottom: 30px;
}

.class-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.class-details li:hover {
    transform: translateX(5px);
}

.class-details li i {
    color: var(--primary-red);
    margin-right: 12px;
    font-size: 1.1rem;
}

.class-schedule {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border-left: 3px solid var(--primary-red);
}

.class-schedule h4 {
    margin-bottom: 18px;
    color: var(--primary-black);
    font-size: 1.3rem;
}

.class-schedule p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.class-schedule i {
    margin-right: 12px;
    color: var(--primary-red);
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery {
    background: var(--gradient-muted);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    margin: 0 5px 10px;
    border: none;
    background: var(--light-gray);
    color: var(--primary-black);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient-bg);
    color: var(--white);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay h3 {
    color: var(--white);
    font-size: 1.2rem;
}

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

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

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-black);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-right: 15px;
}

.social-links {
    display: flex;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-bg);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-black);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-red);
    outline: none;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.form-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid #27ae60;
    display: block;
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    display: block;
}

/* Footer */
footer {
    background: var(--gradient-bg);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-links,
.footer-classes {
    flex: 1;
    min-width: 150px;
}

.footer-newsletter {
    flex: 1;
    min-width: 250px;
}

footer h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

footer h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--white);
}

footer ul li {
    margin-bottom: 10px;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
    margin-left: 5px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Poppins', sans-serif;
}

.footer-newsletter button {
    background: var(--primary-black);
    color: var(--white);
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background: #333;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-bg);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

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

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

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

/* Media Queries */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .about-content,
    .contact-content {
        gap: 30px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    header .container {
        padding: 15px 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .stat-box {
        padding: 20px 15px;
    }
    
    .class-info {
        flex-direction: column;
    }
    
    .class-image {
        height: 250px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .class-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
    
    .gallery-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        margin-bottom: 8px;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 200px;
    }
}
