/* ================= RESET ================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top, rgba(88,101,242,.10), transparent 30%),
        linear-gradient(180deg, #151821 0%, #11131a 100%);
    color: #fff;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none; /* no underline */
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(111,124,255,.9);
    outline-offset: 2px;
}

:root{
    --bg: #11131a;
    --bg-soft: #1a1f2b;
    --card: rgba(34, 39, 53, 0.88);
    --card-border: rgba(255,255,255,0.08);
    --text: #ffffff;
    --muted: rgba(255,255,255,0.82);
    --muted-soft: rgba(255,255,255,0.65);
    --accent: #5865f2;
    --accent-2: #6f7cff;
    --shadow: 0 20px 50px rgba(0,0,0,.35);
    --radius: 18px;
    --radius-sm: 12px;
}

/* ================= GLOBAL ================= */
.container {
    max-width: 1180px;
    margin: auto;
    padding: 0 1.2rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

section.dark {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        #171b24;
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: .8rem;
}

p {
    line-height: 1.52;
    opacity: .96;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.section-intro {
    max-width: 760px;
    margin-bottom: 2rem;
}

/* ================= HERO ================= */
.hero {
    min-height: 88vh;
    padding: 4rem 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: hidden;
    background: #111;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -4%;
    background: url('img/hero.jpg') center / cover no-repeat;
    animation: heroZoom 22s ease-in-out infinite alternate;
    transform-origin: center;
    z-index: -3;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8,10,15,.38) 0%, rgba(8,10,15,.70) 100%),
        radial-gradient(circle at 20% 30%, rgba(88,101,242,.18), transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.08), transparent 25%);
    z-index: -2;
}

.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 25% 35%, rgba(88,101,242,.12), transparent 24%),
        radial-gradient(circle at 75% 20%, rgba(111,124,255,.10), transparent 18%),
        radial-gradient(circle at 50% 85%, rgba(255,255,255,.05), transparent 24%);
    animation: glowFloat 10s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0%   { transform: scale(1) translate3d(0,0,0); }
    50%  { transform: scale(1.06) translate3d(0,-6px,0); }
    100% { transform: scale(1.1) translate3d(-6px,0,0); }
}

@keyframes glowFloat {
    0%   { transform: translateY(0px); opacity: .85; }
    100% { transform: translateY(-10px); opacity: 1; }
}

@keyframes startDateFlash {
    0%, 39%, 44%, 69%, 74%, 100% {
        opacity: 1;
        filter: brightness(1.36) saturate(1.3);
        box-shadow:
            0 14px 28px rgba(0,0,0,.36),
            0 0 40px rgba(255,126,58,.72);
    }
    40%, 43%, 70%, 73% {
        opacity: .06;
        filter: brightness(.5) saturate(.82);
        box-shadow:
            0 8px 18px rgba(0,0,0,.30),
            0 0 6px rgba(255,126,58,.1);
    }
}

@keyframes startDateTilt {
    0%, 100% { transform: rotate(6deg) skewX(-5deg) translateY(0); }
    50% { transform: rotate(3deg) skewX(-3deg) translateY(-2px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 2rem 2rem 2.2rem;
    text-align: center;
    background: rgba(10, 12, 18, 0.28);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-content img.logo {
    width: clamp(140px, 22vw, 195px);
    margin: 0 auto 1.2rem;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.28));
}

.start-date-flash-stack {
    display: grid;
    gap: .46rem;
    justify-items: center;
    width: fit-content;
    margin: .95rem auto 0;
    pointer-events: none;
}

.start-date-flash {
    position: relative;
    display: inline-grid;
    gap: .12rem;
    justify-items: center;
    padding: .72rem 1.25rem .68rem;
    white-space: nowrap;
    background: linear-gradient(126deg, #ff8600 0%, #ff4f2d 48%, #ffce3a 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 20px 7px 24px 10px / 10px 24px 13px 28px;
    transform: rotate(6deg) skewX(-5deg);
    transform-origin: center;
    text-shadow: 0 1px 2px rgba(0,0,0,.34);
    will-change: opacity, filter, box-shadow, transform;
    animation:
        startDateFlash .56s steps(1, end) infinite,
        startDateTilt 2.1s ease-in-out infinite;
}

.start-date-flash-stack .start-date-flash:nth-child(2) {
    animation-delay: .16s, .33s;
}

.start-date-flash span {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.start-date-flash strong {
    font-size: 1.32rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.hero-title {
    margin-bottom: .85rem;
}

.hero-subtitle {
    max-width: 620px;
    margin: 0 auto .9rem;
    font-size: 1.03rem;
    color: rgba(255,255,255,.90);
}

.hero-email {
    font-size: 1rem;
    color: rgba(255,255,255,.98);
    margin-bottom: 1.2rem;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
    margin-bottom: 1.2rem;
    justify-content: center;
    color: rgba(255,255,255,.85);
    font-size: .86rem;
    line-height: 1.4;
}

.badges span {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: 500;
    backdrop-filter: none;
}

.badges span + span::before {
    content: "•";
    margin: 0 .5rem;
    color: rgba(255,255,255,.55);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.quick-nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: .55rem;
    flex-wrap: wrap;
}

.quick-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .42rem .8rem;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.92);
    font-size: .82rem;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.quick-nav a:hover {
    background: rgba(88,101,242,.20);
    border-color: rgba(88,101,242,.52);
    transform: translateY(-1px);
}

.quick-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin: .95rem auto 0;
    padding: .5rem .92rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
}

.quick-nav-toggle-icon {
    width: 14px;
    height: 10px;
    position: relative;
    display: inline-block;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.quick-nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 2px solid currentColor;
}

/* ================= BUTTONS ================= */
.btn,
.btn-soft,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
    white-space: nowrap;
    min-height: 44px;
}

.btn,
.btn-soft {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 10px 24px rgba(88,101,242,.28);
}

.btn:hover,
.btn-soft:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(88,101,242,.34);
}

.btn-ghost {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.12);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
    margin-top: 1rem;
}

/* ================= COURSES ================= */
#courses,
#certificate,
#testimonials,
#outcomes,
#contact {
    scroll-margin-top: 90px;
}

#testimonials h2,
#outcomes h2 {
    line-height: 1.08;
    text-align: center;
}

#courses h2 {
    line-height: 1.08;
    text-align: center;
}

#testimonials .section-intro,
#outcomes .section-intro {
    line-height: 1.4;
    max-width: none;
    width: 100%;
    text-align: center;
}

#courses .section-intro {
    line-height: 1.4;
    max-width: none;
    width: 100%;
    text-align: center;
}

.courses {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.2rem;
    align-items: stretch;
}

.course {
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
        var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem 1.35rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(88,101,242,.14), transparent 38%);
    opacity: .8;
    pointer-events: none;
}

.course:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(0,0,0,.30);
    border-color: rgba(255,255,255,.14);
}

.course img {
    width: min(220px, 72vw);
    height: 172px;
    margin: 0 auto 1rem;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,.18));
}

.course h3 {
    min-height: 3.1em;
    margin-bottom: .55rem;
}

.course p {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.35;
}

.course-description {
    position: relative;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .3s ease, opacity .2s ease;
}

.course-description::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(26,31,43,.55), rgba(26,31,43,.98));
    pointer-events: none;
    transition: opacity .2s ease;
}

.course.is-expanded .course-description {
    max-height: 28em;
    opacity: 1;
    margin-bottom: .35rem;
}

.course.is-expanded .course-description::after {
    opacity: 0;
}

.course-toggle {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: .1rem 0 .3rem;
    padding: 0;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.95);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.course-toggle:hover {
    background: rgba(88,101,242,.2);
    border-color: rgba(88,101,242,.5);
    transform: translateY(-1px);
}

.course-toggle::after {
    content: "▾";
    font-size: 1rem;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform .2s ease;
}

.course.is-expanded .course-toggle::after {
    transform: rotate(180deg);
}

.course-toggle[hidden] {
    display: none;
}

.course-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.90);
    font-size: .93rem;
    overflow-wrap: anywhere;
    min-height: 4.4em;
}

.course .btn-row {
    margin-top: auto;
    padding-top: 1.1rem;
}

/* ================= CERTIFICATE ================= */
.certificate-wrap {
    text-align: center;
}

.certificate-text {
    max-width: none;
    width: 100%;
    margin: 0 0 1.8rem;
}

.diploma-frame {
    max-width: 620px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: var(--shadow);
}

.diploma-image {
    width: 100%;
    border-radius: 14px;
    display: block;
}

/* ================= TESTIMONIALS ================= */
.testimonial-marquee {
    margin-top: 1.7rem;
    overflow: hidden;
    padding: .4rem 0;
}

.testimonial-track {
    display: inline-flex;
    gap: 1rem;
    min-width: max-content;
    animation: testimonialsScroll 48s linear infinite;
    animation-play-state: running;
    will-change: transform;
}

@keyframes testimonialsScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.testimonial-card {
    flex: 0 0 auto;
    width: min(360px, 86vw);
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
        var(--card);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius-sm);
    padding: 1rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.24);
}

.testimonial-loop-gap {
    flex: 0 0 auto;
    width: clamp(280px, 34vw, 520px);
    pointer-events: none;
}

.testimonial-card img {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    margin-bottom: .75rem;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border: 0;
}

.testimonial-text {
    color: rgba(255,255,255,.93);
    margin: 0 0 .7rem;
    line-height: 1.28;
}

.testimonial-person {
    margin: 0;
    color: var(--muted-soft);
    font-size: .9rem;
    line-height: 1.25;
}

/* ================= OUTCOMES ================= */
.outcomes-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.outcome-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
        var(--card);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius-sm);
    padding: 1rem 1rem 1.1rem;
    box-shadow: 0 10px 22px rgba(0,0,0,.2);
}

.outcome-card img {
    width: 100%;
    height: 132px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    margin-bottom: .9rem;
}

.outcome-card h3 {
    margin-bottom: .6rem;
}

.outcome-card p {
    margin: 0;
    line-height: 1.35;
}

/* ================= CONTACT ================= */
.contact-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
        var(--card);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 2rem 1.4rem;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.facebook img {
    max-width: 180px;
    margin: 1.6rem auto 0;
    transition: transform .2s ease;
}

.facebook img:hover {
    transform: scale(1.04);
}

/* ================= FOOTER ================= */
footer {
    background: #0b0e14;
    text-align: center;
    padding: 2.6rem 1rem 5.5rem;
    border-top: 1px solid rgba(255,255,255,.05);
}

footer img {
    max-width: 210px;
    margin: 0 auto 1rem;
    opacity: .95;
}

footer p {
    color: var(--muted-soft);
}




/* ================= REVEAL ANIMATION ================= */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

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





/* ================= SOCIAL MEDIA ================= */

.social-grid{
display:flex;
justify-content:center;
gap:22px;
flex-wrap:wrap;
margin-top:1.6rem;
}

.social-btn{
display:flex;
align-items:center;
gap:12px;

padding:12px 18px;

border-radius:14px;

background:rgba(255,255,255,.05);

border:1px solid rgba(255,255,255,.12);

transition:.25s;

min-width:160px;
justify-content:center;
min-height:44px;
}

.social-btn img{
width:28px;
height:28px;
}

.social-btn span{
font-weight:600;
font-size:14px;
}

.social-btn:hover{
transform:translateY(-4px);
background:rgba(88,101,242,.18);
border-color:rgba(88,101,242,.45);
box-shadow:0 10px 20px rgba(0,0,0,.25);
}






/* ================= MOBILE ================= */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
    }

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

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

@media (max-width: 860px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem .95rem 3.2rem;
    }

    .hero::before {
        animation: none;
        transform: scale(1.03);
    }

    .hero-glow {
        animation: none;
    }

    .hero-content {
        width: min(100%, 680px);
        padding: 1.5rem 1.05rem 1.7rem;
    }

    .start-date-flash-stack { margin-top: .85rem; }

    .start-date-flash {
        padding: .62rem 1rem .58rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: .55rem;
    }

    .hero-actions .btn,
    .hero-actions .btn-ghost {
        width: 100%;
    }

    .quick-nav a {
        flex: 1 1 100%;
    }

    .quick-nav-toggle {
        display: inline-flex;
    }

    .js-enabled .quick-nav {
        width: 100%;
        max-height: 0;
        margin-top: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height .25s ease, opacity .2s ease;
    }

    .js-enabled .quick-nav.is-open {
        max-height: 420px;
        margin-top: .85rem;
        opacity: 1;
        pointer-events: auto;
    }

    .courses {
        grid-template-columns: 1fr 1fr;
    }

    .testimonial-track {
        animation-duration: 40s;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 .9rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .hero {
        padding: 1rem .7rem 2.6rem;
    }

    .hero-content {
        border-radius: 20px;
    }

    .start-date-flash-stack { margin-top: .75rem; }

    .start-date-flash {
        transform: rotate(5deg) skewX(-4deg);
    }

    .start-date-flash span {
        font-size: .72rem;
    }

    .start-date-flash strong {
        font-size: 1.06rem;
    }

    .hero-subtitle,
    .hero-email {
        font-size: .95rem;
    }

    .badges span {
        font-size: .8rem;
    }

    .courses {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .course {
        padding: 1.35rem 1rem 1.2rem;
    }

    .course-description { max-height: 0; }

    .course h3 {
        min-height: auto;
    }

    .course-meta {
        line-height: 1.45;
    }

    .btn-row {
        flex-direction: column;
    }

    .btn,
    .btn-soft,
    .btn-ghost {
        width: 100%;
        white-space: normal;
        line-height: 1.2;
    }

    .quick-nav a {
        width: 100%;
    }

    .testimonial-card {
        width: min(300px, 84vw);
    }

    .testimonial-loop-gap {
        width: min(210px, 60vw);
    }

    .outcomes-grid {
        grid-template-columns: 1fr;
    }

    .outcome-card img {
        height: 116px;
    }

    .social-grid {
        gap: .65rem;
    }

    .social-btn {
        width: 100%;
        min-width: 0;
    }

    footer {
        padding-bottom: calc(3.8rem + env(safe-area-inset-bottom));
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: clamp(1.75rem, 9vw, 2.1rem);
    }

    .quick-nav a {
        width: 100%;
    }

    .testimonial-card img {
        width: 78px;
        height: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero::before,
    .hero-glow,
    .reveal {
        animation: none !important;
        transition: none !important;
    }

}

@media (hover: none), (pointer: coarse) {
    .course:hover,
    .btn:hover,
    .btn-soft:hover,
    .btn-ghost:hover,
    .course-toggle:hover,
    .quick-nav a:hover,
    .social-btn:hover,
    .facebook img:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    .testimonial-marquee:hover .testimonial-track {
        animation-play-state: paused;
    }
}
