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

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

html {
    scroll-behavior: smooth;
}

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

body {
    min-width: 320px;
    min-height: 100vh;
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(14, 165, 233, 0.12),
            transparent 30%
        ),
        #08111f;
}

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

button,
input,
textarea {
    font: inherit;
}


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

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 72px;
    padding: 16px clamp(20px, 6vw, 90px);

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

    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(8, 17, 31, 0.86);
    backdrop-filter: blur(18px);
}

nav h2 {
    color: #ffffff;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

nav h2::first-letter {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    position: relative;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    border-radius: 999px;
    background: #38bdf8;
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}


/* =========================
   MAIN CONTAINER
========================= */

#container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

section > h2 {
    margin-bottom: 38px;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

section > h2::after {
    content: "";
    display: block;

    width: 58px;
    height: 4px;
    margin-top: 13px;

    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
}


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

#hero {
    min-height: calc(100vh - 72px);

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

.intro {
    margin-bottom: 10px;
    color: #38bdf8;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#hero h1 {
    max-width: 900px;
    margin-bottom: 14px;

    color: #ffffff;
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

#hero h2 {
    margin-bottom: 22px;
    color: #94a3b8;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 600;
}

.hero-description {
    max-width: 650px;
    margin-bottom: 34px;

    color: #cbd5e1;
    font-size: clamp(1rem, 2vw, 1.15rem);
}

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

.btn {
    min-width: 135px;
    padding: 13px 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;

    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);

    font-weight: 700;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
    border-color: #38bdf8;
    color: #ffffff;
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 14px 28px rgba(2, 132, 199, 0.16);
}

.linkedin-btn {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0284c7);
    box-shadow: 0 13px 28px rgba(37, 99, 235, 0.28);
}

.linkedin-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #0369a1);
}

.github-btn {
    color: #ffffff;
    background: #111827;
} 


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

#about {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

#about p {
    max-width: 790px;
    margin-bottom: 18px;

    color: #bdc8d8;
    font-size: 1.05rem;
}


/* =========================
   PROJECT SECTION
========================= */

#projects {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


.project-image {
    width: calc(100% + 56px);
    height: 220px;

    margin: -28px -28px 24px;

    display: block;
    object-fit: contain;
    background: #1b2436;
}


.project-card {
    min-height: 330px;
    padding: 28px;

    display: flex;
    flex-direction: column;
    overflow: hidden;

    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;

    background: linear-gradient(
        145deg,
        rgba(30, 41, 59, 0.78),
        rgba(15, 23, 42, 0.82)
    );

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

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}


.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.52);
    box-shadow: 0 26px 60px rgba(2, 132, 199, 0.15);
}


.project-card h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 1.5rem;
}

.project-card > p {
    color: #b7c3d3;
}

.project-card .technologies {
    margin-top: auto;
    padding-top: 24px;

    color: #38bdf8;
    font-size: 0.9rem;
    font-weight: 700;
}


.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 10px;

    font-size: 0.9rem;
    font-weight: 700;

    transition: all 0.25s ease;
}


.project-links a:first-child {
    color: white;
    background: linear-gradient(135deg, #2563eb, #38bdf8);

    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.project-links a:first-child:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}


.project-links a:last-child {
    color: #e5e7eb;

    border: 1px solid rgba(148, 163, 184, 0.35);

    background: rgba(15, 23, 42, 0.7);
}

.project-links a:last-child:hover {
    transform: translateY(-3px);

    border-color: #38bdf8;

    background: rgba(30, 41, 59, 1);
}



.project-links a:hover {
    background: #2563eb;
    transform: translateY(-2px);
}



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

 #skills {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.skills-list p {
    padding: 12px 18px;

    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 999px;

    color: #dbeafe;
    background: rgba(14, 165, 233, 0.08);

    font-size: 0.95rem;
    font-weight: 700;

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

 .skills-list p:hover {
    transform: translateY(-3px);
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.16); 
} 


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

 #contact {
    margin-bottom: 80px;
    padding: clamp(38px, 7vw, 70px);

    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 28px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.16),
            rgba(14, 165, 233, 0.07)
        );
}

#contact h2 {
    margin-bottom: 18px;
}

#contact h2::after {
    margin-right: auto;
    margin-left: auto;
}

#contact p {
    max-width: 580px;
    margin: 0 auto 25px;
    color: #bdc8d8;
}

#contact a {
    display: inline-block;
    padding: 13px 20px;

    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 12px;

    color: #ffffff;
    background: rgba(2, 132, 199, 0.18);

    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

#contact a:hover {
    transform: translateY(-3px);
    background: rgba(2, 132, 199, 0.3);
}

.contact-links {
    margin-top: 30px;

    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-links a {
    padding: 14px 22px;

    border-radius: 12px;

    background: rgba(255,255,255,0.05);

    border: 1px solid rgba(255,255,255,0.1);

    transition: .3s;
}

.contact-links a:hover {
    transform: translateY(-4px);

    border-color: #38bdf8;
} 


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

 footer {
    padding: 26px 20px;

    border-top: 1px solid rgba(148, 163, 184, 0.12);

    color: #7f8da1;
    text-align: center;
    font-size: 0.9rem;
} 


/* =========================
   TABLET RESPONSIVENESS
========================= */

@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card:last-child {
        grid-column: 1 / -1;
    }
} 
@media (max-width: 700px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}


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

 @media (max-width: 680px) {
    html {
        scroll-padding-top: 130px;
    }

    nav {
        padding: 16px 20px;
        flex-direction: column;
        gap: 14px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    .nav-links a {
        font-size: 0.88rem;
    }

    #container {
        width: min(100% - 30px, 1120px);
    }

    section {
        padding: 72px 0;
    }

    #hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 100px;
    }

    #hero h1 {
        font-size: clamp(3rem, 16vw, 4.5rem);
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .project-card:last-child {
        grid-column: auto;
    }

    .project-card {
        min-height: auto;
    }

    #contact {
        margin-bottom: 50px;
        border-radius: 22px;
    }

    #contact a {
        width: 100%;
        overflow-wrap: anywhere;
    }
} 


/* =========================
   VERY SMALL SCREENS
========================= */
 
@media (max-width: 400px) {
    nav h2 {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 12px;
    }

    #hero h1 {
        font-size: 3rem;
    }

    .project-card {
        padding: 22px;
    }
}

.nav-links a.active {
    color: #38bdf8;
}

.nav-links a.active::after {
    width: 100%;
} 

