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

:root {
    /* UIUC Illini Colors - Refined */
    --illini-blue: #13294B;
    --illini-blue-light: #1E3A5F;
    --illini-blue-dark: #0A1628;
    --illini-orange: #E84A27;
    --illini-orange-light: #FF6B47;
    --illini-orange-dark: #C73E1D;

    /* Primary Palette */
    --primary-color: #13294B;
    --secondary-color: #E84A27;
    --accent-color: #FF6B47;

    /* Text Colors */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --bg-dark: #13294B;

    /* UI Colors */
    --border-color: #e2e8f0;
    --border-light: #f0f4f8;

    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* Gradient Shadows */
    --shadow-blue: 0 10px 30px -5px rgba(19, 41, 75, 0.3);
    --shadow-orange: 0 10px 30px -5px rgba(232, 74, 39, 0.3);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    /* Primary Palette - Dark Mode */
    --primary-color: #E84A27;
    --secondary-color: #FF6B47;
    --accent-color: #FF8A6B;

    /* Text Colors - Dark Mode */
    --text-primary: #e8eaed;
    --text-secondary: #b8bcc4;
    --text-light: #8a8f98;

    /* Background Colors - Dark Mode */
    --bg-primary: #1a1d23;
    --bg-secondary: #232830;
    --bg-tertiary: #2d333d;
    --bg-dark: #0f1115;

    /* UI Colors - Dark Mode */
    --border-color: #3a3f4a;
    --border-light: #2d333d;

    /* Shadows - Dark Mode */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);

    /* Gradient Shadows - Dark Mode */
    --shadow-blue: 0 10px 30px -5px rgba(232, 74, 39, 0.4);
    --shadow-orange: 0 10px 30px -5px rgba(255, 107, 71, 0.4);

    /* Illini Colors Adjustments for Dark Mode */
    --illini-blue: #E84A27;
    --illini-blue-light: #FF6B47;
    --illini-blue-dark: #C73E1D;
    --illini-orange: #FF8A6B;
    --illini-orange-light: #FFA88F;
    --illini-orange-dark: #FF6B47;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth transitions for all elements during theme change */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .navbar {
    background: linear-gradient(to bottom, rgba(26, 29, 35, 0.95) 0%, rgba(35, 40, 48, 0.95) 100%);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 40px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-brand .bracket {
    color: var(--text-primary);
    font-weight: 700;
}

.nav-brand .name {
    color: #E84A27;
    font-weight: 700;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.3px;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '>';
    position: absolute;
    left: -1rem;
    opacity: 0;
    transition: all 0.2s ease;
    color: var(--illini-orange);
}

.nav-link:hover {
    color: var(--illini-orange);
    transform: translateX(0.5rem);
}

.nav-link:hover::before {
    opacity: 1;
    left: -0.8rem;
}

.nav-link.active {
    color: var(--illini-orange);
}

.nav-link.active::before {
    content: '>';
    position: absolute;
    left: -0.8rem;
    opacity: 1;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--illini-orange), var(--illini-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.theme-toggle:hover {
    border-color: var(--illini-orange);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 20px rgba(232, 74, 39, 0.3);
}

.theme-toggle:hover::before {
    opacity: 0.1;
}

.theme-toggle i {
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.theme-toggle:active {
    transform: scale(0.95);
}

[data-theme="dark"] .theme-toggle i {
    transform: rotate(180deg);
}

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

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

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding: 120px 2rem 4rem;
}

/* Dark Mode Hero Enhancement */
[data-theme="dark"] .hero {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 30% 30%, var(--illini-blue), var(--illini-blue-light));
    top: -200px;
    right: -200px;
    animation-delay: 0s;
    opacity: 0.08;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 70% 70%, var(--illini-orange-light), var(--illini-orange));
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
    opacity: 0.08;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 50% 50%, var(--accent-color), var(--illini-orange));
    top: 50%;
    left: 10%;
    animation-delay: 10s;
    opacity: 0.06;
}

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

/* Robotic Arm Animations */
.robotic-arm-container {
    position: absolute;
    right: 5%;
    top: 20%;
    width: 200px;
    height: 200px;
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

.robotic-arm {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(232, 74, 39, 0.3));
}

[data-theme="dark"] .robotic-arm {
    filter: drop-shadow(0 0 20px rgba(255, 107, 71, 0.6));
    opacity: 0.9;
}

.arm-segment-1 {
    transform-origin: 150px 250px;
    animation: armRotate1 8s ease-in-out infinite;
}

.arm-segment-2 {
    transform-origin: 150px 180px;
    animation: armRotate2 8s ease-in-out infinite;
}

.arm-segment-3 {
    transform-origin: 200px 120px;
    animation: armRotate3 8s ease-in-out infinite;
}

.gripper-left, .gripper-right {
    animation: gripperOpen 2s ease-in-out infinite;
}

@keyframes armRotate1 {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

@keyframes armRotate2 {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    50% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

@keyframes armRotate3 {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-25deg); }
    50% { transform: rotate(20deg); }
    75% { transform: rotate(-15deg); }
}

@keyframes gripperOpen {
    0%, 100% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0.7; transform: translateX(-2px); }
}

/* Humanoid Robot Animations */
.humanoid-robot {
    position: absolute;
    width: 80px;
    height: 120px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 15px rgba(19, 41, 75, 0.4));
}

[data-theme="dark"] .humanoid-robot {
    filter: drop-shadow(0 0 25px rgba(232, 74, 39, 0.6));
    opacity: 0.7;
}

.humanoid-robot svg {
    width: 100%;
    height: 100%;
}

.robot-1 {
    left: 10%;
    top: 30%;
    animation: robotFloat1 12s ease-in-out infinite, robotPulse 3s ease-in-out infinite;
}

.robot-2 {
    right: 15%;
    bottom: 20%;
    animation: robotFloat2 15s ease-in-out infinite, robotPulse 4s ease-in-out infinite 1s;
}

@keyframes robotFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-15px, -50px) rotate(-3deg); }
    75% { transform: translate(10px, -20px) rotate(4deg); }
}

@keyframes robotFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, 20px) rotate(-5deg); }
    66% { transform: translate(20px, -15px) rotate(4deg); }
}

@keyframes robotPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* Tech Particles */
.tech-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--illini-orange);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 8px var(--illini-orange);
}

[data-theme="dark"] .particle {
    opacity: 0.8;
    box-shadow: 0 0 15px var(--illini-orange), 0 0 30px var(--illini-orange);
}

.particle-1 {
    left: 15%;
    top: 20%;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle-2 {
    left: 75%;
    top: 40%;
    width: 6px;
    height: 6px;
    background: var(--illini-blue);
    box-shadow: 0 0 10px var(--illini-blue);
    animation: particleFloat 10s ease-in-out infinite 1s;
}

.particle-3 {
    left: 30%;
    top: 70%;
    animation: particleFloat 12s ease-in-out infinite 2s;
}

.particle-4 {
    right: 20%;
    top: 25%;
    width: 5px;
    height: 5px;
    background: var(--illini-orange);
    animation: particleFloat 9s ease-in-out infinite 1.5s;
}

.particle-5 {
    left: 50%;
    bottom: 30%;
    width: 3px;
    height: 3px;
    background: var(--illini-blue);
    box-shadow: 0 0 8px var(--illini-blue);
    animation: particleFloat 11s ease-in-out infinite 3s;
}

.particle-6 {
    right: 35%;
    top: 60%;
    animation: particleFloat 10s ease-in-out infinite 2.5s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -40px);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, -80px);
        opacity: 0.6;
    }
    75% {
        transform: translate(15px, -50px);
        opacity: 0.7;
    }
}

/* Circuit Pattern */
.circuit-pattern {
    position: absolute;
    left: 5%;
    bottom: 15%;
    width: 250px;
    height: 250px;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: circuitGlow 6s ease-in-out infinite;
}

[data-theme="dark"] .circuit-pattern {
    opacity: 0.6;
}

.circuit-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawCircuit 8s ease-in-out infinite;
}

.circuit-1 {
    animation-delay: 0s;
}

.circuit-2 {
    animation-delay: 1s;
}

.circuit-3 {
    animation-delay: 2s;
}

@keyframes drawCircuit {
    0%, 100% {
        stroke-dashoffset: 200;
        opacity: 0.2;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
}

@keyframes circuitGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(19, 41, 75, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(232, 74, 39, 0.5));
    }
}

/* Binary Data Stream */
.data-stream {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0.4;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    pointer-events: none;
    z-index: 0;
}

.stream-1 {
    left: 25%;
    top: 15%;
    animation: streamFlow 8s ease-in-out infinite;
}

.stream-2 {
    right: 25%;
    top: 40%;
    animation: streamFlow 10s ease-in-out infinite 2s;
}

.stream-3 {
    left: 60%;
    bottom: 25%;
    animation: streamFlow 12s ease-in-out infinite 4s;
}

.binary-digit {
    font-size: 1.2rem;
    color: var(--illini-blue);
    text-shadow: 0 0 10px rgba(19, 41, 75, 0.5);
    animation: digitBlink 2s ease-in-out infinite;
}

[data-theme="dark"] .binary-digit {
    color: var(--illini-orange);
    text-shadow: 0 0 15px var(--illini-orange), 0 0 30px var(--illini-orange);
}

.stream-1 .binary-digit:nth-child(1) { animation-delay: 0s; color: var(--illini-orange); }
.stream-1 .binary-digit:nth-child(2) { animation-delay: 0.2s; }
.stream-1 .binary-digit:nth-child(3) { animation-delay: 0.4s; color: var(--illini-orange); }
.stream-1 .binary-digit:nth-child(4) { animation-delay: 0.6s; }
.stream-1 .binary-digit:nth-child(5) { animation-delay: 0.8s; }

.stream-2 .binary-digit:nth-child(1) { animation-delay: 0.1s; }
.stream-2 .binary-digit:nth-child(2) { animation-delay: 0.3s; color: var(--illini-orange); }
.stream-2 .binary-digit:nth-child(3) { animation-delay: 0.5s; }
.stream-2 .binary-digit:nth-child(4) { animation-delay: 0.7s; color: var(--illini-orange); }
.stream-2 .binary-digit:nth-child(5) { animation-delay: 0.9s; }

.stream-3 .binary-digit:nth-child(1) { animation-delay: 0.15s; color: var(--illini-orange); }
.stream-3 .binary-digit:nth-child(2) { animation-delay: 0.35s; }
.stream-3 .binary-digit:nth-child(3) { animation-delay: 0.55s; }
.stream-3 .binary-digit:nth-child(4) { animation-delay: 0.75s; }
.stream-3 .binary-digit:nth-child(5) { animation-delay: 0.95s; color: var(--illini-orange); }

@keyframes streamFlow {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px);
        opacity: 0.6;
    }
}

@keyframes digitBlink {
    0%, 100% {
        opacity: 0.4;
        text-shadow: 0 0 5px currentColor;
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 15px currentColor, 0 0 25px currentColor;
    }
}

/* Section Robot Decorations */
.section-robot-decoration {
    position: absolute;
    width: 70px;
    height: 90px;
    opacity: 0.4;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(19, 41, 75, 0.3));
}

.robot-decor-1 {
    right: 8%;
    top: 15%;
    animation: robotHover 10s ease-in-out infinite, robotGlow 4s ease-in-out infinite;
}

.robot-decor-2 {
    left: 5%;
    bottom: 20%;
    animation: robotHover 12s ease-in-out infinite 2s, robotGlow 5s ease-in-out infinite 1s;
}

@keyframes robotHover {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(3deg);
    }
    50% {
        transform: translateY(-30px) rotate(-2deg);
    }
    75% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes robotGlow {
    0%, 100% {
        opacity: 0.3;
        filter: drop-shadow(0 0 8px rgba(232, 74, 39, 0.3));
    }
    50% {
        opacity: 0.6;
        filter: drop-shadow(0 0 15px rgba(232, 74, 39, 0.6));
    }
}

/* Gear Decorations */
.gear-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.5;
    pointer-events: none;
}

.gear-1 {
    right: 10%;
    top: 20%;
    animation: gearRotate 20s linear infinite;
}

.gear-2 {
    left: 8%;
    bottom: 25%;
    animation: gearRotate 15s linear infinite reverse;
}

@keyframes gearRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* About Section Enhancements */
.about {
    position: relative;
    overflow: hidden;
}

/* Projects Section Enhancements */
.projects {
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1100px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    animation: fadeInUp 0.8s ease;
    width: 280px;
    height: 280px;
    flex-shrink: 0;
}

.hero-image-border {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

[data-theme="dark"] .hero-image-border {
    background: var(--bg-tertiary);
}

.hero-image-border::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--illini-blue),
        var(--illini-orange),
        var(--illini-blue),
        var(--illini-orange),
        var(--illini-blue)
    );
    animation: rotateBorder 10s linear infinite;
    z-index: -1;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-image {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-greeting {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.3rem;
    animation: fadeInUp 0.8s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg,
        var(--illini-blue-dark) 0%,
        var(--illini-blue) 50%,
        var(--illini-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 1.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--illini-orange) 0%, var(--illini-orange-light) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(232, 74, 39, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--illini-orange-dark) 0%, var(--illini-orange) 100%);
    box-shadow: var(--shadow-orange);
}

.btn-secondary {
    background-color: transparent;
    color: var(--illini-blue);
    border: 2px solid var(--illini-blue);
}

.btn-secondary:hover {
    background-color: var(--illini-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--text-secondary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--illini-blue), var(--illini-orange));
    border-radius: 2px;
    animation: scaleIn 0.6s ease 0.4s both;
}

@keyframes scaleIn {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

/* About Section */
.about {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .about {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.social-links-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    font-family: 'JetBrains Mono', monospace;
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

[data-theme="dark"] .social-link {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

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

.social-link i {
    font-size: 1.2rem;
    color: var(--illini-orange);
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--illini-orange);
    color: white;
}

.social-link:hover i {
    color: white;
    transform: scale(1.1);
}

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

.about-image-section {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.about-image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(19, 41, 75, 0.1) 0%, rgba(232, 74, 39, 0.1) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.about-image-wrapper:hover::before {
    opacity: 0;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.about-text p:nth-child(1) { animation-delay: 0.1s; }
.about-text p:nth-child(2) { animation-delay: 0.2s; }
.about-text p:nth-child(3) { animation-delay: 0.3s; }

.education-section h3,
.skills-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.6s ease;
}

.education-item {
    background-color: white;
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
    border-left: 4px solid transparent;
    overflow: visible;
}

/* Parallax Education Items */
.education-item.parallax-element {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.education-item.parallax-element.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.education-item.parallax-element:nth-child(1) { transition-delay: 0s; }
.education-item.parallax-element:nth-child(2) { transition-delay: 0.15s; }

[data-theme="dark"] .education-item {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .education-item.clickable:hover {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

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

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

.education-item.clickable {
    cursor: pointer;
}

.education-item.clickable:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--illini-orange);
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.edu-click-hint {
    position: absolute;
    left: 1.75rem;
    bottom: 1.5rem;
    color: var(--illini-orange);
    font-size: 0.6rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(232, 74, 39, 0.1);
    padding: 0.25rem 0.55rem;
    border-radius: 12px;
    border: 1px solid rgba(232, 74, 39, 0.2);
    z-index: 10;
}

.education-item.clickable:hover .edu-click-hint {
    opacity: 1;
}

.edu-logo {
    flex-shrink: 0;
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 10px;
    padding: 0.6rem;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

[data-theme="dark"] .edu-logo {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
}

/* Special styling for logos that need better visibility */
.edu-logo img {
    filter: none;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .edu-logo img {
    filter: brightness(1.1) contrast(1.1);
}

.education-item:hover .edu-logo {
    border-color: var(--illini-orange);
    transform: scale(1.05);
}

.edu-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.edu-content {
    flex: 1;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.edu-header h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    flex: 1;
    min-width: 0;
    transition: color 0.3s ease;
}

.education-item:hover .edu-header h4 {
    color: var(--illini-orange);
}

.edu-date {
    color: var(--text-light);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    white-space: nowrap;
    background: var(--bg-tertiary);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.edu-degree {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.edu-gpa {
    color: var(--illini-orange);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.edu-gpa::before {
    content: '▸';
    color: var(--illini-orange);
    font-size: 1.1rem;
}

.edu-courses {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
}

.skill-category {
    background: linear-gradient(135deg, white 0%, #fafafa 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--illini-orange) 0%, var(--illini-blue) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-category:hover::before {
    opacity: 1;
}

[data-theme="dark"] .skill-category {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
}

.skill-category:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0;
    min-width: 180px;
    flex-shrink: 0;
    font-weight: 600;
    padding-right: 2rem;
    border-right: 2px solid var(--border-color);
}

[data-theme="dark"] .skill-category h4 {
    border-right-color: var(--border-color);
}

.skill-category h4 i {
    font-size: 1.3rem;
    color: var(--illini-orange);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    flex: 1;
    align-items: center;
}

.skill-tag {
    background-color: white;
    color: var(--text-secondary);
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-light);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    min-width: 85px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .skill-tag {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.skill-tag img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tag span {
    font-weight: 600;
    line-height: 1.2;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--illini-blue), var(--illini-orange));
    color: white;
    transform: translateY(-5px) rotate(2deg);
    border-color: var(--illini-orange);
    box-shadow: 0 8px 20px rgba(232, 74, 39, 0.3);
}

.skill-tag:hover img {
    transform: scale(1.15) rotate(-2deg);
    filter: brightness(0) invert(1);
}

.skill-tag:active {
    transform: translateY(-3px);
}

/* Experience Section */
.experience {
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(19, 41, 75, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(232, 74, 39, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        var(--illini-blue) 0%,
        var(--illini-blue-light) 30%,
        var(--illini-orange-dark) 70%,
        var(--illini-orange) 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(19, 41, 75, 0.3);
}

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

/* Parallax Timeline Items */
.timeline-item.parallax-element {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.parallax-element.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.parallax-element:nth-child(1) { transition-delay: 0s; }
.timeline-item.parallax-element:nth-child(2) { transition-delay: 0.15s; }
.timeline-item.parallax-element:nth-child(3) { transition-delay: 0.3s; }

.timeline-marker {
    position: absolute;
    left: 9.5px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--illini-blue), var(--illini-orange));
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--illini-blue), 0 4px 12px rgba(19, 41, 75, 0.3);
    animation: pulse 2s ease-in-out infinite;
    z-index: 2;
}

[data-theme="dark"] .timeline-marker {
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 4px var(--illini-orange), 0 4px 12px rgba(232, 74, 39, 0.5);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px var(--illini-blue), 0 4px 12px rgba(19, 41, 75, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(19, 41, 75, 0.2), 0 4px 12px rgba(19, 41, 75, 0.3);
    }
}

[data-theme="dark"] .timeline-marker {
    animation: pulseDark 2s ease-in-out infinite;
}

@keyframes pulseDark {
    0%, 100% {
        box-shadow: 0 0 0 4px var(--illini-orange), 0 4px 12px rgba(232, 74, 39, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(232, 74, 39, 0.3), 0 4px 12px rgba(232, 74, 39, 0.5);
    }
}

.timeline-content {
    background-color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

[data-theme="dark"] .timeline-content {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--illini-blue), var(--illini-orange));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-content:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px) translateX(5px);
    border-color: var(--illini-blue);
}

.experience-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.company-logo {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

[data-theme="dark"] .company-logo {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 2px solid var(--border-color);
}

.company-logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--illini-blue), var(--illini-orange));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-content:hover .company-logo::before {
    opacity: 1;
}

.company-logo:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.company-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.experience-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.experience-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.timeline-content:hover .experience-header h3 {
    color: var(--illini-orange);
}

.experience-header h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.location {
    color: var(--text-light);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.location i {
    color: var(--illini-orange);
    font-size: 0.9rem;
}

.date {
    color: var(--text-light);
    font-size: 0.8rem;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    background: var(--bg-tertiary);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--illini-orange), var(--accent-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(232, 74, 39, 0.3);
}

.experience-details {
    list-style: none;
    margin-top: 1.25rem;
}

.experience-details li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    opacity: 0;
    animation: fadeInLeft 0.5s ease forwards;
}

.timeline-content:hover .experience-details li {
    animation: slideInBullet 0.3s ease forwards;
}

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

.experience-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--illini-orange);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.experience-details li:hover::before {
    transform: translateX(3px);
    color: var(--illini-blue);
}

@keyframes slideInBullet {
    from {
        opacity: 0.7;
        transform: translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.experience-documents {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.doc-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, var(--illini-blue), var(--illini-blue-light));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(19, 41, 75, 0.25);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.doc-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.doc-button:hover::before {
    width: 300px;
    height: 300px;
}

.doc-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(19, 41, 75, 0.35);
}

.doc-button i {
    font-size: 1.05rem;
    transition: transform 0.3s ease;
}

.doc-button:hover i {
    transform: scale(1.1) rotate(5deg);
}

.doc-button.excellence-award {
    background: linear-gradient(135deg, var(--illini-orange), var(--illini-orange-light));
    box-shadow: 0 4px 12px rgba(232, 74, 39, 0.25);
}

.doc-button.excellence-award:hover {
    box-shadow: 0 8px 24px rgba(232, 74, 39, 0.35);
}

/* Projects Section */
.projects {
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .projects {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
}

/* Parallax Scroll Effects */
.parallax-element {
    opacity: 0;
    transform: translateY(80px) scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.parallax-element.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Fallback: Show elements after 2 seconds if JS doesn't load */
@media (prefers-reduced-motion: reduce) {
    .parallax-element {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Section Title Parallax */
.section-title.parallax-element {
    transform: translateY(50px) scale(0.95);
}

.section-title.parallax-element.visible {
    transform: translateY(0) scale(1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    position: relative;
}

[data-theme="dark"] .project-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

/* Parallax Project Cards */
.project-card.parallax-element {
    transform: translateY(100px) scale(0.9);
}

.project-card.parallax-element.visible {
    transform: translateY(0) scale(1);
}

/* Ensure projects appear even if JS is slow */
.projects-grid .project-card {
    animation: ensureVisible 0.1s ease 3s forwards;
}

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

/* Staggered delays for project cards */
.project-card.parallax-element:nth-child(1) {
    transition-delay: 0s;
}
.project-card.parallax-element:nth-child(2) {
    transition-delay: 0.1s;
}
.project-card.parallax-element:nth-child(3) {
    transition-delay: 0.2s;
}
.project-card.parallax-element:nth-child(4) {
    transition-delay: 0.3s;
}
.project-card.parallax-element:nth-child(5) {
    transition-delay: 0.4s;
}
.project-card.parallax-element:nth-child(6) {
    transition-delay: 0.5s;
}

/* Parallax Background Layers */
.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.parallax-bg-1 {
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 74, 39, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-bg-2 {
    bottom: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(19, 41, 75, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover effect for project cards with parallax */
.project-card.parallax-element.visible:hover {
    transform: translateY(-15px) scale(1.02);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--illini-blue), var(--illini-orange));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--illini-blue);
}

/* Project Media */
.project-media {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg,
        var(--illini-blue-dark) 0%,
        var(--illini-blue) 40%,
        var(--illini-blue-light) 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.project-media iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-thumbnail {
    transition: opacity 0.5s ease-in-out;
    opacity: 0.95;
}

.project-thumbnail.gif-loaded {
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

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

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.video-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.video-placeholder p {
    font-size: 0.85rem;
    opacity: 0.85;
    position: relative;
    z-index: 1;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

/* Project Content */
.project-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-header h3 {
    color: var(--text-primary);
    font-size: 1.35rem;
    margin-bottom: 0;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.project-date {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    align-self: flex-start;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.75;
    font-size: 0.95rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.tag {
    background-color: var(--bg-tertiary);
    color: var(--illini-blue);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.25s ease;
    border: 1px solid var(--border-color);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.3px;
}

.tag:hover {
    background: var(--illini-blue);
    color: white;
    transform: translateY(-2px);
    border-color: var(--illini-blue);
    box-shadow: 0 4px 12px rgba(19, 41, 75, 0.25);
}

/* Project Links */
.project-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.3px;
}

.project-link i {
    font-size: 0.95rem;
}

.project-link[data-modal] {
    background: linear-gradient(135deg, var(--illini-orange) 0%, var(--illini-orange-light) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(232, 74, 39, 0.2);
}

.project-link[data-modal]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 74, 39, 0.3);
}

.github-link {
    background: linear-gradient(135deg, var(--illini-blue) 0%, var(--illini-blue-light) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(19, 41, 75, 0.2);
}

.github-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(19, 41, 75, 0.3);
}

.demo-link {
    background-color: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

[data-theme="dark"] .demo-link {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.demo-link:hover {
    background-color: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: 2rem;
    padding: 0;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

[data-theme="dark"] .modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

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

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

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    cursor: pointer;
    padding: 1rem 1.5rem;
    z-index: 1;
    background: white;
    border-radius: 0 12px 0 0;
}

[data-theme="dark"] .modal-close {
    background: var(--bg-secondary);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 2rem;
    padding-top: 1rem;
}

/* Project Detail Content */
.project-details-hidden {
    display: none;
}

.project-detail-content h2 {
    color: var(--illini-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

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

.detail-section h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.detail-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.detail-section ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-item {
    background: var(--illini-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(232, 74, 39, 0.15);
}

/* Education Detail Modal Styles */
.education-detail-content {
    display: none;
}

.edu-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.edu-detail-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    padding: 0.5rem;
    background-color: white;
    border-radius: 10px;
    border: 2px solid var(--border-light);
}

[data-theme="dark"] .edu-detail-logo {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    filter: brightness(1.1) contrast(1.1);
}

.edu-detail-header h2 {
    color: var(--illini-blue);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.edu-detail-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.edu-detail-date {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* GPA Highlight */
.gpa-highlight {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--illini-orange);
}

.gpa-box {
    text-align: center;
    min-width: 100px;
}

.gpa-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--illini-orange);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.gpa-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gpa-highlight > p {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .course-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.course-item:hover {
    background-color: var(--illini-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.course-item i {
    font-size: 1.3rem;
    color: var(--illini-orange);
    transition: color 0.3s ease;
}

.course-item:hover i {
    color: white;
}

.course-item span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Transcript Request Button */
.transcript-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--illini-orange);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(232, 74, 39, 0.2);
}

.transcript-request-btn:hover {
    background: var(--illini-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}

.transcript-request-btn i {
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(19, 41, 75, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(232, 74, 39, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(19, 41, 75, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.contact::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 60px,
        rgba(19, 41, 75, 0.01) 60px,
        rgba(19, 41, 75, 0.01) 61px
    );
    animation: movePattern 20s linear infinite;
    pointer-events: none;
}

/* Calendar Decorations */
.calendar-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.calendar-deco-1 {
    top: 10%;
    right: 8%;
    animation: float-calendar-1 6s ease-in-out infinite;
}

.calendar-deco-2 {
    bottom: 15%;
    left: 5%;
    animation: float-calendar-2 7s ease-in-out infinite;
}

@keyframes float-calendar-1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-20px) rotate(5deg) scale(1.05);
    }
    66% {
        transform: translateY(10px) rotate(-5deg) scale(0.95);
    }
}

@keyframes float-calendar-2 {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(15px) rotate(-5deg) scale(0.95);
    }
    66% {
        transform: translateY(-25px) rotate(5deg) scale(1.05);
    }
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-content > p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    text-align: center;
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

[data-theme="dark"] .contact-item {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 74, 39, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-item:hover::before {
    left: 100%;
}

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

@keyframes gradient-rotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.contact-item:nth-child(4) h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Featured Badge */
.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--illini-orange), var(--illini-blue));
    color: white;
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(232, 74, 39, 0.4);
    animation: badge-glow 2s ease-in-out infinite;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(232, 74, 39, 0.4), 0 0 20px rgba(232, 74, 39, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 2px 15px rgba(232, 74, 39, 0.6), 0 0 30px rgba(232, 74, 39, 0.4);
        transform: scale(1.05);
    }
}


.contact-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--illini-orange);
}

.contact-item i {
    font-size: 3rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--illini-blue), var(--illini-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.contact-item:hover i {
    transform: scale(1.15) rotate(5deg);
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    z-index: 1;
}

.contact-item a,
.contact-item p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    word-break: break-word;
    position: relative;
    z-index: 1;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.contact-item a {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--bg-tertiary);
}

.contact-item a:hover {
    color: white;
    background: var(--illini-orange);
    transform: scale(1.05);
}

.contact-item p {
    margin: 0;
}

/* Quick Contact Actions */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--illini-blue), var(--illini-blue-light));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(19, 41, 75, 0.25);
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:hover::before {
    width: 400px;
    height: 400px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(19, 41, 75, 0.35);
}

.action-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.15);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--illini-blue), var(--illini-orange));
    box-shadow: 0 4px 20px rgba(19, 41, 75, 0.25), 0 0 40px rgba(232, 74, 39, 0.15);
    position: relative;
    overflow: hidden;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(19, 41, 75, 0.25), 0 0 40px rgba(232, 74, 39, 0.15);
    }
    50% {
        box-shadow: 0 4px 25px rgba(19, 41, 75, 0.35), 0 0 60px rgba(232, 74, 39, 0.3);
    }
}

.action-btn.primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, var(--illini-orange), var(--illini-blue));
    box-shadow: 0 8px 40px rgba(232, 74, 39, 0.5), 0 0 80px rgba(19, 41, 75, 0.3);
    transform: translateY(-5px) scale(1.05);
    animation: none;
}

.action-btn.primary:hover i {
    animation: bounce-icon 0.6s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: scale(1.15) translateY(0);
    }
    50% {
        transform: scale(1.15) translateY(-5px);
    }
}

.action-btn.secondary {
    background: linear-gradient(135deg, var(--illini-orange), var(--illini-orange-light));
    box-shadow: 0 4px 20px rgba(232, 74, 39, 0.25);
}

.action-btn.secondary:hover {
    box-shadow: 0 8px 30px rgba(232, 74, 39, 0.35);
}

.action-btn.outline {
    background: white;
    color: var(--illini-blue);
    border: 2px solid var(--illini-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .action-btn.outline {
    background: var(--bg-tertiary);
    color: var(--illini-orange);
    border: 2px solid var(--illini-orange);
}

.action-btn.outline:hover {
    background: var(--illini-blue);
    color: white;
}

[data-theme="dark"] .action-btn.outline:hover {
    background: var(--illini-orange);
    color: var(--bg-dark);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--illini-blue) 0%, #0d1a2f 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

[data-theme="dark"] footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #000000 100%);
    border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }

    .hero-image {
        width: 260px;
        height: 260px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image-wrapper {
        margin: 0 auto;
    }

    .skills-grid {
        gap: 1rem;
    }

    .skill-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .skill-category h4 {
        min-width: auto;
        width: 100%;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 0.75rem;
    }

    .skill-tags {
        width: 100%;
    }

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

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 1px;
    }
}

/* Responsive adjustments for robotic elements */
@media (max-width: 968px) {
    .robotic-arm-container {
        width: 150px;
        height: 150px;
        right: 2%;
        top: 15%;
        opacity: 0.5;
    }

    .humanoid-robot {
        width: 60px;
        height: 90px;
        opacity: 0.4;
    }

    .circuit-pattern {
        width: 180px;
        height: 180px;
        opacity: 0.3;
    }

    .particle {
        width: 3px;
        height: 3px;
    }

    .section-robot-decoration {
        width: 50px;
        height: 65px;
        opacity: 0.3;
    }

    .gear-decoration {
        width: 70px;
        height: 70px;
        opacity: 0.4;
    }

    .data-stream {
        opacity: 0.3;
    }

    .binary-digit {
        font-size: 1rem;
    }

    .skill-category {
        gap: 1.5rem;
    }

    .skill-category h4 {
        min-width: 150px;
        font-size: 1rem;
    }

    .skill-tags {
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .robotic-arm-container {
        display: none;
    }

    .humanoid-robot {
        width: 50px;
        height: 75px;
    }

    .robot-1 {
        left: 5%;
        top: 25%;
    }

    .robot-2 {
        right: 5%;
        bottom: 15%;
    }

    .circuit-pattern {
        width: 150px;
        height: 150px;
        left: 3%;
        bottom: 10%;
    }

    .tech-particles .particle {
        display: none;
    }

    .particle-2,
    .particle-4 {
        display: block;
    }

    .section-robot-decoration {
        width: 45px;
        height: 60px;
        opacity: 0.25;
    }

    .gear-decoration {
        width: 60px;
        height: 60px;
        opacity: 0.3;
    }

    .robot-decor-1 {
        right: 3%;
        top: 10%;
    }

    .robot-decor-2 {
        left: 3%;
        bottom: 15%;
    }

    .gear-1 {
        right: 5%;
        top: 15%;
    }

    .gear-2 {
        left: 5%;
        bottom: 20%;
    }

    .data-stream {
        opacity: 0.2;
        gap: 10px;
    }

    .binary-digit {
        font-size: 0.85rem;
    }

    .stream-1 {
        left: 15%;
        top: 20%;
    }

    .stream-2 {
        right: 15%;
        top: 45%;
    }

    .stream-3 {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
    }

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

    [data-theme="dark"] .nav-menu {
        background-color: var(--bg-secondary);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-image-wrapper {
        width: 250px;
        height: 250px;
    }

    .hero-image {
        width: 230px;
        height: 230px;
    }

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

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

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

    .circle-1 {
        width: 400px;
        height: 400px;
    }

    .circle-2 {
        width: 300px;
        height: 300px;
    }

    .circle-3 {
        width: 200px;
        height: 200px;
    }

    .social-links-section {
        gap: 1rem;
    }

    .education-item {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.75rem 1.5rem;
        text-align: center;
        align-items: center;
    }

    .edu-logo {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .edu-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .edu-header {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .edu-header h4 {
        font-size: 1.2rem;
        text-align: center;
        line-height: 1.4;
        width: 100%;
    }

    .edu-date {
        align-self: center;
    }

    .edu-degree,
    .edu-gpa,
    .edu-courses {
        text-align: center;
        width: 100%;
    }

    .edu-degree {
        font-size: 1rem;
    }

    .edu-gpa {
        justify-content: center;
    }

    .edu-courses {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .experience-header {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
        text-align: center;
    }

    .company-logo {
        width: 80px;
        height: 80px;
        padding: 0.6rem;
        margin: 0 auto;
    }

    .experience-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .experience-info > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .experience-header h3,
    .experience-header h4 {
        text-align: center;
    }

    .date {
        margin-top: 0.75rem;
        align-self: center;
    }

    .experience-documents {
        flex-direction: column;
        gap: 0.75rem;
    }

    .doc-button {
        width: 100%;
        justify-content: center;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: 6px;
    }

    .timeline-item {
        padding-left: 55px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        max-width: 350px;
    }

    .calendar-decoration {
        width: 100px;
        height: 100px;
        opacity: 0.4;
    }

    .calendar-deco-1 {
        top: 5%;
        right: 3%;
    }

    .calendar-deco-2 {
        bottom: 5%;
        left: 3%;
    }

    .featured-badge {
        font-size: 0.55rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-image-wrapper {
        width: 220px;
        height: 220px;
    }

    .hero-image {
        width: 200px;
        height: 200px;
    }

    .hero-greeting {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .circle-1, .circle-2, .circle-3 {
        width: 250px;
        height: 250px;
    }

    .about-image-wrapper {
        width: 240px;
        height: 240px;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 3rem 0;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .company-logo {
        width: 60px;
        height: 60px;
        padding: 0.5rem;
    }

    .doc-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .social-links-section {
        flex-direction: column;
    }

    .social-link {
        width: 100%;
        justify-content: center;
    }

    .education-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
        align-items: center;
    }

    .edu-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .edu-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
        width: 100%;
    }

    .edu-header h4 {
        font-size: 1.1rem;
        line-height: 1.4;
        text-align: center;
        width: 100%;
    }

    .edu-date {
        align-self: center;
        margin: 0;
    }

    .edu-degree,
    .edu-gpa,
    .edu-courses {
        text-align: center;
        width: 100%;
    }

    .edu-degree {
        font-size: 0.95rem;
    }

    .edu-gpa {
        justify-content: center;
        font-size: 0.85rem;
    }

    .edu-courses {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .contact-item {
        padding: 1.5rem 2rem;
    }

    .contact-item i {
        font-size: 2rem;
    }


    .calendar-decoration {
        width: 80px;
        height: 80px;
        opacity: 0.3;
    }

    .calendar-deco-2 {
        display: none;
    }

    .edu-logo {
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }

    .edu-click-hint {
        position: static;
        opacity: 1;
        margin-top: 1rem;
        justify-content: center;
    }

    .edu-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .experience-header h3 {
        font-size: 1.25rem;
        text-align: left;
    }

    .experience-header h4 {
        font-size: 1rem;
        text-align: left;
    }

    .location {
        font-size: 0.8rem;
    }

    .experience-details li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }

    .edu-detail-logo {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .gpa-highlight {
        flex-direction: column;
        text-align: center;
    }

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

/* Project Video Container */
.project-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
}

.project-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Project Detail GIF Styles */
.project-video-container .project-detail-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.5s ease-in-out;
}

.project-detail-gif.gif-loaded {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Project PDF Button Styles */
.project-pdf-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pdf-view-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--illini-blue) 0%, #1a3a5f 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(19, 41, 75, 0.3);
    border: 2px solid transparent;
}

.pdf-view-button i {
    font-size: 1.5rem;
    color: var(--illini-orange);
}

.pdf-view-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(19, 41, 75, 0.4);
    background: linear-gradient(135deg, #1a3a5f 0%, var(--illini-blue) 100%);
    border-color: var(--illini-orange);
}

.pdf-view-button:active {
    transform: translateY(-1px);
}

/* Dark mode support for PDF button */
[data-theme="dark"] .pdf-view-button {
    background: linear-gradient(135deg, var(--illini-orange) 0%, #d44220 100%);
    box-shadow: 0 4px 15px rgba(232, 74, 39, 0.3);
}

[data-theme="dark"] .pdf-view-button i {
    color: white;
}

[data-theme="dark"] .pdf-view-button:hover {
    background: linear-gradient(135deg, #d44220 0%, var(--illini-orange) 100%);
    box-shadow: 0 8px 25px rgba(232, 74, 39, 0.4);
    border-color: var(--illini-blue);
}

/* Responsive PDF button */
@media (max-width: 768px) {
    .pdf-view-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .pdf-view-button i {
        font-size: 1.25rem;
    }
}

[data-theme="dark"] .logo-vit { filter: invert(1); }
