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

body {
    font-family: "DM Sans", sans-serif;
    background-color: #F1F5F9;
}

html {
    scroll-behavior: smooth;
}

/* ─── HEADER ─────────────────────────────────────────────── */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    margin: 25px;
    background-color: #1e35ff;
    border-radius: 20px;
    position: relative;
}

.logo h1 {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    color: white;
    font-size: 30px;
}

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

.nav ul li a {
    color: white;
    font-weight: 500;
}

.cta a {
    padding: 10px 20px;
    background-color: white;
    color: #1e35ff;
    border-radius: 50px;
    font-weight: 600;
}

/* Hamburger — hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background-color: #1e35ff;
    border-radius: 16px;
    padding: 20px 30px;
    z-index: 99;
    box-shadow: 0 8px 30px rgba(30,53,255,0.3);
}

.mobile-nav.open {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav a {
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* ─── HERO ───────────────────────────────────────────────── */

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 50vh;
    text-align: center;
    padding: 0 20px;
}

.hero p {
    font-size: 15px;
    color: black;
    letter-spacing: 0.55em;
    font-weight: 500;
}

h1 {
    font-size: 50px;
    color: #1e35ff;
    font-family: "VT323", monospace;
    font-weight: 500;
}

.head1 {
    color: #1e35ff;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 13px;
}

.status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 60px;
}

.status p {
    font-size: 13px;
    font-weight: 600;
}

.scroll {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 30px;
    color: #1e35ff;
    font-size: 13px;
    font-weight: 600;
    gap: 20px;
}

#hero-greeting {
    min-height: 1.5em;
    letter-spacing: 0.55em;
    display: inline-block;
    color: black;
    letter-spacing: 55%;
    animation: blink 0.9s step-end infinite;
    margin-left: 2px;
}


.arrow {
    animation: updown 4s ease-in-out infinite;
}

@keyframes updown {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(20px); }
    100% { transform: translateY(0); }
}

/* ─── ABOUT ──────────────────────────────────────────────── */

#about {
    display: flex;
    flex-direction: column;
    margin: 60px;
    gap: 20px;
}

#about p {
    width: 70%;
}

#about .education {
    font-size: 13px;
    font-weight: 600;
}

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

.buttons .download {
    padding: 10px 20px;
    background-color: #1e35ff;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.buttons .social {
    height: 40px;
    width: 40px;
    background-color: white;
    color: #1e35ff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1e35ff;
}

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

.certificate-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.certificate {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 10px;
    border: 1px solid #1e35ff;
    height: 100px;
    transition: all 0.3s ease;
    text-align: center;
}

.certi-title {
    font-size: 16px;
    font-weight: 600;
}

.certificate:hover {
    background-color: #1e35ff;
    color: white;
    cursor: pointer;
}

.certificate:hover .head1 {
    color: white;
}

/* ─── PROJECTS ───────────────────────────────────────────── */

#projects {
    display: flex;
    flex-direction: column;
    margin: 60px;
    gap: 20px;
}

#projects p {
    width: 70%;
}

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

.project {
    background-color: white;
    border: 1px solid #1e35ff;
    transition: all 0.3s ease;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-ongoing {
    background-color: #1e35ff;
    color: white;
    border: 1px solid #1e35ff;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    grid-column: span 2;
}

.project-list h3 {
    font-size: 16px;
    font-weight: 600;
}

.project-list p {
    font-size: 14px;
}

.project .btn {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
    margin-top: auto;
}

.project .btn a {
    padding: 10px 20px;
    background-color: white;
    color: #1e35ff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #1e35ff;
    transition: all 0.3s ease;
}

.project .btn a:hover {
    background-color: #1e35ff;
    color: white;
}

.project-ongoing .btn {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
    margin-top: auto;
}

.project-ongoing .btn a {
    padding: 10px 20px;
    background-color: #1e35ff;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid white;
    transition: all 0.3s ease;
}

.project-ongoing .btn a:hover {
    background-color: white;
    color: #1e35ff;
}

/* ─── SKILLS ─────────────────────────────────────────────── */

#skills {
    display: flex;
    flex-direction: column;
    margin: 60px;
    gap: 20px;
}

#skills > p {
    width: 70%;
}

.skill-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.skill-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 10px;
    border: 1px solid #1e35ff;
    height: 80px;
    transition: all 0.3s ease;
    text-align: center;
}

.skill-name {
    font-size: 14px;
    font-weight: 600;
}

.skill-cell:hover {
    background-color: #1e35ff;
    color: white;
    cursor: pointer;
}

/* ─── CONNECT ────────────────────────────────────────────── */

#connect {
    display: flex;
    flex-direction: column;
    margin: 60px;
    gap: 20px;
}

#connect > p {
    width: 70%;
}

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

.connect-card {
    background-color: white;
    border: 1px solid #1e35ff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease;
}

.connect-card h3 {
    font-size: 18px;
}

.connect-card p {
    font-size: 14px;
}

.connect-card a {
    margin-top: auto;
    color: #1e35ff;
    font-weight: 600;
}

.connect-card:hover {
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ─── FOOTER ─────────────────────────────────────────────── */

footer {
    margin: 60px;
    padding: 40px;
    background-color: #1e35ff;
    color: white;
    border-radius: 20px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    font-size: 14px;
}

footer h2 {
    font-family: "VT323", monospace;
    font-size: 30px;
}

footer p {
    font-size: 14px;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════ */

/* ─── TABLET  (≤ 900px) ──────────────────────────────────── */
@media (max-width: 900px) {

    /* Header: hide desktop nav & cta, show hamburger */
    .header {
        padding: 16px 24px;
        margin: 16px;
    }

    .nav,
    .cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Sections */
    #about,
    #projects,
    #skills,
    #connect {
        margin: 40px 30px;
    }

    #about p,
    #projects p,
    #skills > p,
    #connect > p {
        width: 100%;
    }

    /* Hero */
    .hero {
        height: 40vh;
    }

    h1 {
        font-size: 42px;
    }

    .status {
        margin: 40px 30px;
    }

    /* Certs & skills — 4 cols on tablet */
    .certificate-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .skill-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Projects — stay 2-col but ongoing full-width already */
    .project-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Connect — 2 cols */
    .connect-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    footer {
        margin: 30px;
        padding: 30px;
    }
}

/* ─── MOBILE  (≤ 600px) ──────────────────────────────────── */
@media (max-width: 600px) {

    .header {
        padding: 14px 20px;
        margin: 12px;
        border-radius: 14px;
    }

    .logo h1 {
        font-size: 24px;
    }

    /* Hero */
    .hero {
        height: auto;
        padding: 60px 20px 30px;
    }

    h1 {
        font-size: 36px;
        word-break: break-word;
        text-align: center;
    }

    .hero p {
        font-size: 12px;
        letter-spacing: 0.3em;
        text-align: center;
    }

    .status {
        margin: 30px 20px;
    }

    .status p {
        font-size: 12px;
    }

    .scroll {
        margin: 20px;
    }

    /* Sections */
    #about,
    #projects,
    #skills,
    #connect {
        margin: 30px 20px;
        gap: 16px;
    }

    #about p,
    #projects p,
    #skills > p,
    #connect > p {
        width: 100%;
        font-size: 14px;
    }

    /* About — extra breathing room */
    #about {
        gap: 28px;
    }

    #about > p {
        line-height: 1.7;
    }

    #about .education {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        background-color: white;
        border-left: 3px solid #1e35ff;
    }

    #about .education p {
        width: 100%;
        font-size: 12px;
        line-height: 1.6;
    }

    .certifications {
        gap: 12px;
    }

    /* Certs — 2 cols on mobile */
    .certificate-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificate {
        height: 80px;
        padding: 12px 8px;
    }

    .certi-title {
        font-size: 13px;
    }

    /* Skills — 2 cols on mobile */
    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-cell {
        height: 64px;
    }

    .skill-name {
        font-size: 13px;
    }

    /* Projects — 1 col on mobile */
    .project-list {
        grid-template-columns: 1fr;
    }

    .project-ongoing {
        grid-column: span 1;
    }

    /* Connect — 1 col on mobile */
    .connect-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .buttons {
        gap: 12px;
    }

    .buttons .download {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    footer {
        margin: 20px;
        padding: 24px;
        border-radius: 14px;
    }
}