*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    background: #eef2ff;
    color: #334155;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAV ── */
header nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #dbeafe;
}

.logo {
    font-family: 'Lobster', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #2563eb;
    text-decoration: none;
}

.menu {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.menu a {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: 0.3s;
    padding: 4px 0;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.menu a:hover { color: #2563eb; }
.menu a:hover::after { width: 100%; }
.menu a:active { color: #1d4ed8; }
.menu a:active::after { background: #1d4ed8; width: 100%; }
.menu a.active { color: #2563eb; }
.menu a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1e3a5f;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('assets/bg.jpg') center/cover fixed;
    padding-top: 80px;
}

.hero::before {
    content: 'PORTFOLIO';
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    font-family: 'Bungee', sans-serif;
    font-weight: 900;
    font-size: 200px;
    color: #bfdbfe;
    opacity: 0.35;
    pointer-events: none;
    letter-spacing: -0.04em;
    line-height: 1;
    z-index: 0;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 25px;
    padding: 30px 40px;
    width: 100%;
}

.hero-left { flex: 1; }

.hero-hello {
    font-size: 16px;
    font-weight: 300;
    color: #94a3b8;
    margin-bottom: 4px;
}

.hero-name {
    font-family: 'Bungee', sans-serif;
    font-size: 80px;
    font-weight: 500;
    color: #1e3a5f;
    line-height: 0.95;
    margin-bottom: 5px;
    letter-spacing: -2px;
}

.hero-name span {
    color: #2563eb;
    position: relative;
}

.hero-name span::after {
    content: '';
    position: absolute;
    bottom: 13px;
    left: 0;
    right: 0;
    height: 4px;
    background: #facc15;
    border-radius: 2px;
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.hero-roles span {
    background: rgba(255,255,255,0.8);
    border: 1px solid #dbeafe;
    color: #1e3a5f;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 20px;
}

.hero-desc {
    font-size: 15px;
    font-weight: 400;
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #2563eb;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: #1e3a5f;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid #dbeafe;
    transition: 0.2s;
}

.btn-outline:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 36px;
    border-top: 1px solid rgba(37,99,235,0.15);
    padding-top: 24px;
    flex-wrap: wrap;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-family: 'Roboto', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #2563eb;
}

.hero-stats span {
    font-size: 12px;
    font-weight: 300;
    color: #94a3b8;
}

.hero-right {
    flex: 0 0 450px;
    display: flex;
    margin-left: 0;
    align-items: center;
    justify-content: center;
}

.profile-wrap {
    position: relative;
    width: 320px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-card {
    border-radius: 24px;
    width: 280px;
    height: 380px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #dce8f5;
    border: 3px solid #dce8f5;
    box-shadow: 0 0 0 8px #dce8f5, 0 20px 60px rgba(30,58,95,0.15);
}

.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.float-tag {
    position: absolute;
    background: #f1f5f9;
    color: #1e3a5f;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}

.tag-tl { top: 20px;  left: 0px; }
.tag-tr { top: 150px; right: 0px; }
.tag-br { bottom: 20px; right: 0px; }

/* ── LAYOUT ── */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

section { padding: 70px 0; }

.section-alt { background: white; }

.section-header { margin-bottom: 36px; }

.section-title {
    font-family: 'Bungee', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #dbeafe;
    border-radius: 1px;
}

.section-title.center { justify-content: center; }
.section-title.center::after { display: none; }

.section-sub {
    font-size: 14px;
    font-weight: 400;
    color: #94a3b8;
}

/* ── ABOUT ── */
#about { background: white; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 14px;
    line-height: 1.8;
}

.about-text strong {
    color: #2563eb;
    font-weight: 600;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 9px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.info-table td:first-child {
    color: #94a3b8;
    font-weight: 500;
    width: 35%;
}

.status-badge {
    background: #dcfce7;
    color: #166534;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ── SKILLS ── */
#skills {
    background: url('assets/technicalskill.jpg') center/cover no-repeat;
}

#skills .section-title { color: white; }
#skills .section-sub { color: rgba(255,255,255,0.8); }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.skill-card {
    background: rgba(255,255,255,0.85);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 22px;
    transition: 0.2s;
}

.skill-card:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
}

.skill-card h4 {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags span {
    background: white;
    color: #334155;
    font-size: 13px;
    font-weight: 400;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #dbeafe;
}

/* ── EDUCATION ── */
#education { background: #1e3a5f; }

#education .section-title { color: white; }
#education .section-title::after { background: rgba(255,255,255,0.15); }
#education .section-sub { color: rgba(255,255,255,0.5); }

.edu-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edu-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
    transition: 0.2s;
}

.edu-item:hover { background: rgba(255,255,255,0.10); }

.edu-year {
    background: #2563eb;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    margin-top: 4px;
}

.edu-school {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.edu-degree {
    font-size: 13px;
    font-style: italic;
    color: #93c5fd;
    margin-bottom: 10px;
}

.edu-body ul { list-style: none; }

.edu-body li {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    padding-left: 14px;
    position: relative;
    margin-bottom: 4px;
    line-height: 1.6;
}

.edu-body li::before {
    content: '·';
    position: absolute;
    left: 2px;
    color: #93c5fd;
}

/* ── CERTIFICATIONS ── */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cert-card {
    display: flex;
    align-items: center;
    background: #eef2ff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 16px 24px;
    flex: 1;
    min-width: 220px;
    transition: 0.2s;
}

.cert-card:hover {
    border-color: #2563eb;
    transform: translateY(-3px);
}

.cert-card p {
    font-size: 14px;
    font-weight: 500;
    color: #1e3a5f;
}

/* ── LANGUAGES ── */
.lang-grid {
    display: flex;
    gap: 16px;
}

.lang-card {
    background: white;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    flex: 1;
    transition: 0.2s;
}

.lang-flag {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.lang-name {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.lang-level {
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid #dbeafe;
    display: inline-block;
}

/* ── CONTACT ── */
.section-contact {
    background: #eef2ff;
    text-align: center;
}

.contact-desc {
    font-size: 15px;
    font-weight: 400;
    color: #94a3b8;
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #1e3a5f;
    border: 1.5px solid #dbeafe;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.contact-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    font-weight: 300;
    color: #94a3b8;
    border-top: 1px solid #dbeafe;
}

footer span {
    color: #2563eb;
    font-weight: 600;
}


/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════ */

/* ── TABLET  (max 1024px) ── */
@media (max-width: 1024px) {
    header nav {
        padding: 14px 28px;
    }

    .menu { gap: 20px; }

    .hero::before {
        font-size: 130px;
        left: 5%;
    }

    .hero-inner {
        gap: 36px;
        padding: 30px 28px;
    }

    .hero-name { font-size: 64px; }

    .hero-right { flex: 0 0 340px; }

    .profile-wrap { width: 260px; height: 360px; }
    .profile-card { width: 230px; height: 320px; }

    .skills-grid { grid-template-columns: repeat(2, 1fr); }

    .about-grid { gap: 28px; }

    .container { padding: 0 28px; }
}


/* ── MOBILE  (max 768px) ── */
@media (max-width: 768px) {

    /* Nav: show hamburger, hide links */
    header nav {
        padding: 14px 20px;
        position: fixed;
    }

    .hamburger { display: flex; }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px 32px;
        gap: 28px;
        border-left: 1px solid #dbeafe;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 150;
        box-shadow: -8px 0 40px rgba(30,58,95,0.10);
    }

    .menu.open { right: 0; }

    .menu a { font-size: 16px; }

    /* Dim overlay when menu open */
    .menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(30,58,95,0.3);
        z-index: 140;
    }

    .menu-overlay.open { display: block; }

    /* Hero: stack vertically */
    .hero {
        padding-top: 70px;
        background-attachment: scroll;
    }

    .hero::before {
        font-size: 72px;
        top: 12%;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .hero-inner {
        flex-direction: column-reverse;
        align-items: center;
        gap: 28px;
        padding: 28px 20px 40px;
        margin-top: 0;
        text-align: center;
    }

    .hero-left { width: 100%; }

    .hero-name {
        font-size: 52px;
        letter-spacing: -1px;
    }

    .hero-roles { justify-content: center; }

    .hero-btns { justify-content: center; }

    .hero-stats {
        justify-content: center;
        gap: 24px;
    }

    .hero-right {
        flex: none;
        width: 100%;
        justify-content: center;
    }

    .profile-wrap { width: 220px; height: 300px; }
    .profile-card { width: 190px; height: 260px; }

    .tag-tl { top: 10px; left: -10px; font-size: 11px; padding: 5px 12px; }
    .tag-tr { top: 100px; right: -10px; font-size: 11px; padding: 5px 12px; }
    .tag-br { bottom: 10px; right: -10px; font-size: 11px; padding: 5px 12px; }

    /* Sections */
    section { padding: 50px 0; }

    .container { padding: 0 20px; }

    .section-title { font-size: 22px; }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Skills */
    .skills-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

    .skill-card { padding: 16px; }
    .skill-card h4 { font-size: 14px; }

    /* Education */
    .edu-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px;
    }

    .edu-year { width: fit-content; }

    /* Certs */
    .cert-grid { flex-direction: column; }
    .cert-card { min-width: unset; }

    /* Languages */
    .lang-grid { gap: 12px; }
    .lang-card { padding: 20px 14px; }

    /* Contact */
    .contact-btns { flex-direction: column; align-items: center; }
    .contact-btn { width: 100%; max-width: 320px; justify-content: center; }
}


/* ── SMALL MOBILE  (max 480px) ── */
@media (max-width: 480px) {
    .hero-name { font-size: 42px; }

    .hero::before { font-size: 52px; }

    .hero-stats strong { font-size: 22px; }

    .skills-grid { grid-template-columns: 1fr; }

    .lang-grid { flex-direction: column; }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .profile-wrap { width: 180px; height: 250px; }
    .profile-card { width: 160px; height: 220px; }
}