:root {
    --background: #ffffff;
    --background-soft: #eef0f7;
    --text-color: #1a1a1a;
    --accent-color: #ff5a5f;
    --secondary-accent: #4a90e2;
    --hover-color: #ff8a80;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--background);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

p {
    font-weight: 400;
    font-size: 20px;
}

h1,
h2 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.5em 0;
}

h1 {
    font-size: 3em;
    font-weight: 700;
}

h2 {
    font-size: 2em;
    font-weight: 700;
}


/* Navbar Styles */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--background);
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    /* Adjusted from 5vw to a fixed value */
    box-shadow: 0px 4px 10px var(--shadow-color);
    z-index: 1000;
    box-sizing: border-box;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}


/* Fix menu toggle alignment */

.menu-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}


/* Mobile Fix */

@media (max-width: 950px) {
    .navbar {
        padding: 15px 15px;
    }
    .menu-toggle {
        padding-right: 10px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: var(--background);
        width: 180px;
        /* Adjusted width */
        box-shadow: 0px 4px 10px var(--shadow-color);
        padding: 15px;
        text-align: right;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    /* Adjust based on your design preference */
    height: auto;
}

.logo-text {
    font-size: 1.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.tagline {
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: -5px;
}

.hero-text {
    max-width: 55%;
    margin-left: 5vw;
}

.hero img {
    width: 65%;
    height: auto;
    border-radius: 15px;
    box-shadow: 5px 5px 20px var(--shadow-color);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 100vh;
    padding: 0 5vw;
}

@media (max-width: 950px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 50px;
    }
    .hero img {
        width: 80%;
        margin: auto;
    }
    .hero-text {
        max-width: 80%;
        margin: auto;
    }
}

.cta-button {
    background: var(--accent-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    margin-top: 20px;
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 3px 3px 0 0 black;
    border: 1px solid black;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 0 black;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.about,
.projects {
    background: var(--background);
    color: var(--text-color);
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
    justify-content: space-between;
    /* padding: 60px; */
}

.about-text {
    margin-left: 60px;
}

.projects-text {
    margin-left: 60px;
}

.about img,
.projects img {
    width: 100%;
    height: auto;
    /* border-radius: 20px; */
}

.highlight {
    background: var(--background-soft);
    text-align: center;
    padding: 80px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.highlight-item {
    background: var(--background);
    color: var(--text-color);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 3px 3px 0 0 black;
    text-align: center;
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
}

.highlight-item i {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.services,
.testimonials,
.process,
.contact {
    text-align: center;
}


/* Services */

.services {
    padding: 100px 5vw;
    text-align: center;
    background: var(--background-soft);
    position: relative;
    overflow: hidden;
}

.service-scroll-container {
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar for IE/Edge */
}

.service-scroll-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

.service-scroll {
    display: flex;
    gap: 30px;
    padding: 20px;
    width: max-content;
}

.service-item {
    background: var(--background);
    padding: 40px;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 3px 3px 0 0 black;
    border: 1px solid black;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 0 black;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1em;
    color: var(--text-color);
    opacity: 0.8;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: auto;
    padding: 20px;
}

.contact form input,
.contact form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--text-color);
    border-radius: 8px;
    font-size: 18px;
}

.contact form button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.contact form button:hover {
    background: var(--hover-color);
}


/* Testimonials */

.testimonials {
    padding: 100px 5vw;
    background: linear-gradient(to bottom, var(--background-soft), #e3e6f3);
    text-align: center;
    position: relative;
}

.testimonials::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.testimonial-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial-card {
    background: var(--background);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 3px 3px 0 0 black;
    max-width: 350px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 0 black;
}

.testimonial-img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--accent-color);
}

.testimonial-text {
    font-size: 1.1em;
    color: var(--text-color);
    font-style: italic;
    padding: 0 10px;
    line-height: 1.5;
}

.testimonial-name {
    font-weight: bold;
    margin-top: 15px;
    color: var(--accent-color);
    font-size: 1.1em;
}


/* Ensure the testimonials stack well on mobile */

@media (max-width: 950px) {
    .testimonial-container {
        flex-direction: column;
        align-items: center;
    }
    .testimonial-card {
        max-width: 90%;
    }
}

footer {
    text-align: center;
    padding: 20px;
    background: var(--text-color);
    color: white;
    font-size: 0.9em;
    position: relative;
}

footer p {
    margin: 0;
    padding: 5px;
}

.footer-socials {
    margin-top: 10px;
}

.footer-socials a {
    color: white;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--accent-color);
}

@media (max-width: 950px) {
    .about,
    .projects {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-text,
    .projects-text {
        margin: 0 auto;
        padding: 20px;
    }
    .about img,
    .projects img {
        width: 90%;
        margin: auto;
    }
    .service-item {
        width: 100px;
        margin-left: -20px;
    }
}