/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #08111f;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --bg-color: #08111f;
    --bg-secondary: #0d1a2b;
    --card-color: #101f33;

    --primary-color: #00c9a7;
    --secondary-color: #1e6fd9;

    --text-color: #ffffff;
    --text-light: #aeb8c7;

    --border-color: rgba(255, 255, 255, 0.08);

    --shadow: 0 15px 40px rgba(0, 0, 0, 0.35);

    --transition: 0.3s ease;
}


/* =========================================================
   GENERAL
========================================================= */

section {
    padding: 100px 8%;
}

.section {
    min-height: 100vh;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title p {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 38px;
    font-weight: 700;
}


/* =========================================================
   HEADER / NAVBAR
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 75px;

    padding: 0 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(8, 17, 31, 0.88);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border-color);

    z-index: 1000;
}

.logo {
    color: var(--text-color);
    font-size: 28px;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar a {
    position: relative;

    color: var(--text-light);

    font-size: 15px;
    font-weight: 500;

    transition: var(--transition);
}

.navbar a:hover {
    color: var(--primary-color);
}

.navbar a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--primary-color);

    transition: var(--transition);
}

.navbar a:hover::after {
    width: 100%;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-btn {
    display: none;

    border: none;
    outline: none;

    background: transparent;
    color: white;

    font-size: 24px;

    cursor: pointer;
}


/* =========================================================
   HOME
========================================================= */

.home {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;

    padding-top: 130px;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(0, 201, 167, 0.10),
            transparent 30%
        ),

        radial-gradient(
            circle at 20% 80%,
            rgba(30, 111, 217, 0.10),
            transparent 30%
        );
}

.home-content {
    max-width: 650px;
}

.small-title {
    color: var(--primary-color);

    font-size: 15px;
    font-weight: 600;

    letter-spacing: 4px;

    margin-bottom: 15px;
}

.home-content h1 {
    font-size: clamp(40px, 6vw, 72px);

    line-height: 1.1;

    margin-bottom: 15px;
}

.home-content h2 {
    font-size: clamp(25px, 4vw, 40px);

    color: var(--text-light);

    margin-bottom: 25px;
}

.home-content h2 span {
    color: var(--primary-color);
}

.home-content > p:not(.small-title) {
    max-width: 580px;

    color: var(--text-light);

    font-size: 16px;

    margin-bottom: 35px;
}


/* =========================================================
   BUTTONS
========================================================= */

.home-buttons {
    display: flex;
    gap: 15px;

    margin-bottom: 35px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 26px;

    border-radius: 8px;

    background: var(--primary-color);

    color: #06151b;

    font-size: 14px;
    font-weight: 600;

    border: 2px solid var(--primary-color);

    cursor: pointer;

    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(0, 201, 167, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #06151b;
}


/* =========================================================
   SOCIAL ICONS
========================================================= */

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icons a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-color);

    border-radius: 50%;

    color: var(--text-light);

    background: rgba(255, 255, 255, 0.03);

    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);

    border-color: var(--primary-color);

    transform: translateY(-4px);
}


/* =========================================================
   HOME IMAGE
========================================================= */

.home-image {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 42%;
}

.image-box {
    position: relative;

    width: min(400px, 80vw);
    aspect-ratio: 1 / 1;

    border-radius: 50%;

    padding: 8px;

    background:
        linear-gradient(
            135deg,
            var(--primary-color),
            var(--secondary-color)
        );

    box-shadow:
        0 0 60px rgba(0, 201, 167, 0.15);
}

.image-box::before {
    content: "";

    position: absolute;

    inset: -15px;

    border: 1px solid rgba(0, 201, 167, 0.15);

    border-radius: 50%;

    animation: rotate 8s linear infinite;
}

.image-box img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    border: 8px solid var(--bg-color);
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    background: var(--bg-secondary);
}

.about-container {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    align-items: center;

    gap: 80px;

    max-width: 1200px;

    margin: auto;
}

.about-image {
    width: 100%;

    border-radius: 20px;

    overflow: hidden;

    border: 1px solid var(--border-color);

    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 450px;

    display: block;

    object-fit: cover;

    transition: 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content h3 {
    font-size: 32px;

    margin-bottom: 20px;
}

.about-content h3::after {
    content: "";

    display: block;

    width: 100%;
    height: 3px;

    margin-top: 10px;

    background: var(--primary-color);
}

.about-content p {
    color: var(--text-light);

    font-size: 15px;

    margin-bottom: 18px;
}

.about-content .btn {
    margin-top: 15px;
}


/* =========================================================
   SKILLS
========================================================= */

.skills-container {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.skill-card {
    padding: 35px 25px;

    text-align: center;

    background: var(--card-color);

    border: 1px solid var(--border-color);

    border-radius: 15px;

    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-8px);

    border-color: rgba(0, 201, 167, 0.4);

    box-shadow: var(--shadow);
}

.skill-card i {
    font-size: 42px;

    color: var(--primary-color);

    margin-bottom: 18px;
}

.skill-card h3 {
    font-size: 20px;

    margin-bottom: 8px;
}

.skill-card p {
    color: var(--text-light);

    font-size: 14px;
}


/* =========================================================
   SERVICES
========================================================= */

.services {
    background: var(--bg-secondary);
}

.services-container {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.service-card {
    padding: 40px 30px;

    background: var(--card-color);

    border: 1px solid var(--border-color);

    border-radius: 18px;

    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);

    border-color: var(--primary-color);

    box-shadow: var(--shadow);
}

.service-card i {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 12px;

    background: rgba(0, 201, 167, 0.08);

    color: var(--primary-color);

    font-size: 25px;
}

.service-card h3 {
    font-size: 22px;

    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);

    font-size: 14px;
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-container {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 30px;
}

.project-card {
    overflow: hidden;

    background: var(--card-color);

    border: 1px solid var(--border-color);

    border-radius: 18px;

    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);

    box-shadow: var(--shadow);

    border-color: rgba(0, 201, 167, 0.4);
}

.project-card > img {
    width: 100%;
    height: 280px;

    display: block;

    object-fit: cover;

    transition: 0.5s ease;
}

.project-card:hover > img {
    transform: scale(1.04);
}

.project-content {
    padding: 28px;
}

.project-content h3 {
    font-size: 23px;

    margin-bottom: 12px;
}

.project-content p {
    color: var(--text-light);

    font-size: 14px;

    margin-bottom: 20px;
}

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 20px;
}

.project-tech span {
    padding: 6px 12px;

    border-radius: 20px;

    background: rgba(0, 201, 167, 0.08);

    color: var(--primary-color);

    font-size: 12px;

    border: 1px solid rgba(0, 201, 167, 0.15);
}

.project-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--primary-color);

    font-size: 14px;

    font-weight: 600;

    transition: var(--transition);
}

.project-link:hover {
    gap: 14px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    background: var(--bg-secondary);
}

.contact-container {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 70px;

    align-items: start;
}

.contact-info h3 {
    font-size: 32px;

    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-light);

    font-size: 15px;

    margin-bottom: 30px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 20px;

    color: var(--text-light);
}

.contact-item i {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(0, 201, 167, 0.08);

    color: var(--primary-color);
}


/* =========================================================
   CONTACT FORM
========================================================= */

#contactForm {
    display: flex;

    flex-direction: column;

    gap: 16px;

    width: 100%;
}

#contactForm input,
#contactForm textarea {
    width: 100%;

    padding: 15px 18px;

    border: 1px solid var(--border-color);

    border-radius: 10px;

    outline: none;

    background: var(--card-color);

    color: white;

    font-family: inherit;

    font-size: 14px;

    transition: var(--transition);
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: #718096;
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: var(--primary-color);

    box-shadow:
        0 0 0 3px rgba(0, 201, 167, 0.08);
}

#contactForm textarea {
    resize: vertical;

    min-height: 150px;
}


/* SEND BUTTON */

#contactForm button {
    align-self: flex-start;

    padding: 13px 26px;

    border: 2px solid var(--primary-color);

    border-radius: 8px;

    background: var(--primary-color);

    color: #06151b;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: var(--transition);
}

#contactForm button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(0, 201, 167, 0.25);
}

#contactForm button:disabled {
    opacity: 0.6;

    cursor: not-allowed;

    transform: none;
}


/* FORM STATUS */

#formStatus {
    min-height: 24px;

    margin-top: 2px;

    font-size: 14px;

    font-weight: 500;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 30px 8%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    background: #050c16;

    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-light);

    font-size: 13px;
}

.footer .social-icons a {
    width: 36px;
    height: 36px;

    font-size: 14px;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;

        transform: translateY(30px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

.home-content {
    animation: fadeUp 0.8s ease forwards;
}

.home-image {
    animation: fadeUp 1s ease forwards;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .header {
        padding: 0 5%;
    }

    section {
        padding: 90px 5%;
    }

    .navbar {
        gap: 20px;
    }

    .home {
        gap: 30px;
    }

    .about-container {
        gap: 40px;
    }

    .skills-container,
    .services-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .header {
        height: 70px;

        padding: 0 6%;
    }

    .logo {
        font-size: 25px;
    }

    .menu-btn {
        display: block;
    }

    .navbar {
        position: absolute;

        top: 70px;
        left: -100%;

        width: 100%;

        padding: 25px;

        display: flex;

        flex-direction: column;

        gap: 22px;

        background: #0a1625;

        border-bottom: 1px solid var(--border-color);

        transition: 0.4s ease;
    }

    .navbar.active {
        left: 0;
    }

    .navbar a {
        font-size: 16px;
    }


    /* HOME */

    .home {
        min-height: auto;

        padding-top: 130px;
        padding-bottom: 80px;

        flex-direction: column;

        text-align: center;
    }

    .home-content {
        max-width: 100%;
    }

    .home-content h1 {
        font-size: 42px;
    }

    .home-content h2 {
        font-size: 28px;
    }

    .home-content > p:not(.small-title) {
        font-size: 14px;
    }

    .home-buttons {
        justify-content: center;

        flex-wrap: wrap;
    }

    .social-icons {
        justify-content: center;
    }

    .home-image {
        width: 100%;

        margin-top: 25px;
    }

    .image-box {
        width: 280px;
    }


    /* SECTIONS */

    section {
        padding: 80px 6%;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 30px;
    }


    /* ABOUT */

    .about-container {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .about-image img {
        height: 350px;
    }

    .about-content h3 {
        font-size: 27px;
    }


    /* SKILLS */

    .skills-container,
    .services-container {
        grid-template-columns: 1fr;
    }


    /* PROJECTS */

    .projects-container {
        grid-template-columns: 1fr;
    }

    .project-card > img {
        height: 240px;
    }


    /* CONTACT */

    .contact-container {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .contact-info h3 {
        font-size: 28px;
    }

    #contactForm button {
        width: 100%;

        align-self: stretch;
    }


    /* FOOTER */

    .footer {
        flex-direction: column;

        text-align: center;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .home-content h1 {
        font-size: 34px;
    }

    .home-content h2 {
        font-size: 24px;
    }

    .home-buttons {
        flex-direction: column;
    }

    .home-buttons .btn {
        width: 100%;
    }

    .image-box {
        width: 240px;
    }

    .about-image img {
        height: 300px;
    }

    .section-title h2 {
        font-size: 27px;
    }

    .skill-card,
    .service-card {
        padding: 30px 20px;
    }

    .project-content {
        padding: 22px;
    }

}