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

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

:root {
    --primary: #38bdf8;
    --secondary: #a78bfa;
    --dark: #0f172a;
    --blue: #2563eb;
    --purple: #7c3aed;
    --white: #ffffff;
    --light-text: #dbeafe;
    --card-bg: rgba(255, 255, 255, 0.12);
}

body {
    font-family: Arial, sans-serif;
    background: #020617;
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}


a {
    text-decoration: none;
}

section {
    width: 92%;
    max-width: 1100px;
    margin: 30px auto;
    padding: 70px 30px;
    text-align: center;
    background: linear-gradient(
        135deg,
        #0f172a,
        #2563eb,
        #7c3aed
    );
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

section h2 {
    color: #ffffff;
    margin-bottom: 30px;
    font-size: clamp(28px, 4vw, 40px);
}


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

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    background: #0f172a;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: white;
    font-size: 17px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}


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

.hero {
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 70px);
    margin: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 8%;
    background: linear-gradient(
        135deg,
        #0f172a,
        #2563eb,
        #7c3aed
    );
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.welcome {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.15;
    color: white;
    margin-bottom: 15px;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text h2 {
    font-size: clamp(25px, 3vw, 38px);
    color: white;
    margin-bottom: 20px;
}

.hero-text p {
    max-width: 650px;
    font-size: 19px;
    color: var(--light-text);
    margin-bottom: 12px;
}

.hero-image {
    flex: 0 1 380px;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 280px;
    height: 280px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
    border: 6px solid #38bdf8;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.btn {
    display: inline-block;
    padding: 14px 25px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: var(--blue);
    transform: translateY(-3px);
}


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

#about p {
    max-width: 800px;
    margin: 15px auto;
    font-size: 18px;
    color: var(--light-text);
}


/* =====================================================
   STATS
===================================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: transparent;
    box-shadow: none;
    padding: 30px;
}

.stat-card {
    padding: 30px 20px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

.stat-card h2 {
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-card p {
    color: white;
}


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

.skills-intro {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--light-text);
    font-size: 18px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-card {
    padding: 30px 20px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: white;
    transition: 0.3s;
}

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

.skill-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.skill-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    padding: 6px;
}


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

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.project-card {
    width: 100%;
    min-width: 0;
    background: linear-gradient(
        135deg,
        #b84dff,
        #00c6ff
    );
    border: 1px solid #3b82f6;
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        8px 8px 0 #111,
        15px 15px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease;
}

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

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.project-card h3 {
    color: #0f172a;
    font-size: 24px;
}

.project-card p {
    color: #0f172a;
    font-size: 17px;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-card a {
    background: #08009c;
    color: white;
    padding: 12px 22px;
    border-radius: 10px;
    transition: 0.3s;
}

.project-card a:hover {
    background: #ffffff;
    color: #08009c;
}


/* =====================================================
   EDUCATION
===================================================== */

.education-card,
.certification-card {
    max-width: 700px;
    margin: auto;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
}

.education-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}


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

#contact p {
    margin: 15px;
    font-size: 18px;
}

.contact-info {
    margin-top: 25px;
}

#contact a {
    color: var(--primary);
    font-weight: bold;
}

#contact a:hover {
    color: white;
}


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

footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 35px 20px;
    margin-top: 30px;
}

footer h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.footer-links {
    margin: 15px 0;
}


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

@media (max-width: 900px) {

    .hero {
        padding: 70px 5%;
    }

    .hero-content {
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 45px;
    }

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

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


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

@media (max-width: 768px) {

    .navbar {
        justify-content: center;
        min-height: 0px;
    }

    .menu-btn {
        display: block;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo {
        font-size: 1.6rem;
        text-align: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: #0f172a;
        padding: 15px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px;
    }

    .hero {
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    }

    .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    }

    .hero-text {
        width: 100%;
        margin-bottom: 15px;
    }

    .hero-text h1 {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .hero-text h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 17px;
        margin-bottom: 15px;
    }

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

    .hero-image {
        width: 100%;
        order: -1;
        margin: 0;
        flex: none;      /* Moves the image above the text */
        margin-bottom: 0%;
    }


    .profile-photo {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        object-fit: cover;
    }
    .welcome{
        margin-top: 0%;
        margin-bottom: 15px;
    }
    section {
        width: calc(100% - 20px);
        padding: 50px 20px;
        margin: 20px auto;
    }

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

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

    .project-card {
        padding: 15px;
    }

    .project-card img {
        height: auto;
        max-height: 250px;
    }

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


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

@media (max-width: 480px) {

    .logo {
        font-size: 1.35rem;
    }

    .menu-btn {
        font-size: 26px;
        left: 15px;
    }

    .hero {
        padding: 45px 15px;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .hero-text h2 {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        object-fit: cover;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        width: calc(100% - 16px);
        padding: 40px 15px;
        border-radius: 15px;
    }

    section h2 {
        font-size: 27px;
    }

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

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

    .project-card p {
        font-size: 16px;
    }

    .project-links {
        flex-direction: column;
    }

    .project-card a {
        width: 100%;
        text-align: center;
    }

    footer {
        padding: 30px 15px;
    }
}