:root {
    /* ===== Colors ===== */

    --primary-color: #22D3EE;
    --primary-hover: #C026D3;

    --secondary-color: #D946EF;

    --background-color: #090714;
    --secondary-background: #120D24;

    --card-background: #1e1833;

    --text-color: #F8FAFC;
    --secondary-text: #D1D5DB;
    --muted-text: #9CA3AF;

    --border-color: #30234A;

    --Hero-background: #090714;
    --About-background: #0D091A;
    --Services-background: #120D24;
    --Feedbacks-background: #0D091A;
    --Footer-background: #07050D;


    /* ===== Typography ===== */

    --font-family: "Montserrat", sans-serif;

    --heading-color: #ffffff;


    /* ===== Spacing ===== */

    --section-padding: 80px;

    --container-width: 1200px;


    /* ===== Border Radius ===== */

    --border-radius: 20px;

    --button-radius: 15px;


    /* ===== Effects ===== */

    --transition: 0.3s ease-in-out;

    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Global Reset */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: auto;
}

section {
    padding: var(--section-padding) 0;
}

.section-heading {
    text-align: center;
}

.section-heading h2 {
    font-size: 45px;
}

.section-heading p {
    font-size: 20px;
    margin: 20px 0 75px;
}

@media (max-width: 768px) {
    section {
        padding: 30px 0;
    }
}

/* NavBar */

nav {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    top: 0;
}

nav .container {
    height: 50px;
    padding: 10px 0 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(48, 48, 48, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav .scrolled {
    background-color: rgba(11, 15, 25, 0.9);
    transition: var(--transition);
}

.logo {
    font-family: "Audiowide", sans-serif;
    font-style: normal;
    font-size: 30px;
}

.nav-links {
    display: flex;
    gap: 70px;
    margin-right: 15px;
}

.nav-links a,
.menu-links a {
    font-size: 20px;
    text-decoration: none;
    color: var(--secondary-text);
    height: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
    cursor: pointer;

    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
    transition: 0.3s;
}

.nav-links a.active {
    color: var(--primary-color);
    border-bottom: var(--primary-color) solid 2px;
}

.sign-up {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    height: 40px;
    padding: 10px;
    font-size: 18px;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.sign-up.scrolled{
    background-color: var(--card-background);
    border: 1px solid var(--primary-color);
}

.sign-up:hover {
    background-color: transparent;
    border: 1px solid var(--primary-color);
}

.menu-btn,
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {

    nav .container {
        height: 50px;
        padding: 10px 5px 10px 10px;
    }

    .logo-menu {
        font-family: "Audiowide", sans-serif;
        font-style: normal;
    }

    .nav-links {
        display: none;
    }

    .menu-btn,
    .close-btn {
        display: block;
        background-color: transparent;
        color: var(--text-color);
        flex-shrink: 0;
        border: none;
        font-size: 30px;
    }

    .menu-btn:active,
    .close-btn:active{
        color: var(--primary-color);
    }

    .no-scroll{
        overflow: hidden;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        padding: 20px;
        background-color: var(--secondary-background);
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .menu-top {
        display: flex;
        justify-content: space-between;
        height: 50px;
        align-items: center;
        font-size: 50px;
    }

    .mobile-menu.active{
        transform: translateX(0);
    }

}
@media (min-width: 769px) and (max-width: 1024px) {

    .nav-links{
        gap: 20px;
    }

}


/* Hero Section */

#home {
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 1;
    background:
        linear-gradient(rgba(15, 23, 42, 0.65),
            rgba(15, 23, 42, 0.65)),
        url("images/background.jpg") center / cover no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#home .container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

#home div {
    margin-top: 30px;
    text-align: center;
}

#home h1 {
    font-size: 64px;
}

#home p {
    width: 1100px;
    font-size: 42px;
    line-height: 65px;
    margin-top: 80px;
}

#home a {
    display: inline-block;
    font-size: 30px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    padding: 10px;
    border-radius: 25px;
    margin-top: 100px;
    transition: var(--transition);
}

#home a:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    #home {
        height: 50vh;
        width: 100%;
    }

    #home div {
        margin-top: 50px;
    }

    #home h1 {
        font-size: 30px;
    }

    #home p {
        width: 400px;
        margin-top: 30px;
        font-size: 20px;
        line-height: 30px;
    }

    #home a {
        font-size: 25px;
        margin: 30px;
        border: 2px solid var(--primary-color);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    #home h1{
        font-size: 50px;
    }

    #home p{
        width: 800px;
    }
}

/* About Section */

#about {
    position: relative;
    z-index: 2;
    background-color: var(--About-background);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content img {
    width: 50%;
    border-radius: var(--border-radius);
}

.about-text {
    flex: 1;
    height: 300px;
    margin-top: 20px;
}

.about-text h3 {
    font-size: 32px;
}

.about-text p {
    color: var(--secondary-text);
    line-height: 1.7;
    font-size: 18px;
    margin: 35px 0;
}

.about-text ul {
    list-style: none;
}

.about-text li {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}

.about-text li::before {
    content: "✓";
    margin-right: 15px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 20px;
    }

    .about-content img {
        width: 100%;
    }
}

/* Services Section */

#services {
    position: relative;
    z-index: 2;
    background-color: var(--Services-background);
}

.slider-btn {
    display: none;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--box-shadow);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out,
        transform 0.3s ease-out,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color);
}

.card.active {
    opacity: 1;
    transform: translateY(0);
}

.card div {
    overflow: hidden;
    width: 100%;
    height: 200px;
    border-radius: var(--button-radius);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: fill;
    border-radius: var(--button-radius);
    transition: var(--transition);
}

.card-content{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.card h3 {
    font-size: 20px;
    color: var(--heading-color);
}

.card p {
    font-size: 18px;
    color: var(--secondary-text);
}

.card span {
    display: inline-block;
    width: fit-content;
    font-size: 20px;
    padding: 10px 7px;
    border-bottom: 2px solid var(--primary-color);
    transition: var(--transition);
}

.card span:hover {
    transform: translateX(5px);
}

.card:hover img {
    transform: scale(1.1);
}

.card:hover span {
    color: var(--primary-color);
}

.slider-dots {
    display: none;
}

@media (max-width: 768px) {

    .services-slider {
        display: grid;
        grid-template-columns: 20px 1fr 20px;
        align-items: center;
        gap: 10px;
    }

    .services-cards {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .services-cards::-webkit-scrollbar {
        display: none;
    }

    .card {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }

    .slider-btn {
        display: block;
        flex-shrink: 0;
        width: fit-content;
        border-radius: 50%;
        background-color: transparent;
        border: none;
        color: white;
        font-size: 80px;
        line-height: 1;
        cursor: pointer;
        z-index: 2;
    }

    .prev {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }

    .next {
        grid-column: 3;
        grid-row: 1;
        justify-self: center;
    }

    .slider-dots {
        grid-column: 1/-1;
        grid-row: 2;
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    .dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background-color: var(--muted-text);
        cursor: pointer;
        transition: var(--transition);
    }

    .dot.active {
        width: 24px;
        border-radius: 10px;
        background-color: var(--primary-color);
    }

}

@media (min-width: 769px) and (max-width: 1024px) {

    #services .container{
        width: 96%;
    }

    .services-cards{
        gap: 20px;
    }
}

/* Feedbacks section */

#feedbacks {
    position: relative;
    z-index: 2;
    background-color: var(--Feedbacks-background);
}

.feedback-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.comment {
    width: 60%;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-background);
    padding: 35px 40px;
    line-height: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s ease-in-out;
    box-shadow: var(--box-shadow);
}

.comment.active {
    opacity: 1;
    transform: translateY(0);
}

.comment:nth-child(even) {
    align-self: flex-end;
}

.comment::before {
    content: "“";
    position: absolute;
    top: -16px;
    left: 20px;
    font-size: 70px;
    line-height: 1;
    color: var(--primary-color);
}

.rating-comment {
    color: var(--secondary-text);
    font-size: 18px;
}

.rating-stars {
    color: var(--primary-color);
    letter-spacing: 3px;
    font-size: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.author {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .comment {
        width: 100%;
    }
}

/* Footer */

footer {
    padding: 40px 0;
    background-color: var(--Footer-background);
    position: relative;
    z-index: 2;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 60px;
}

footer {
    text-align: center;
}

footer h3 {
    font-size: 25px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-evenly;
}

.social-links a {
    color: var(--muted-text);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.footer-links a {
    color: var(--muted-text);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    grid-column: span 4 / span 4;
    margin-top: 40px;
}

@media (max-width: 768px) {

    footer {
        padding: 20px 0;
    }

    footer .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr 1fr 50px;
    }

    footer h3 {
        margin-top: 20px;
    }

    .footer-bottom {
        grid-column: span 2 / span 2;
        margin-top: 20px;
    }

}