/* =====================================================
   RESET
===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #151925;
    color: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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


/* =====================================================
   VARIABLES
===================================================== */

:root {

    --background: #151925;
    --background-light: #252c3d;
    --card: #202637;

    --cyan: #00e5ff;
    --cyan-dark: #00bfd6;

    --white: #ffffff;
    --text: #d5d9e3;
    --muted: #9ba3b5;

    --border: rgba(255,255,255,0.08);

    --container: 1180px;
}


/* =====================================================
   GLOBAL
===================================================== */

.section {
    width: min(100% - 40px, var(--container));
    margin: auto;
    padding: 110px 0;
}

.section-label {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-header h2,
.about-content h2,
.contact h2 {

    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
}

.section-header span,
.about-content span,
.contact h2 span {

    color: var(--cyan);
}


/* =====================================================
   HEADER
===================================================== */

.header {

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(21,25,37,0.85);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);
}

.navbar {

    width: min(100% - 40px, var(--container));

    height: 75px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {

    font-size: 25px;

    font-weight: 800;

    letter-spacing: -1px;
}

.logo span,
.footer-logo span {

    color: var(--cyan);
}

.nav-links {

    display: flex;

    gap: 32px;
}

.nav-links a {

    font-size: 14px;

    color: var(--muted);

    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {

    color: var(--cyan);
}

.nav-button {

    padding: 10px 20px;

    border: 1px solid var(--cyan);

    border-radius: 6px;

    color: var(--cyan);

    font-size: 13px;

    transition: 0.3s;
}

.nav-button:hover {

    background: var(--cyan);

    color: #111522;
}

.menu-button {

    display: none;

    background: none;

    border: none;

    color: white;

    font-size: 25px;

    cursor: pointer;
}


/* =====================================================
   HERO
===================================================== */

.hero {

    min-height: 100vh;

    width: min(100% - 40px, var(--container));

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 0.8fr;

    align-items: center;

    gap: 60px;

    padding-top: 75px;
}

.small-title {

    color: var(--muted);

    font-size: 17px;

    margin-bottom: 8px;
}

.hero h1 {

    font-size: clamp(55px, 8vw, 90px);

    line-height: 0.95;

    letter-spacing: -4px;
}

.hero h1 span {

    color: var(--cyan);
}

.hero h2 {

    font-size: 22px;

    margin-top: 25px;

    font-weight: 500;
}

.hero-description {

    max-width: 550px;

    margin-top: 20px;

    color: var(--muted);

    font-size: 15px;
}

.hero-buttons,
.contact-buttons {

    display: flex;

    gap: 15px;

    margin-top: 30px;

    flex-wrap: wrap;
}

.primary-button,
.secondary-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 24px;

    border-radius: 6px;

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s;
}

.primary-button {

    background: var(--cyan);

    color: #111522;
}

.primary-button:hover {

    transform: translateY(-3px);

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

.secondary-button {

    border: 1px solid var(--border);

    background: rgba(255,255,255,0.03);
}

.secondary-button:hover {

    border-color: var(--cyan);

    color: var(--cyan);

    transform: translateY(-3px);
}


/* =====================================================
   HERO IMAGE
===================================================== */

.hero-image {

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;
}

.hero-image img {

    position: relative;

    z-index: 2;

    width: min(380px, 100%);

    aspect-ratio: 1;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid var(--cyan);

    box-shadow:
        0 0 20px rgba(0,229,255,0.7),
        0 0 80px rgba(0,229,255,0.25);
}

.glow {

    position: absolute;

    width: 280px;

    height: 280px;

    border-radius: 50%;

    background: var(--cyan);

    filter: blur(100px);

    opacity: 0.15;
}


/* =====================================================
   ABOUT
===================================================== */

.about {

    display: grid;

    grid-template-columns: 0.8fr 1fr;

    align-items: center;

    gap: 90px;

    background: var(--background-light);

    width: 100%;

    max-width: none;

    padding-left: max(20px, calc((100% - var(--container)) / 2));

    padding-right: max(20px, calc((100% - var(--container)) / 2));
}

.about-image {

    position: relative;

    display: flex;

    justify-content: center;
}

.about-image img {

    width: 320px;

    height: 380px;

    object-fit: cover;

    border-radius: 10px;

    position: relative;

    z-index: 2;

    border: 2px solid var(--cyan);
}

.about-glow {

    position: absolute;

    width: 250px;

    height: 250px;

    background: var(--cyan);

    filter: blur(100px);

    opacity: 0.12;
}

.about-content p:not(.section-label) {

    color: var(--muted);

    font-size: 15px;

    margin-top: 20px;

    max-width: 600px;
}


/* =====================================================
   SERVICES
===================================================== */

.services-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.service-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 35px 28px;

    transition: 0.3s;
}

.service-card:hover {

    transform: translateY(-8px);

    border-color: var(--cyan);

    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.service-icon {

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 25px;
}

.service-icon img {

    width: 38px;

    height: 38px;

    object-fit: contain;
}

.service-card h3 {

    font-size: 21px;

    margin-bottom: 15px;
}

.service-card p {

    color: var(--muted);

    font-size: 14px;
}

.service-link {

    display: inline-block;

    margin-top: 25px;

    color: var(--cyan);

    font-size: 13px;

    font-weight: 600;
}


/* =====================================================
   PROJECTS
===================================================== */

.projects {

    background: var(--background-light);

    width: 100%;

    max-width: none;

    padding-left: max(20px, calc((100% - var(--container)) / 2));

    padding-right: max(20px, calc((100% - var(--container)) / 2));
}

.projects-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.project-card {

    position: relative;

    height: 250px;

    overflow: hidden;

    border-radius: 8px;

    border: 1px solid var(--border);
}

.project-card img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: 0.5s;
}

.project-overlay {

    position: absolute;

    inset: 0;

    padding: 25px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    background: linear-gradient(
        transparent,
        rgba(10,12,20,0.9)
    );

    opacity: 0;

    transition: 0.3s;
}

.project-card:hover img {

    transform: scale(1.08);
}

.project-card:hover .project-overlay {

    opacity: 1;
}

.project-overlay span {

    color: var(--cyan);

    font-size: 12px;
}

.project-overlay h3 {

    font-size: 20px;

    margin-top: 5px;
}


/* =====================================================
   CONTACT
===================================================== */

.contact {

    text-align: center;
}

.contact-content {

    max-width: 750px;

    margin: auto;
}

.contact p:not(.section-label) {

    color: var(--muted);

    margin-top: 20px;
}

.contact-buttons {

    justify-content: center;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    padding: 30px 20px;

    border-top: 1px solid var(--border);

    text-align: center;

    color: var(--muted);

    font-size: 13px;
}

.footer-logo {

    color: white;

    font-size: 22px;

    font-weight: 800;

    margin-bottom: 8px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {

    .nav-links,
    .nav-button {

        display: none;
    }

    .menu-button {

        display: block;
    }

    .hero {

        grid-template-columns: 1fr;

        text-align: center;

        padding-top: 130px;

        padding-bottom: 80px;
    }

    .hero-description {

        margin-left: auto;

        margin-right: auto;
    }

    .hero-buttons {

        justify-content: center;
    }

    .hero-image {

        order: -1;
    }

    .hero-image img {

        width: 260px;
    }

    .about {

        grid-template-columns: 1fr;

        text-align: center;

        gap: 50px;
    }

    .about-content .primary-button {

        margin-top: 25px;
    }

    .services-grid,
    .projects-grid {

        grid-template-columns: 1fr;
    }

    .project-card {

        height: 280px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 450px) {

    .section {

        padding: 80px 20px;
    }

    .hero h1 {

        font-size: 55px;

        letter-spacing: -3px;
    }

    .hero h2 {

        font-size: 18px;
    }

    .hero-image img {

        width: 220px;
    }

    .about-image img {

        width: 260px;

        height: 320px;
    }

}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 12px;
}

.footer-logo img {
    width: 50px;
    height: 50px;

    object-fit: contain;

    display: block;
}

@media (max-width: 800px) {

    .nav-links.mobile-open {

        display: flex;

        position: absolute;

        top: 75px;

        left: 20px;

        right: 20px;

        padding: 20px;

        background: #202637;

        border: 1px solid var(--border);

        border-radius: 8px;

        flex-direction: column;

        gap: 18px;
    }

}