/* Global Styles */
:root {
    --primary-color: #0a0a0a; /* Deep Black */
    --secondary-color: #00ff88; /* Neon Green */
    --accent-color: #ff0080; /* Neon Pink */
    --tertiary-color: #0080ff; /* Electric Blue */
    --light-slate: #e6e6e6; /* Light Gray */
    --slate: #b3b3b3; /* Medium Gray */
    --dark-slate: #333333; /* Dark Gray */
    --background-light: #1a1a1a; /* Dark Gray for cards */
    --background-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    --neon-glow: 0 0 20px currentColor, 0 0 40px currentColor, 0 0 60px currentColor;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --fz-hero: 4rem;
    --fz-xxl: 2.5rem;
    --fz-xl: 2rem;
    --fz-lg: 1.5rem;
    --fz-md: 1.125rem;
    --fz-sm: 1rem;
    --fz-xs: 0.875rem;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-neon: 0 0 20px rgba(0, 255, 136, 0.3);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--background-gradient);
    color: var(--light-slate);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: var(--fz-md);
    overflow-x: hidden;
    position: relative;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo {
    position: relative;
    margin-bottom: 30px;
}

.loading-circle {
    width: 80px;
    height: 80px;
    border: 3px solid var(--dark-slate);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: var(--fz-xl);
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: var(--neon-glow);
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--dark-slate);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--tertiary-color));
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

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

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Particle Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: var(--fz-xxl);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--tertiary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: var(--fz-md);
    color: var(--slate);
    font-weight: 400;
}

h1, h2, h3 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

h1 {
    font-size: var(--fz-hero);
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: var(--fz-xxl);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

h3 {
    font-size: var(--fz-lg);
    font-weight: 600;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

p {
    color: var(--slate);
    margin-bottom: 15px;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: var(--fz-lg);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.logo-bracket {
    color: var(--secondary-color);
    font-size: 1.2em;
}

.logo-name {
    color: var(--light-slate);
    margin: 0 5px;
}

.logo-text:hover .logo-name {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
}


nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--light-slate);
    font-size: var(--fz-sm);
    font-weight: 500;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

nav ul li a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    font-weight: 600;
}

nav ul li a:hover::before {
    transform: translateY(0);
}

nav ul li a:hover {
    color: transparent;
}

nav ul li a.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
}

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

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 128, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 0, 128, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

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

.floating-element {
    position: absolute;
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 30%; right: 15%; animation-delay: 1s; }
.floating-element:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }
.floating-element:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 3s; }
.floating-element:nth-child(5) { top: 50%; left: 50%; animation-delay: 4s; }

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

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-greeting {
    font-size: var(--fz-lg);
    color: var(--slate);
    margin-bottom: 10px;
    font-weight: 300;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
}

.name-highlight {
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px var(--secondary-color)); }
    to { filter: drop-shadow(0 0 30px var(--tertiary-color)); }
}

.hero-subtitle {
    font-size: var(--fz-xl);
    margin-bottom: 30px;
    color: var(--light-slate);
}

.subtitle-prefix {
    color: var(--slate);
    font-weight: 300;
}

.typed-text {
    color: var(--secondary-color);
    font-weight: 600;
}

.hero-description {
    font-size: var(--fz-md);
    color: var(--slate);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: var(--fz-md);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    color: var(--primary-color);
    border: none;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.cta-button.secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: var(--fz-xs);
    color: var(--slate);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    font-size: var(--fz-lg);
    color: var(--secondary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-content {
    background: var(--background-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 136, 0.1);
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--tertiary-color));
}

.highlight-box {
    background: rgba(0, 255, 136, 0.05);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 30px;
}

.highlight-box h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expertise-areas h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.expertise-item {
    background: rgba(0, 128, 255, 0.05);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 128, 255, 0.1);
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.2);
}

.expertise-icon {
    font-size: 2rem;
    color: var(--tertiary-color);
    margin-bottom: 10px;
}

.expertise-item h4 {
    color: var(--light-slate);
    margin-bottom: 5px;
    font-size: var(--fz-md);
}

.expertise-item p {
    color: var(--slate);
    font-size: var(--fz-sm);
}

.about-stats {
    background: var(--background-light);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 0, 128, 0.1);
    position: relative;
    overflow: hidden;
}

.about-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 0, 128, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 0, 128, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: var(--fz-xs);
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-preview h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: var(--fz-lg);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--fz-xs);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Experience Section - Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--secondary-color), var(--tertiary-color), var(--accent-color));
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    padding-left: 80px;
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item.current .timeline-content {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--fz-lg);
    transform: translateX(-50%);
    left: 32px;
    border: 4px solid var(--primary-color);
    position: relative;
    z-index: 2;
}

.timeline-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

.timeline-content {
    background: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 136, 0.1);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--tertiary-color));
}

.timeline-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: var(--fz-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-badge {
    animation: glow 2s ease-in-out infinite alternate;
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--secondary-color);
    font-size: var(--fz-xl);
    margin-bottom: 15px;
}

.company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.company-name, .work-period {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate);
    font-size: var(--fz-sm);
    font-weight: 500;
}

.company-name i, .work-period i {
    color: var(--tertiary-color);
}

.job-description {
    margin-bottom: 25px;
}

.job-description p {
    color: var(--light-slate);
    line-height: 1.7;
}

.job-details {
    display: grid;
    gap: 25px;
}

.detail-section h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fz-md);
}

.work-items {
    display: grid;
    gap: 12px;
}

.work-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 128, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--tertiary-color);
}

.work-item i {
    color: var(--tertiary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.work-item span {
    color: var(--light-slate);
    font-size: var(--fz-sm);
    line-height: 1.6;
}

.achievements {
    display: grid;
    gap: 15px;
}

.achievement-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.achievement-metric {
    font-size: var(--fz-lg);
    font-weight: 800;
    color: var(--secondary-color);
    font-family: var(--font-mono);
    flex-shrink: 0;
    min-width: 60px;
}

.achievement-desc {
    color: var(--light-slate);
    font-size: var(--fz-sm);
    line-height: 1.6;
}

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

.project-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 136, 0.1);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.project-card.featured {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 25px 0;
    margin-bottom: 20px;
}

.project-icon {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fz-xl);
    color: var(--primary-color);
    font-weight: 600;
}

.project-icon.energy {
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
}

.project-icon.ai {
    background: linear-gradient(135deg, var(--tertiary-color), var(--accent-color));
}

.project-icon.data {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.icon-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

.project-status {
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--fz-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content {
    padding: 0 25px 25px;
}

.project-content h3 {
    color: var(--secondary-color);
    font-size: var(--fz-lg);
    margin-bottom: 15px;
    font-weight: 700;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--slate);
    font-size: var(--fz-xs);
    font-weight: 500;
}

.project-meta i {
    color: var(--tertiary-color);
}

.project-description {
    margin-bottom: 25px;
}

.project-description p {
    color: var(--light-slate);
    line-height: 1.7;
    margin-bottom: 15px;
}

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

.tech-tag {
    background: rgba(0, 128, 255, 0.1);
    color: var(--tertiary-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: var(--fz-xs);
    font-weight: 500;
    border: 1px solid rgba(0, 128, 255, 0.2);
}

.project-achievements h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fz-md);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.achievement {
    text-align: center;
    padding: 15px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.achievement-number {
    font-size: var(--fz-lg);
    font-weight: 800;
    color: var(--secondary-color);
    font-family: var(--font-mono);
    margin-bottom: 5px;
}

.achievement-text {
    font-size: var(--fz-xs);
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.achievement-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--light-slate);
    font-size: var(--fz-sm);
    line-height: 1.6;
}

.achievement-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.8em;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: var(--fz-lg);
}

.skill-tag {
    display: inline-block;
    background-color: var(--dark-slate);
    color: var(--light-slate);
    padding: 6px 12px;
    margin: 5px;
    border-radius: var(--border-radius);
    font-size: var(--fz-sm);
    font-family: var(--font-mono);
    transition: var(--transition);
}
.skill-tag:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Education Section */
.education-grid {
    display: grid;
    gap: 25px;
}
.education-item {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: flex-start; /* Align icon and text nicely */
}
.education-icon {
    font-size: var(--fz-xl);
    color: var(--secondary-color);
    margin-right: 20px;
    min-width: 30px; /* Ensure icon has some space */
    text-align: center;
}
.education-item h3 {
    margin-top: 0;
    color: var(--secondary-color);
    margin-bottom: 5px;
}
.education-item p {
    margin-bottom: 5px;
    font-size: var(--fz-sm);
}
.education-item p:last-child {
    margin-bottom: 0;
}


/* Footer */
footer {
    background: var(--background-light);
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--tertiary-color), var(--accent-color));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: var(--fz-xl);
    font-weight: 700;
    margin-bottom: 10px;
}

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

.footer-logo .logo-name {
    color: var(--light-slate);
    margin: 0 5px;
}

.footer-description {
    color: var(--slate);
    line-height: 1.7;
    max-width: 400px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-slate);
    font-size: var(--fz-sm);
}

.contact-item i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.link-section h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: var(--fz-md);
    font-weight: 600;
}

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

.link-section li {
    margin-bottom: 8px;
    color: var(--slate);
    font-size: var(--fz-sm);
    position: relative;
    padding-left: 15px;
}

.link-section li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--tertiary-color);
    font-size: 0.8em;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright p {
    color: var(--slate);
    font-size: var(--fz-sm);
    margin: 0;
}

.footer-copyright p:first-child {
    margin-bottom: 5px;
}

.footer-social {
    display: flex;
    align-items: center;
}

.social-placeholder {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate);
    font-size: var(--fz-sm);
}

.social-placeholder i {
    color: var(--secondary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    font-size: var(--fz-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

/* Skills Section */
.skills-container {
    max-width: 1000px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 136, 0.1);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.1);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--tertiary-color));
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: var(--fz-lg);
}

.category-header h3 {
    color: var(--secondary-color);
    margin: 0;
    font-size: var(--fz-lg);
    font-weight: 600;
}

.skills-list {
    display: grid;
    gap: 15px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.skill-name {
    color: var(--light-slate);
    font-weight: 500;
    font-size: var(--fz-sm);
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: var(--dark-slate);
    border-radius: 4px;
    margin-left: 15px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--tertiary-color));
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s ease-in-out;
    position: relative;
}

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

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

/* Education Section */
.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.education-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

.education-year {
    font-family: var(--font-mono);
    font-size: var(--fz-lg);
    font-weight: 700;
    color: var(--secondary-color);
    text-align: right;
    padding-top: 10px;
}

.education-content {
    background: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 136, 0.1);
    position: relative;
    transition: var(--transition);
}

.education-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.1);
}

.education-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.education-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: var(--fz-lg);
    position: relative;
    flex-shrink: 0;
}

.education-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.education-info {
    flex: 1;
}

.education-info h3 {
    color: var(--secondary-color);
    margin: 0 0 8px 0;
    font-size: var(--fz-lg);
    font-weight: 700;
}

.degree {
    color: var(--light-slate);
    font-size: var(--fz-md);
    font-weight: 600;
    margin-bottom: 5px;
}

.degree-note {
    color: var(--slate);
    font-size: var(--fz-sm);
    font-style: italic;
}

.education-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--fz-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.master-badge {
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    color: var(--primary-color);
}

.bachelor-badge {
    background: linear-gradient(135deg, var(--tertiary-color), var(--accent-color));
    color: var(--primary-color);
}

.education-details {
    margin-top: 20px;
}

.education-details h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fz-md);
}

.research-focus, .foundation-skills, .academic-achievements {
    margin-bottom: 20px;
}

.achievement-highlight {
    background: rgba(255, 0, 128, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin-top: 15px;
}

.paper-count {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.paper-count .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    font-family: var(--font-mono);
}

.paper-count .label {
    color: var(--light-slate);
    font-weight: 600;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 136, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--tertiary-color));
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
    transition: var(--transition);
}

.achievement-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

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

.achievement-card h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: var(--fz-lg);
    font-weight: 700;
}

.achievement-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.metric {
    background: rgba(0, 255, 136, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.metric-value {
    display: block;
    font-size: var(--fz-xl);
    font-weight: 800;
    color: var(--secondary-color);
    font-family: var(--font-mono);
    margin-bottom: 5px;
}

.metric-label {
    font-size: var(--fz-xs);
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievement-card p {
    color: var(--light-slate);
    line-height: 1.6;
    font-size: var(--fz-sm);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --fz-hero: 3rem;
        --fz-xxl: 2rem;
        --fz-xl: 1.5rem;
        --fz-lg: 1.25rem;
        --fz-md: 1rem;
    }

    .container {
        padding: 80px 15px;
    }

    nav {
        padding: 15px 20px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--background-light);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 0;
        border-top: 1px solid rgba(0, 255, 136, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        padding: 15px 20px;
        display: block;
        border-radius: 0;
    }

    .menu-toggle {
        display: flex;
    }

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

    .cta-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

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

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

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: var(--fz-md);
        left: 22px;
    }

    .company-info {
        flex-direction: column;
        gap: 10px;
    }

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

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

    .education-item {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .education-year {
        text-align: center;
        padding-top: 0;
    }

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

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

    .stats-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --fz-hero: 2.5rem;
        --fz-xxl: 1.75rem;
        --fz-xl: 1.25rem;
    }

    .container {
        padding: 60px 10px;
    }

    nav {
        padding: 12px 15px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-description {
        font-size: var(--fz-sm);
    }

    .cta-button {
        padding: 12px 20px;
        font-size: var(--fz-sm);
    }

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

    .timeline-icon {
        width: 35px;
        height: 35px;
        font-size: var(--fz-sm);
        left: 19px;
    }

    .project-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }

    .project-meta {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .skill-bar {
        width: 100%;
        margin-left: 0;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: var(--fz-md);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .achievement-icon,
    .education-icon,
    .timeline-icon,
    .category-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

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

    .floating-element {
        animation: none;
    }

    .neural-network {
        animation: none;
    }

    .loading-circle {
        animation: none;
    }
}