:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary: #ef4444;
    --secondary: #1e293b;
    --accent: #f59e0b;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    animation: pageFadeIn 1s ease-out;
}

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

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

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    padding: 15px 5%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.logo h2 {
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -1px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
    padding: 10px 0;
}

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

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

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

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary);
    min-width: 180px;
    display: none;
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    font-size: 14px;
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('images/kickboks/WhatsApp Image 2026-05-02 at 21.30.52.jpeg') center/cover no-repeat;
    background-attachment: fixed;
    transition: background-image 0.5s ease-in-out;
}

.hero-content {
    z-index: 2;
    padding: 0 20px;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #cbd5e1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    padding: 16px 45px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid var(--glass-border);
}

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

.primary-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(239, 68, 68, 0.4);
    background: #dc2626;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--primary);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 30px;
}

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

.stat-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.class-card {
    background: var(--secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.class-card:hover .card-img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
    position: relative;
    background: var(--secondary);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.read-more:hover {
    transform: translateX(10px);
}

.read-more i {
    font-size: 14px;
    margin-left: 5px;
}

/* Page Header */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: background-image 0.5s ease-in-out;
}

.page-header h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* About Detail */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.glass-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
}

.coach-info {
    margin-top: 30px;
    padding: 30px;
}

.coach-info h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Quick Info */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.info-card {
    padding: 40px;
    text-align: center;
}

.info-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Branch Detail */
.branch-detail {
    padding: 80px 0;
}

.branch-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    color: var(--primary);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-details {
    padding: 40px;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(45deg, var(--bg-color), var(--primary));
    text-align: center;
    padding: 80px 0;
}


.cta-banner h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Footer Improvements */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-links ul, .footer-social ul {
    list-style: none;
    margin-top: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    font-size: 18px;
    color: white;
    text-decoration: none !important; /* Ensure no underline */
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s, color 0.3s;
    font-weight: 600;
}

.social-icons a i {
    font-size: 28px; /* Larger icon like in the screenshot */
    color: var(--primary);
}

.social-icons a:hover {
    transform: translateY(-5px);
    color: var(--primary);
}

footer {
    background: #020617;
    text-align: left; /* Changed to left for better grid alignment */
    padding: 80px 0 60px;
    color: #64748b;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-grid img, .gallery-grid video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    transition: var(--transition);
}

.gallery-grid img:hover, .gallery-grid video:hover {
    transform: scale(1.03);
}

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

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

.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(22px, 9999px, 86px, 0); }
    20% { clip: rect(65px, 9999px, 11px, 0); }
    40% { clip: rect(100px, 9999px, 34px, 0); }
    60% { clip: rect(44px, 9999px, 98px, 0); }
    80% { clip: rect(78px, 9999px, 45px, 0); }
    100% { clip: rect(12px, 9999px, 67px, 0); }
}

@media (max-width: 992px) {
    .about .container, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 5%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-color);
        padding: 100px 40px;
        gap: 20px;
        transition: right 0.4s ease;
        z-index: 1999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

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

    .navbar.mobile-active {
        background: var(--bg-color);
    }

    .dropdown-menu {
        position: static;
        display: none; /* Initially hide in mobile */
        background: rgba(255,255,255,0.05);
        border: none;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 10px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hamburger {
        display: block;
        z-index: 2001;
    }

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

    .hero-btns {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding: 50px 20px;
    }

    .branch-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
