@import url('https://fonts.googleapis.com/css2?family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root colors */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #342b9b;
    --text-color: #1f2937;
    --background-color: #dddddd;
    --alt-background: white;
    --font-family: 'Sansation', sans-serif;
}

html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Base styles */
body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Container for fixed width and padding */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    background: var(--alt-background);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo {
    height: 100px;
    width: auto;
}

/* Navigation */
.desktop-nav {
    display: block;
}

.mobile-nav {
    display: none;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #e0e7ff;
    color: var(--primary-hover);
}

/* Push page content below fixed header */
main {
    padding-top: calc(var(--header-height) + .01rem);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: auto;
    padding: 10rem 0 6rem;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/program-tree.jpg');
    background-repeat: no-repeat;
    background-size: cover;

    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    align-items: center;
    gap: 3rem;
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    overflow: visible;
}

.hero-image {
    will-change: transform, opacity;
    position: relative;
    opacity: 0;
    transform: translateY(-50px);
}

body.loaded .hero-image {
    animation: fadeSlideDropIn 1s ease-out 0.5s forwards;

}

@keyframes fadeSlideDropIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-mask {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    pointer-events: none;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #2f1f36;
    max-width: 480px;
}

.btn-primary {
    background-color: var(--primary-color);
    box-shadow: 10px 5px 10px rgba(78, 70, 229, 0.592);
    color: white;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.hero-image img {
    width: 100%;
    box-shadow: 20px 5px 10px rgba(0, 0, 0, 0.2);
}

.custom-shape-divider-bottom-1755627142 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1755627142 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 75px;
    transform: rotateY(180deg);
}

.custom-shape-divider-bottom-1755627142 .shape-fill {
    fill: #FFFFFF;
}

/* Services Section */
.services {
    position: relative;
    padding: 5rem 0 6rem;
    text-align: center;
    background-color: var(--background-color);
}

.services::before {
    transform-origin: 0 0;
    transform: skewY(5deg);
}

.services h2,
.gallery h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--text-color);
}

.service-cards {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}

.service-card {
    background-color: #f9fafb;
    border-radius: 12px;
    box-shadow: 10px 5px 20px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    max-width: 400px;
    flex: 1 1 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card img {
    width: 120px;
    height: 85px;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.service-card p {
    color: #6b7280;
    font-size: 1.10rem;
    line-height: 1.4;
    text-align: left;
}

.custom-shape-divider-top-1755625907 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top-1755625907 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 75px;
    transform: rotateY(180deg);
}

.custom-shape-divider-top-1755625907 .shape-fill {
    fill: white;
}

/*Why Section*/
.why-modern {
    padding: 5rem 0;
    background: linear-gradient(to bottom right, #f8fafc, #ffffff);
}

.box {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.why-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.why-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #4b5563;
}

.why-features {
    list-style: none;
    margin-bottom: 2rem;
}

.why-features li {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.why-features i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.why-image {
    position: relative;
    overflow: visible;
}

.why-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 15px 5px 10px rgba(0, 0, 0, 0.2);
}

.stats-box {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    background: #4f46e5;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 10px 5px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease forwards;
}

.stats-box h3 {
    margin: 0;
    font-size: 1.5rem;
}

.stats-box p {
    font-size: 0.9rem;
    margin: 0;
    color: #e0e7ff;
}

/*Divider*/
.custom-shape-divider-top-1755620708 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top-1755620708 svg {
    position: relative;
    display: block;
    width: calc(145% + 1.3px);
    height: 137px;
}

.custom-shape-divider-top-1755620708 .shape-fill {
    fill: #FFFFFF;
}

/*Reviews Section*/

.review-dots {
    margin-top: 1.5rem;
    text-align: center;
}

.review-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background-color: #c4b5fd;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.review-dots .dot.active {
    background-color: #4f46e5;
}

.reviews-modern {
    position: relative;
    padding: 8rem 0 1rem;
    background: linear-gradient(#ead5ff, #f0e3fd);
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.reviews-grid {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    height: 220px;
    overflow: visible;
    box-shadow: 10px 2px 20px rgba(78, 70, 229, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;

}

.review-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    text-align: left;
    box-shadow: 15px 5px 15px rgba(78, 70, 229, 0.1);
    transform: scale(1);
}

.review-card.active {
    opacity: 1;
    z-index: 2;
}

.review-card p {
    font-size: 1.05rem;
    font-style: italic;
    color: #374151;
    margin-bottom: 1.25rem;
}

.review-card .author {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: #4f46e5;
}

.stars {
    color: #facc15;
}

/*Portfolio Section*/
.portfolio {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(#f0e3fd, #fbf9fd);
}

.blog-scroll {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    scroll-snap-type: x mandatory;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
}

.blog-post {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 12px;
    box-shadow: 10px 5px 20px rgba(0, 0, 0, 0.2);
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(78, 70, 229, 0.592);
}

.blog-post h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.blog-post img {
    width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.blog-post p {
    margin-top: auto;
    font-size: 1rem;
}

/*Contact*/
.contact {
    position: relative;
    width: 100%;
    height: auto;
    padding: 4rem 0 1rem;
}

.contact-hero {
    position: relative;
    width: 100%;
    height: auto;
    background-image: url('/images/program-tree.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    padding: 10rem 0 8rem;
}

.hero-text-c {
    font-size: x-large;
    font-weight: bold;
    text-align: center;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.contact-form fieldset {
    border: none;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.contact-form button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    box-shadow: 10px 5px 20px rgba(0, 0, 0, 0.2);

}

.contact-form button:hover {
    background-color: #009fcf;
}

.contact-info {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 450px;
    margin: auto;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 10px 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-info h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--primary-color);
}

.contact-info a:hover {
    color: #009fcf;
}

/* Footer */
footer {
    background-color: white;
    padding: 2rem 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-inner p {
    margin: 0;
}

.social img {
    width: 32px;
    height: 32px;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.social img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/*Thank you*/
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
}

/* Content goes above the video */
.content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding-top: 20%;
    font-family: Arial, sans-serif;
}
/* Responsive */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        /* dark background */
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.3);
    }

    /* Burger button */
    .mobile-nav .burger {
        background: none;
        border: none;
        font-size: 2rem;
        color: white;
        padding: 1rem;
        cursor: pointer;
    }

    /* Menu (hidden by default) */
    .mobile-nav .mobile-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: var(--primary-color);
    }

    .mobile-nav .mobile-menu li {
        border-top: 1px solid var(--border-color);
    }

    .mobile-nav .mobile-menu a {
        display: block;
        padding: 1rem;
        color: whitesmoke;
        text-decoration: none;
    }

    .mobile-nav .mobile-menu a:hover {
        background: var(--primary-hover);
    }

    /* Show when active */
    .mobile-nav.active .mobile-menu {
        display: flex;
    }

    /* Hero */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-wrapper,
    .hero-image {
        margin: auto;
        width: 90%;
    }

    .hero h1,
    .why-text h2,
    .services h2,
    .section-title {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    /* Navigation */
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 2rem;
    }

    /* Services */
    .service-cards {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .service-card {
        max-width: 90%;
    }

    /* Why Section */
    .why-modern {
        padding: 1rem 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .why-image img,
    .why-visual img {
        margin: 0 auto;
        width: 90%;
    }

    .stats-box h3 {
        font-size: 1rem;
    }

    /* Contact Section */
    .contact-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .contact-info {
        max-width: 100%;
    }

    .contact-form button {
        width: 100%;
    }

    /*Reviews*/
    .reviews-grid {
        position: relative;
        max-width: 100%;
        min-height: 300px;
        overflow: hidden;
    }

    .review-card {
        position: absolute; 
        top: 0;
        left: 0;
        width: 100%;       
        opacity: 0;
        transition: opacity 1s ease;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(78, 70, 229, 0.2);
        border-radius: 12px;
        background: rgba(255,255,255,0.95);
    }

    .review-card.active {
        opacity: 1;
        z-index: 2;
    }

    /* Gallery (thumbnails row) */
    .gallery-container {
        width: 90%;
        padding: 1rem;
    }

    .thumbs-row {
        overflow-x: auto;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .thumbs-row img {
        width: 70px;
        height: 50px;
    }

    .large-image {
        max-height: 300px;
    }

    .footer-inner {
        margin-bottom: 5rem;

    }
}