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

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

html {
    scroll-behavior: smooth;
}

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

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

section {
    scroll-margin-top: 90px;
}


/* =========================
   NAVIGATION
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

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

    padding: 22px 7%;

    background: rgba(11, 13, 18, 0.92);
    backdrop-filter: blur(15px);

    border-bottom: 1px solid #1e222b;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    color: #8b5cf6;
}

.navbar nav {
    display: flex;
    gap: 28px;
}

.navbar nav a {
    color: #a7aab3;
    font-size: 0.9rem;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: #ffffff;
}


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

.hero {
    min-height: 90vh;

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

    gap: 60px;

    padding: 100px 8%;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(139, 92, 246, 0.18),
            transparent 35%
        ),
        #0b0d12;
}

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

.intro {
    color: #8b5cf6;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 1;
    letter-spacing: -4px;
    margin-bottom: 25px;
}

.hero h1 span {
    display: block;
    color: #8b5cf6;
}

.hero h2 {
    font-size: 1.2rem;
    color: #d0d3da;
    font-weight: 400;
    margin-bottom: 25px;
}

.hero-text {
    max-width: 620px;
    color: #888d98;
    font-size: 1.05rem;
    margin-bottom: 35px;
}


/* HERO CARD */

.hero-card {
    width: 280px;
    height: 350px;

    border: 1px solid #272b35;
    border-radius: 25px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: linear-gradient(
        145deg,
        #171a22,
        #0d0f14
    );

    box-shadow:
        0 30px 80px rgba(0,0,0,0.4);
}

    .circle {
    width: 190px;
    height: 190px;

    border-radius: 50%;
    overflow: hidden;

    border: 4px solid #8b5cf6;

    box-shadow:
        0 0 50px rgba(139, 92, 246, 0.35);

    margin-bottom: 25px;
}

.circle img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}


.hero-card p {
    color: #9ca0aa;
}


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

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

.btn {
    display: inline-block;

    padding: 14px 25px;

    border-radius: 8px;

    font-weight: bold;

    transition: 0.3s;
}

.primary {
    background: #8b5cf6;
    color: white;
}

.primary:hover {
    background: #7c3aed;
    transform: translateY(-3px);
}

.secondary {
    border: 1px solid #353944;
    color: white;
}

.secondary:hover {
    border-color: #8b5cf6;
    transform: translateY(-3px);
}


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

.section {
    max-width: 1200px;
    margin: auto;
    padding: 120px 7%;
}

.section-title {
    margin-bottom: 60px;
}

.section-title p {
    color: #8b5cf6;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: -2px;
}


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

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 70px;
}

.about-content > div:first-child p {
    color: #999eaa;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    gap: 20px;
}

.about-stats div {
    padding: 25px;

    border: 1px solid #242832;
    border-radius: 12px;

    background: #101319;
}

.about-stats strong {
    display: block;
    font-size: 2rem;
    color: #8b5cf6;
}

.about-stats span {
    color: #858a95;
}


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

.skills-grid {
    display: grid;

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

    gap: 20px;
}

.skill-card {
    padding: 35px;

    min-height: 240px;

    border: 1px solid #242832;
    border-radius: 15px;

    background: #101319;

    transition: 0.35s;
}

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

    border-color: #8b5cf6;

    background: #131620;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.3);
}

.skill-card span {
    color: #8b5cf6;
    font-size: 0.8rem;
}

.skill-card h3 {
    font-size: 1.4rem;
    margin: 25px 0 12px;
}

.skill-card p {
    color: #858a95;
}


/* =========================
   EXPERIENCE
========================= */

.timeline {
    border-left: 1px solid #30343e;
    padding-left: 35px;
}

.timeline-item {
    position: relative;

    padding-bottom: 55px;
}

.timeline-item::before {
    content: "";

    position: absolute;

    left: -42px;
    top: 7px;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #8b5cf6;

    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.7);
}

.timeline-item > span {
    color: #8b5cf6;
    font-size: 0.85rem;
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-top: 8px;
}

.timeline-item h4 {
    color: #b4b7c0;
    margin: 5px 0 12px;
}

.timeline-item p {
    color: #858a95;
    max-width: 700px;
}


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

.projects-grid {
    display: grid;

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

    gap: 20px;
}

.project-card {
    min-height: 280px;

    padding: 35px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid #242832;
    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #151821,
            #0f1117
        );

    transition: 0.35s;
}

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

    border-color: #8b5cf6;
}

.project-number {
    color: #8b5cf6;
    font-size: 0.9rem;
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.project-card p {
    color: #858a95;
    margin-bottom: 20px;
}

.project-card span {
    color: #b8bbc4;
    font-size: 0.8rem;
}


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

.services {
    max-width: 1200px;

    margin: 40px auto 100px;

    padding: 70px;

    border-radius: 20px;

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

    gap: 30px;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #4c1d95
        );
}

.services p {
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.services h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.light {
    background: white;
    color: #111;
}

.light:hover {
    transform: translateY(-4px);
}


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

.contact-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;
}

.contact-grid > div:first-child p {
    color: #858a95;
    font-size: 1.2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.social-links a {
    padding: 10px 16px;
    border: 1px solid #2d313b;
    border-radius: 8px;
    color: #b8bbc4;
    font-size: 0.85rem;
    transition: 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
    border-color: #8b5cf6;
    background: #171421;
    transform: translateY(-3px);
}




.contact-details a {
    font-size: 1.2rem;
    transition: 0.3s;
}

.contact-details a:hover {
    color: #8b5cf6;
}

.contact-details span {
    color: #858a95;
}


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

footer {
    padding: 40px 7%;

    border-top: 1px solid #20232c;

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

    color: #666b76;
}

footer p {
    font-size: 0.85rem;
}


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

@media (max-width: 900px) {

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .navbar nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-card {
        width: 230px;
        height: 280px;
    }

    .circle {
        width: 120px;
        height: 120px;
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .services {
        margin-left: 20px;
        margin-right: 20px;
    }

}


@media (max-width: 600px) {

    .navbar {
        padding: 18px 5%;
    }

    .navbar nav {
        gap: 10px;
    }

    .navbar nav a {
        font-size: 0.75rem;
    }

    .hero {
        padding: 70px 5%;
    }

    .hero h1 {
        font-size: 3.3rem;
        letter-spacing: -2px;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: 80px 5%;
    }

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

    .services {
        flex-direction: column;
        align-items: flex-start;
        padding: 45px 30px;
    }

    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

}
