:root {
    --black: #000000;
    --dark: #222222;
    --green: #00df81;
    --white: #ffffff;
    --text: #dddddd;
    --muted: #999999;
    --border: #333333;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(92%, var(--container));
    margin: auto;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid #1e1e1e;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.music-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #195f43;
    border-radius: 50%;
    background: rgba(0, 223, 129, 0.05);
    color: var(--green);
    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.music-icon {
    font-size: 11px;
    margin-left: 2px;
}

.music-button:hover {
    background: rgba(0, 223, 129, 0.12);
    border-color: var(--green);
    box-shadow:
        0 0 8px rgba(0, 223, 129, 0.25),
        0 0 18px rgba(0, 223, 129, 0.08);
    transform: translate(-50%, -50%) scale(1.05);
}

.music-button.playing {
    border-color: var(--green);
    box-shadow:
        0 0 8px rgba(0, 223, 129, 0.35),
        0 0 20px rgba(0, 223, 129, 0.12);
}

@media (max-width: 700px) {
    .navbar nav a:not(.nav-button) {
        display: none;
    }
}

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

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

.navbar nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar nav a {
    color: #aaa;
    font-size: 14px;
    transition: 0.2s;
}

.navbar nav a:hover {
    color: var(--green);
}

.nav-button {
    border: 1px solid var(--green);
    padding: 9px 18px;
    color: var(--green) !important;
    border-radius: 5px;
}

.nav-button:hover {
    background: var(--green);
    color: var(--black) !important;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 700px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at 75% 40%,
            rgba(0, 223, 129, 0.08),
            transparent 35%
        );
    border-bottom: 1px solid #1b1b1b;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 80px;
    align-items: center;
    padding: 90px 0;
}

.badge {
    position: relative;
    overflow: hidden;
    display: flex;
    padding: 7px 13px;
    margin: 10px;
    border: 1px solid #195f43;
    color: var(--green);
    background: rgba(0, 223, 129, 0.05);
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.badge-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
    box-shadow:
        0 0 5px var(--green),
        0 0 10px var(--green),
        0 0 18px rgba(0, 223, 129, 0.8);
    offset-path: inset(0 round 4px);
    offset-distance: 0%;
    animation: borderGlow 4s linear infinite;
    pointer-events: none;
}

@keyframes borderGlow {
    0% {
        offset-distance: 0%;
    }
    100% {
        offset-distance: 100%;
    }
}

.hero h1 {
    margin-top: 24px;
    max-width: 700px;
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -4px;
    color: white;
}

.hero h1 span,
.section-heading span,
.hero-content > p span,
.approach-text h2 span,
.about-content h2 span,
.contact-content h2 span {
    color: var(--green);
}

.hero-text {
    max-width: 620px;
    margin-top: 26px;
    color: #aaa;
    font-size: 18px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 35px;
}

.button {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s;
    cursor: pointer;
}

.button.primary {
    background: var(--green);
    color: var(--black);
    border: 1px solid var(--green);
}

.button.primary:hover {
    background: transparent;
    color: var(--green);
}

.button.secondary {
    background: transparent;
    color: white;
    border: 1px solid #444;
}

.button.secondary:hover {
    border-color: var(--green);
    color: var(--green);
}

.hero-highlights {
    display: flex;
    gap: 35px;
    margin-top: 55px;
}

.hero-highlights div {
    display: flex;
    flex-direction: column;
}

.hero-highlights strong {
    color: var(--green);
    font-size: 13px;
}

.hero-highlights span {
    color: #777;
    font-size: 12px;
    margin-top: 3px;
}

/* =========================
   CODE CARD
========================= */

.code-card {
    background: #111111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 223, 129, 0.05);
}

.code-header {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 17px;
    border-bottom: 1px solid #2a2a2a;
    color: #777;
    font-size: 12px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #444;
}

.code-body {
    padding: 35px;
    font-family: "Courier New", monospace;
    font-size: 15px;
    line-height: 2;
}

.code-body p {
    color: #ccc;
}

.keyword {
    color: #00df81;
}

.function {
    color: white;
}

.variable {
    color: #b5b5b5;
}

.string {
    color: #8dddb9;
}

.indent {
    padding-left: 28px;
}

.indent-2 {
    padding-left: 56px;
}

.terminal-output {
    margin: 0 25px 25px;
    padding: 15px;
    border-top: 1px solid #292929;
    color: #777;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.8;
}

.terminal-output span {
    color: var(--green);
}

.terminal-output .success {
    color: var(--green);
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 110px 0;
}

.section-label {
    display: block;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 55px;
}

.section-heading h2,
.approach-text h2,
.about-content h2,
.contact-content h2 {
    color: white;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -2px;
}

.section-heading p {
    margin-top: 18px;
    color: #888;
    font-size: 16px;
}

/* =========================
   SUBJECTS
========================= */

.subjects-section {
    background: #050505;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 15px;
}

.subject-card {
    height: 280px;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: none;
    perspective: 1000px;
    cursor: pointer;
}

.subject-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}

.subject-card:hover {
    z-index: 5;
}

.subject-card.flipped {
    z-index: 10;
}

.subject-card.flipped .subject-card-inner {
    transform: rotateY(180deg);
}

.subject-front,
.subject-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 28px;
    background: var(--dark);
    border: 1px solid #303030;
    border-radius: 6px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.subject-front {
    transform: rotateY(0deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.subject-number {
    color: #00df81;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
    width: fit-content;
}

.subject-card:hover .subject-icon {
    transform: translateX(4px);
}

.subject-icon {
    color: var(--green);
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
    margin-top: 28px;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.subject-front h3 {
    color: #f5f5f5;
    font-size: 22px;
    line-height: 1.2;
    margin-top: 18px;
    margin-bottom: 10px;
}

.subject-front p {
    color: #999;
    font-size: 13px;
    line-height: 1.6;
    max-width: 95%;
}

.subject-front .flip-hint {
    margin-top: auto;
    padding-top: 20px;
    color: #555;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.subject-front::before {
    content: "";
    position: absolute;
    left: 0;
    top: 28px;
    width: 3px;
    height: 45px;
    background: var(--green);
    border-radius: 0 3px 3px 0;
}

.subject-front::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -70px;
    bottom: -70px;
    border-radius: 50%;
    background: rgba(0, 223, 129, 0.06);
    pointer-events: none;
}

.subject-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.subject-back .back-label {
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.subject-back h3 {
    color: white;
    margin-top: 10px;
    font-size: 20px;
}

.subject-back p {
    color: #999;
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.6;
}

.subject-back ul {
    margin-top: 12px;
    padding-left: 17px;
}

.subject-back li {
    color: #aaa;
    font-size: 11px;
    margin-bottom: 4px;
}

.subject-back li::marker {
    color: var(--green);
}

.flip-hint {
    margin-top: auto;
    padding-top: 12px;
    color: #555;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subject-card:hover .subject-front,
.subject-card:hover .subject-back {
    border-color: #087d4c;
}

/* =========================
   APPROACH
========================= */

.approach-section {
    background: var(--black);
}

.approach-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
    align-items: center;
}

.approach-text p {
    color: #888;
    margin-top: 20px;
    max-width: 530px;
    font-size: 15px;
}

.steps {
    border-top: 1px solid #292929;
}

.step {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #292929;
}

.step-number {
    color: var(--green);
    font-family: monospace;
    font-size: 14px;
}

.step h3 {
    color: white;
    font-size: 17px;
}

.step p {
    margin-top: 5px;
    color: #777;
    font-size: 13px;
}

/* =========================
   LEARNING PATH
========================= */

.learning-section {
    background: #050505;
}

.learning-path {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.path-item {
    flex: 1;
}

.path-item span {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #08603e;
    color: var(--green);
    font-family: monospace;
    border-radius: 50%;
    margin-bottom: 20px;
}

.path-item h3 {
    color: white;
    font-size: 16px;
}

.path-item p {
    color: #777;
    font-size: 12px;
    margin-top: 5px;
    max-width: 160px;
}

/* =========================
   ABOUT
========================= */

.about-section {
    background: var(--black);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.profile-placeholder {
    min-height: 420px;
    background: transparent;
    border: none;
    border-radius: 8px;
    perspective: 1000px;
    cursor: pointer;
}

.profile-inner {
    position: relative;
    width: 100%;
    height: 420px;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

.profile-placeholder.flipped .profile-inner {
    transform: rotateY(180deg);
}

.profile-front,
.profile-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid #333;
    border-radius: 8px;
    background:
        linear-gradient(
            135deg,
            #111 0%,
            #222 100%
        );
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.profile-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-symbol {
    color: var(--green);
    font-family: monospace;
    font-size: 54px;
    opacity: 0.7;
}

.profile-code {
    margin-top: 25px;
    padding: 10px 15px;
    border: 1px solid #333;
    background: #111;
    color: #888;
    font-family: monospace;
    font-size: 13px;
}

.profile-code span {
    color: var(--green);
}

.profile-flip-hint {
    position: absolute;
    bottom: 25px;
    color: #555;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.profile-back {
    transform: rotateY(180deg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-back::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(0, 223, 129, 0.08),
            transparent 45%,
            rgba(0, 0, 0, 0.25)
        );
    pointer-events: none;
}

.about-content > p {
    max-width: 650px;
    margin-top: 20px;
    color: #888;
    font-size: 15px;
}

.about-content strong {
    color: white;
}

.about-points {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-points div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.about-points span {
    color: var(--green);
    font-weight: bold;
}

.about-points p {
    color: #aaa;
    font-size: 13px;
}

/* =========================
   STUDENTS
========================= */

.students-section {
    background: #050505;
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.student-card {
    padding: 35px;
    background: var(--dark);
    border: 1px solid #303030;
    border-radius: 6px;
}

.student-icon {
    display: block;
    color: var(--green);
    font-family: monospace;
    font-size: 13px;
}

.student-card h3 {
    color: white;
    margin-top: 22px;
}

.student-card p {
    color: #888;
    font-size: 14px;
    margin-top: 10px;
}

/* =========================
   CONTACT
========================= */

.contact-section {
    padding: 110px 0;
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(0, 223, 129, 0.07),
            transparent 30%
        );
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.contact-content > p {
    max-width: 550px;
    margin-top: 20px;
    color: #888;
}

.contact-details {
    display: flex;
    gap: 50px;
    margin-top: 35px;
}

.contact-details div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    color: #555;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.contact-details a {
    color: var(--green);
    font-size: 14px;
}

/* ENQUIRY FORM SECTION */

.enquiry-card {
    height: 470px;
    perspective: 1000px;
    background: transparent;
    border: none;
    padding: 0;
}

.enquiry-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    color: #ddd;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.green-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 223, 129, 0.5);
}

.enquiry-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

.enquiry-card.flipped .enquiry-inner {
    transform: rotateY(180deg);
}

.enquiry-front,
.enquiry-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 30px;
    background: var(--dark);
    border: 1px solid #333;
    border-radius: 7px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


.enquiry-front {
    transform: rotateY(0deg);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.enquiry-front::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--green);
}

.enquiry-front::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -100px;
    bottom: -100px;
    border-radius: 50%;
    background: rgba(0, 223, 129, 0.04);
    pointer-events: none;
}

.enquiry-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.enquiry-back .thank-you-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px solid var(--green);
    border-radius: 50%;
    color: var(--green);
    font-size: 32px;
}

.enquiry-back h3 {
    color: white;
    font-size: 26px;
    margin-bottom: 12px;
}

.enquiry-back p {
    max-width: 300px;
    color: #888;
    font-size: 14px;
    line-height: 1.7;
}

#enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #aaa;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    background: #181818;
    border: 1px solid #383838;
    border-radius: 5px;
    color: #505050;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.form-group input {
    height: 42px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-note {
    margin-top: 14px;
    color: #555;
    font-size: 10px;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green);
    background: #1b1b1b;
    box-shadow: 0 0 0 2px rgba(0, 223, 129, 0.08);
}

#enquiry-form .button {
    align-self: flex-start;
    margin-top: 2px;
    padding: 12px 22px;
    border: none;
    border-radius: 5px;
    background: var(--green);
    color: #050505;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


#enquiry-form .button span {
    margin-left: 7px;
    font-size: 15px;
}

#enquiry-form .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 223, 129, 0.15);
}

#enquiry-form .button:active {
    transform: translateY(0);
}

/* =========================
   FOOTER
========================= */

footer {
    background: #050505;
    border-top: 1px solid #222;
}

.footer-content {
    padding: 45px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    margin-top: 8px;
    color: #555;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #777;
    font-size: 12px;
}

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

.copyright {
    padding: 20px 0;
    border-top: 1px solid #1d1d1d;
    color: #444;
    font-size: 11px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
    .hero-grid,
    .approach-grid,
    .about-grid,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        gap: 60px;
    }

    .about-grid,
    .approach-grid,
    .contact-box {
        gap: 50px;
    }

    .learning-path {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .path-line {
        width: 1px;
        height: 35px;
        margin: 0 0 0 20px;
    }
}

@media (max-width: 650px) {
    .navbar nav a:not(.nav-button) {
        display: none;
    }

    .nav-content {
        height: 65px;
    }

    .hero-grid {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -2.5px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        text-align: center;
    }

    .hero-highlights {
        gap: 18px;
    }

    .subjects-grid,
    .student-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 80px 0;
    }

    .about-points {
        grid-template-columns: 1fr;
    }

    .contact-details {
        flex-direction: column;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .enquiry-card {
        height: auto;
        min-height: 620px;
    }

    .enquiry-inner {
        min-height: 620px;
    }

    .enquiry-front,
    .enquiry-back {
        min-height: 620px;
    }

}

.cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    margin-left: 3px;
    background: var(--green);
    vertical-align: -2px;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}
