:root {
    --gold: #D4AF37;
    --gold-light: #F9F295;
    --gold-dark: #B8860B;
    --black: #050505;
    --dark-grey: #1a1a1a;
    --white: #ffffff;
    --gold-gradient: linear-gradient(135deg, #CF995F 0%, #F1DE8A 25%, #CF995F 50%, #E6B95C 100%);
}

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

body {
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
}

/* ===================== LOADER ===================== */
#loader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.loader-logo {
    width: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar-container {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 10px auto;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--gold-gradient);
    animation: loadProgress 2s forwards ease-in-out;
}

@keyframes loadProgress { 100% { width: 100%; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ===================== NAVBAR ===================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo-img {
    width: 50px;
    border-radius: 50%;
    border: 1px solid var(--gold);
}

.logo-text {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.logo-text span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hamburger - Always Visible */
.hamburger {
    display: block !important;
    font-size: 1.8rem;
    color: var(--gold);
    cursor: pointer;
    z-index: 1001;
}

/* Nav Drawer - Slide in from right */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 50px;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 999;
    list-style: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

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

.active-link {
    color: var(--gold) !important;
}

/* Join Button */
.join-btn {
    background: var(--gold-gradient);
    border: none;
    padding: 12px 25px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    color: var(--black) !important;
    -webkit-text-fill-color: var(--black) !important;
    display: inline-block;
    transition: 0.3s;
}

.join-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* ===================== HERO (index.html) ===================== */
.hero {
    height: 100vh;
    background: url('1000068378.jpg') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-left: 8%;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.92));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding-right: 20px;
}

.hero h1 {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #efefef;
}

.gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 16px 36px;
    text-decoration: none;
    display: inline-block;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.4s;
    border-radius: 4px;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.primary-gold {
    background: var(--gold-gradient);
    color: var(--black);
    -webkit-text-fill-color: var(--black);
}

.outline-white {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* ===================== PROGRAMS (3 x 2 Grid Layout) ===================== */
.programs {
    padding: 120px 30px;
    background: #080808;
}

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

.section-header h1,
.section-header h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
}

.gold-divider {
    width: 100px;
    height: 4px;
    background: var(--gold-gradient);
    margin: 20px auto;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Enforces strict 3 columns */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--dark-grey);
    padding: 50px 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    transition: 0.5s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--gold);
}

.card h3 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.card p {
    color: #aaa;
    line-height: 1.6;
}

/* ===================== ABOUT HERO BANNER ===================== */
.about-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('1000068378.jpg') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    padding-top: 90px;
    text-align: left;
}

.about-hero .hero-content {
    max-width: 700px;
}

.about-hero h1 {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1.8rem, 5vw, 4rem);
    line-height: 1.1;
}

/* ===================== TRAINER PROFILE (about.html) ===================== */
.trainer-profile-section {
    padding: 80px 30px 60px;
    background: #050505;
}

.trainer-profile-section .story-container {
    max-width: 1200px;
    margin: 0 auto;
}

.trainer-profile-section .story-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 0;
}

/* ===================== CERTIFICATIONS & HONORS ===================== */
.certifications {
    padding: 80px 20px;
    background: #080808;
}

.certifications .section-header {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-card {
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    transition: 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cert-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

.cert-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cert-card h3 {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.cert-card p {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================== OUR STORY PAGE ===================== */
.story-section {
    padding: 130px 30px 80px;
    background: radial-gradient(circle at center, #111 0%, #050505 100%);
    min-height: 100vh;
}

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

.story-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* Golden Glow Outline */
.profile-score-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    flex-shrink: 0;
}

.gold-glow-outline {
    position: relative;
    padding: 6px;
    background: var(--gold-gradient);
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.7);
    transition: 0.5s ease;
}

.gold-glow-outline:hover {
    box-shadow: 0 0 60px rgba(212, 175, 55, 1);
    transform: scale(1.03);
}

.trainer-score-img {
    width: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.story-text {
    flex: 1;
    min-width: 280px;
}

.story-text h3 {
    font-family: 'Syncopate', sans-serif;
    color: var(--gold);
    font-size: clamp(1.3rem, 3vw, 2rem);
    margin-bottom: 25px;
}

.story-text p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

/* ===================== FOOTER ===================== */
.footer {
    padding: 60px 20px;
    background: #000;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.footer-logo {
    width: 60px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    margin-bottom: 20px;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.instagram-link:hover {
    background: var(--gold-gradient);
    color: var(--black);
    transform: translateY(-5px);
}

.copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===================== RESPONSIVE BREAKPOINTS ===================== */
@media (max-width: 1024px) {
    .hero { padding-left: 5%; }
    .about-hero { padding-left: 5%; }
    .trainer-profile-section .story-content { gap: 40px; }
    .program-grid { grid-template-columns: repeat(2, 1fr); } /* 2 columns on tablets */
}

@media (max-width: 768px) {
    .hero {
        justify-content: center;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
        background-attachment: scroll;
    }
    .hero-content { max-width: 100%; }
    .hero-btns { justify-content: center; }

    .about-hero {
        justify-content: center;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
        background-attachment: scroll;
        height: 50vh;
    }

    .story-content,
    .trainer-profile-section .story-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .profile-score-card {
        max-width: 320px;
        margin: 0 auto;
    }

    .story-text {
        min-width: unset;
        width: 100%;
    }

    .trainer-profile-section .hero-btns { justify-content: center; }
    .trainer-profile-section { padding: 60px 20px 40px; }

    .cert-grid { grid-template-columns: 1fr; }
    .cert-card { max-width: 100%; }

    .programs { padding: 80px 20px; }
    .program-grid { grid-template-columns: 1fr; } /* 1 column on mobile phones */

    .nav-links { width: 260px; gap: 35px; padding: 40px 30px; }
    .story-section { padding: 110px 20px 60px; }
}

@media (max-width: 480px) {
    .logo-text { font-size: 0.95rem; }
    .nav-logo-img { width: 40px; }
    .hero h1 { font-size: clamp(1.6rem, 8vw, 2.5rem); }
    .about-hero h1 { font-size: clamp(1.4rem, 7vw, 2.2rem); }
    .btn { padding: 13px 22px; font-size: 0.78rem; }
    .section-header h1, .section-header h2 { font-size: clamp(1.3rem, 6vw, 1.8rem); }
    .cert-img-container { height: 160px; }
    .profile-score-card { max-width: 260px; }
    .footer-logo { width: 50px; }
    .instagram-link { font-size: 0.9rem; padding: 10px 16px; }
    .nav-links { width: 240px; gap: 30px; padding: 30px 20px; }
}
.card-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid gold;
}