/* CSS Variables for easy theme customization */
:root {
    --bg-color: #F8F9FA;
    --text-color: #343A40;
    --heading-color: #212529;
    --accent-color: #005A9C;
    --accent-light: #e6f0f7;
    --accent-hover: #0077CC;
    --accent-deep: #003F6E;
    --white: #FFFFFF;
    --border-color: #DEE2E6;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 28px rgba(0, 90, 156, 0.18);
    --shadow-elevated: 0 20px 40px rgba(0,90,156,0.15);
    --gradient-accent: linear-gradient(135deg, #005A9C 0%, #0077CC 100%);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.7;
    font-size: 18px;
    overflow-x: hidden;
    position: relative;
}

/* Selection */
::selection {
    background: var(--accent-color);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 999;
    pointer-events: none;
}
.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 90, 156, 0.5);
}

/* Background Orbs */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: float-orb 20s infinite ease-in-out;
}
.orb-1 {
    width: 400px; height: 400px;
    background: var(--accent-color);
    top: -100px; left: -100px;
    animation-delay: 0s;
}
.orb-2 {
    width: 500px; height: 500px;
    background: var(--accent-hover);
    top: 40%; right: -200px;
    opacity: 0.2;
    animation-delay: -7s;
}
.orb-3 {
    width: 350px; height: 350px;
    background: var(--accent-light);
    bottom: -100px; left: 30%;
    opacity: 0.5;
    animation-delay: -14s;
}
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

section {
    padding: 120px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

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

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--heading-color);
    font-weight: 700;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 15px auto 0;
    border-radius: 3px;
}

.section-num {
    color: var(--accent-color);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.55em;
    margin-right: 10px;
    vertical-align: middle;
    letter-spacing: 1px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--heading-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    color: var(--accent-color);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    margin-right: 15px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    transform: translateX(-101%);
    transition: transform 0.4s var(--ease-smooth);
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.btn i {
    transition: transform 0.3s var(--ease-smooth);
}

.btn:hover i {
    transform: translateX(4px);
}

.btn.primary {
    background: var(--gradient-accent);
    color: var(--white);
    border-color: transparent;
}

.btn.primary::before {
    background: var(--accent-deep);
}

/* Header / Navigation */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    z-index: 100;
    transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
}

#main-nav.scrolled {
    background-color: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 15px 40px;
}

#main-nav .logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    z-index: 1001;
    transition: transform 0.3s var(--ease-bounce);
    display: inline-block;
}

#main-nav .logo:hover {
    transform: scale(1.1) rotate(-5deg);
}

.logo-dot {
    color: var(--accent-hover);
    animation: blink-dot 1.5s infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

#main-nav ul {
    display: flex;
    list-style: none;
}

#main-nav ul li {
    margin-left: 40px;
}

#main-nav ul li a {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

#main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s var(--ease-smooth);
}

#main-nav ul li a:hover {
    color: var(--accent-color);
}

#main-nav ul li a:hover::after {
    width: 100%;
}

.nav-num {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 4px;
}

.mobile-social-links {
    display: none;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--heading-color);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Left Social Bar */
.social-sidebar {
    position: fixed;
    bottom: 0;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    z-index: 50;
}
.social-sidebar::after {
    content: '';
    display: block;
    width: 2px;
    height: 90px;
    background-color: var(--text-color);
}
.social-sidebar a {
    font-size: 1.4rem;
    color: var(--text-color);
    transition: all 0.3s var(--ease-bounce);
}
.social-sidebar a:hover {
    color: var(--accent-color);
    transform: translateY(-5px) scale(1.15);
}

/* Hero Section */
#hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    min-height: 100vh;
    gap: 50px;
    position: relative;
    opacity: 1;
    transform: none;
    padding: 120px 0 80px;
}

.hero-content {
    max-width: 650px;
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal-up 0.9s var(--ease-smooth) forwards;
}

.hero-content .reveal-item:nth-child(1) { animation-delay: 0.1s; }
.hero-content .reveal-item:nth-child(2) { animation-delay: 0.25s; }
.hero-content .reveal-item:nth-child(3) { animation-delay: 0.4s; }
.hero-content .reveal-item:nth-child(4) { animation-delay: 0.55s; }
.hero-content .reveal-item:nth-child(5) { animation-delay: 0.7s; }
.hero-pic.reveal-item { animation-delay: 0.3s; }

@keyframes reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-greeting {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 90, 156, 0.15);
}

#hero h1 {
    font-family: var(--font-sans);
    font-weight: 500;
    margin-bottom: 10px;
}

#hero .name {
    font-size: clamp(45px, 8vw, 82px);
    margin-bottom: 15px;
    line-height: 1.05;
    letter-spacing: -2px;
}

#hero .name::after {
     display: none;
}

.name-gradient {
    background: linear-gradient(120deg, var(--heading-color) 0%, var(--accent-color) 50%, var(--accent-hover) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

#hero .tagline {
    font-size: 1.9rem;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.4;
    font-weight: 500;
    font-family: var(--font-serif);
}

.typing-text {
    color: var(--accent-color);
    border-right: 3px solid var(--accent-color);
    padding-right: 4px;
    font-weight: 700;
    animation: blink-caret .75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color); }
}

#hero p {
    max-width: 540px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hero-pic {
    position: relative;
    height: 450px;
    width: 400px;
    justify-self: center;
    margin-top: 2cm;
}

.hero-pic-frame {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: transform 0.5s var(--ease-smooth);
}

.hero-pic img {
    width: 100%;
    position: relative;
    z-index: 2;
    transition: filter 0.5s var(--ease-smooth);
    filter: drop-shadow(0 20px 30px rgba(0, 90, 156, 0.2));
}

.hero-pic-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(0, 90, 156, 0.25) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; }
}

.hero-pic:hover .hero-pic-frame {
    transform: translateY(-15px) scale(1.02);
}

.hero-pic:hover img {
    filter: drop-shadow(0 35px 40px rgba(0, 90, 156, 0.35));
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    opacity: 0.7;
    animation: fade-in 1s ease-out 1.5s backwards;
}

@keyframes fade-in {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 0.7; transform: translate(-50%, 0); }
}

.scroll-indicator:hover {
    opacity: 1;
    color: var(--accent-color);
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 3px;
    height: 7px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: wheel-scroll 1.8s infinite;
}

@keyframes wheel-scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* About Section & Skills */
#about .about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 50px;
    text-align: center;
}

.skill-card {
    background-color: var(--white);
    padding: 25px 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.4s var(--ease-bounce);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    z-index: 0;
}

.skill-card > * {
    position: relative;
    z-index: 1;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.skill-card:hover::before {
    opacity: 0.04;
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    transition: transform 0.4s var(--ease-bounce);
}

.skill-card:hover i {
    transform: scale(1.15) rotate(-8deg);
}

.skill-card p {
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.skill-card:hover p {
    color: var(--accent-color);
}

/* EXPERIENCE SECTION - SPOTLIGHT TIMELINE */
#experience .experience-subtitle {
    text-align: center;
    margin-bottom: 50px;
}

#experience .experience-subtitle p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.spotlight-timeline {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    position: relative;
    min-height: 600px;
}

.timeline-nav {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.timeline-track {
    position: relative;
    padding-left: 40px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--border-color) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.4s var(--ease-bounce);
    z-index: 2;
}

.timeline-item.active .timeline-dot {
    width: 20px;
    height: 20px;
    left: -35px;
    top: 6px;
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0 0 0 6px rgba(0, 90, 156, 0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 90, 156, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(0, 90, 156, 0); }
}

.timeline-label {
    padding: 8px 0;
    transition: all 0.3s ease;
}

.timeline-label .role {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--heading-color);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.timeline-label .org {
    font-size: 0.85rem;
    color: #666;
}

.timeline-item:hover .timeline-label .role {
    color: var(--accent-color);
    transform: translateX(5px);
}

.timeline-item.active .timeline-label .role {
    color: var(--accent-color);
    font-size: 1rem;
}

.spotlight-card-container {
    position: relative;
    min-height: 400px;
}

.spotlight-card {
    position: absolute;
    width: 100%;
    background: var(--white);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s var(--ease-bounce);
    pointer-events: none;
    border: 1px solid var(--border-color);
}

.spotlight-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow-elevated);
    pointer-events: all;
    position: relative;
    border-color: transparent;
}

.exp-card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-light);
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
}

.card-title h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 4px;
}

.highlight-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 90, 156, 0.3);
}

.company-name {
    font-size: 1.15rem;
    color: var(--accent-color);
    font-weight: 600;
}

.date-period {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
    margin-top: 4px;
}

.date-period i {
    color: var(--accent-color);
}

.impact-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.metric-card {
    background: var(--accent-light);
    padding: 16px 12px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s var(--ease-smooth);
    border: 1px solid rgba(0, 90, 156, 0.08);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 90, 156, 0.15);
    border-color: var(--accent-color);
}

.metric-number, .metric-number-text {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-serif);
    display: block;
    margin-bottom: 3px;
}

.metric-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.achievements-section {
    margin: 20px 0;
}

.achievements-section h4 {
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.achievement-list {
    list-style: none;
}

.achievement-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.5;
}

.achievement-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tech-badge {
    padding: 6px 14px;
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s var(--ease-smooth);
    cursor: default;
}

.tech-badge:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-light);
    transform: translateY(-2px);
}

.details-toggle {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    gap: 12px;
}

.toggle-btn i {
    transition: transform 0.3s ease;
}

.toggle-btn.expanded i {
    transform: rotate(180deg);
}

.details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.details-content.expanded {
    max-height: 2000px;
    margin-top: 20px;
}

.sub-item {
    background: #F8F9FA;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent-color);
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.sub-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 90, 156, 0.1);
}

.sub-item h5 {
    font-size: 1rem;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.sub-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects Section - ENHANCED */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.project-card {
    background-color: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    transition: all 0.5s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    isolation: isolate;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-smooth);
    z-index: 2;
}

.card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 90, 156, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    transform: translate(-50%, -50%);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 90, 156, 0.2);
}

.project-card:hover::before {
    transform: scaleX(1);
}

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

.project-card > *:not(.card-glow) {
    position: relative;
    z-index: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 28px 15px;
}

.card-header .folder-icon i {
    font-size: 2.8rem;
    color: var(--accent-color);
    transition: transform 0.4s var(--ease-bounce);
}

.project-card:hover .folder-icon i {
    transform: scale(1.15) rotate(-10deg);
}

.card-header .card-links a {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-left: 20px;
    transition: all 0.3s var(--ease-smooth);
    display: inline-block;
}
.card-header .card-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.card-body {
    padding: 0 28px 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.project-card:hover .card-body h3 {
    color: var(--accent-color);
}

.card-body p {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-body ul.tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    font-size: 0.85rem;
    color: #666;
    font-family: var(--font-sans);
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.card-body ul.tech-list li {
    position: relative;
    padding-left: 12px;
}

.card-body ul.tech-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Certificates Section */
.certificate-list {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.certificate-item {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
}
.certificate-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s var(--ease-smooth);
}
.certificate-item:hover {
    background-color: var(--accent-light);
    transform: translateX(5px);
}
.certificate-item:hover::before {
    transform: scaleY(1);
}
.certificate-item:last-child { border-bottom: none;}
.certificate-item .issuer {
    font-size: 0.9rem;
    color: #666;
}
.certificate-item .btn {
    margin-right: 0;
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Contact Section */
#contact {
    text-align: center;
}
#contact .contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-pill {
    display: inline-block;
    color: var(--accent-color);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

#contact h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
}
#contact h2::after { display: none; }
#contact p { margin-bottom: 35px; font-size: 1.1rem;}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    color: #666;
}

.footer-highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* IMAGE MODAL */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.visible {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    position: relative;
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 80vh;
    transform: scale(0.9);
    transition: transform 0.4s var(--ease-bounce);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal.visible .modal-content {
    transform: scale(1);
}
.modal-content img {
    max-width: 100%;
    max-height: calc(80vh - 40px);
    display: block;
    border-radius: 4px;
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s var(--ease-bounce);
    line-height: 1;
}
.close-modal:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 992px) {
    #hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }
    .hero-pic {
        margin: 40px auto 0;
        grid-row: 1;
        width: 300px;
        height: auto;
    }
    .hero-content {
        grid-row: 2;
        max-width: 100%;
    }
    .hero-cta {
        justify-content: center;
    }
     #hero .name {
        font-size: clamp(40px, 12vw, 65px);
    }

    .spotlight-timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline-nav {
        position: relative;
        top: 0;
    }

    .timeline-track {
        display: flex;
        overflow-x: auto;
        padding: 20px 0;
        padding-left: 0;
        gap: 20px;
        scroll-snap-type: x mandatory;
    }

    .timeline-track::before {
        display: none;
    }

    .timeline-item {
        flex-shrink: 0;
        scroll-snap-align: start;
        background: var(--white);
        padding: 15px 20px;
        border-radius: 10px;
        border: 2px solid var(--border-color);
        margin-bottom: 0;
    }

    .timeline-item.active {
        border-color: var(--accent-color);
        background: var(--accent-light);
    }

    .timeline-dot {
        display: none;
    }

    .scroll-indicator { display: none; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .container { padding: 0 20px; }
    h2 { font-size: 2.5rem; }

    .social-sidebar { display: none; }

    .hamburger-menu { display: block; }

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

    #main-nav .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s var(--ease-smooth);
    }

    #main-nav .nav-menu.active { left: 0; }

    #main-nav .nav-menu li {
        margin: 25px 0;
    }

    #main-nav .nav-menu li a {
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--heading-color);
    }

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

    .mobile-social-links a {
        font-size: 2.2rem;
        color: var(--heading-color);
        transition: color 0.3s ease;
    }

    .mobile-social-links a:hover {
        color: var(--accent-color);
    }

    #experience { padding: 80px 0 60px; }
    #experience .experience-subtitle { margin-bottom: 30px; }
    #experience .experience-subtitle p { font-size: 1rem; padding: 0 10px; }

    .spotlight-timeline {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
    }

    .timeline-nav {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 25px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .timeline-nav::-webkit-scrollbar { display: none; }

    .timeline-track {
        display: flex;
        gap: 10px;
        padding: 10px 5px;
        padding-left: 0;
        flex-wrap: nowrap;
        min-width: min-content;
    }

    .timeline-track::before { display: none; }

    .timeline-item {
        flex-shrink: 0;
        background: var(--white);
        padding: 12px 18px;
        border-radius: 25px;
        border: 2px solid var(--border-color);
        margin-bottom: 0;
        cursor: pointer;
        transition: all 0.3s var(--ease-bounce);
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .timeline-item.active {
        border-color: var(--accent-color);
        background: var(--gradient-accent);
        box-shadow: 0 4px 12px rgba(0, 90, 156, 0.3);
        transform: scale(1.05);
    }

    .timeline-dot { display: none; }

    .timeline-label { padding: 0; white-space: nowrap; }

    .timeline-label .role {
        font-size: 0.85rem;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .timeline-item.active .timeline-label .role {
        color: var(--white);
        font-size: 0.85rem;
    }

    .timeline-label .org {
        font-size: 0.75rem;
        color: #666;
    }

    .timeline-item.active .timeline-label .org {
        color: rgba(255, 255, 255, 0.9);
    }

    .timeline-item:hover .timeline-label .role { transform: none; }

    .spotlight-card-container { min-height: auto; width: 100%; }

    .spotlight-card {
        padding: 20px 16px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .exp-card-header { margin-bottom: 16px; padding-bottom: 12px; }
    .card-title-row { gap: 10px; margin-bottom: 6px; }
    .card-title h3 { font-size: 1.4rem; line-height: 1.3; }
    .company-name { font-size: 1rem; }
    .highlight-badge { font-size: 0.7rem; padding: 5px 12px; letter-spacing: 0.8px; }
    .date-period { font-size: 0.85rem; }

    .impact-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 16px 0;
    }

    .metric-card { padding: 12px 8px; border-radius: 8px; }
    .metric-number, .metric-number-text { font-size: 1.5rem; margin-bottom: 2px; }
    .metric-label { font-size: 0.75rem; line-height: 1.2; }

    .achievements-section { margin: 16px 0; }
    .achievements-section h4 { font-size: 1rem; margin-bottom: 10px; }

    .achievement-list li {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 8px;
        padding-left: 24px;
    }

    .achievement-list li::before { font-size: 0.8rem; }

    .tech-stack { gap: 6px; margin-top: 16px; }
    .tech-badge { font-size: 0.75rem; padding: 5px 10px; }

    .details-toggle { margin-top: 12px; padding-top: 12px; }
    .toggle-btn { font-size: 0.85rem; padding: 8px 0; }
    .details-content.expanded { margin-top: 15px; }
    .sub-item { padding: 12px; margin-bottom: 10px; border-left-width: 2px; }
    .sub-item h5 { font-size: 0.9rem; margin-bottom: 6px; }
    .sub-item p { font-size: 0.85rem; line-height: 1.5; }

    .timeline-item.active .timeline-dot { animation: none; }

    .hero-content .btn {
        display: inline-flex;
        margin: 8px;
    }

    #hero .tagline {
        font-size: 1.5rem;
    }

    .certificate-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    #contact h2 { font-size: 2.5rem; }
}

@media (max-width: 640px) {
    .spotlight-card { padding: 18px; }
    .card-title h3 { font-size: 1.3rem; }
    .impact-metrics { gap: 12px; margin: 15px 0; grid-template-columns: 1fr 1fr; }
    .metric-number, .metric-number-text { font-size: 1.6rem; }
    .highlight-badge { font-size: 0.7rem; padding: 5px 12px; }
    .metric-card { padding: 12px 10px; }
    .achievements-section { margin: 15px 0; }

    .orb-1 { width: 250px; height: 250px; }
    .orb-2 { width: 300px; height: 300px; }
    .orb-3 { width: 200px; height: 200px; }
}