* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0a0a0a;
    color: white;
    line-height: 1.6;
}


/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 6%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.logo img {
    width: 80px;
    height: auto;
    display: block;
}


/* ============================= */
/* SIMPLE LOGO FADE IN */
/* ============================= */

#animatedLogo {
    opacity: 0;
    animation: logoFadeIn 2s ease forwards;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: #888;
}

/* New styles for the Navbar "Join Course" button */
nav a.nav-course-btn {
    border: 1px solid #aaa;
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: 2px;
    transition: 0.3s;
}

nav a.nav-course-btn:hover {
    background: white;
    color: black;
    border-color: white;
}


/* ============================= */
/* HERO */
/* ============================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 8%;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.65) 45%,
            rgba(0, 0, 0, 0.2) 100%
        ),
        url("images/hero.jpg");
    background-size: cover;
    background-position: right center;
}

.hero-content {
    max-width: 1000px;
}

.small-title,
.section-label {
    font-size: 12px;
    letter-spacing: 4px;
    color: #888;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(60px, 9vw, 140px);
    line-height: 0.9;
    letter-spacing: -5px;
    margin-bottom: 40px;
}

.hero h1 span {
    color: #777;
}

.description {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 40px;
}


/* ============================= */
/* BUTTON */
/* ============================= */

.button {
    display: inline-block;
    padding: 16px 30px;
    border: 1px solid #555;
    color: white;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    transition: 0.3s;
}

.button:hover {
    background: white;
    color: black;
}

/* New styles for the Hero "Join My Course" button */
.hero .course-button {
    border-color: #fff; /* Make it stand out slightly more */
}

/* Ensure buttons in the hero have space between them */
.hero .button {
    margin-right: 10px;
    margin-bottom: 10px; /* Prevents them from touching if they wrap on smaller screens */
}


/* ============================= */
/* SECTIONS */
/* ============================= */

.section,
.portfolio,
.about,
.contact {
    padding: 140px 8%;
}

.section h2,
.portfolio h2,
.about h2,
.contact h2 {
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 80px;
}


/* ============================= */
/* SERVICES */
/* ============================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #333;
    border: 1px solid #333;
}

.service {
    position: relative;
    background: #0a0a0a;
    padding: 45px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    transition: background 0.4s ease;
}

.service:hover {
    background: #151515;
}

.service-number {
    color: #666;
    font-size: 12px;
    letter-spacing: 3px;
}

.service h3 {
    font-size: 25px;
    font-weight: 500;
    margin-top: 45px;
    margin-bottom: 15px;
}

.service p {
    color: #888;
    font-size: 15px;
    line-height: 1.7;
    max-width: 350px;
}

.service-link {
    margin-top: auto;
    padding-top: 30px;
    color: #aaa;
    font-size: 11px;
    letter-spacing: 2px;
    transition: 0.3s;
}

.service:hover .service-link {
    color: white;
}


/* ============================= */
/* PORTFOLIO */
/* ============================= */

.portfolio {
    background: #111;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 30px;
}

.project-image {
    height: 450px;
    overflow: hidden;
    background: #111;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.project:hover .project-image img {
    transform: scale(1.05);
}

.project-image:hover {
    transform: scale(0.98);
}

.project h3 {
    margin-top: 20px;
    font-size: 22px;
}

.project p {
    color: #777;
}


/* ============================= */
/* PROJECT INFO */
/* ============================= */

.project-info {
    padding-top: 20px;
}

.project-number {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    color: #666;
    margin-bottom: 12px;
}

.project h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.project p {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

.project-button {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    border-bottom: 1px solid #555;
    padding-bottom: 6px;
    transition: 0.3s;
}

.project-button:hover {
    color: #999;
    border-color: #999;
}


/* ============================= */
/* ABOUT */
/* ============================= */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding: 160px 8%;
    background: #0a0a0a;
}

.about-left h2 {
    font-size: clamp(45px, 6vw, 80px);
    line-height: 1;
    letter-spacing: -3px;
}

.about-right {
    max-width: 650px;
}

.about-intro {
    font-size: 24px;
    line-height: 1.5;
    color: white;
    margin-bottom: 30px;
}

.about-text {
    color: #888;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.stat strong {
    display: block;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat span {
    color: #666;
    font-size: 12px;
    letter-spacing: 1px;
}


/* ============================= */
/* CONTACT */
/* ============================= */

.contact {
    text-align: center;
    background: #151515;
}

.contact .section-label {
    margin-bottom: 30px;
}

.contact-description {
    max-width: 600px;
    margin: -40px auto 40px;
    color: #888;
    font-size: 16px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}


/* ============================= */
/* FOOTER */
/* ============================= */

footer {
    padding: 60px 8%;
    border-top: 1px solid #222;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ============================= */
/* MOBILE MENU */
/* ============================= */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}


/* ============================= */
/* SERVICE PAGE */
/* ============================= */

.service-page {
    min-height: 100vh;
    padding: 160px 8% 100px;
    background: #000;
}

.service-page h1 {
    font-size: clamp(55px, 8vw, 120px);
    line-height: 0.95;
    letter-spacing: -4px;
    margin-bottom: 30px;
}

.service-page > p:not(.section-label) {
    max-width: 700px;
    font-size: 18px;
    line-height: 1.7;
    color: #999;
    margin-bottom: 80px;
}

.service-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-project {
    border-top: 1px solid #333;
    padding-top: 25px;
}

.service-project-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #111;
}

.service-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.service-project-image:hover img {
    transform: scale(1.04);
}

.service-project-info {
    padding-top: 20px;
}

.service-project-info h3 {
    font-size: 25px;
    margin-bottom: 8px;
}

.service-project-info p {
    color: #888;
    font-size: 14px;
}


/* ============================= */
/* GET A QUOTE */
/* ============================= */

.quote-section {
    padding: 100px 8%;
    border-top: 1px solid #222;
    background: #0a0a0a;
}

.quote-section h2 {
    font-size: clamp(45px, 6vw, 80px);
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 25px;
}

.quote-description {
    max-width: 600px;
    color: #888;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}


/* ============================= */
/* PREMIUM QUOTE BUTTONS */
/* ============================= */

.quote-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quote-service {
    cursor: pointer;
    font-family: inherit;
    background: #0d0d0d;
    border: 1px solid #333;
    color: #aaa;
    padding: 13px 20px;
    font-size: 11px;
    letter-spacing: 1.8px;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.quote-service:hover {
    background: white;
    color: black;
    border-color: white;
    transform: translateY(-2px);
}

.quote-service:active {
    transform: translateY(0);
}


/* ============================= */
/* PREMIUM QUOTE FORM */
/* ============================= */

.quote-form {
    margin-top: 60px;
    max-width: 760px;
    border-top: 1px solid #2a2a2a;
    padding-top: 45px;
}

.quote-form form {
    position: relative;
    background: #0d0d0d;
    border: 1px solid #222;
    padding: 40px;
}

.quote-form form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 2px;
    background: #fff;
}

.quote-form h3 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.quote-form label {
    display: block;
    color: #777;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 9px;
    margin-top: 28px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 17px;
    background: #111;
    border: 1px solid #292929;
    border-radius: 0;
    color: white;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
    color: #555;
}

.quote-form input:hover,
.quote-form select:hover,
.quote-form textarea:hover {
    border-color: #444;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: #777;
    background: #151515;
}

.quote-form select {
    appearance: none;
    cursor: pointer;
}

.quote-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.quote-form button {
    margin-top: 35px;
    background: white;
    color: black;
    border: 1px solid white;
    cursor: pointer;
    transition: all 0.25s ease;
}

.quote-form button:hover {
    background: transparent;
    color: white;
}


/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 800px) {

    .navbar {
        padding: 20px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 75px;
        right: 20px;
        flex-direction: column;
        gap: 20px;
        width: 220px;
        padding: 25px;
        background: rgba(15, 15, 15, 0.97);
        border: 1px solid #333;
        backdrop-filter: blur(10px);
    }

    nav.active {
        display: flex;
    }

    nav a {
        font-size: 14px;
        letter-spacing: 2px;
    }

    /* Mobile adjustment for Join Course button */
    nav a.nav-course-btn {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        margin-top: 5px;
    }

    .hero {
        padding: 120px 20px 80px;
    }

    .hero h1 {
        font-size: 65px;
        letter-spacing: -3px;
    }

    .section,
    .portfolio,
    .about,
    .contact {
        padding: 90px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 300px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 100px 20px;
    }

    .about-intro {
        font-size: 20px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
        margin-top: 40px;
    }

    .stat strong {
        font-size: 25px;
    }

    .stat span {
        font-size: 10px;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .service-page {
        padding: 130px 20px 80px;
    }

    .service-page h1 {
        font-size: 55px;
        letter-spacing: -3px;
    }

    .service-projects {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .service-project-image {
        height: 300px;
    }


    /* QUOTE MOBILE */

    .quote-section {
        padding: 90px 20px;
    }

    .quote-section h2 {
        font-size: 55px;
        letter-spacing: -3px;
    }

    .quote-description {
        margin-bottom: 35px;
    }

    .quote-buttons {
        gap: 8px;
    }

    .quote-service {
        padding: 13px 16px;
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .quote-form {
        margin-top: 45px;
        padding-top: 30px;
    }

    .quote-form form {
        padding: 28px 20px;
    }

    .quote-form h3 {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .quote-form input,
    .quote-form select,
    .quote-form textarea {
        padding: 15px;
    }

    .quote-form button {
        width: 100%;
        text-align: center;
    }

}