/* Global Variables */
:root {
    /* Cyberpunk theme colors */
    --primary-color: #00FFFF;
    --secondary-color: #FF00FF;
    --accent-color: #00FF00;
    --background-color: #000000;
    --card-background: rgba(10, 10, 10, 0.9);
    --text-primary: #FFFFFF;
    --text-secondary: #FFFFFF;
    --text-muted: #888888;
    --border-color: rgba(0, 255, 255, 0.2);
    --shadow: rgba(0, 255, 255, 0.1);
    --neon-glow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
    --neon-pink-glow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color);
    --neon-green-glow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color);
    
    /* Fonts */
    --font-primary: 'Orbitron', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Rajdhani', 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --section-margin: 100px;
    --card-spacing: 25px;
    
    /* Border radius */
    --border-radius: 4px;
    
    /* Transition */
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --glitch-duration: 0.3s;
}

/* Light theme colors - Cyberpunk variant */
[data-theme="light"] {
    --background-color: #F0F0F0;
    --card-background: rgba(255, 255, 255, 0.9);
    --text-primary: #000000;
    --text-secondary: #0080FF;
    --text-muted: #666666;
    --border-color: rgba(0, 128, 255, 0.3);
    --shadow: rgba(0, 128, 255, 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-secondary);
    line-height: 2.0;
    letter-spacing: 0.5px;
    overflow-x: hidden;
    transition: var(--transition);
    position: relative;
    font-size: 16px;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1.5rem;
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
    letter-spacing: 0.3px;
}

/* Section Layout Improvements */
section {
    margin-bottom: 80px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section:first-of-type {
    margin-top: 0;
}

/* Improved spacing for content sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Better section padding */
.hero {
    padding: 140px 0 80px;
}

/* Improved paragraph readability */
.hero-text .slogan {
    line-height: 1.8;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Better card layout */
.research-card,
.project-card,
.contact-card,
.about-card {
    padding: 35px;
    margin-bottom: 30px;
}



/* Better spacing for list items */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

/* Cyberpunk Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

/* Cyberpunk Scanlines */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: -1;
    pointer-events: none;
    animation: scanlinesMove 0.1s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes scanlinesMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(2px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Title */
.section-title {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-primary);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px rgba(0, 255, 255, 0.3);
    transform: perspective(500px) rotateX(5deg);
    transition: var(--transition);
    z-index: 10;
}

.section-title:hover {
    text-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 30px var(--primary-color),
        0 0 40px var(--primary-color);
    transform: perspective(500px) rotateX(0deg) scale(1.05);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 2px;
    box-shadow: var(--neon-glow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(1.2);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    height: 80px;
}

.navbar.scrolled {
    height: 60px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo span {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle,
.hamburger {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.theme-toggle:hover,
.hamburger:hover {
    background-color: var(--card-background);
    color: var(--primary-color);
}

.hamburger {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

/* 3D Canvas */
#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
}

/* Neural Network Background */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(22, 93, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(54, 207, 201, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: var(--neon-glow);
    transform: perspective(500px) rotateX(5deg);
    position: relative;
}

.hero-text h1 span {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(67px, 9999px, 114px, 0); }
    10% { clip: rect(154px, 9999px, 65px, 0); }
    20% { clip: rect(21px, 9999px, 75px, 0); }
    30% { clip: rect(193px, 9999px, 190px, 0); }
    40% { clip: rect(105px, 9999px, 142px, 0); }
    50% { clip: rect(30px, 9999px, 55px, 0); }
    60% { clip: rect(116px, 9999px, 172px, 0); }
    70% { clip: rect(27px, 9999px, 22px, 0); }
    80% { clip: rect(9px, 9999px, 64px, 0); }
    90% { clip: rect(155px, 9999px, 65px, 0); }
    100% { clip: rect(134px, 9999px, 179px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(109px, 9999px, 159px, 0); }
    10% { clip: rect(157px, 9999px, 76px, 0); }
    20% { clip: rect(66px, 9999px, 24px, 0); }
    30% { clip: rect(179px, 9999px, 100px, 0); }
    40% { clip: rect(61px, 9999px, 125px, 0); }
    50% { clip: rect(133px, 9999px, 92px, 0); }
    60% { clip: rect(133px, 9999px, 86px, 0); }
    70% { clip: rect(87px, 9999px, 50px, 0); }
    80% { clip: rect(152px, 9999px, 111px, 0); }
    90% { clip: rect(77px, 9999px, 152px, 0); }
    100% { clip: rect(108px, 9999px, 161px, 0); }
}

.hero-text .subtitle {
    font-size: 1.8rem;
    font-family: var(--font-secondary);
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 10px var(--secondary-color);
    letter-spacing: 2px;
}

.hero-text .slogan {
    font-size: 1.2rem;
    font-family: var(--font-secondary);
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.7;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-family: var(--font-primary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    transition: all 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    box-shadow: var(--neon-glow);
    text-shadow: 0 0 5px var(--primary-color);
}

.btn-secondary {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    box-shadow: var(--neon-pink-glow);
    text-shadow: 0 0 5px var(--secondary-color);
}

.btn:hover {
    transform: translateY(-3px) translateZ(10px);
    box-shadow: 
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color),
        0 0 60px var(--primary-color);
}

.btn-secondary:hover {
    box-shadow: 
        0 0 20px var(--secondary-color),
        0 0 40px var(--secondary-color),
        0 0 60px var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Neon button class */
.btn.neon {
    animation: neon-pulse 2s infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        box-shadow: var(--neon-glow);
    }
    50% {
        box-shadow: 
            0 0 15px var(--primary-color),
            0 0 30px var(--primary-color),
            0 0 45px var(--primary-color);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.keyword-cloud {
    position: relative;
    width: 100%;
    height: 100%;
}

.keyword {
    position: absolute;
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: var(--transition);
    cursor: pointer;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--neon-glow);
    text-shadow: 0 0 5px var(--primary-color);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.keyword:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: scale(1.15) rotate(0deg) translateZ(20px);
    box-shadow: 
        0 0 15px var(--primary-color), 
        0 0 30px var(--primary-color), 
        0 0 45px var(--primary-color);
    animation-play-state: paused;
    z-index: 10;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg) translateZ(0);
    }
    25% {
        transform: translateY(-20px) rotateX(10deg) rotateY(10deg) translateZ(10px);
    }
    50% {
        transform: translateY(10px) rotateX(-5deg) rotateY(-5deg) translateZ(-5px);
    }
    75% {
        transform: translateY(-10px) rotateX(5deg) rotateY(5deg) translateZ(5px);
    }
}

/* Position keywords */
.keyword:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.keyword:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.keyword:nth-child(3) {
    top: 40%;
    left: 5%;
    animation-delay: 2s;
}

.keyword:nth-child(4) {
    top: 50%;
    right: 10%;
    animation-delay: 3s;
}

.keyword:nth-child(5) {
    top: 70%;
    left: 15%;
    animation-delay: 4s;
}

.keyword:nth-child(6) {
    top: 80%;
    right: 20%;
    animation-delay: 5s;
}

.keyword:nth-child(7) {
    top: 30%;
    left: 40%;
    animation-delay: 0.5s;
}

.keyword:nth-child(8) {
    top: 60%;
    left: 50%;
    animation-delay: 1.5s;
}

/* About Section */
.about {
    padding: var(--section-padding) 0;
    background-color: var(--background-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Research Section */
.research {
    padding: var(--section-padding) 0;
    background-color: var(--background-color);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--card-spacing);
}

.research-card {
    background-color: rgba(10, 10, 10, 0.9);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    animation: borderGlow 3s linear infinite;
}

.research-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    animation: borderGlow 3s linear infinite reverse;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.research-card:hover {
    transform: translateY(-8px) translateZ(20px);
    box-shadow: 
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color),
        0 0 60px var(--primary-color);
    border-color: var(--primary-color);
}

.research-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
}

.research-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(22, 93, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.research-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    padding: var(--section-padding) 0;
    background-color: var(--background-color);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--card-background);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--card-spacing);
}

.project-card {
    background-color: rgba(10, 10, 10, 0.9);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    animation: borderGlow 3s linear infinite;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    animation: borderGlow 3s linear infinite reverse;
}

.project-card:hover {
    transform: translateY(-8px) translateZ(20px);
    box-shadow: 
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color),
        0 0 60px var(--primary-color);
    border-color: var(--primary-color);
}

.project-image {
    height: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    color: var(--primary-color);
    text-align: center;
    padding: 20px;
    border: 2px dashed var(--primary-color);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.1);
    transition: var(--transition);
}

.project-card:hover .image-placeholder {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
    box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.3);
    transform: scale(1.05);
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: var(--neon-glow);
}

.image-placeholder p {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    font-family: var(--font-primary);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Experience Section */
.experience {
    padding: var(--section-padding) 0;
    background-color: var(--background-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--background-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition);
}

.timeline-item:hover .timeline-icon {
    transform: translateX(-50%) scale(1.2);
    border-color: var(--secondary-color);
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Skills Section */
.skills {
    padding: var(--section-padding) 0;
    background-color: var(--background-color);
}

.skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.skills-radar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-chart {
    position: relative;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skills-category h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-category h3 i {
    color: var(--primary-color);
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.skill-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.skill-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-level {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.skill-level.expert {
    background-color: rgba(22, 93, 255, 0.1);
    color: var(--primary-color);
}

.skill-level.proficient {
    background-color: rgba(54, 207, 201, 0.1);
    color: var(--secondary-color);
}

.skill-level.intermediate {
    background-color: rgba(100, 116, 134, 0.1);
    color: var(--text-muted);
}

/* Contact Section */
.contact {
    padding: var(--section-padding) 0;
    background-color: var(--background-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--card-spacing);
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    text-align: center;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--card-background), rgba(22, 93, 255, 0.05));
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.contact-item:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--card-background);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.footer-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--background-color);
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* Scroll Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .skills-radar {
        order: 2;
    }
    
    .skills-list {
        order: 1;
    }
    
    /* Blog grid adjustments */
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Adjust spacing for mobile */
    :root {
        --section-padding: 60px;
        --section-margin: 60px;
    }
    
    /* Navbar */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 999;
        padding: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    /* Hero Section */
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-text .slogan {
        font-size: 1rem;
        padding: 15px;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-item:nth-child(odd) {
        flex-direction: column;
    }
    
    .timeline-icon {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 40px;
    }
    
    /* Section Title */
    .section-title {
        font-size: 2rem;
    }
    
    /* Grid layouts */
    .project-grid,
    .research-grid,
    .blog-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Card adjustments */
    .research-card,
    .project-card,
    .contact-card,
    .about-card {
        padding: 25px;
    }
    
    /* Project buttons */
    .project-buttons {
        flex-direction: column;
    }
    
    /* Blog post adjustments */
    .blog-post-title {
        font-size: 1.8rem;
    }
    
    .blog-post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Code blocks */
    pre {
        overflow-x: auto;
        font-size: 0.8rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    /* Hero Section */
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero-text .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-text .slogan {
        font-size: 0.95rem;
        padding: 12px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    /* Keyword Cloud */
    .keyword {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    /* Section Padding */
    :root {
        --section-padding: 40px;
        --section-margin: 40px;
        --card-spacing: 15px;
    }
    
    /* Section Title */
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 40px;
    }
    
    /* Card Padding */
    .research-card,
    .project-card,
    .contact-card,
    .about-card {
        padding: 20px;
    }
    
    /* Disable 3D effects on mobile for performance */
    .research-card,
    .project-card,
    .btn,
    .keyword,
    .blog-card {
        transform: none !important;
        transform-style: flat !important;
    }
    
    /* Simplify animations on mobile */
    body::before,
    body::after {
        animation: none !important;
    }
    
    /* Reduce scanline opacity on mobile */
    body::after {
        opacity: 0.3;
    }
    
    /* Simplify glitch effect on mobile */
    .glitch::before,
    .glitch::after {
        animation: none !important;
        display: none;
    }
    
    /* Typography adjustments */
    p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Blog post adjustments */
    .blog-post-content {
        padding: 0;
    }
    
    .blog-post-title {
        font-size: 1.5rem;
    }
    
    /* Code blocks */
    pre {
        font-size: 0.75rem;
        padding: 12px;
    }
    
    /* Navigation adjustments */
    .nav-menu a {
        font-size: 1.1rem;
    }
    
    /* Footer adjustments */
    .footer-content {
        gap: 15px;
    }
}

/* Publications Section */
.publications-content-section {
    padding: var(--section-padding) 0;
    background-color: var(--background-color);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--card-spacing);
}

.publication-card {
    background-color: var(--card-background);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.publication-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    animation: borderGlow 3s linear infinite;
}

.publication-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--secondary-color), var(--primary-color));
    animation: borderGlow 3s linear infinite reverse;
}

.publication-card:hover {
    transform: translateY(-8px) translateZ(20px);
    box-shadow: 
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color),
        0 0 60px var(--primary-color);
    border-color: var(--primary-color);
}

.publication-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.publication-date,
.publication-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.publication-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.publication-authors,
.publication-venue {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.publication-abstract {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-family: var(--font-secondary);
}

.publication-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.publication-links .btn {
    flex-shrink: 0;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 255, 255, 0.05);
    border: 2px dashed rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    color: #00ffff;
    max-width: 800px;
    margin: 0 auto;
}

.empty-state i {
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.empty-state p {
    font-size: 1.1rem;
    color: rgba(0, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Research Directions Section */
.research-directions-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.research-directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.research-direction-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.research-direction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.research-direction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.6);
}

.research-direction-card:hover::before {
    transform: scaleX(1);
}

.research-direction-icon {
    font-size: 2.5rem;
    color: #00ffff;
    margin-bottom: 20px;
    display: inline-block;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.research-direction-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.research-direction-card p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.research-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Research Papers Section */
.research-papers-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.research-papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}