/* =========================================
   FOCUS PLUS - PREMIUM THEME
   ========================================= */
:root {
    /* Premium Red & Dark Theme */
    --primary-red: #D90429;
    --dark-red: #8D021F;
    --premium-dark: #0f172a;
    /* Deep Slate */
    --premium-black: #020617;
    /* Almost Black */
    --accent-gold: #fbbf24;
    /* Gold for premium feel */
    --glow-red: rgba(217, 4, 41, 0.6);

    --text-light: #f8fafc;
    --text-gray: #94a3b8;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glow-box: 0 0 20px rgba(217, 4, 41, 0.2);
}

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

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

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

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-red {
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--glow-red);
}

.text-gold {
    color: var(--accent-gold);
}

/* Buttons */
.btn-premium {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(217, 4, 41, 0.4);
    border: 1px solid var(--primary-red);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(217, 4, 41, 0.6);
}

.btn-outline {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    margin-left: 20px;
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--premium-black);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUpAnim 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(2, 6, 23, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plus-badge {
    background: var(--primary-red);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 0 10px var(--glow-red);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

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

.nav-links a:hover {
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--glow-red);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 2px;
    background: white;
    margin: 6px 0;
    transition: 0.3s;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    position: relative;
    overflow: hidden;
}

.hero-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* Floating Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 10s infinite alternate;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-red);
    top: 10%;
    left: 20%;
    opacity: 0.2;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: blue;
    bottom: 10%;
    right: 10%;
    opacity: 0.15;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 4.5rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-gray);
}

/* Typing Effect Cursor */
.typing::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}


/* =========================================
   COURSES GRID
   ========================================= */
.courses-sec {
    background: var(--premium-dark);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.p-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.p-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.4s;
}

.p-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.p-card:hover::before {
    transform: scaleX(1);
}

.p-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.p-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

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

/* =========================================
   PAGE SECTIONS
   ========================================= */
.page-header {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 1)), url('../assets/header-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
}

.page-header h1 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Form */
.form-box {
    background: var(--premium-dark);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-family: var(--font-body);
    transition: 0.3s;
}

.input-group select option {
    background: var(--premium-dark);
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(217, 4, 41, 0.2);
    outline: none;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.gallery-item {
    /* height: 250px; Removed to show full image */
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: 0.6s ease;
}

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

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

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


/* =========================================
   FOOTER
   ========================================= */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #000;
    padding: 60px 0;
    text-align: center;
}

.footer h2 {
    margin-bottom: 20px;
    color: white;
}

.footer p {
    color: #666;
    margin-bottom: 30px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.5rem;
    color: var(--text-gray);
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--glow-red);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: var(--premium-dark);
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

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

    .hamburger {
        display: block;
    }

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

    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
        display: block;
        width: 100%;
    }

    .btn-premium {
        display: block;
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Specific Alignment Fixes */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* =========================================
   PREMIUM SUCCESS MODAL
   ========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(15, 23, 42, 0.9);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.9);
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(217, 4, 41, 0.3);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 5rem;
    color: var(--primary-red);
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(217, 4, 41, 0.6);
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(217, 4, 41, 0.6);
    }

    50% {
        transform: scale(1.1);
        text-shadow: 0 0 40px rgba(217, 4, 41, 0.9);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(217, 4, 41, 0.6);
    }
}

.modal-content h3 {
    margin-bottom: 15px;
    font-size: 2rem;
    color: white;
}

.modal-content p {
    margin-bottom: 30px;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.modal-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(217, 4, 41, 0.4);
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(217, 4, 41, 0.6);
}