:root {
    --bg: #041022;
    /* darker base */
    --panel: rgba(255, 255, 255, 0.02);
    --glass: rgba(255, 255, 255, 0.04);
    --accent: #ff9a3c;
    --muted: #9fb0c6;
    --nav-height: 49px;
    --max-width: 1200px;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    /* cursor: none; */

    padding: 0
}

html,
body {
    height: 100%;
    /* cursor: none; */
}

body {
    font-family: poppins, Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(6, 30, 50, 0.18), transparent 8%), linear-gradient(90deg, #021226 0%, #03111a 60%, #01060a 100%);
    color: #e6eef6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
}

.container {
    width: 94%;
    max-width: var(--max-width);
    margin: 0 auto
}

/* NAV */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    padding: 0 1.25rem;
    height: var(--nav-height);
    background: rgba(2, 8, 14, 0.55);
    /* darker translucent nav */
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    top: 0;
    z-index: 60;
    height: 50px;

}

.site-nav .logo img {
    height: 44px;
    display: block;
    filter: grayscale(0) contrast(1.05)
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center
}

.nav-links a {
    font-size: 22px;
    display: inline-block;
    padding: 10px 14px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all .16s;
    font-family: Montserrat;

}

.nav-links a:hover,
.nav-links a:focus {
    color: #0860d1;
    transition: 0.5s all ease;
    /* background: rgba(255, 255, 255, 0.02); */
    outline: none
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent), #ff7a1a);
    color: #07111a
}


/* Hamburger */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center
}

.nav-toggle:focus {
    outline: 2px solid rgba(255, 154, 60, 0.25);
    outline-offset: 2px
}

.nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #e6eef6;
    margin: 4px 0;
    transition: transform .25s ease, opacity .2s ease
}

/* HERO */
.hero {
    position: relative;
    min-height: 70vh;
    /* keep prominent but allow content to size */
    height: auto;
    display: flex;
    flex-direction: column;
    /* stack top image above content */
    align-items: center;
    padding-top: 1.25rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url(assets/background.jpg);
    /* filter: blur(8px) saturate(1.05); */
    /* opacity: 1 */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /* darker overlay for better contrast */
    box-shadow: inset 0 0 0 2000px rgba(2, 8, 14, 0.45);
    z-index: 0;

}

.hero-content {
    position: relative;
    z-index: 4;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem 1rem;
}

/* top image that sits above the hero content */
.hero-top {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center center;
    /* border-radius: 12px; */
    /* box-shadow: 0 10px 40px rgba(2,6,10,0.6); */
    margin-bottom: 1.25rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 3;
    /* above the hero-bg overlay */
}

@media (max-width:880px) {
    .hero-top {
        height: 100px;
        margin-top: 100px;

        border-radius: 10px;
        margin-bottom: 0.85rem;
    }
}

@media (min-width:1400px) {
    .hero-top {
        height: 230px;
    }
}

.glass-card {
    max-width: 700px;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px) saturate(1.1);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.25rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(2, 6, 10, 0.6);
    text-align: center
}

.glass-card h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: #111160f7;
}

.glass-card p {
    font-size: 1.5rem;
    font-family: Oswald, sans-serif;
    font-weight: 600;
    font-style: italic;
    color: rgba(230, 240, 255, 0.9);
}



/* ABOUT */
.about {
    padding: 3.5rem 0
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.25rem;
    align-items: center
}

.about-text h2 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: .75rem
}

.about-text p {
    color: var(--muted);
    margin-bottom: 1rem
}

/* Model stage - simple layered '3D' look */
.model-stage {
    width: 100%;
    max-width: 420px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}


.ball {
    position: absolute;
    left: 75%;
    top: 48%;
    width: 26px;
    height: 26px;
    background: radial-gradient(circle at 30% 30%, #fff, #f3b1a0 40%), linear-gradient(180deg, #ff6b00, #ff9750);
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6)
}

/* --- New wicket + bat scene styles --- */
.wickets {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    height: 100%;
    justify-content: center
}

.wicket {
    width: 8px;
    height: 120px;
    background: linear-gradient(180deg, #8b5a2b, #d1a87b);
    border-radius: 4px;
    position: relative;
    box-shadow: inset 0 -6px 8px rgba(0, 0, 0, 0.35)
}

.wicket:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -14px;
    width: 28px;
    height: 10px;
    background: #7b4f2a;
    border-radius: 6px
}

.bat-model {
    position: absolute;
    right: 10%;
    bottom: 18%;
    width: 160px;
    height: 34px;
    display: flex;
    align-items: center;
    transform: rotate(-16deg);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5))
}

.bat-handle {
    width: 24px;
    height: 34px;
    background: linear-gradient(180deg, #1b1b1b, #4b4038);
    border-radius: 6px 0 0 6px
}

.bat-blade {
    flex: 1;
    height: 100%;
    background: linear-gradient(180deg, #f1cfa0, #c98f53);
    border-radius: 0 6px 6px 0;
    margin-left: 6px
}

/* Global cursor-following cricket ball */
.cursor-ball {
    position: fixed;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(0.9);
    transition: transform .12s linear, opacity .12s linear;
    backface-visibility: hidden
}

.cursor-ball .core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 25% 25%, #fff 0%, #ffd9b3 15%, #ff8a00 50%, #c45500 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 -6px 12px rgba(255, 255, 255, 0.12)
}

.cursor-ball .seam {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68%;
    height: 6px;
    background: transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.85);
    border-bottom: 2px solid rgba(255, 255, 255, 0.18);
    transform: translate(-50%, -50%) rotate(18deg);
    border-radius: 50%
}

/* Smaller on mobile */
@media (max-width:520px) {
    .cursor-ball {
        width: 30px;
        height: 30px
    }

    .bat-model {
        display: none
    }
}

/* footer */
.site-footer {
    padding: 2rem 0;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    text-align: center
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(2, 6, 10, 0.6), rgba(2, 6, 10, 0.85));
    backdrop-filter: blur(4px);
    z-index: 1200;
    padding: 2rem
}

.modal-overlay.open {
    display: flex
}

.modal {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    width: min(1100px, 100%);
    max-height: 92vh;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 50px rgba(2, 6, 10, 0.6);
    padding: 1.25rem
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 1.125rem;
    cursor: pointer
}

/* .modal-body {
    padding: 1.5rem 1rem
} */

.modal-intro {
    color: var(--muted);
    margin-bottom: 1rem
}

.services-heading {
    color: #fff;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column
}

.card-media {
    height: 140px;
    background-size: cover;
    background-position: center
}

.card-title {
    text-align: center;
    padding: 0.5rem 0;
    font-weight: 700;
    color: #fff;
    font-size: 25px;
}

.card-desc {
    padding: 0.75rem;
    color: var(--muted);
    opacity: 0;
    transform: translateY(8px);
    transition: all .22s
}

.service-card:hover .card-desc {
    opacity: 1;
    transform: translateY(0);
}

.expand-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 0;
    color: #fff;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Desktop: show hover descriptions */
@media(min-width:880px) {
    .expand-btn {
        display: none
    }

    .service-card {
        min-height: 220px
    }
}

/* Mobile: compact cards, show expand button */
@media(max-width:879px) {

    /* Keep services as a grid on small devices so background images (.card-media) show correctly */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .service-card {
        min-height: 84px;
        flex-direction: row;
        align-items: center
    }

    .card-media {
        height: 100%;
        width: 96px;
        flex: 0 0 96px
    }

    .card-title {
        left: 93px;
        padding: 0px 12px;
        text-align: left;
        position: absolute;
        top: 10px;
        font-size: 1.25rem;
    }

    .card-desc {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 86px;
        font-size: 20px;
        padding: 12px;
        background: linear-gradient(180deg, rgba(2, 6, 10, 0.6), rgba(2, 6, 10, 0.9));
        opacity: 0;
        pointer-events: none;
        max-height: 0;
        overflow: scroll
    }

    .service-card .expand-btn {
        display: flex
    }

    .service-card.expanded {
        min-height: 220px
    }

    .service-card.expanded .card-desc {
        opacity: 1;
        pointer-events: auto;
        max-height: 320px
    }
}

/* Blogs & Jobs common card styles */
.blogs-section,
.jobs-section {
    padding: 3rem 0;
}

.blogs-grid,
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    justify-items: center
}

.blog-card,
.job-card {
    width: 340px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 30px rgba(2, 6, 10, 0.45);
    transition: transform .14s ease
}

.blog-card:hover,
.job-card:hover {
    transform: translateY(-6px)
}

.blog-media,
.job-media {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.blog-body,
.job-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem
}

.blog-title,
.job-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700
}

.blog-excerpt,
.job-desc {
    color: var(--muted);
    font-size: 0.95rem
}

.blog-tags .tag,
.job-tags .tag {
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-right: 0.4rem
}

.blog-actions,
.job-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end
}

.job-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-weight: 700
}

@media (max-width:700px) {

    .blog-card,
    .job-card {
        width: 100%;
        max-width: 520px
    }
}

@media (max-width:480px) {
    .services-grid {
        grid-template-columns: 1fr
    }
}

/* Responsive */
@media (max-width:1100px) {
    .about-grid {
        grid-template-columns: 1fr 360px
    }

    .glass-card h1 {
        font-size: 2rem
    }
}

@media (max-width:880px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: 0;
        width: 78%;
        max-width: 340px;
        height: calc(100% - var(--nav-height));
        background: linear-gradient(180deg, rgb(8 21 31), rgba(255, 255, 255, 0.01));
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
        gap: .5rem;
        box-shadow: -6px 10px 40px rgba(2, 6, 10, 0.6);
        transform: translateX(105%);
        transition: transform .28s cubic-bezier(.2, .9, .2, 1)
    }

    .nav-links li {
        width: 100%
    }

    .nav-links a {
        width: 100%;
        color: #fff;
    }

    .site-nav.open .nav-links {
        transform: translateX(0%)
    }

    /* The button contains an .sr-only span as the first child, so the three .bar spans are children 2..4 */
    .site-nav.open .nav-toggle .bar:nth-child(2) {
        transform: translateY(9px) rotate(45deg);
    }

    .site-nav.open .nav-toggle .bar:nth-child(3) {
        opacity: 0;
    }

    .site-nav.open .nav-toggle .bar:nth-child(4) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* Make the toggle more visible when active */
    .site-nav.open .nav-toggle {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        padding: 6px;
    }

    .site-nav.open .nav-toggle .bar {
        background: var(--accent);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem
    }

    .about-model {
        order: -1
    }

    .model-stage {
        max-width: 100%;
        height: 130px;
        display: none;
    }

    .glass-card {
        padding: 1.5rem;
        border-radius: 12px
    }
}

/* small screens hero tweak */
@media (max-width:520px) {
    .glass-card h1 {
        font-size: 2.5rem
    }

    .glass-card p {
        font-size: 1.20rem;
        font-family: Oswald, sans-serif;
        font-weight: 600;
        font-style: italic;
        color: #000000;
    }
}

/* sr-only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0
}

/* Contact section */
.contact {
    padding: 3rem 0
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: start
}

.contact-logo {
    width: 140px;
    height: auto;
    margin-bottom: 1rem
}

.contact-info h3 {
    color: #fff;
    margin-bottom: .5rem
}

.contact-info .address,
.contact-info .contact-item {
    color: var(--muted);
    line-height: 1.4
}

.contact-form-wrap {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 1rem;
    border-radius: 10px
}

.contact-form-wrap h3 {
    color: #fff;
    margin-bottom: .5rem
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: .6rem
}

#contact-form label {
    color: var(--muted);
    font-weight: 600
}

#contact-form input,
#contact-form textarea {
    padding: .6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    color: #fff
}

/* Tweak form button and status */
#contact-form .btn.primary {
    padding: 10px 16px;
    font-weight: 700;
}

.form-status {
    color: var(--muted);
    margin-top: .5rem;
}

/* Improve spacing on narrow devices */
@media (max-width:900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        margin-top: 1rem;
    }
}

#contact-form .btn {
    align-self: flex-start;
    margin-top: .5rem
}

.form-status {
    color: var(--muted);
    margin-top: .5rem
}

@media(max-width:900px) {
    .contact-grid {
        grid-template-columns: 1fr
    }

    .contact-form-wrap {
        order: -1
    }
}

/* Courses layout tweaks (centering and list styles) */