/* =========================================
   NAVPREET KAUR — PORTFOLIO
   Modern Business Analytics + AI Design
   ========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;

    background: #f8fafc;
    color: #0f172a;
    line-height: 1.7;
}


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

nav {
    min-height: 78px;
    padding: 0 8%;

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

    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e2e8f0;

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: -1px;
}

nav a {
    color: #334155;
    text-decoration: none;

    margin-left: 28px;

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

    transition: 0.2s;
}

nav a:hover {
    color: #2563eb;
}


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

header {
    min-height: 88vh;

    padding: 100px 10%;

    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
    column-gap: 70px;

    background:
        radial-gradient(circle at 85% 25%,
        rgba(37, 99, 235, 0.10),
        transparent 30%),

        radial-gradient(circle at 10% 80%,
        rgba(13, 148, 136, 0.07),
        transparent 30%),

        #ffffff;
}


/* Small label */

header > p:first-child {
    color: #2563eb;

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

    letter-spacing: 3px;

    margin-bottom: 18px;
}


/* Name */

header h1 {
    color: #0f172a;

    font-size: clamp(3rem, 6vw, 5.7rem);
    line-height: 1.02;

    letter-spacing: -3px;

    max-width: 850px;
}


/* Main statement */

header h2 {
    color: #475569;

    font-size: clamp(1.5rem, 3vw, 2.3rem);
    line-height: 1.3;

    max-width: 800px;

    margin-top: 22px;

    font-weight: 600;
}


/* Introduction */

header > p:not(:first-child) {
    color: #64748b;

    max-width: 680px;

    margin-top: 25px;

    font-size: 1.05rem;
}


/* Hero buttons */

header > a {
    display: inline-block;

    margin-top: 32px;
    margin-right: 12px;

    padding: 13px 23px;

    border-radius: 9px;

    text-decoration: none;

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

    transition: 0.25s;
}


/* First button */

header > a:first-of-type {
    background: #2563eb;
    color: white;

    border: 1px solid #2563eb;
}

header > a:first-of-type:hover {
    background: #1d4ed8;

    transform: translateY(-2px);

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


/* Second button */

header > a:nth-of-type(2) {
    color: #0f172a;

    border: 1px solid #cbd5e1;

    background: white;
}

header > a:nth-of-type(2):hover {
    border-color: #2563eb;

    color: #2563eb;

    transform: translateY(-2px);
}


/* ================= PROFILE PHOTO ================= */

.hero-photo {
    grid-column: 2;
    grid-row: 1 / span 10;

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

.hero-photo img {
    width: 310px;
    height: 380px;

    object-fit: cover;
    object-position: center top;

    border-radius: 28px;

    border: 7px solid white;

    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.16),
        20px 20px 0 rgba(37, 99, 235, 0.09);

    transition: transform 0.3s ease;
}

.hero-photo img:hover {
    transform: translateY(-6px);
}


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

section {
    padding: 100px 10%;

    max-width: 1300px;

    margin: auto;
}

section > h2 {
    color: #0f172a;

    font-size: 2.4rem;

    letter-spacing: -1.5px;

    margin-bottom: 38px;
}

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

    display: block;

    width: 55px;
    height: 4px;

    margin-top: 12px;

    border-radius: 10px;

    background: linear-gradient(
        90deg,
        #2563eb,
        #0d9488
    );
}

section p {
    color: #64748b;
}


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

#about p {
    max-width: 850px;

    margin-bottom: 18px;

    font-size: 1.08rem;
}


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

#skills {
    background: #f8fafc;
}

#skills h3 {
    color: #0f172a;

    margin-top: 30px;
    margin-bottom: 7px;

    font-size: 1.1rem;
}

#skills p {
    display: inline-block;

    padding: 10px 15px;

    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}


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

#projects article {
    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    padding: 32px;

    margin-bottom: 24px;

    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);

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

#projects article:hover {
    transform: translateY(-6px);

    border-color: #bfdbfe;

    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

#projects article h3 {
    color: #0f172a;

    font-size: 1.35rem;

    margin-bottom: 7px;
}

#projects article strong {
    color: #2563eb;

    font-size: 0.9rem;
}

#projects article p {
    margin: 10px 0;
}

#projects article a {
    display: inline-block;

    margin-top: 14px;

    color: #2563eb;

    text-decoration: none;

    font-weight: 600;
}

#projects article a:hover {
    text-decoration: underline;
}

#projects article span {
    display: inline-block;

    margin-top: 14px;

    padding: 6px 13px;

    border-radius: 30px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 0.85rem;
    font-weight: 600;
}


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

#experience article {
    position: relative;

    padding: 5px 0 5px 30px;

    margin-bottom: 40px;

    border-left: 2px solid #bfdbfe;
}

#experience article::before {
    content: "";

    position: absolute;

    left: -7px;
    top: 8px;

    width: 12px;
    height: 12px;

    background: #2563eb;

    border-radius: 50%;
}

#experience h3 {
    color: #0f172a;

    font-size: 1.3rem;
}


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

#education {
    background: white;
}

#education h3 {
    color: #0f172a;

    font-size: 1.3rem;
}


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

#contact {
    text-align: center;

    margin-top: 40px;
    margin-bottom: 60px;

    padding: 80px 10%;

    background: #0f172a;

    border-radius: 28px;
}

#contact h2 {
    color: white;
}

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

#contact p {
    color: #cbd5e1;

    margin: 12px auto;
}

#contact a {
    color: #60a5fa;

    text-decoration: none;

    font-weight: 600;
}

#contact a:hover {
    color: white;
}


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

footer {
    padding: 30px;

    text-align: center;

    color: #94a3b8;

    font-size: 0.9rem;

    border-top: 1px solid #e2e8f0;

    background: white;
}

/* HERO ACTIONS */

.hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions a {
    padding: 12px 20px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    background: white;
    transition: 0.25s;
}

.hero-actions a:first-child {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.hero-actions a:hover {
    transform: translateY(-2px);
    border-color: #2563eb;
    color: #2563eb;
}

.hero-actions a:first-child:hover {
    color: white;
    background: #1d4ed8;
}


/* SKILLS GRID */

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

.skill-card {
    background: white;
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);
}

.skill-card h3 {
    margin: 0 0 18px;
    color: #0f172a;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    padding: 7px 12px;
    border-radius: 30px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 600;
}

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

@media (max-width: 900px) {

    nav {
        padding: 18px 6%;
    }

    nav div:last-child {
        display: none;
    }

    header {
        min-height: auto;

        padding: 80px 7%;

        grid-template-columns: 1fr;

        text-align: center;
    }

    header h1,
    header h2,
    header > p {
        margin-left: auto;
        margin-right: auto;
    }

    header h1 {
        font-size: 3.5rem;
    }

    .hero-photo {
        grid-column: 1;
        grid-row: auto;

        margin-top: 50px;
    }

    .hero-photo img {
        width: 260px;
        height: 320px;
    }

    section {
        padding: 75px 7%;
    }

    #contact {
        margin-left: 5%;
        margin-right: 5%;

        border-radius: 22px;
    }
}


@media (max-width: 500px) {

    header h1 {
        font-size: 2.8rem;

        letter-spacing: -2px;
    }

    header h2 {
        font-size: 1.35rem;
    }

    .hero-photo img {
        width: 220px;
        height: 275px;
    }

    section > h2 {
        font-size: 2rem;
    }

}
@media (max-width: 768px) {

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

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

}
