/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-3: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Loading Animation */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.8s ease;
}

.loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.welcome-loader {
    text-align: center;
}

.welcome-text {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.1em;
}

.letter {
    display: inline-block;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: letterIn 0.8s ease forwards;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3),
                 0 0 40px rgba(99, 102, 241, 0.2),
                 0 0 60px rgba(99, 102, 241, 0.1);
}

.letter:nth-child(1) { animation-delay: 0.1s; }
.letter:nth-child(2) { animation-delay: 0.2s; }
.letter:nth-child(3) { animation-delay: 0.3s; }
.letter:nth-child(4) { animation-delay: 0.4s; }
.letter:nth-child(5) { animation-delay: 0.5s; }
.letter:nth-child(6) { animation-delay: 0.6s; }
.letter:nth-child(7) { animation-delay: 0.7s; }
.letter:nth-child(8) { 
    animation-delay: 0.8s;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5),
                 0 0 60px rgba(99, 102, 241, 0.3),
                 0 0 90px rgba(99, 102, 241, 0.2);
}

@keyframes letterIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8) rotateZ(10deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.1) rotateZ(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateZ(0deg);
    }
}

.loader-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

/* Pulsing glow effect for the whole text after animation */
.welcome-text {
    animation: glowPulse 2s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes glowPulse {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
    }
    50% {
        filter: brightness(1.1) drop-shadow(0 0 40px rgba(99, 102, 241, 0.5));
    }
}

/* Remove old loader styles */
.loader {
    display: none;
}

.loader-circle {
    display: none;
}

.loader-text {
    display: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-background {
    display: none;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-1);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-2);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    animation-duration: 20s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-3);
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--gradient-1);
    top: 30%;
    right: 25%;
    animation-delay: 1s;
    animation-duration: 18s;
}

.shape-5 {
    width: 350px;
    height: 350px;
    background: var(--gradient-2);
    bottom: 10%;
    right: 5%;
    animation-delay: 3s;
    animation-duration: 24s;
}

.shape-6 {
    width: 180px;
    height: 180px;
    background: var(--gradient-3);
    top: 45%;
    left: 40%;
    animation-delay: 5s;
    animation-duration: 19s;
}

.shape-7 {
    width: 220px;
    height: 220px;
    background: var(--gradient-1);
    top: 80%;
    left: 60%;
    animation-delay: 2.5s;
    animation-duration: 21s;
}

.shape-8 {
    width: 280px;
    height: 280px;
    background: var(--gradient-2);
    top: 15%;
    right: 40%;
    animation-delay: 4.5s;
    animation-duration: 23s;
}

.shape-9 {
    width: 160px;
    height: 160px;
    background: var(--gradient-3);
    bottom: 40%;
    right: 30%;
    animation-delay: 1.5s;
    animation-duration: 17s;
}

.shape-10 {
    width: 190px;
    height: 190px;
    background: var(--gradient-1);
    top: 70%;
    left: 25%;
    animation-delay: 3.5s;
    animation-duration: 20s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(20px) translateX(-30px) rotate(180deg) scale(0.95);
    }
    75% {
        transform: translateY(-20px) translateX(-20px) rotate(270deg) scale(1.05);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 70px;
    padding-left: 4vw;
    padding-right: 4vw;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    padding-left: 2vw;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
}

.title-line:nth-child(1) {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.title-line:nth-child(2) {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line:nth-child(3) {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(30px);
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 520px;
    width: 100%;
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: var(--gradient-1);
    z-index: 0;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 2.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    position: relative;
    flex-shrink: 0;
}

.profile-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    background: var(--gray-100);
    display: block;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: absolute;
    top: 0;
    left: 0;
    border: 4px solid var(--white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.profile-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-info p i {
    font-size: 0.9rem;
}

.card-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 2.5rem;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

.card-content {
    padding: 2rem 2.5rem 1.5rem;
}

.card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.card-description:last-child {
    margin-bottom: 0;
}

.card-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0 2.5rem 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.highlight-item:hover {
    transform: translateX(8px);
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.highlight-item:hover i {
    color: var(--white);
    transform: scale(1.1);
}

.highlight-item:hover span {
    color: var(--white);
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.highlight-item span {
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

/* Remove old styles */
.hero-image {
    display: none;
}

.profile-card {
    display: none;
}

.about-text-hero {
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* About Section */
.about {
    background: rgba(248, 250, 252, 0.5);
    backdrop-filter: blur(10px);
    padding: 6rem 0;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Education on Left Side */
.about-education {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Languages and Programming on Right Side */
.about-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-subtitle-left {
    text-align: left;
    margin-bottom: 2rem;
}

.section-subtitle-left h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle-left p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Education Timeline in About Section */
.education-timeline-about {
    position: relative;
    margin-bottom: 2rem;
}

.education-timeline-about::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
}

.education-timeline-about .timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.education-timeline-about .timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}

.education-timeline-about .timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}

.education-timeline-about .timeline-dot {
    position: absolute;
    top: 0;
    left: -30px;
    width: 20px;
    height: 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--primary-color);
}

.education-timeline-about .timeline-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.education-timeline-about .timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.education-timeline-about .timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.education-timeline-about .timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.education-timeline-about .timeline-content h4 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.education-timeline-about .timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.education-timeline-about .achievements {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.education-timeline-about .achievement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.education-timeline-about .achievement i {
    color: var(--secondary-color);
}

/* About Text at Bottom of Left Side */
.about-text-bottom {
    margin-top: 1rem;
}

.about-text-bottom .about-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text-bottom .about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-text-bottom .highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.about-text-bottom .highlight:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.about-text-bottom .highlight i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
}

.about-text-bottom .highlight span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Skills Section Container - Full Width */
.about-skills-full {
    display: block;
    width: 100%;
    margin-top: 2rem;
}

/* Single full-width skills card */
.skills-card-full {
    width: 100%;
    max-width: none;
}

.skills-card-full .skills-list {
    max-height: 280px;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    overflow-y: auto;
    padding-right: 1rem;
}

/* Remove old about-skills styles */
.about-skills {
    display: none;
}

.skills-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.skills-card:nth-child(1) { animation-delay: 0.2s; }
.skills-card:nth-child(2) { animation-delay: 0.4s; }
.skills-card:nth-child(3) { animation-delay: 0.6s; }

.skills-card:hover {
    box-shadow: var(--shadow-lg);
}

.skills-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.skills-card h4 i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Programming Languages Pills */
.prog-lang-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.prog-lang-pill {
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.prog-lang-pill i {
    font-size: 1.3rem;
}

.prog-lang-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Tooltip for programming languages */
.prog-lang-pill::after {
    content: attr(data-detail);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--text-primary);
    color: var(--white);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    z-index: 10;
}

.prog-lang-pill::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    border: 5px solid transparent;
    border-top-color: var(--text-primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.prog-lang-pill:hover::after,
.prog-lang-pill:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.lang-icon-text {
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
}

/* Language Bars */
.lang-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.lang-item {
    display: grid;
    grid-template-columns: 40px 120px 1fr 140px;
    align-items: center;
    gap: 1rem;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease forwards;
}

.lang-item:nth-child(1) { animation-delay: 0.1s; }
.lang-item:nth-child(2) { animation-delay: 0.2s; }
.lang-item:nth-child(3) { animation-delay: 0.3s; }
.lang-item:nth-child(4) { animation-delay: 0.4s; }

.lang-item:hover {
    background: rgba(241, 245, 249, 0.9);
    transform: translateX(5px);
}

.lang-flag {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Twemoji", "Arial", sans-serif;
    line-height: 1;
}

.lang-name {
    font-weight: 600;
    color: var(--text-primary);
}

.lang-bar {
    height: 10px;
    background: var(--gray-200);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    display: block;
    height: 100%;
    border-radius: 10px;
    background: var(--gradient-1);
    transition: width 1s ease;
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.bar-fill.native { width: 100%; }
.bar-fill.professional { width: 85%; }
.bar-fill.working { width: 65%; }

.lang-level {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Skills & Tools Pills */
.skills-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 1rem;
}

.skills-list::-webkit-scrollbar {
    width: 6px;
}

.skills-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}

.skills-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 6px;
}

.skill-pill {
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.skill-pill i {
    font-size: 1.1rem;
}

.skill-pill:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Tooltip for skills */
.skill-pill::after {
    content: attr(data-detail);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--text-primary);
    color: var(--white);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    z-index: 10;
}

.skill-pill::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    border: 5px solid transparent;
    border-top-color: var(--text-primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.skill-pill:hover::after,
.skill-pill:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-education {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .about-right {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .about-skills-full {
        max-width: 700px;
        margin: 2rem auto 0;
    }
}

@media (max-width: 768px) {
    .welcome-text {
        font-size: 3.5rem;
    }
    
    .letter {
        text-shadow: 0 0 15px rgba(99, 102, 241, 0.3),
                     0 0 30px rgba(99, 102, 241, 0.2);
    }
    
    .letter:nth-child(8) { 
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.5),
                     0 0 40px rgba(99, 102, 241, 0.3);
    }
    
    .about {
        padding: 4rem 0;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .section-subtitle-left h3 {
        font-size: 1.5rem;
    }
    
    .education-timeline-about .timeline-item {
        padding-left: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .education-timeline-about .timeline-dot {
        left: -25px;
        width: 16px;
        height: 16px;
    }
    
    .education-timeline-about .timeline-content {
        padding: 1.2rem;
    }
    
    .education-timeline-about .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .about-text-bottom .about-description {
        font-size: 0.95rem;
    }
    
    .about-text-bottom .highlight {
        padding: 0.8rem 1.2rem;
    }
    
    .skills-card {
        padding: 1.5rem;
    }
    
    .lang-item {
        grid-template-columns: 35px 100px 1fr 100px;
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }
    
    .lang-flag {
        font-size: 1.5rem;
    }
    
    .lang-name {
        font-size: 0.9rem;
    }
    
    .lang-level {
        font-size: 0.8rem;
    }
    
    .prog-lang-list {
        gap: 0.7rem;
    }
    
    .prog-lang-pill {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .skills-list {
        max-height: 250px;
    }
    
    .skills-card-full .skills-list {
        max-height: 300px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .welcome-text {
        font-size: 2.5rem;
        gap: 0.05em;
    }
    
    .loader-subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .about-content {
        gap: 1.5rem;
    }
    
    .section-subtitle-left h3 {
        font-size: 1.3rem;
    }
    
    .education-timeline-about .timeline-item {
        padding-left: 2rem;
    }
    
    .education-timeline-about .timeline-dot {
        left: -20px;
        width: 14px;
        height: 14px;
    }
}

/* Experience Section */
.experience {
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(10px);
    position: relative;
}

.experience-grid {
    display: grid;
    gap: 2rem;
}

.experience-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.experience-card:nth-child(1) { animation-delay: 0.1s; }
.experience-card:nth-child(2) { animation-delay: 0.2s; }
.experience-card:nth-child(3) { animation-delay: 0.3s; }

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.experience-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.experience-info h4 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.experience-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.experience-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.experience-meta i {
    color: var(--primary-color);
}

.experience-highlights {
    list-style: none;
    margin-bottom: 1.5rem;
}

.experience-highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.experience-highlights li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(241, 245, 249, 0.9);
    backdrop-filter: blur(5px);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-period {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-links {
    margin-top: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--gradient-1);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--gradient-2);
}

.certifications {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.certifications h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.cert-item i {
    color: var(--secondary-color);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.cert-item:hover i {
    color: var(--white);
}

.cert-info h4 {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.cert-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.cert-info .cert-skills {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-top: 0.5rem;
}

.cert-item:hover .cert-info p,
.cert-item:hover .cert-info .cert-skills {
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section */
.contact {
    background: rgba(248, 250, 252, 0.6);
    backdrop-filter: blur(10px);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 3rem 0 1rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-left p {
    color: var(--gray-200);
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-200);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .experience-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-left: 2vw;
        padding-right: 2vw;
        text-align: center;
    }
    .hero-text {
        padding-left: 0;
        margin-left: 0;
    }
    .hero-text .hero-description {
        max-width: 600px;
        margin: 0 auto 2rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-right {
        display: flex;
        justify-content: center;
    }
    .hero-card {
        max-width: 440px;
    }
    .card-header {
        padding: 1.5rem 2rem 1.2rem;
    }
    .profile-avatar, .profile-img, .avatar-placeholder {
        width: 80px;
        height: 80px;
    }
    .avatar-placeholder {
        font-size: 2rem;
    }
    .profile-info h3 {
        font-size: 1.3rem;
    }
    .card-stats {
        padding: 1.2rem 2rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .card-content {
        padding: 1.5rem 2rem 1.2rem;
    }
    .card-highlights {
        padding: 0 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        gap: 2rem;
    }
    .hero-card {
        max-width: 360px;
    }
    .hero-card::before {
        height: 100px;
    }
    .card-header {
        gap: 1rem;
        padding: 1.2rem 1.5rem 1rem;
    }
    .profile-avatar, .profile-img, .avatar-placeholder {
        width: 70px;
        height: 70px;
    }
    .avatar-placeholder {
        font-size: 1.5rem;
    }
    .profile-info h3 {
        font-size: 1.2rem;
    }
    .profile-info p {
        font-size: 0.9rem;
    }
    .card-stats {
        gap: 1.5rem;
        padding: 1rem 1.5rem;
    }
    .stat-number {
        font-size: 1.3rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }
    .stat-divider {
        height: 30px;
    }
    .card-content {
        padding: 1.2rem 1.5rem 1rem;
    }
    .card-description {
        font-size: 0.95rem;
    }
    .card-highlights {
        padding: 0 1.5rem 1.2rem;
        gap: 0.6rem;
    }
    .highlight-item {
        padding: 0.8rem 1rem;
    }
    .highlight-item i {
        font-size: 1.1rem;
    }
    .highlight-item span {
        font-size: 0.9rem;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Global Floating Background */
.global-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-1);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-2);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    animation-duration: 20s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-3);
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--gradient-1);
    top: 30%;
    right: 25%;
    animation-delay: 1s;
    animation-duration: 18s;
}

.shape-5 {
    width: 350px;
    height: 350px;
    background: var(--gradient-2);
    bottom: 10%;
    right: 5%;
    animation-delay: 3s;
    animation-duration: 24s;
}

.shape-6 {
    width: 180px;
    height: 180px;
    background: var(--gradient-3);
    top: 45%;
    left: 40%;
    animation-delay: 5s;
    animation-duration: 19s;
}

.shape-7 {
    width: 220px;
    height: 220px;
    background: var(--gradient-1);
    top: 80%;
    left: 60%;
    animation-delay: 2.5s;
    animation-duration: 21s;
}

.shape-8 {
    width: 280px;
    height: 280px;
    background: var(--gradient-2);
    top: 15%;
    right: 40%;
    animation-delay: 4.5s;
    animation-duration: 23s;
}

.shape-9 {
    width: 160px;
    height: 160px;
    background: var(--gradient-3);
    bottom: 40%;
    right: 30%;
    animation-delay: 1.5s;
    animation-duration: 17s;
}

.shape-10 {
    width: 190px;
    height: 190px;
    background: var(--gradient-1);
    top: 70%;
    left: 25%;
    animation-delay: 3.5s;
    animation-duration: 20s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(20px) translateX(-30px) rotate(180deg) scale(0.95);
    }
    75% {
        transform: translateY(-20px) translateX(-20px) rotate(270deg) scale(1.05);
    }
}

.university-link {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
    transition: transform 0.2s;
}
.university-link:hover {
    transform: scale(1.08);
}
.university-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.10);
    margin-right: 0.4rem;
    background: #fff;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(6px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.modal-content {
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(99,102,241,0.15);
    max-width: 800px;
    width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    padding: 0;
    position: relative;
    animation: fadeInUp 0.5s;
    display: flex;
    flex-direction: column;
}
.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid rgba(226,232,240,0.5);
    position: sticky;
    top: 0;
    z-index: 5;
}
.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.course-count {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.course-search {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}
.course-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem 2rem;
}
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 6px;
}
.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}
.modal-close:hover {
    color: var(--primary-color);
}
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.course-card {
    background: rgba(248,250,252,0.95);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem 1.2rem;
    transition: box-shadow 0.2s, transform 0.2s;
    border-left: 6px solid var(--primary-color);
}
.course-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px) scale(1.01);
}
.course-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}
.course-code {
    font-size: 0.98rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.course-desc {
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
    font-size: 0.98rem;
}
.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.course-skills {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--secondary-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.course-skill-pill {
    background: var(--gradient-1);
    color: #fff;
    border-radius: 12px;
    padding: 0.2rem 0.7rem;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}
@media (max-width: 600px) {
    .modal-content {
        padding: 0;
        max-width: 98vw;
        max-height: 95vh;
    }
    .modal-header {
        padding: 1.5rem 1rem 1rem;
    }
    .modal-title {
        font-size: 1.5rem;
    }
    .modal-body {
        padding: 1rem;
    }
    .course-card {
        padding: 1.2rem 1rem;
    }
    .course-title {
        font-size: 1.1rem;
    }
    .course-code {
        font-size: 0.9rem;
    }
    .course-skills {
        gap: 0.3rem;
    }
    .course-skill-pill {
        padding: 0.15rem 0.5rem;
        font-size: 0.85rem;
    }
}

.see-courses-btn {
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* NYU Modal Styling */
#nyuCoursesModal .modal-title {
    background: linear-gradient(135deg, #57068c 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
#nyuCoursesModal .course-card {
    border-left-color: #57068c;
}
#nyuCoursesModal .course-title {
    color: #57068c;
}
#nyuCoursesModal .course-skill-pill {
    background: linear-gradient(135deg, #57068c 0%, #8b5cf6 100%);
}
#nyuCoursesModal .course-search:focus {
    border-color: #57068c;
    box-shadow: 0 0 0 3px rgba(87, 6, 140, 0.1);
}
#nyuCoursesModal .modal-body::-webkit-scrollbar-thumb {
    background: #57068c;
}

/* Mouse Bubble Effect */
.mouse-bubble {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.2) 50%, rgba(6, 182, 212, 0.1) 100%);
    animation: bubbleFloat 2s ease-out forwards;
    backdrop-filter: blur(1px);
    box-shadow: 
        0 0 10px rgba(99, 102, 241, 0.2),
        0 0 20px rgba(139, 92, 246, 0.1),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.mouse-bubble::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    filter: blur(2px);
}

.mouse-bubble::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 25%;
    width: 15%;
    height: 15%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(1px);
}

@keyframes bubbleFloat {
    0% {
        opacity: 0.8;
        transform: translate(0, 0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translate(var(--dx, 0), var(--dy, 0)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--dx, 0) * 3), calc(var(--dy, 0) * 3)) scale(0.3);
    }
}

/* Bubble variants for different sizes and colors */
.mouse-bubble.small {
    width: 8px;
    height: 8px;
    animation-duration: 1.5s;
}

.mouse-bubble.medium {
    width: 12px;
    height: 12px;
    animation-duration: 2s;
}

.mouse-bubble.large {
    width: 16px;
    height: 16px;
    animation-duration: 2.5s;
}

.mouse-bubble.variant-1 {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(236, 72, 153, 0.2) 50%, rgba(6, 182, 212, 0.1) 100%);
    box-shadow: 
        0 0 10px rgba(139, 92, 246, 0.2),
        0 0 20px rgba(236, 72, 153, 0.1),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.mouse-bubble.variant-2 {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(99, 102, 241, 0.2) 50%, rgba(139, 92, 246, 0.1) 100%);
    box-shadow: 
        0 0 10px rgba(6, 182, 212, 0.2),
        0 0 20px rgba(99, 102, 241, 0.1),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.mouse-bubble.variant-3 {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, rgba(6, 182, 212, 0.2) 50%, rgba(99, 102, 241, 0.1) 100%);
    box-shadow: 
        0 0 10px rgba(236, 72, 153, 0.2),
        0 0 20px rgba(6, 182, 212, 0.1),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Disable bubble effect on touch devices */
@media (hover: none) and (pointer: coarse) {
    .mouse-bubble {
        display: none;
    }
} 

/* Certificate Links */
.cert-links {
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-1);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.cert-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--gradient-2);
}

.cert-item:hover .cert-link {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.cert-item:hover .cert-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.cert-link i {
    font-size: 0.9rem;
}

.cert-item:hover .cert-info .cert-skills {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-top: 0.5rem;
}

.cert-item:hover .cert-info p,
.cert-item:hover .cert-info .cert-skills {
    color: rgba(255, 255, 255, 0.9);
}

/* Certificate Links */
.cert-links {
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-1);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.cert-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--gradient-2);
}

.cert-item:hover .cert-link {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.cert-item:hover .cert-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.cert-link i {
    font-size: 0.9rem;
}

/* MyTimeline Special Attention Animation */
@keyframes timelineAttention {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
        text-shadow: none;
        color: #6366f1;
    }
    20% {
        transform: scale(0.93 - 0.279); /* 0.93 - 30% = 0.651 */
        box-shadow: 0 0 21px 7px #8b5cf6, 0 0 42px 14px #6366f1;
        text-shadow: 0 0 12.6px #8b5cf6, 0 0 22.4px #6366f1;
        color: #fff;
        background: #6366f1;
    }
    50% {
        transform: scale(1.12 - 0.336); /* 1.12 - 30% = 0.784 */
        box-shadow: 0 0 42px 14px #8b5cf6, 0 0 84px 28px #6366f1;
        text-shadow: 0 0 22.4px #8b5cf6, 0 0 44.8px #6366f1;
        color: #fff;
        background: #6366f1;
    }
    80% {
        transform: scale(0.97 - 0.291); /* 0.97 - 30% = 0.679 */
        box-shadow: 0 0 28px 10.5px #8b5cf6, 0 0 56px 21px #6366f1;
        text-shadow: 0 0 16.8px #8b5cf6, 0 0 33.6px #6366f1;
        color: #fff;
        background: #6366f1;
    }
}

.nav-link.timeline-attention {
    animation: timelineAttention 2s ease-in-out;
    animation-iteration-count: 1;
    border-radius: 12px;
    padding: 0.5rem 1.2rem;
    margin: -0.5rem -1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    position: relative;
}