/* =========================
   GENERAL
========================= */

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

html {
    scroll-behavior: smooth;
}

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


/* =========================
   LOADER
========================= */

#loader {
    position: fixed;
    inset: 0;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #334155;
    border-top: 5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


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

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

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

    padding: 18px 8%;

    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}

nav h2 {
    color: #60a5fa;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: #f8fafc;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: #60a5fa;
}


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

.hero {
    min-height: 90vh;

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

    text-align: center;

    padding: 80px 20px;

    background:
        linear-gradient(
            rgba(15, 23, 42, 0.85),
            rgba(15, 23, 42, 0.95)
        );
}

.profile-pic {
    width: 150px;
    height: 150px;

    object-fit: cover;

    border-radius: 50%;

    border: 4px solid #3b82f6;

    margin-bottom: 25px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.profile-pic {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.profile-pic:hover {
    transform: scale(1.08) rotate(2deg);

    border-color: #60a5fa;

    box-shadow:
        0 15px 35px rgba(59, 130, 246, 0.35),
        0 5px 20px rgba(0, 0, 0, 0.4);
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero h2 {
    color: #60a5fa;
    min-height: 30px;
}

.hero p {
    max-width: 650px;
    margin: 20px auto;
    color: #cbd5e1;
}

.hero-description {
    max-width: 700px;
    margin: 20px auto 10px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.7;
}

.hero-subtext {
    max-width: 800px;
    margin: 10px auto 25px;
    color: #60a5fa;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.buttons,
.contact-buttons,
.project-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    flex-wrap: wrap;

    margin-top: 25px;
}

.btn,
.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 22px;

    border-radius: 30px;

    background: #ffffff;
    color: #2563eb;

    text-decoration: none;

    font-weight: 600;

    border: 2px solid transparent;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.btn:hover,
.project-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);

    background: #eff6ff;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: #2563eb;
}


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

section {
    max-width: 1000px;

    margin: auto;

    padding: 80px 25px;
}

section > h2 {
    text-align: center;

    font-size: 30px;

    margin-bottom: 35px;

    color: #60a5fa;
}

section p {
    color: #cbd5e1;
}


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

.skills-grid {
    display: grid;

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

    gap: 20px;
}

.skill-card {
    padding: 25px;

    background: #1e293b;

    border-radius: 15px;

    text-align: center;

    border: 1px solid #334155;

    transition: 0.3s;
}

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

    border-color: #3b82f6;

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

.skill-card h3 {
    font-size: 17px;
}


/* =========================
   SCROLL REVEAL (skill cards / project cards)
========================= */

.skill-card,
.project-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.skill-card.show,
.project-card.show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   STATISTICS
========================= */

.stats {
    max-width: 1000px;

    margin: auto;

    padding: 60px 25px;

    display: grid;

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

    gap: 20px;
}

.stat-box {
    background: #1e293b;

    padding: 30px 15px;

    text-align: center;

    border-radius: 15px;

    border: 1px solid #334155;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.18);

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

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

    border-color: #3b82f6;

    box-shadow:
        0 15px 35px rgba(59, 130, 246, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.35);
}

.stat-box h2 {
    color: #60a5fa;
    font-size: 30px;
}

.stat-box p {
    color: #cbd5e1;
}


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

.projects {
    max-width: 1000px;
}

.project-card {
    background: #1e293b;
    padding: 35px;
    margin-bottom: 25px;
    border-radius: 18px;
    border: 1px solid #334155;

    text-align: center;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18);

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

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

    border-color: #3b82f6;

    box-shadow:
        0 15px 35px rgba(59, 130, 246, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.35);

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

.project-card h3 {
    color: #60a5fa;

    margin-bottom: 15px;
}

.project-card p {
    max-width: 750px;

    margin: auto;

    color: #cbd5e1;
}
.project-showcase {
    display: block;

    width: 100%;
    max-width: 1000px;

    height: auto;

    margin: 0 auto 35px;

    border-radius: 20px;

    border: 1px solid #334155;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3);

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

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

    border-color: #3b82f6;

    box-shadow:
        0 20px 45px rgba(59, 130, 246, 0.25),
        0 8px 20px rgba(0, 0, 0, 0.35);
}


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

.contact {
    text-align: center;
}

.contact p {
    max-width: 650px;

    margin: auto;
}


/* =========================
   GOAL
========================= */

.goal {
    max-width: none;

    text-align: center;

    background: #0f172a;

    padding: 70px 25px;
}

.goal h2 {
    color: #60a5fa;

    margin-bottom: 20px;
}

.goal p {
    max-width: 700px;

    margin: auto;

    font-size: 20px;

    color: #d1d5db;
}


/* =========================
   BACK TO TOP
========================= */

#topBtn {
    position: fixed;

    bottom: 25px;
    right: 25px;

    width: 45px;
    height: 45px;

    border: none;

    border-radius: 50%;

    background: #2563eb;

    color: white;

    font-size: 22px;

    cursor: pointer;

    display: none;

    z-index: 1000;

    transition: 0.3s;
}

#topBtn:hover {
    transform: translateY(-3px);

    background: #1d4ed8;
}


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

footer {
    text-align: center;

    padding: 30px 20px;

    background: #020617;

    color: #94a3b8;

    border-top: 1px solid #1e293b;
}


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

@media (max-width: 768px) {

    nav {
        flex-direction: column;

        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;

        justify-content: center;

        gap: 15px;
    }

    .hero h1 {
        font-size: 32px;
    }

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

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

    .project-card {
        padding: 25px 18px;
    }

    .buttons,
    .project-buttons,
    .contact-buttons {
        flex-direction: column;
    }

    .btn,
    .project-btn {
        width: 100%;
        max-width: 250px;
    }
}


@media (max-width: 480px) {

    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

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

    section {
        padding: 60px 18px;
    }
}
.project-image {
    width: 100%;
    max-width: 800px;
    height: 240px;
    object-fit: cover;
    display: block;
    margin: 0 auto 25px;

    border-radius: 14px;
    border: 1px solid #334155;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2);

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

.project-card:hover .project-image {
    transform: scale(1.02);

    border-color: #3b82f6;

    box-shadow:
        0 12px 30px rgba(59, 130, 246, 0.25);
}
@media (max-width: 600px) {

    .project-image {
        height: 180px;
    }

}
/* =========================
   MOBILE RESPONSIVE DESIGN
========================= */

@media (max-width: 768px) {

    /* Navigation */

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

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    nav ul li a {
        font-size: 13px;
    }


    /* Hero */

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

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero h2 {
        font-size: 20px;
    }

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

    .hero-subtext {
        font-size: 13px;
        line-height: 1.6;
    }


    /* Buttons */

    .buttons,
    .contact-buttons,
    .project-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn,
    .project-btn {
        width: 90%;
        max-width: 300px;
        text-align: center;
    }


    /* Sections */

    section {
        padding: 60px 20px;
    }

    section h2 {
        font-size: 28px;
    }


    /* Skills */

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


    /* Statistics */

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 30px 20px;
    }

    .stat-box {
        padding: 25px 10px;
    }

    .stat-box h2 {
        font-size: 25px;
    }


    /* Projects */

    .projects {
        padding-left: 15px;
        padding-right: 15px;
    }

    .project-card {
        padding: 20px;
        margin-bottom: 25px;
    }

    .project-image {
        height: 180px;
    }

    .project-showcase {
        width: 100%;
        margin-bottom: 25px;
    }


    /* Project text */

    .project-card h3 {
        font-size: 19px;
    }

    .project-card p {
        font-size: 14px;
        line-height: 1.7;
    }


    /* Contact */

    .contact {
        padding: 60px 20px;
    }


    /* Footer */

    footer {
        padding: 25px 15px;
        text-align: center;
    }

    footer p {
        font-size: 13px;
        line-height: 1.6;
    }


    /* Back to top button */

    #topBtn {
        right: 15px;
        bottom: 15px;
    }

}