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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #08090d;
    color: #f5f5f5;
    line-height: 1.6;
}

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


/* =========================
   NAVBAR
========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(8, 9, 13, 0.75);
    backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav {
    max-width: 1200px;
    margin: auto;

    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -2px;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: #a7a7ad;
    font-size: 14px;

    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
}


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

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    max-width: 1200px;
    margin: auto;

    padding: 120px 30px 80px;
}

.hero-content {
    max-width: 850px;
}

.hero-label,
.section-label {
    color: #7c7cff;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 88px);

    line-height: 1.05;

    letter-spacing: -4px;

    margin-bottom: 30px;
}

.hero h1 span {
    background: linear-gradient(
        90deg,
        #7c7cff,
        #b46cff
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 650px;

    color: #a7a7ad;

    font-size: 18px;

    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons a {
    padding: 14px 24px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    transition: 0.3s;
}

.hero-buttons a:first-child {
    background: white;
    color: #08090d;
}

.hero-buttons a:first-child:hover {
    transform: translateY(-3px);
}

.hero-buttons a:last-child {
    border: 1px solid #292a32;
    color: white;
}

.hero-buttons a:last-child:hover {
    background: #15161c;
}


/* =========================
   SECTIONS
========================= */

.section {
    max-width: 1200px;

    margin: auto;

    padding: 120px 30px;
}

.section h2 {
    font-size: clamp(35px, 5vw, 58px);

    line-height: 1.1;

    letter-spacing: -2px;

    margin-bottom: 30px;
}

.section > p:not(.section-label) {
    max-width: 700px;

    color: #a7a7ad;

    font-size: 18px;
}


/* =========================
   SKILLS
========================= */

.skills {
    display: grid;

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

    gap: 12px;

    margin-top: 50px;
}

.skills div {
    padding: 25px;

    background: #101116;

    border: 1px solid #1e2028;

    border-radius: 10px;

    color: #d8d8dc;

    transition: 0.3s;
}

.skills div:hover {
    transform: translateY(-5px);

    border-color: #7c7cff;
}


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

.projects {
    display: grid;

    grid-template-columns: minmax(0, 750px);

    gap: 20px;

    margin-top: 50px;
}

.project {
    background: #101116;

    border: 1px solid #1e2028;

    border-radius: 14px;

    overflow: hidden;

    transition: 0.3s;
}

.project:hover {
    transform: translateY(-8px);

    border-color: #343642;
}

.project-image {
    height: 220px;

    overflow: hidden;

    background: #15161c;
}

.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.project h3 {
    font-size: 21px;

    margin: 25px 25px 10px;
}

.project p {
    color: #999aa2;

    margin: 0 25px 20px;
}

.project span {
    display: block;

    color: #7c7cff;

    font-size: 13px;

    margin: 0 25px 25px;
}


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

.services {
    display: grid;

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

    gap: 15px;

    margin-top: 50px;
}

.services div {
    padding: 35px;

    background: #101116;

    border: 1px solid #1e2028;

    border-radius: 12px;

    transition: 0.3s;
}

.services div:hover {
    transform: translateY(-5px);

    border-color: #7c7cff;
}

.services h3 {
    font-size: 22px;

    margin-bottom: 10px;
}

.services p {
    color: #999aa2;
}


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

.contact {
    text-align: center;
}

.contact > p:not(.section-label) {
    margin: 0 auto 30px;
}

.contact a {
    display: inline-block;

    margin-top: 10px;

    padding: 15px 28px;

    background: white;
    color: #08090d;

    border-radius: 8px;

    font-weight: 700;

    transition: 0.3s;
}

.contact a:hover {
    transform: translateY(-3px);
}

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

.contact-buttons {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 30px;
}

.contact-buttons a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 22px;

    border: 1px solid #292a32;

    border-radius: 8px;

    background: #101116;

    color: white;

    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.contact-buttons a:hover {
    transform: translateY(-3px);

    border-color: #7c7cff;

    background: #15161c;
}


/* =========================
   FIVERR BUTTON
========================= */

.contact-buttons a:first-child {
    background: white;

    color: #08090d;

    border-color: white;
}

.contact-buttons a:first-child:hover {
    background: #eeeeee;

    border-color: #eeeeee;
}


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

.contact-icon {
    width: 19px;
    height: 19px;

    flex-shrink: 0;
}


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

@media (max-width: 600px) {

    .contact-buttons {
        flex-direction: column;

        width: 100%;
    }

    .contact-buttons a {
        width: 100%;
        max-width: 300px;
    }

}


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

footer {
    padding: 40px 30px;

    text-align: center;

    border-top: 1px solid #1e2028;

    color: #666870;

    font-size: 13px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .nav-links {
        gap: 15px;
    }

    .skills {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    nav {
        height: 70px;

        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 120px 20px 70px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section {
        padding: 80px 20px;
    }

    .skills {
        grid-template-columns: 1fr;
    }

    .services {
        grid-template-columns: 1fr;
    }

}

/* =========================
   SCROLL ANIMATION
========================= */

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

.section.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

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


/* =========================
   NAVBAR SCROLL EFFECT
========================= */

header.scrolled {
    background: rgba(8, 9, 13, 0.95);
    border-bottom-color: rgba(124, 124, 255, 0.15);
}

/* =========================
   FEATURED PROJECT
========================= */

.featured-project {
    margin-top: 50px;

    display: grid;
    grid-template-columns: 1.15fr 1fr;

    gap: 50px;

    padding: 25px;

    background: #101116;

    border: 1px solid #1e2028;

    border-radius: 18px;

    overflow: hidden;

    align-items: center;
}


/* =========================
   PROJECT IMAGE
========================= */

.featured-project .project-image {
    width: 100%;
    height: auto;
    min-height: 0;

    border-radius: 12px;

    overflow: hidden;

    background: #08090d;
}

.featured-project .project-image img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;

    transition: transform 0.6s ease;
}

.featured-project:hover .project-image img {
    transform: scale(1.02);
}


/* =========================
   PROJECT DETAILS
========================= */

.project-details {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 20px 15px;
}

.project-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 25px;
}

.project-meta span {
    padding: 7px 12px;

    border: 1px solid #292b36;

    border-radius: 50px;

    color: #9d9dff;

    font-size: 12px;
}

.project-details h3 {
    font-size: 32px;

    line-height: 1.15;

    letter-spacing: -1px;

    margin-bottom: 18px;
}

.project-details > p {
    color: #999aa2;

    margin-bottom: 35px;
}

.project-features {
    display: grid;

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

    gap: 20px;
}

.project-features div {
    padding-top: 18px;

    border-top: 1px solid #242630;
}

.project-features strong {
    display: block;

    font-size: 14px;

    margin-bottom: 5px;
}

.project-features span {
    color: #777982;

    font-size: 13px;
}


/* =========================
   FEATURED PROJECT MOBILE
========================= */

@media (max-width: 900px) {

    .featured-project {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .featured-project .project-image {
        height: auto;
        min-height: 0;
    }

}


@media (max-width: 600px) {

    .featured-project {
        padding: 15px;
    }

    .featured-project .project-image {
        height: auto;
        min-height: 0;
    }

    .project-details {
        padding: 15px 5px;
    }

    .project-details h3 {
        font-size: 26px;
    }

    .project-features {
        grid-template-columns: 1fr;
    }

}

/* =========================
   FEATURED PROJECT MOBILE
========================= */

@media (max-width: 900px) {

    .featured-project {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .featured-project .project-image {
        min-height: 300px;
    }

}

@media (max-width: 600px) {

    .featured-project {
        padding: 15px;
    }

    .project-details {
        padding: 15px 5px;
    }

    .project-details h3 {
        font-size: 26px;
    }

    .project-features {
        grid-template-columns: 1fr;
    }

}