/* ==========================================================================
   COMPLA ACADEMY - LUXURY PREMIUM DESIGN
   ========================================================================== */

:root {
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --black-bg: #0a0a0a;
    --dark-surface: #141414;
    --darker-surface: #0f0f0f;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--black-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; border-top: 1px solid rgba(255,255,255,0.03); }
.bg-darker { background-color: var(--darker-surface); border: none; }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* ================== ELEGANT REVEAL ANIMATIONS ================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 1, 0.2, 1), transform 1s cubic-bezier(0.2, 1, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ================== BUTTONS ================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px; font-family: var(--font-heading);
    font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: var(--transition);
    border: 2px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), #b3922c); color: #000; box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #000; }
.btn-block { width: 100%; border-radius: 8px; }

/* ================== NAVBAR ================== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; padding: 15px 0;
    background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: 0.3s;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.brand img { height: 45px; }
.nav-links { display: flex; align-items: center; gap: 35px; }
.nav-link { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--text-main); }
.nav-link:hover { color: var(--gold); }
.menu-toggle { display: none; font-size: 1.5rem; color: var(--gold); cursor: pointer; }

/* ================== HERO ================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background-image: url('images/cover-clean.jpg'); background-size: cover; background-position: center top;
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7) 0%, var(--black-bg) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 800px; opacity: 0; animation: fadeUp 1s 0.5s cubic-bezier(0.2, 1, 0.2, 1) forwards; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block; padding: 6px 16px; border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px; color: var(--gold); font-weight: 600; margin-bottom: 25px;
    background: rgba(212, 175, 55, 0.05);
}
.hero-title { font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1.1; margin-bottom: 20px; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.hero-subtitle { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; }

/* ================== PREMIUM CARDS (Why Us) ================== */
.section-head { margin-bottom: 60px; }
.section-head h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-head p { font-size: 1.1rem; color: var(--text-muted); }
.head-line { width: 50px; height: 3px; background: var(--gold); margin: 20px auto 0; border-radius: 2px; }

.premium-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.premium-card {
    background: var(--dark-surface); padding: 40px 30px; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03); text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.premium-card:hover { transform: translateY(-10px); border-color: rgba(212, 175, 55, 0.3); box-shadow: 0 15px 40px rgba(0,0,0,0.6); }

.card-icon {
    width: 70px; height: 70px; margin: 0 auto 25px; border-radius: 50%;
    background: rgba(212, 175, 55, 0.1); color: var(--gold); display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
}
.premium-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.premium-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ================== PROGRAMS SECTION ================== */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.program-box {
    display: flex; gap: 20px; align-items: flex-start; padding: 30px;
    background: linear-gradient(145deg, var(--dark-surface), var(--black-bg));
    border-radius: 16px; border: 1px solid rgba(255,255,255,0.03); transition: 0.3s;
}
.program-box:hover { transform: translateY(-5px); border-color: rgba(212, 175, 55, 0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.p-icon {
    width: 50px; height: 50px; flex-shrink: 0; border-radius: 12px; background: rgba(212, 175, 55, 0.1);
    color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.p-content h4 { font-size: 1.3rem; margin-bottom: 10px; color: #fff; }
.p-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ================== CHAMPIONS SECTION ================== */
.champions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.champion-card {
    background: var(--dark-surface); border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.03); transition: 0.3s;
}
.champion-card:hover { transform: translateY(-5px); border-color: rgba(212, 175, 55, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.champ-img-wrapper { width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #000; }
.champ-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; filter: grayscale(20%); }
.champion-card:hover .champ-img-wrapper img { transform: scale(1.05); filter: grayscale(0); }
.champ-info { padding: 25px; text-align: center; }
.champ-info h4 { font-size: 1.3rem; color: var(--gold); margin-bottom: 10px; word-wrap: break-word; overflow-wrap: break-word; }
.champ-info p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; word-wrap: break-word; overflow-wrap: break-word; }

/* ================== COACH SECTION ================== */
.coach-layout { display: flex; align-items: center; gap: 60px; }

/* Strictly Constrained Image */
.coach-image-side { flex: 0 0 350px; }
.image-frame { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: 20px; padding: 5px; border: 1px solid rgba(212, 175, 55, 0.2); background: var(--dark-surface); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; filter: contrast(1.1); }
.floating-badge {
    position: absolute; bottom: -20px; right: -20px; background: var(--gold); color: #000;
    padding: 20px; border-radius: 12px; text-align: center; box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.floating-badge .num { display: block; font-size: 2rem; font-weight: 800; line-height: 1; font-family: var(--font-heading); }
.floating-badge .txt { font-size: 0.9rem; font-weight: 700; }

.coach-content-side { flex: 1; }
.super-title { color: var(--gold); font-weight: 700; font-size: 1.1rem; }
.coach-name { font-size: 2.8rem; line-height: 1.2; margin-bottom: 15px; }
.coach-bio { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }

/* Luxury Tabs */
.cv-tabs { display: flex; gap: 15px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; overflow-x: auto; white-space: nowrap; }
.tab-btn {
    background: none; border: none; color: var(--text-muted); font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 600; cursor: pointer; padding: 10px 20px; border-radius: 8px; transition: 0.3s;
}
.tab-btn:hover { background: rgba(255,255,255,0.02); color: var(--text-main); }
.tab-btn.active { background: rgba(212, 175, 55, 0.1); color: var(--gold); border: 1px solid rgba(212, 175, 55, 0.2); }

.tab-content { display: none; animation: fadeInTabs 0.4s ease; }
.tab-content.active { display: block; }

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

.luxury-list li { margin-bottom: 15px; font-size: 1.05rem; position: relative; padding-right: 25px; color: #ddd; }
.luxury-list li::before { content: '\f111'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 0; top: 4px; font-size: 0.6rem; color: var(--gold); }

/* ================== CONTACT SECTION ================== */
.contact-card { display: flex; background: var(--dark-surface); border-radius: 20px; border: 1px solid rgba(255,255,255,0.03); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.contact-details { flex: 1; padding: 60px; background: linear-gradient(135deg, var(--darker-surface), var(--black-bg)); }
.contact-details h2 { font-size: 2.2rem; margin-bottom: 15px; }
.contact-details p { color: var(--text-muted); margin-bottom: 40px; }

.info-item { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.info-item .icon { width: 50px; height: 50px; background: rgba(255,255,255,0.03); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--gold); }
.info-item .whatsapp-color { color: #25D366; background: rgba(37, 211, 102, 0.1); }
.info-item h4 { font-size: 1rem; color: var(--text-muted); margin-bottom: 5px; font-weight: normal; }
.info-item span { font-size: 1.1rem; font-weight: 700; }
.phone-text { font-family: sans-serif; letter-spacing: 1px; }

.contact-form-container { flex: 1.2; padding: 60px; }
.contact-form-container h3 { font-size: 1.8rem; margin-bottom: 30px; color: var(--gold); }

.luxury-form { display: flex; flex-direction: column; gap: 20px; }
.input-group { position: relative; }
.input-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); transition: 0.3s; z-index: 2; pointer-events: none;}
textarea + .input-icon { top: 25px; transform: none; }

.luxury-form input, .luxury-form select, .luxury-form textarea {
    width: 100%; padding: 18px; padding-right: 50px; background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; color: var(--text-main);
    font-family: var(--font-body); font-size: 1rem; transition: 0.3s; appearance: none;
}
.luxury-form textarea { resize: vertical; padding-right: 18px; }
.luxury-form input:focus, .luxury-form select:focus, .luxury-form textarea:focus {
    outline: none; border-color: var(--gold); background: rgba(212, 175, 55, 0.02);
}
.luxury-form input:focus ~ .input-icon, .luxury-form select:focus ~ .input-icon { color: var(--gold); }

/* Fix for Select Options Visibility */
.luxury-form select option {
    background: #ffffff; /* White background for dropdown */
    color: #000000;      /* Black text for dropdown options */
    padding: 10px;
}

.input-row { display: flex; gap: 20px; }
.half { flex: 1; }

.success-box { background: rgba(37, 211, 102, 0.1); border: 1px solid rgba(37, 211, 102, 0.3); color: #4ade80; padding: 15px; border-radius: 8px; text-align: center; font-weight: 600; margin-bottom: 20px; }

/* ================== FOOTER ================== */
.footer { padding: 40px 0; background: var(--darker-surface); border-top: 1px solid rgba(255,255,255,0.02); }
.footer-flex { display: flex; justify-content: space-between; align-items: center; }
.footer-logo img { height: 40px; opacity: 0.7; }
.footer-social { display: flex; gap: 15px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: 0.3s; }
.footer-social a:hover { background: var(--gold); color: #000; }
.footer-copy { color: var(--text-muted); font-size: 0.9rem; }

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
    .premium-grid, .programs-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .coach-layout, .contact-card { flex-direction: column; gap: 40px; }
    .coach-image-side { flex: auto; max-width: 350px; margin: 0 auto; }
    .footer-flex { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; position: absolute; top: 76px; left: 0; width: 100%;
        background: var(--black-bg); padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.05); text-align: center;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero-title { font-size: 3rem; }
    .input-row { flex-direction: column; gap: 20px; }
    .contact-details, .contact-form-container { padding: 30px 20px; }
    
    /* CV Tabs mobile responsive layout */
    .cv-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        padding-bottom: 10px;
        overflow-x: visible;
        white-space: normal;
    }
    .tab-btn {
        font-size: 0.8rem;
        padding: 10px 4px;
        text-align: center;
        border-radius: 6px;
    }
    .luxury-list li {
        font-size: 0.95rem;
        padding-right: 20px;
    }
}


/* ================== MAP SECTION ================== */
.map-container {
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: 350px;
    width: 100%;
    position: relative;
    transition: var(--transition);
}

.map-container:hover {
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 15px 40px rgba(212,175,55,0.15);
}

.map-container iframe {
    filter: invert(90%) hue-rotate(180deg) grayscale(30%) contrast(90%);
}

