/* ========================================
   CSS Variables & Reset
   ======================================== */

:root {
    /* Vibrant Gradients */
    --gradient-primary: linear-gradient(135deg, #87CEEB 0%, #5B9BD5 100%);
    --gradient-accent: linear-gradient(135deg, #8FBC8F 0%, #6B9B6B 100%);
    --gradient-cool: linear-gradient(135deg, #7DD3FC 0%, #67E8F9 100%);
    --gradient-warm: linear-gradient(135deg, #F5C6AA 0%, #E8A87C 100%);
    --gradient-cosmic: linear-gradient(135deg, #87CEEB 0%, #5B9BD5 50%, #8FBC8F 100%);

    /* Neon Accents */
    --neon-blue: #7DD3FC;
    --neon-purple: #4ADE80;
    --neon-pink: #FCA563;
    --neon-cyan: #67E8F9;

    /* Glassmorphism Colors */
    --glass-white: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(31, 38, 135, 0.37);

    /* Light Theme Base */
    --bg-primary: #F8FAFB;
    --bg-secondary: #ffffff;
    --text-dark: #2C3E50;
    --text-light: #6C7A89;

    /* Legacy colors for compatibility */
    --primary-color: #5B9BD5;
    --secondary-color: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --accent-color: #87CEEB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Animation Timings */
    --transition-fast: 0.2s;
    --transition-medium: 0.4s;
    --transition-slow: 0.8s;
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-primary);
    animation: pageLoadFade 0.8s ease;
}

@keyframes pageLoadFade {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* ========================================
   Animated Background System
   ======================================== */

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.animated-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #F8FAFB, #E8F4F8, #B4D7EC, #A8D5A8, #FFE4C4);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

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

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #87CEEB, #5B9BD5);
    top: -10%;
    left: -10%;
    opacity: 0.15;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #8FBC8F, #6B9B6B);
    bottom: -10%;
    right: -10%;
    opacity: 0.15;
    animation-delay: 7s;
}

.orb-3 {
    display: none;
}

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

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

.shape {
    position: absolute;
    opacity: 0.1;
    animation: rotate 30s linear infinite;
}

.shape-circle {
    width: 300px;
    height: 300px;
    border: 3px solid var(--neon-purple);
    border-radius: 50%;
    top: 20%;
    right: 10%;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid rgba(0, 212, 255, 0.3);
    bottom: 15%;
    left: 15%;
    animation-direction: reverse;
}

.shape-hexagon {
    width: 200px;
    height: 200px;
    background: var(--neon-pink);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    top: 60%;
    right: 30%;
    animation-duration: 40s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   Glassmorphism Components
   ======================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(135, 206, 235, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(135, 206, 235, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.glass-tag {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(135, 206, 235, 0.3);
}

/* ========================================
   Gradient Text Effect
   ======================================== */

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 5s ease infinite;
    background-size: 200% auto;
}

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

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

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

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

.nav-link:hover::after {
    width: 100%;
    animation: shimmer 1s ease infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    background: transparent;
    position: relative;
}

.hero-floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: heroFloat 6s ease-in-out infinite;
}

.element-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.btn-primary {
    background: transparent;
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5),
                0 15px 40px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover::before {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid rgba(135, 206, 235, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
}

/* ========================================
   Hero Profile Photo
   ======================================== */

.hero-profile {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.profile-photo-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 10px 40px rgba(87, 206, 235, 0.3),
                0 0 0 4px rgba(255, 255, 255, 0.8),
                0 0 0 8px rgba(139, 188, 143, 0.2);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 60px rgba(87, 206, 235, 0.4),
                0 0 0 4px rgba(255, 255, 255, 0.9),
                0 0 0 8px rgba(139, 188, 143, 0.3);
}

.profile-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #87CEEB, #8FBC8F, #F5C6AA) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringRotate 8s linear infinite;
    z-index: 1;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.4) 0%,
                                       rgba(139, 188, 143, 0.2) 40%,
                                       transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 0;
    filter: blur(20px);
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .profile-photo-container {
        width: 160px;
        height: 160px;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
    }

    .profile-ring {
        width: 160px;
        height: 160px;
    }

    .profile-glow {
        width: 200px;
        height: 200px;
    }
}

/* ========================================
   Section Styling
   ======================================== */

section {
    padding: 5rem 2rem;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientFlow 5s ease infinite;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 5px;
    background: var(--gradient-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* ========================================
   About Section
   ======================================== */

.about {
    background-color: var(--bg-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills {
    margin-top: 3rem;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.operating-manual-title,
.background-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(135, 206, 235, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.skill-tag:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.skill-tag:hover::before {
    left: 0;
}

/* ========================================
   Projects Section
   ======================================== */

.projects {
    background-color: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(135, 206, 235, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.6s ease;
    border-radius: inherit;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 0.1;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card-content {
    position: relative;
    z-index: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.project-header-text {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.project-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
}

.project-description strong {
    color: var(--text-dark);
    font-weight: 700;
    display: inline-block;
}

.project-description br {
    line-height: 2;
}

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

.tag {
    background-color: var(--bg-gray);
    color: var(--text-dark);
    padding: 0.375rem 0.875rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   New Portfolio Card Components
   ======================================== */

/* Role Badge */
.project-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #87CEEB, #5B9BD5);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

/* Project Tagline */
.project-tagline {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-badge {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #87CEEB 0%, #5B9BD5 100%);
    border-radius: 12px;
    color: white;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Project Highlights (Bullets) */
.project-highlights {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

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

.project-highlights li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Tech Stack Pills */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-pill {
    padding: 0.25rem 0.75rem;
    background: rgba(135, 206, 235, 0.15);
    border: 1px solid rgba(135, 206, 235, 0.3);
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Read More Button */
.read-more-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.read-more-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Full Details (Hidden by default) */
.full-details {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(135, 206, 235, 0.3);
}

.full-details.expanded {
    display: block;
}

.star-section {
    margin-bottom: 1.5rem;
}

.star-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.star-section p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Featured Card */
.project-card.featured {
    grid-column: 1 / -1;
    border: 2px solid #87CEEB;
}

/* Grid Layout for Featured Card */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.25rem;
    }
}

/* ========================================
   Experience Section
   ======================================== */

.experience {
    background-color: var(--bg-white);
}

.cv-download {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2),
                0 0 20px rgba(102, 126, 234, 0.4);
    animation: timelinePulse 2s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2),
                    0 0 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.1),
                    0 0 30px rgba(102, 126, 234, 0.6);
    }
}

.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(135, 206, 235, 0.2);
    transition: all 0.4s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(31, 38, 135, 0.2);
    background: rgba(255, 255, 255, 0.85);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.7;
    padding-left: 1.25rem;
}

.timeline-description li {
    margin-bottom: 0.5rem;
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
    background-color: var(--bg-light);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(135, 206, 235, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-cool);
    transition: left 0.4s ease;
    opacity: 0.1;
}

.contact-link:hover::before {
    left: 0;
}

.contact-link:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 15px 50px rgba(31, 38, 135, 0.25),
                0 0 30px rgba(79, 172, 254, 0.3);
    border-color: rgba(79, 172, 254, 0.5);
}

.contact-link .icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-link:hover .icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.6));
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 2rem;
    text-align: center;
}

.footer p {
    color: var(--secondary-color);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    /* Reduce animation complexity on mobile */
    .orb {
        filter: blur(60px);
        opacity: 0.2;
    }

    .floating-shapes {
        display: none; /* Hide complex shapes on mobile */
    }

    .project-card:hover {
        transform: translateY(-8px) scale(1.01);
    }

    .nav-menu {
        gap: 1rem;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }

    .project-header {
        flex-direction: column;
    }

    .project-links {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem 1rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .nav-menu {
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .skills-grid {
        gap: 0.75rem;
    }
}

/* ========================================
   Tab Navigation
   ======================================== */

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.tab-button:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* Mobile responsiveness for tabs */
@media (max-width: 480px) {
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

/* ========================================
   Course Categories
   ======================================== */

.course-categories {
    margin-top: 1rem;
}

.course-category {
    margin-bottom: 1.5rem;
}

.course-category strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.course-category ul {
    margin-top: 0.5rem;
}

.course-category .timeline-description {
    padding-left: 1.5rem;
}

.course-category .timeline-description li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* ========================================
   Accessibility: Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animated-gradient,
    .gradient-orbs,
    .floating-shapes,
    .hero-floating-elements {
        display: none;
    }
}

/* ========================================
   Scroll Progress Indicator
   ======================================== */

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}
