/* Base & Variables */
:root {
    --bg-color: #f7f4ef;
    --text-main: #5C3028; /* Wine/Maroon from user palette */
    --text-muted: #585552; /* Charcoal from user palette */
    --primary: #8F6779; /* Plum from user palette */
    --secondary: #D4A49C; /* Coral from user palette */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-hover: rgba(255, 255, 255, 0.6);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: auto; /* Disabled smooth as JS handles hard transitions now */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow: hidden; /* Strict full-page SPA behavior */
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* Background Animated Shapes for modern aesthetic */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(143, 103, 121, 0.15) 0%, transparent 70%);
}

.shape-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212, 164, 156, 0.25) 0%, transparent 70%);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 50%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(173, 203, 186, 0.3) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Common Classes & Layout Constraints */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-panel:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
}

/* Elegant Text Animations on Section Entry */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

section.active .reveal {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.60s; }


/* Sections as Independent Pages (SPA Transitions) */
section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto; /* Allow scrolling *inside* the section */
    overflow-x: hidden;
    z-index: 1;
    transform: scale(1.05); /* Slight zoom out elegant transition */
    transition: opacity 0.8s ease, visibility 0.8s, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

section.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 10;
}

section.fade-out {
    opacity: 0;
    transform: scale(0.95); /* Slide backwards beautifully */
    z-index: 5;
}

/* Section content width bounding via padding */
.section-padding {
    padding: 120px max(5%, calc((100vw - 1300px) / 2)) 80px;
}

/* Custom Scrollbar for inner sections */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(5, 5, 17, 0.8);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.6);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(247, 244, 239, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    padding: 5px 0;
    box-shadow: 0 4px 30px rgba(92, 48, 40, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem 5%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.nav-profile-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    transition: var(--transition);
    display: block;
}

.nav-profile-img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Hero Section Specifics */
.hero {
    display: flex;
    align-items: center;
    padding: 80px max(5%, calc((100vw - 1300px) / 2)) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.greeting {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.summary {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 500px;
    margin: 1.5rem 0 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 8px 30px rgba(143, 103, 121, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(143, 103, 121, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-main);
    border: 1px solid rgba(92, 48, 40, 0.1);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(212, 164, 156, 0.15);
}

/* Profile Image */
.profile-img-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 3px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
    position: relative;
    transition: var(--transition);
    display: inline-block;
}

.profile-img-container:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(179, 136, 255, 0.4);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 4px solid var(--bg-color);
}

/* Hero Graphic */
.hero-graphic {
    position: relative;
}

.main-card {
    height: 400px;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.2) 100%);
    box-shadow: 0 15px 40px rgba(15,23,42,0.1), inset 0 0 0 1px rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

.data-viz-mock {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.bar {
    flex: 1;
    background: linear-gradient(0deg, var(--primary), transparent);
    border-radius: 8px 8px 0 0;
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0.8;
}

section.active .bar {
    animation: growBar 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bar:hover {
    opacity: 1;
    background: linear-gradient(0deg, var(--secondary), var(--primary));
}

section.active .bar-1 { height: 40%; animation-delay: 0.5s; }
section.active .bar-2 { height: 70%; animation-delay: 0.7s; }
section.active .bar-3 { height: 50%; animation-delay: 0.9s; }
section.active .bar-4 { height: 90%; animation-delay: 1.1s; }
section.active .bar-5 { height: 60%; animation-delay: 1.3s; }

@keyframes growBar {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.85); /* Light frosted */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 10px 20px rgba(92, 48, 40, 0.08); /* Soft maroon shadow */
    display: flex;
    align-items: center;
    gap: 8px;
    animation: floatingBadge 4s ease-in-out infinite;
}

.floating-badge i {
    color: var(--primary);
}

.badge-1 { top: 40px; left: -20px; }
.badge-2 { top: 120px; right: -30px; animation-delay: -1.5s; }
.badge-3 { bottom: 50px; left: -10px; animation-delay: -3s; }

@keyframes floatingBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Headers */
.section-header {
    margin-bottom: 3.5rem;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-header h2 {
    color: var(--text-main);
}

.section-header .line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
}

/* About */
.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-text p {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.quick-facts {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.fact {
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 20px;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 500;
}

.fact i {
    color: var(--secondary);
}

/* Bento Grid Skills */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: minmax(200px, auto);
}

.bento-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.bento-card:hover {
    background: var(--glass-hover);
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.bento-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.skill-tags li {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.skill-tags li:hover {
    color: var(--text-main);
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.2);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.skill-grid span {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.skill-grid span::before {
    content: "•";
    color: var(--secondary);
    font-size: 1.5rem;
    margin-right: 8px;
    line-height: 1;
}

.core-skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.core-skills-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
}

.core-skills-list i {
    color: var(--primary);
    margin-top: 5px;
}

/* Experience Dashboard */
.experience-dashboard {
    display: flex;
    gap: 0;
    padding: 0;
    overflow: hidden;
    min-height: 450px;
}

.exp-tabs {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.4);
}

.exp-tab {
    background: transparent;
    border: none;
    text-align: left;
    padding: 1.5rem 2rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: var(--transition);
    color: var(--text-muted);
}

.exp-tab:hover {
    background: rgba(15, 23, 42, 0.03);
    color: var(--text-main);
}

.exp-tab.active {
    background: rgba(2, 132, 199, 0.05); /* very light primary tint */
    border-left-color: var(--primary);
    color: var(--text-main);
}

.exp-tab .company {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.exp-tab .role {
    font-size: 0.9rem;
    opacity: 0.8;
}

.exp-content {
    flex-grow: 1;
    padding: 2.5rem 3rem;
    position: relative;
}

.exp-panel {
    display: none;
    animation: fadeInSlideUp 0.6s cubic-bezier(0.2, 1, 0.3, 1) backwards;
}

.exp-panel.active {
    display: block;
}

@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 15px;
}

.exp-header h3 {
    font-size: 1.6rem;
    color: var(--primary);
}

.exp-panel h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-weight: 500;
}

.exp-panel .location {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-left: 10px;
    font-weight: 500;
}

.exp-panel ul {
    list-style: none;
}

.exp-panel ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.exp-panel ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 1.2rem;
    top: -2px;
}

/* Education */
.edu-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.column-title {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
}

.column-title i {
    color: var(--primary);
}

.edu-card {
    margin-bottom: 1.5rem;
}

.edu-card h4 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.edu-card h5 {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.edu-card p {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.specialization {
    color: var(--text-main) !important;
    font-weight: 600;
}

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

.cert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cert-item:last-child {
    border-bottom: none;
}

.cert-item i {
    font-size: 1.5rem;
    color: #0A66C2;
}

/* Contact */
.contact-box {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(0,229,255,0.05));
    border: 1px solid rgba(0,229,255,0.1);
    border-radius: 24px;
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.1rem;
    padding: 15px 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-link:hover {
    background: rgba(0,229,255,0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.contact-link i {
    color: var(--primary);
}

/* Footer Header */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
    width: 100%;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.project-thumbnail {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.audit-bg {
    background: radial-gradient(circle at 10% 20%, rgba(143, 103, 121, 0.3) 0%, transparent 60%),
                radial-gradient(circle at 90% 80%, rgba(212, 164, 156, 0.2) 0%, transparent 60%);
    background-color: #f5ece9;
}

.esg-bg {
    background: radial-gradient(circle at 80% 20%, rgba(173, 203, 186, 0.4) 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(88, 85, 82, 0.1) 0%, transparent 60%);
    background-color: #edf2ef;
}

.mesh-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(rgba(92, 48, 40, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(92, 48, 40, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: rotate(20deg);
    animation: drift 30s linear infinite;
}

.mesh-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, rgba(143, 103, 121, 0.15) 0px, rgba(143, 103, 121, 0.15) 2px, transparent 2px, transparent 15px);
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(143, 103, 121, 0.4);
}

.circle-1 { width: 100px; height: 100px; top: -20px; left: -20px; animation: float 6s ease-in-out infinite; }
.circle-2 { width: 60px; height: 60px; bottom: 20px; right: 40px; animation: float 8s ease-in-out infinite reverse; border-color: rgba(179, 136, 255, 0.2); }

.glowing-orb {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(212, 164, 156, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite alternate;
}

.overlay-icon {
    font-size: 4.5rem;
    color: #fff;
    filter: drop-shadow(0 0 20px rgba(143, 103, 121, 0.6));
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-card:hover .overlay-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(212, 164, 156, 0.9));
}

@keyframes drift {
    from { transform: rotate(20deg) translateY(0); }
    to { transform: rotate(20deg) translateY(-50px); }
}

@keyframes pulse {
    from { transform: scale(0.8); opacity: 0.5; }
    to { transform: scale(1.2); opacity: 1; }
}

.project-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--text-main);
}

.project-card p {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 2rem;
}

.open-project-modal {
    width: fit-content;
    padding: 10px 24px;
    font-size: 0.95rem;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.5); /* Light transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

#modal-body h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

#modal-body ul {
    list-style-position: inside;
    color: var(--text-muted);
    margin-top: 1rem;
}

#modal-body ul li {
    margin-bottom: 0.8rem;
    padding-left: 20px;
    position: relative;
    list-style-type: none;
}

#modal-body ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-family: sans-serif;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-span-3 {
        grid-column: span 2;
    }
    .hero-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 60px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .summary {
        margin: 1.5rem auto 2.5rem;
    }
    
    .cta-group {
        justify-content: center;
        margin-bottom: 3rem;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .col-span-2, .col-span-3 {
        grid-column: span 1;
    }
    
    .core-skills-list {
        grid-template-columns: 1fr;
    }
    
    .edu-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background: rgba(5, 5, 17, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        width: 70%;
        transition: 0.5s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .time-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .experience-dashboard {
        flex-direction: column;
    }
    
    .exp-tabs {
        flex: auto;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .exp-tab {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 1rem 1.5rem;
    }
    
    .exp-tab.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary);
    }
    
    .exp-content {
        padding: 1.5rem;
    }
}
