* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #2e8bc0;
    --secondary-color: #145da0;
    --dark-bg: #0a0e27;
    --darker-bg: #101624;
    --text-primary: #f4f4f4;
    --text-secondary: #b0b8c5;
    --glow-color: rgba(46, 139, 192, 0.12);
    --card-bg: #18243a;
}
body {
    font-family: 'Poppins', sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Enhanced text readability over wallpaper */
h1, h2, h3, h4, h5, h6 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 4px 12px rgba(0,0,0,0.7);
}

p, li, a {
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 2px 6px rgba(0,0,0,0.6);
}

/* Section title headings - white with no shadow */
.section-title h2 {
    color: #ffffff !important;
    text-shadow: none !important;
    font-weight: 800 !important;
}
.section-title h3 {
    color: #ffd369 !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('Wallpapers/Wallpaper 1.jpg') center center / cover no-repeat fixed;
    overflow: hidden;
}
.animated-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 139, 192, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}
@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Mobile background fixes: disable fixed attachment & parallax for performance and proper fit */
@media (max-width: 900px) {
    .animated-bg {
        position: absolute;
        background-attachment: scroll;
        background-position: top center;
        background-size: cover;
    }
    .parallax-bg {
        display: none; /* Hide parallax layer on mobile to avoid stacking/fade issues */
    }
}
.data-flow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
.data-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: emberFloat 15s infinite;
    opacity: 0.7;
    box-shadow: 0 0 15px var(--primary-color);
    filter: blur(0.5px);
}
@keyframes floatParticle {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* ========== NAVIGATION ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10,14,39,0.98);
    /* Add a subtle blur and border for modern look */
    backdrop-filter: blur(6px);
    border-bottom: 2.5px solid var(--primary-color);
    z-index: 1000;
    box-shadow: 0 2px 16px #000a;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Warrior mode when scrolled */
header.warrior-mode {
    background: rgba(10,14,39,0.95);
    box-shadow: 0 4px 24px rgba(0,212,255,0.3);
    border-bottom: 3px solid #ffd369;
}
.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #00d4ff80;
    user-select: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    color: #ffd369;
    text-shadow: 0 2px 12px #ffd36980, 0 0 20px #ffd369;
    transform: scale(1.05);
    animation: powerSurge 0.6s ease-in-out;
}
/* Improved focus-visible for keyboard users */
:focus-visible {
    outline: 3px solid #ffd369;
    outline-offset: 3px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}
nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s, background 0.3s, box-shadow 0.3s;
    position: relative;
    padding: 0.4rem 1.1rem;
    border-radius: 1.2rem;
    background: rgba(24,36,58,0.85); /* Subtle pill bg for each tab */
    margin: 0 0.1rem;
    box-shadow: 0 1px 4px #0002;
}
nav ul li a.active, nav ul li a:hover {
    color: #061226;
    background: linear-gradient(90deg, #7dd3fc 0%, #2e8bc0 100%);
    text-shadow: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(46,139,192,0.25);
    border: 1px solid rgba(255,255,255,0.06);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    margin-left: 2rem;
}
/* Ensure nav pills are clear on mobile when menu becomes full-width */
@media (max-width: 900px) {
    nav ul li a {
        background: transparent;
        box-shadow: none;
        padding: 0.9rem 1.2rem;
        color: var(--text-primary);
    }
    nav ul.open {
        background: linear-gradient(180deg, rgba(10,14,39,0.95), rgba(16,22,36,0.98));
        padding-top: 0.5rem;
    }
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Transparent to show background wallpaper */
    background: transparent;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
    box-shadow: 0 8px 32px #000a;
}
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url('https://images.unsplash.com/photo-1465101046530-73398c7f28ca?auto=format&fit=crop&w=1500&q=80') center center / cover no-repeat fixed;
    opacity: 0.10;
    will-change: transform;
    pointer-events: none;
    transition: opacity 0.6s;
}
.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(24,36,58,0.85);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem 2.5rem 2rem;
    box-shadow: 0 2px 8px #0002;
}
/* ========== SVG SECTION DIVIDERS - REMOVED ========== */
.hero-content {
    text-align: center;
    z-index: 2;
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto;
    background: rgba(10,14,39,0.95);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem 2.5rem 2rem;
    box-shadow: 0 2px 12px #0004, 0 0 40px rgba(46,139,192,0.3);
    border: 2px solid rgba(46,139,192,0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Warrior energy border effect */
.hero-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #ffd369, #00d4ff, #ffd369);
    background-size: 300% 300%;
    border-radius: 1.2rem;
    z-index: -1;
    opacity: 0.5;
    animation: warriorBorderFlow 3s ease infinite;
    filter: blur(8px);
}

@keyframes warriorBorderFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
/* Kratos Omega Symbol */
.kratos-symbol {
    font-size: 8rem;
    font-weight: 900;
    color: #ffd369;
    text-shadow: 0 0 30px #ffd369, 0 0 60px #ff6b35, 0 0 90px #00d4ff, 0 6px 12px #00d4ff;
    margin-bottom: 1.5rem;
    animation: kratosGlow 2s ease-in-out infinite;
    display: inline-block;
    opacity: 1;
}

@keyframes kratosGlow {
    0%, 100% {
        text-shadow: 0 0 40px #ffd369, 0 0 70px #ff6b35, 0 0 100px #00d4ff, 0 8px 16px #00d4ff;
        transform: scale(1);
        opacity: 1;
    }
    50% {
        text-shadow: 0 0 50px #ffd369, 0 0 90px #ff6b35, 0 0 120px #00d4ff, 0 10px 20px #ffd369;
        transform: scale(1.15);
        opacity: 0.95;
    }
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: none !important;
}
.hero-content h2 {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffd369;
    text-shadow: none !important;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 4px 8px rgba(0,0,0,0.8);
}
.hero-content .hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}
.hero-content .hero-btns a {
    padding: 0.8rem 2.2rem;
    border-radius: 1.2rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 16px #00d4ff30;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    border: none;
    outline: none;
    cursor: pointer;
}
.hero-content .hero-btns a:hover,
.hero-content .hero-btns a:focus {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 6px 24px #00d4ff60;
    outline: 2px solid #ffd369;
    outline-offset: 2px;
}

/* ========== ABOUT SECTION ========== */
.about {
    padding-top: 5rem !important;
}
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
}
.about-img {
    flex: 1 1 220px;
    max-width: 220px;
    min-width: 220px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 16px #000a;
    border: 4px solid var(--primary-color);
    background: rgba(255,255,255,0.05);
}
.about-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.about-text {
    flex: 2 1 350px;
    min-width: 300px;
    color: #eaeaea;
    font-size: 1.15rem;
    line-height: 1.7;
    background: rgba(10,14,39,0.9);
    border-radius: 1.2rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 4px #0002;
    backdrop-filter: blur(8px);
}

/* ========== SKILLS SECTION ========== */
.skills {
    padding-top: 5rem !important;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.skill-card {
    background: rgba(24,36,58,0.9);
    border-radius: 1.2rem;
    box-shadow: 0 4px 16px #00d4ff20;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #1a2236;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    backdrop-filter: blur(8px);
}
.skill-card:hover, .skill-card:focus-within {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px #00d4ff40;
    border-color: var(--primary-color);
    outline: 2px solid #ffd369;
    outline-offset: 2px;
    animation: warriorPulse 1s ease-in-out infinite;
}
.skill-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    margin-top: 0.5rem;
}
.tag {
    background: #22304a;
    color: var(--primary-color);
    padding: 0.3rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 4px #0002;
}

/* ========== PROJECTS SECTION ========== */
.projects {
    padding-top: 5rem !important;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}
.project-card {
    background: rgba(24,36,58,0.9);
    border-radius: 1.2rem;
    box-shadow: 0 4px 16px #00d4ff20;
    padding: 2rem 1.5rem;
    border: 1px solid #1a2236;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    min-height: 260px;
    backdrop-filter: blur(8px);
}
.project-card:hover, .project-card:focus-within {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 40px #00d4ff40;
    border-color: var(--primary-color);
    outline: 2px solid #ffd369;
    outline-offset: 2px;
    animation: warriorPulse 1s ease-in-out infinite;
}
.project-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.project-content p {
    color: #eaeaea;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}
.project-tech span {
    background: #16213e;
    color: #ffd369;
    padding: 0.3rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 4px #0002;
}
.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-right: 1.2rem;
    transition: color 0.3s;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
}
.project-links a:hover {
    color: #ffd369;
    text-decoration: underline;
}

/* ========== JOURNEY SECTION ========== */
.journey {
    padding-top: 5rem !important;
}
.journey-content {
    max-width: 800px;
    margin: 0 auto;
    color: #eaeaea;
    font-size: 1.15rem;
    line-height: 1.7;
    background: rgba(24,36,58,0.85);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 1px 4px #0002;
}
.journey-highlight {
    color: #ffd369;
    font-weight: 600;
    text-shadow: 0 2px 8px #ffd36960;
}

/* ========== EDUCATION SECTION ========== */
.education {
    padding-top: 5rem !important;
}
.education-card {
    background: var(--card-bg);
    border-radius: 1.2rem;
    box-shadow: 0 1px 4px #0002;
    padding: 2rem 1.5rem;
    border: 1px solid #22304a;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.education-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.education-card h4 {
    color: #ffd369;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.education-card .year {
    color: #b0b8c5;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* ========== HONOR SECTION ========== */
.honor {
    padding-top: 5rem !important;
}
.honor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.honor-item {
    background: var(--card-bg);
    border-radius: 1.2rem;
    box-shadow: 0 4px 16px #00d4ff20;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #1a2236;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    min-height: 140px;
}
.honor-item:hover, .honor-item:focus-within {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px #00d4ff40;
    border-color: var(--primary-color);
    outline: 2px solid #ffd369;
    outline-offset: 2px;
}
.honor-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* ========== CONTACT SECTION ========== */
.contact {
    padding-top: 5rem !important;
}
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: rgba(24,36,58,0.85);
    border-radius: 1.2rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 1px 4px #0002;
}
.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}
.contact-card {
    background: var(--card-bg);
    border-radius: 1.2rem;
    box-shadow: 0 4px 16px #00d4ff20;
    padding: 1.5rem 1.2rem;
    text-align: center;
    border: 1px solid #1a2236;
    min-width: 180px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contact-card:hover, .contact-card:focus-within {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px #00d4ff40;
    border-color: var(--primary-color);
    outline: 2px solid #ffd369;
    outline-offset: 2px;
}
.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px #00d4ff60;
}
.contact-card a {
    color: #ffd369;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: 0.5rem;
    transition: color 0.3s;
    word-break: break-all;
}
.contact-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ========== FOOTER ========== */
.footer {
    background: #18243a;
    color: #b0b8c5;
    text-align: center;
    padding: 1.5rem 0 1rem 0;
    font-size: 1rem;
    border-top: 1px solid #22304a;
    letter-spacing: 1px;
}

.kratos-quote {
    color: #ffd369;
    font-style: italic;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(255,211,105,0.5);
/* ========== CERTIFICATIONS SECTION ========== */
.certifications {
    padding-top: 5rem !important;
}
.certifications-list {
    max-width: 700px;
    margin: 2rem auto 0;
    background: rgba(24,36,58,0.85);
    border-radius: 1.2rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 1px 4px #0002;
}
.certifications-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.certifications-list li {
    color: #eaeaea;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}
.certifications-list li:last-child {
    margin-bottom: 0;
}
.cert-flag {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.certifications-list strong {
    color: var(--primary-color);
    font-weight: 600;
}
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 2rem;
    box-shadow: 0 4px 16px #00d4ff60;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
    z-index: 2000;
    outline: none;
}
.scroll-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-10px) scale(1.08);
}
.scroll-top:focus {
    outline: 2px solid #ffd369;
    outline-offset: 2px;
    box-shadow: 0 8px 32px #ffd36980;
}

/* ========== KRATOS WARRIOR ANIMATIONS ========== */
/* Hero entrance - Kratos emerges from shadows */
@keyframes kratosEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-content {
    animation: kratosEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Warrior glow pulse effect */
@keyframes warriorPulse {
    0%, 100% {
        box-shadow: 0 4px 16px #00d4ff20;
    }
    50% {
        box-shadow: 0 8px 32px #00d4ff60, 0 0 40px rgba(255,211,105,0.3);
    }
}

/* Ember particles floating effect */
@keyframes emberFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) translateX(80px) scale(0);
        opacity: 0;
    }
}

/* Battle-ready card entrance */
@keyframes battleReady {
    0% {
        opacity: 0;
        transform: translateX(-50px) rotateY(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

/* Power surge on hover */
@keyframes powerSurge {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.03);
    }
}

/* Section fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.4s cubic-bezier(.4,2,.6,1), transform 0.4s cubic-bezier(.4,2,.6,1);
}
.fade-in.visible {
    opacity: 1;
    transform: none;
    animation: battleReady 0.4s ease-out;
}

/* Kratos axe swing effect on scroll button */
@keyframes axeSwing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

.scroll-top:hover {
    animation: axeSwing 0.6s ease-in-out;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1100px) {
    .container {
        padding: 0 2vw;
    }
    .skills-grid, .projects-grid, .honor-grid, .certifications-grid, .contact-methods {
        gap: 1.2rem;
    }
}
@media (max-width: 900px) {
    /* Reduce section padding for less scrolling */
    section {
        padding: 2rem 0 1.5rem 0;
    }
    .hero {
        min-height: 90vh;
        padding-top: 56px;
    }
    nav ul {
        gap: 1rem;
    }
    .about-content {
        flex-direction: column;
        align-items: center;
    }
    .skills-grid, .projects-grid, .honor-grid, .certifications-grid, .contact-methods {
        grid-template-columns: 1fr !important;
        flex-direction: column;
    }
    .container {
        padding: 0 1rem;
    }
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    .hero-content h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .hero-content {
        padding: 1.8rem 1.2rem;
    }
    .section-title h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    .section-title p, .section-title h3 {
        font-size: 0.95rem;
    }
    /* Fix photo to perfect circle on mobile */
    .about-img {
        max-width: 160px;
        min-width: 160px;
        width: 160px;
        height: 160px;
    }
    .about-text {
        padding: 1.2rem 1rem;
        font-size: 1rem;
    }
    .journey-content, .contact-content {
        padding: 1.5rem 1rem;
        font-size: 1rem;
    }
    .certifications-list {
        padding: 1.5rem 1.2rem;
    }
    .certifications-list li {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
    .education-card {
        padding: 1.5rem 1rem;
    }
    .project-card, .skill-card, .honor-item, .contact-card {
        padding: 1.5rem 1rem;
        min-height: auto;
    }
    .scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    header {
        height: 60px;
        position: fixed;
        top: 0;
    }
    .logo {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    .menu-toggle {
        display: block;
        padding: 0.5rem;
    }
    nav ul {
        position: absolute;
        top: 60px;
        right: 0;
        background: linear-gradient(180deg, rgba(10,14,39,0.98), rgba(16,22,36,0.98));
        flex-direction: column;
        width: 100%;
        max-width: 250px;
        gap: 0;
        box-shadow: 0 4px 20px #000a;
        border-radius: 0 0 1rem 1rem;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }
    nav ul.open {
        opacity: 1;
        pointer-events: auto;
    }
    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(46,139,192,0.2);
    }
    nav ul li:last-child {
        border-bottom: none;
    }
    nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
    }
}
@media (max-width: 600px) {
    /* Further reduce padding for very small screens */
    section {
        padding: 1.5rem 0 1.2rem 0;
    }
    .hero {
        min-height: 85vh;
    }
    .hero-content {
        padding: 1.5rem 1rem;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content h2 {
        font-size: 1rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .hero-btns {
        flex-direction: column;
        gap: 1rem !important;
    }
    .hero-btns a {
        width: 100%;
        text-align: center;
    }
    .container {
        padding: 0 0.8rem;
    }
    .section-title h2 {
        font-size: 1.3rem;
    }
    .about-img {
        max-width: 140px;
        min-width: 140px;
        width: 140px;
        height: 140px;
    }
    .about-text, .journey-content, .contact-content, .certifications-list {
        padding: 1.2rem 0.8rem;
        font-size: 0.95rem;
    }
    .certifications-list li {
        font-size: 1rem;
    }
    .cert-flag {
        font-size: 1.3rem;
    }
    .skills-grid, .projects-grid, .honor-grid, .contact-methods {
        gap: 1rem;
    }
    .project-card, .skill-card, .honor-item, .contact-card {
        padding: 1.2rem 0.8rem;
    }
    .skill-card h3, .project-content h3 {
        font-size: 1.1rem;
    }
    .project-content p, .about-text p, .journey-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .logo {
        font-size: 1rem;
    }
}

/* ========== MOBILE NAV MAP (FLOW) ========== */
.mobile-nav-map-btn {
    position: fixed;
    right: 1rem;
    bottom: 5rem; /* Above scroll-top */
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #22304a;
    background: linear-gradient(180deg, #0a0e27, #101624);
    color: #ffd369;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    display: none; /* hidden on desktop */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1100;
}
.mobile-nav-map-btn:focus-visible {
    outline: 2px solid #ffd369;
    outline-offset: 3px;
}
.nav-map-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}
.nav-map-overlay.open { display: flex; }
.nav-map {
    width: min(92vw, 520px);
    max-height: 80vh;
    overflow: auto;
    background: rgba(10,14,39,0.95);
    border: 1px solid #22304a;
    border-radius: 1rem;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5);
    padding: 1rem 1rem 1.2rem 1rem;
}
.nav-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.2rem 0.8rem 0.2rem;
    border-bottom: 1px solid #22304a;
    margin-bottom: 0.8rem;
}
.nav-map-header h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.nav-map-close { background: none; border: none; color: #ffd369; font-size: 1.3rem; cursor: pointer; }
.nav-map-list { list-style: none; padding: 0.5rem 0.2rem; margin: 0; }
.nav-node { position: relative; padding: 0.6rem 0.4rem 0.6rem 0.4rem; }
.nav-node a { display: flex; gap: 0.6rem; align-items: center; color: #eaeaea; text-decoration: none; font-weight: 600; }
.nav-node a i { color: #00d4ff; }
.nav-node + .nav-node { border-top: 1px solid #22304a; }

/* Show on mobile only */
@media (max-width: 900px) {
    .mobile-nav-map-btn { display: inline-flex; }
}