:root {
    --bg-color: #0e0e0e;
    --card-bg: linear-gradient(145deg, #121212, #0a0a0a);
    --primary-accent: #e0e0e0;
    /* Platinum */
    --secondary-accent: #a0a0a0;
    /* Silver */
    --tertiary-accent: #505050;
    /* Dark Grey */
    --text-color: #f0f0f0;
    --text-dim: #909090;
    --glass-border: rgba(255, 255, 255, 0.05);
    --neomorph-shadow-light: rgba(255, 255, 255, 0.03);
    --neomorph-shadow-dark: rgba(0, 0, 0, 0.8);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;
    --nav-height: 80px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    overflow: hidden;
    /* Prevent scroll during intro */
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-out;
    /* Slower fade out */
}

.intro-name {
    font-family: 'Cinzel', serif;
    /* Cinematic Premium Font */
    font-weight: 700;
    font-size: 5vw;
    /* Slightly smaller for this wide font */
    color: #f5f5f5;
    /* Bright face */
    text-transform: uppercase;
    text-align: center;
    position: relative;
    letter-spacing: 4px;
    line-height: 1.2;
    transform-origin: center;
    animation: subtle-zoom 3s forwards ease-out;
    width: 90%;
    max-width: 1400px;
    text-shadow: none;
}

@keyframes subtle-zoom {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: scale(1.3);
        /* Light zoom (30% increase) */
    }
}

@keyframes fade-up-delay {
    to {
        opacity: 1;
        transform: translateY(-10px);
    }
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
    /* transform: scale(1.1); Removed zoom on fade out */
}

/* Main Wrapper for Reveal */
#wrapper {
    transition: opacity 1.5s ease;
    /* Only opacity transition */
    opacity: 0;
    width: 100%;
    overflow-x: hidden;
}

#wrapper.visible {
    opacity: 1;
}

/* Ensure body scroll is restored */
body.loaded {
    overflow-y: auto;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42NSIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNmKSIgb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
    opacity: 0.05;
    /* Subtle noise */
    pointer-events: none;
    z-index: -1;
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.section {
    padding: 60px 20px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px;
    /* Offset for fixed navbar */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    /* Reduced from 50px */
    letter-spacing: -1px;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.accent {
    color: inherit;
}

.glitch-text {
    position: relative;
    color: var(--primary-accent);
    font-weight: 700;
}

/* Basic Glitch Effect */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary-accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #fff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
        transform: skew(0.5deg);
    }

    5% {
        clip: rect(70px, 9999px, 90px, 0);
        transform: skew(0.2deg);
    }

    10% {
        clip: rect(30px, 9999px, 10px, 0);
        transform: skew(-0.5deg);
    }

    15% {
        clip: rect(90px, 9999px, 50px, 0);
        transform: skew(-0.2deg);
    }

    100% {
        clip: rect(10px, 9999px, 30px, 0);
        transform: skew(0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(60px, 9999px, 80px, 0);
        transform: skew(0.5deg);
    }

    5% {
        clip: rect(20px, 9999px, 40px, 0);
        transform: skew(0.2deg);
    }

    10% {
        clip: rect(10px, 9999px, 20px, 0);
        transform: skew(-0.5deg);
    }

    15% {
        clip: rect(50px, 9999px, 90px, 0);
        transform: skew(-0.2deg);
    }

    100% {
        clip: rect(60px, 9999px, 80px, 0);
        transform: skew(0);
    }
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.logo-link {
    text-decoration: none;
    cursor: pointer;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.accent-dot {
    color: var(--primary-accent);
}

.glass-nav nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-glow {
    padding: 10px 20px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 4px;
    color: var(--primary-accent);
    box-shadow: 2px 2px 5px var(--neomorph-shadow-dark), -1px -1px 2px var(--neomorph-shadow-light);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 10px var(--neomorph-shadow-dark), -2px -2px 5px var(--neomorph-shadow-light);
    color: #fff;
}

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 120px 20px 50px;
    /* Account for fixed nav */
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.greeting {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hero-name {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.05;
    letter-spacing: -3px;
    /* Apple-style gradient text */
    background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes text-pulse {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    }

    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(200, 200, 200, 0.1);
    }
}

.headline {
    font-size: 2rem;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    font-weight: 500;
    color: #86868b;
    /* Apple grey */
    line-height: 1.3;
}

.highlight-text {
    background: linear-gradient(90deg, #2997ff, #5ac8fa);
    /* Apple Blue Gradient */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .headline {
        font-size: 1.8rem;
    }

    .hero-name {
        font-size: 3rem;
    }

    .about-container {
        flex-direction: column;
    }

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

    .glass-nav {
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .glass-nav nav {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--glass-border);
    }

    .glass-nav nav ul {
        flex-direction: column;
        gap: 40px;
    }

    .glass-nav nav.active {
        display: flex;
        /* Ensure flex when active */
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.cta-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.primary-btn,
.secondary-btn {
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.primary-btn {
    background: linear-gradient(145deg, #ddd, #999);
    color: #000;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, #fff, #bbb);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-color);
}

.secondary-btn:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}



/* About Overlay/Cards */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.about-text {
    flex: none;
    max-width: 900px;
    text-align: left;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-text h3 {
    margin-bottom: 20px;
}

.about-visual {
    flex: 1;
}

.glass-card {
    background: linear-gradient(145deg, rgba(25, 25, 25, 0.8), rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    box-shadow:
        10px 10px 20px rgba(0, 0, 0, 0.5),
        -5px -5px 15px rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    /* Keep text readable */
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow:
        15px 15px 30px rgba(0, 0, 0, 0.6),
        -5px -5px 15px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Certification Cards */
.cert-card {
    text-align: center;
    padding: 20px;
}

.cert-card h4 {
    color: #fff;
}

.cert-card:hover .cert-logo {
    transform: scale(1.05);
}

.cert-logo {
    transition: transform 0.3s ease;
}

/* Project Cards as Links */
a.project-card-new {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

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

.code-block {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #0f0;
    overflow-x: auto;
    border: 1px solid #333;
}

.stats-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-accent);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* Skills */
.skill-category h3 {
    margin-bottom: 20px;
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.skill-bar-container {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 4px;
}

/* Orbiting Icons Logic (Visual Simplification) */
.orbit-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 50px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-star {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-accent);
}

.orbit {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #222;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Creating simple orbit animations in CSS can be complex; using absolute positioning based on keyframes for now */
.orbit-1 {
    animation: orbit1 8s infinite linear;
}

.orbit-2 {
    animation: orbit2 12s infinite linear;
}

.orbit-3 {
    animation: orbit3 10s infinite linear;
}

.orbit-4 {
    animation: orbit4 15s infinite linear;
}

@keyframes orbit1 {
    from {
        transform: rotate(0deg) translateX(150px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(150px) rotate(-360deg);
    }
}

@keyframes orbit2 {
    from {
        transform: rotate(120deg) translateX(120px) rotate(-120deg);
    }

    to {
        transform: rotate(480deg) translateX(120px) rotate(-480deg);
    }
}

@keyframes orbit3 {
    from {
        transform: rotate(240deg) translateX(140px) rotate(-240deg);
    }

    to {
        transform: rotate(600deg) translateX(140px) rotate(-600deg);
    }
}

@keyframes orbit4 {
    from {
        transform: rotate(180deg) translateX(100px) rotate(-180deg);
    }

    to {
        transform: rotate(540deg) translateX(100px) rotate(-540deg);
    }
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: linear-gradient(145deg, #151515, #0a0a0a);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.4s ease;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover .card-glow {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        15px 15px 30px rgba(0, 0, 0, 0.6),
        -2px -2px 10px rgba(255, 255, 255, 0.03);
}

.project-content {
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.tags {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.tags span {
    font-size: 0.75rem;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-family: var(--font-mono);
}

.project-links {
    margin-top: 15px;
}

.icon-btn {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--text-dim);
}

.icon-btn:hover {
    color: var(--primary-accent);
}

/* Contact */
.contact-wrapper {
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0));
    padding: 60px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.contact-wrapper p {
    max-width: 600px;
    margin: 20px auto 40px;
    color: var(--text-dim);
}

.social-links {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-accent);
    color: #000;
    border-color: var(--primary-accent);
    transform: scale(1.1);
}

/* Animations/Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 1s 0.3s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s 0.6s forwards;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 1s 0.9s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===== Back to Top Button ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2997ff, #5ac8fa);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(41, 151, 255, 0.4);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(41, 151, 255, 0.6);
}

/* ===== Active Nav Link ===== */
.nav-link.active {
    color: var(--primary-accent);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-accent);
}

/* ===== Animated Skill Bars ===== */
.progress {
    width: 0 !important;
    transition: width 1.5s ease-out;
}

.progress.animate {
    width: var(--target-width) !important;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2997ff, #5ac8fa);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ===== Typing Animation ===== */
.typing-text {
    border-right: 3px solid #2997ff;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #2997ff;
    }
}

/* ===== Animated Gradient Border on Cards ===== */
.glass-card {
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2997ff, #5ac8fa, #00d4aa, #2997ff);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradient-rotate 3s ease infinite;
}

.glass-card:hover::before {
    opacity: 1;
}

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Card inner background to show gradient border */
.glass-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg, rgba(25, 25, 25, 0.95), rgba(10, 10, 10, 0.98));
    border-radius: 18px;
    z-index: -1;
}

/* Mobile Responsiveness (768px and below) */
@media (max-width: 768px) {
    .section {
        padding: 50px 15px;
    }

    .hero-name {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .headline {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .cta-container {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 25px;
    }

    .resume-btn-container {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .logo {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .about-text,
    #journey .reveal-on-scroll {
        text-align: center !important;
        min-width: 100% !important;
    }

    /* Reduce gap in journey section on mobile */
    #journey .container {
        gap: 30px !important;
    }

    .glass-card {
        padding: 24px 20px;
    }

    /* Education, Experience, and Publication Cards - Centering on Mobile */
    .glass-card div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }

    #education .glass-card img,
    #experience .glass-card img,
    #publications .glass-card img {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 5px;
        margin-right: 0 !important;
        /* Remove right gap on mobile */
    }

    /* Fix for Learning Journey Image - Ensure it takes full width */
    #journey .glass-card img {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 0 !important;
    }

    .glass-card h3 {
        font-size: 1.15rem !important;
        text-align: center;
    }

    .glass-card p {
        text-align: center;
    }

    /* Abstract content should remain left-aligned for readability */
    .abstract-content p {
        text-align: left !important;
    }

    /* Button groups in cards should also center */
    .glass-card div[style*="gap: 15px"] {
        justify-content: center !important;
    }

    /* Navbar adjustments */
    .glass-nav {
        padding: 0 15px;
    }

    /* Adjust scroll top button for mobile */
    #back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}