/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #0d0d0d;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}


/* =========================================
   VARIABLES
========================================= */

:root {
    --background: #0d0d0d;
    --background-light: #151515;
    --card: #191919;
    --white: #ffffff;
    --gray: #a5a5a5;
    --dark-gray: #686868;
    --accent: #fff53e;
    --border: #292929;
}


/* =========================================
   GLOBAL
========================================= */

.container {
    width: min(1180px, 92%);
    margin: auto;
}

.section {
    padding: 110px 0;
}

.section-heading {
    margin-bottom: 55px;
}

.section-heading p {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1.05;
    max-width: 700px;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.navbar {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: #cccccc;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-btn {
    padding: 12px 22px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--accent);
    color: #000;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(215, 255, 63, 0.08),
            transparent 30%
        );
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    padding-top: 90px;
}

.small-title {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(55px, 7vw, 90px);
    line-height: 0.95;
    letter-spacing: -4px;
}

.hero h1 span {
    color: var(--accent);
    display: block;
}

.hero-description {
    max-width: 570px;
    color: var(--gray);
    font-size: 17px;
    margin: 30px 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.primary-btn {
    background: var(--accent);
    color: #000;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(215, 255, 63, 0.2);
}

.secondary-btn {
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* HERO IMAGE */

.hero-image {
    position: relative;
}

.image-card {
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #202020;
}

.image-card img {
    height: 100%;
    filter: grayscale(100%);
    transition: 0.6s;
}

.image-card:hover img {
    filter: grayscale(0);
    transform: scale(1.04);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -40px;
    background: var(--accent);
    color: #000;
    padding: 22px 25px;
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 32px;
}

.floating-card span {
    font-size: 12px;
    font-weight: 600;
}


/* =========================================
   ABOUT
========================================= */

.about {
    background: #111111;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    height: 550px;
    overflow: hidden;
}

.about-image img {
    height: 100%;
    filter: grayscale(100%);
}

.about-content h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    margin-bottom: 25px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 18px;
    max-width: 650px;
}

.about-stats {
    display: flex;
    gap: 55px;
    margin-top: 40px;
}

.about-stats div {
    display: flex;
    flex-direction: column;
}

.about-stats strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 35px;
    color: var(--accent);
}

.about-stats span {
    color: var(--gray);
    font-size: 13px;
}


/* =========================================
   SERVICES
========================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--background);
    padding: 45px;
    min-height: 300px;
    transition: 0.3s;
}

.service-card:hover {
    background: var(--card);
}

.service-number {
    color: var(--accent);
    font-size: 13px;
    margin-bottom: 60px;
}

.service-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 30px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    max-width: 450px;
    margin-bottom: 25px;
}

.service-card a {
    font-size: 13px;
    color: var(--accent);
}


/* =========================================
   PORTFOLIO
========================================= */

.portfolio {
    background: #111111;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.view-all {
    color: var(--accent);
    margin-bottom: 55px;
    font-size: 14px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project {
    position: relative;
    overflow: hidden;
    background: var(--card);
    min-height: 430px;
}

.project-large {
    grid-row: span 2;
    min-height: 880px;
}

.project-wide {
    grid-column: span 2;
}

.project img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    transition: 0.6s;
}

.project-large img {
    min-height: 880px;
}

.project:hover img {
    transform: scale(1.05);
}

.project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8),
        transparent 55%
    );
}

.project-info {
    position: absolute;
    z-index: 2;
    bottom: 30px;
    left: 30px;
}

.project-info p {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.project-info h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 28px;
}


/* =========================================
   SKILLS
========================================= */

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.skills-title h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.05;
}

.skills-title p {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.skill {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.skill strong {
    color: var(--accent);
}

.skill-bar {
    height: 5px;
    background: #252525;
    margin-bottom: 30px;
}

.skill-bar span {
    display: block;
    height: 100%;
    background: var(--accent);
}


/* =========================================
   CTA
========================================= */

.cta {
    background: var(--accent);
    color: #000;
    padding: 100px 0;
    text-align: center;
}

.cta-content p {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.cta h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(45px, 7vw, 90px);
    line-height: 0.95;
    max-width: 900px;
    margin: auto;
    letter-spacing: -3px;
}

.cta h2 span {
    display: block;
}

.cta .btn {
    margin-top: 35px;
    background: #000;
    color: #fff;
}


/* =========================================
   CONTACT
========================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.contact-info > p {
    color: var(--gray);
    max-width: 420px;
    margin-bottom: 50px;
}

.contact-item {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.contact-item span {
    display: block;
    color: var(--dark-gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-item p {
    color: var(--gray);
}


/* FORM */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #151515;
    color: #fff;
    padding: 16px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    border-top: 1px solid var(--border);
    padding: 35px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer p {
    color: var(--dark-gray);
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--gray);
    font-size: 13px;
}

.social-links a:hover {
    color: var(--accent);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero {
        padding: 100px 0;
    }

    .hero-image {
        max-width: 650px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image {
        height: 500px;
    }

    .skills-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .section {
        padding: 80px 0;
    }

    .navbar {
        height: 75px;
    }

    .nav-btn {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 130px 0 80px;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero h1 {
        font-size: clamp(48px, 14vw, 70px);
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .image-card {
        height: 450px;
    }

    .floating-card {
        left: 15px;
        bottom: 15px;
    }

    .about-image {
        height: 400px;
    }

    .about-stats {
        gap: 25px;
        flex-wrap: wrap;
    }

    .about-stats strong {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px;
        min-height: auto;
    }

    .portfolio-header {
        display: block;
    }

    .view-all {
        display: inline-block;
        margin-bottom: 40px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .project,
    .project-large,
    .project-wide {
        grid-column: auto;
        grid-row: auto;
        min-height: 400px;
    }

    .project img,
    .project-large img {
        min-height: 400px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

}