/* ===================================
   CSS RESET & BASE STYLES
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Space Mono', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   =================================== */
:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(26, 26, 46, 0.8);

    --text-primary: #ffffff;
    --text-secondary: #b8bcc8;
    --text-muted: #6b7280;

    --accent-primary: #7c3aed;
    --accent-secondary: #06b6d4;
    --accent-tertiary: #f59e0b;
    --accent-success: #10b981;

    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-secondary: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --font-display: 'Orbitron', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Border Colors */
    --border-color: rgba(124, 58, 237, 0.2);
    --border-hover: rgba(124, 58, 237, 0.4);

    /* Text Inverse */
    --text-inverse: #ffffff;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;

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

    /* Glow Effects */
    --glow-primary: 0 0 20px rgba(124, 58, 237, 0.5);
    --glow-secondary: 0 0 20px rgba(6, 182, 212, 0.5);
    --glow-tertiary: 0 0 20px rgba(245, 158, 11, 0.5);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.5s ease;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
    font-weight: 900;
}

h2 {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
}

h3 {
    font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
}

h4 {
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
}

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

/* ===================================
   LOADING SCREEN
   =================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

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

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.coffee-cup {
    font-size: 4rem;
    animation: bounce 1s infinite;
    margin-bottom: var(--space-4);
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: var(--space-4) auto 0;
}

.loading-bar::after {
    content: '';
    display: block;
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    animation: loading 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 900;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text .highlight {
    color: var(--accent-tertiary);
    -webkit-text-fill-color: var(--accent-tertiary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
    position: relative;
}

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

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

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

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary), 0 10px 20px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

/* ===================================
   SECTIONS
   =================================== */
section {
    padding: var(--space-20) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-24) 0;
    overflow: hidden;
}

.hero-background {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none; /* Ensure background doesn't interfere with content */
}

.hero-banner-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
}

.cosmic-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(124, 58, 237, 0.1) 2px,
            rgba(124, 58, 237, 0.1) 4px
        );
    animation: rain 10s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes rain {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100vh); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Two-column layout: text takes 60%, image takes 40% */
    gap: var(--space-12);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    justify-items: start; /* Align content to the start of each grid cell */
}

.hero-text {
    text-align: left; /* Left-align for better two-column layout */
    justify-self: start; /* Ensure proper grid alignment */
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    text-transform: uppercase;
}

.glitch {
    position: relative;
    color: var(--text-primary);
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    overflow: hidden;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-primary);
    animation: glitch-1 0.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-secondary), 2px 2px var(--accent-tertiary);
    animation: glitch-2 0.5s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% { clip: rect(85px, 9999px, 140px, 0); }
    25% { clip: rect(20px, 9999px, 60px, 0); }
    50% { clip: rect(130px, 9999px, 150px, 0); }
    75% { clip: rect(50px, 9999px, 80px, 0); }
    100% { clip: rect(10px, 9999px, 90px, 0); }
}

@keyframes glitch-2 {
    0% { clip: rect(10px, 9999px, 90px, 0); }
    25% { clip: rect(50px, 9999px, 80px, 0); }
    50% { clip: rect(130px, 9999px, 150px, 0); }
    75% { clip: rect(20px, 9999px, 60px, 0); }
    100% { clip: rect(85px, 9999px, 140px, 0); }
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    color: var(--accent-secondary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: end; /* Align profile card to the right side of its grid cell */
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-2xl), var(--glow-primary);
    text-align: center;
    max-width: 300px;
    transform: perspective(1000px) rotateY(5deg);
    transition: transform var(--transition-base);
}

.profile-card:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--space-4);
    border: 3px solid var(--accent-primary);
    box-shadow: var(--glow-primary);
}

.profile-image img,
.profile-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.profile-info p {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    margin-bottom: var(--space-4);
}

.social-links {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: var(--text-lg);
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    font-size: var(--text-lg);
    line-height: 1.8;
}

.about-text strong {
    color: var(--accent-primary);
}

.about-text blockquote {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    color: var(--accent-tertiary);
    border-left: 4px solid var(--accent-tertiary);
    padding-left: var(--space-4);
    margin: var(--space-8) 0;
    font-style: italic;
}

.about-info {
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--text-secondary);
}

.info-item i {
    color: var(--accent-primary);
    font-size: var(--text-lg);
    width: 24px;
    text-align: center;
}

/* ===================================
   TIMELINE SECTION
   =================================== */
.timeline {
    background: var(--bg-primary);
}

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

.timeline-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--accent-primary);
    background: var(--bg-secondary);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-primary);
    min-width: 120px;
    text-align: center;
    box-shadow: var(--glow-primary);
}

.timeline-content-box {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    backdrop-filter: blur(10px);
    flex: 1;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.timeline-content-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl), var(--glow-secondary);
}

.timeline-content-box h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.timeline-content-box p {
    font-size: var(--text-base);
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* ===================================
   SKILLS SECTION
   =================================== */
.skills {
    background: var(--bg-secondary);
}

.skills-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    max-width: 1000px;
    margin: 0 auto;
}

.skills-category {
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.skills-category-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
    text-align: center;
    color: var(--text-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--bg-card);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all var(--transition-base);
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    border-color: var(--accent-primary);
}

.skill-item i {
    font-size: var(--text-xl);
    color: var(--accent-primary);
    width: 30px;
    text-align: center;
}

.skill-item span {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

/* ===================================
   PROJECTS SECTION
   =================================== */
.projects {
    background: var(--bg-primary);
}

.projects-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-lg);
}

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

.project-image {
    height: 200px;
    background: var(--gradient-secondary);
    position: relative;
    overflow: hidden;
}

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

.project-content {
    padding: var(--space-6);
}

.project-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.project-description {
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

.project-tech {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-primary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.testimonials {
    background: var(--bg-secondary);
}

.testimonials-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content blockquote {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.testimonial-author {
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    padding-top: var(--space-4);
}

.author-info h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.author-info p {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--accent-secondary);
    margin-bottom: 0;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    max-width: 800px;
    margin: 0 auto;
}

.contact-info,
.contact-vision {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    backdrop-filter: blur(10px);
    text-align: center;
}

.contact-info h3,
.contact-vision h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.contact-link:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.contact-link i {
    font-size: var(--text-lg);
    width: 24px;
    text-align: center;
}

.contact-vision blockquote {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--accent-tertiary);
    line-height: 1.6;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    padding: var(--space-12) 0 var(--space-6);
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.footer-brand p {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.footer-quote {
    margin-bottom: var(--space-8);
}

.footer-quote blockquote {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--accent-tertiary);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    padding-top: var(--space-6);
}

.footer-bottom p {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* ===================================
   TABLET RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr; /* Revert to single column on tablet */
        gap: var(--space-10);
        text-align: center;
    }

    .hero-text {
        text-align: center;
        justify-self: center;
    }

    .hero-image {
        justify-self: center;
    }
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    :root {
        --text-xs: 0.75rem;
        --text-sm: 0.875rem;
        --text-base: 1rem;
        --text-lg: 1.125rem;
        --text-xl: 1.25rem;
        --text-2xl: 1.5rem;
        --text-3xl: 1.875rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-4);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        border-top: 1px solid rgba(124, 58, 237, 0.2);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

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

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

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

    section {
        padding: var(--space-16) 0;
    }

    .hero {
        min-height: 100vh;
        padding: var(--space-20) 0 var(--space-16);
    }

    .hero-content {
        grid-template-columns: 1fr; /* Revert to single column on mobile */
        gap: var(--space-8);
        text-align: center; /* Center content on mobile */
    }

    .hero-text {
        text-align: center; /* Center text on mobile */
        justify-self: center; /* Center grid item */
    }

    .hero-image {
        justify-self: center; /* Center profile card on mobile */
    }

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

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

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        padding-left: 60px;
    }

    .timeline-year {
        position: absolute;
        left: 0;
        min-width: auto;
        padding: var(--space-2);
        font-size: var(--text-sm);
    }

    .timeline-content-box {
        max-width: 100%;
    }

    .skills-grid,
    .projects-content,
    .testimonials-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .contact-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }

    .nav {
        padding: var(--space-3) var(--space-4);
    }

    .hero-title {
        font-size: clamp(var(--text-3xl), 10vw, var(--text-4xl));
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    .profile-card {
        padding: var(--space-4);
        max-width: 250px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    section {
        padding: var(--space-12) 0;
    }

    .section-header {
        margin-bottom: var(--space-12);
    }

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

    .timeline-year {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-2);
    }

    .timeline-content-box {
        padding: var(--space-4);
    }
}

/* ===================================
   PHASE 4: 3D EFFECTS & THREE.JS
   =================================== */

/* Three.js Container */
.threejs-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

/* 3D Typography Effects */
.hero-title {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-title .glitch {
    display: inline-block;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.hero-title .glitch:hover {
    transform: translateZ(20px) rotateY(5deg);
}

/* Enhanced 3D Profile Card */
.profile-card {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1500px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-card:hover {
    transform: perspective(1000px) rotateY(10deg) scale(1.1) translateZ(50px);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(124, 58, 237, 0.6),
        inset 0 0 40px rgba(124, 58, 237, 0.2);
}

/* Floating 3D Elements */
.floating-3d-element {
    position: absolute;
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: -1;
}

.coffee-3d {
    font-size: 2rem;
    opacity: 0.3;
    animation: float3d 15s ease-in-out infinite;
}

.code-bracket-3d {
    font-size: 1.5rem;
    color: var(--accent-secondary);
    opacity: 0.4;
    animation: float3d 20s ease-in-out infinite;
}

.geometric-shape-3d {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-tertiary);
    opacity: 0.3;
    animation: rotate3d 25s linear infinite;
}

@keyframes float3d {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
    }
    50% {
        transform: translateY(20px) translateX(-15px) rotate(180deg);
    }
    75% {
        transform: translateY(-15px) translateX(25px) rotate(270deg);
    }
}

@keyframes rotate3d {
    0% {
        transform: rotate3d(1, 1, 0, 0deg);
    }
    100% {
        transform: rotate3d(1, 1, 0, 360deg);
    }
}

/* Enhanced Particle Background Fallback */
.cosmic-particles.enhanced {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(251, 146, 60, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    animation: enhancedFloat 30s ease-in-out infinite;
}

@keyframes enhancedFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(20px, -30px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-15px, 20px) scale(0.9);
        opacity: 0.7;
    }
    75% {
        transform: translate(25px, 15px) scale(1.05);
        opacity: 0.9;
    }
}

/* 3D Hover Effects for Project Cards */
.project-card {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(8deg) rotateY(-5deg);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(124, 58, 237, 0.4),
        inset 0 0 30px rgba(124, 58, 237, 0.15);
}

/* Enhanced Timeline 3D Effects */
.timeline-content-box {
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-content-box:hover {
    transform: translateY(-10px) translateZ(40px) rotateY(5deg) rotateX(-3deg);
}

/* 3D Skill Items */
.skill-item {
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item:hover {
    transform: translateY(-8px) translateZ(25px) rotateX(-5deg) rotateY(5deg);
    box-shadow:
        0 25px 50px -10px rgba(0, 0, 0, 0.2),
        0 0 35px rgba(124, 58, 237, 0.5),
        inset 0 0 20px rgba(124, 58, 234, 0.15);
}

/* Performance Optimizations */
.threejs-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: -2;
}

.threejs-fallback.active {
    display: block;
}

.threejs-fallback.inactive {
    display: none;
}

/* CSS Fallback Container */
#css-fallback-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    display: none; /* Hidden by default, shown when Three.js fails */
}

/* Enhanced fallback styles when Three.js fails */
[data-threejs-failed="true"] .hero-background {
    background: linear-gradient(135deg,
        var(--bg-primary) 0%,
        rgba(124, 58, 237, 0.1) 25%,
        rgba(6, 182, 212, 0.1) 50%,
        rgba(251, 146, 60, 0.1) 75%,
        var(--bg-primary) 100%);
    animation: enhancedFallbackFloat 15s ease-in-out infinite;
}

[data-threejs-failed="true"] .cosmic-particles {
    opacity: 0.8;
    animation: enhancedFallbackParticles 20s ease-in-out infinite;
}

@keyframes enhancedFallbackFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translate(15px, -20px) scale(1.05);
        opacity: 0.9;
    }
    50% {
        transform: translate(-10px, 15px) scale(0.95);
        opacity: 0.8;
    }
    75% {
        transform: translate(20px, 10px) scale(1.02);
        opacity: 0.85;
    }
}

@keyframes enhancedFallbackParticles {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }
    33% {
        transform: translate(20px, -15px) rotate(120deg);
        opacity: 0.8;
    }
    66% {
        transform: translate(-15px, 10px) rotate(240deg);
        opacity: 0.7;
    }
}

/* Enhanced floating elements for fallback */
[data-threejs-failed="true"] .floating-3d-element {
    opacity: 0.7;
    animation: enhancedFallbackFloat 12s ease-in-out infinite;
}

/* Mobile 3D Adjustments */
@media (max-width: 768px) {
    .threejs-container {
        transform: translateZ(0); /* Disable 3D on mobile for performance */
    }

    .profile-card:hover {
        transform: scale(1.05) translateY(-5px);
    }

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

    .floating-3d-element {
        display: none; /* Hide floating elements on mobile */
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .threejs-container {
        display: none;
    }

    .cosmic-particles.enhanced {
        animation: none;
        opacity: 0.3;
    }

    .floating-3d-element {
        animation: none;
        transform: none;
    }

    .profile-card:hover,
    .project-card:hover,
    .skill-item:hover {
        transform: translateY(-5px);
    }
}

/* ===================================
   PHASE 3: ADVANCED JAVASCRIPT FEATURES
   =================================== */

/* Advanced Parallax Scrolling Effects */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
}

.parallax-bg {
    background: linear-gradient(135deg,
        var(--bg-primary) 0%,
        rgba(147, 51, 234, 0.1) 25%,
        rgba(6, 182, 212, 0.1) 50%,
        rgba(251, 146, 60, 0.1) 75%,
        var(--bg-primary) 100%);
    transform: translateZ(-2px) scale(3);
    animation: parallaxShift 20s ease-in-out infinite;
}

@keyframes parallaxShift {
    0%, 100% { transform: translateZ(-2px) scale(3) translateY(0); }
    25% { transform: translateZ(-2px) scale(3) translateY(-20px); }
    50% { transform: translateZ(-2px) scale(3) translateY(10px); }
    75% { transform: translateZ(-2px) scale(3) translateY(-15px); }
}

.parallax-mid {
    background: radial-gradient(circle at 20% 50%,
        rgba(147, 51, 234, 0.15) 0%,
        transparent 50%),
        radial-gradient(circle at 80% 20%,
        rgba(6, 182, 212, 0.15) 0%,
        transparent 50%),
        radial-gradient(circle at 40% 80%,
        rgba(251, 146, 60, 0.15) 0%,
        transparent 50%);
    transform: translateZ(-1px) scale(2);
    animation: parallaxMidFloat 15s ease-in-out infinite;
}

@keyframes parallaxMidFloat {
    0%, 100% { transform: translateZ(-1px) scale(2) translateY(0) rotate(0deg); }
    33% { transform: translateZ(-1px) scale(2) translateY(-30px) rotate(120deg); }
    66% { transform: translateZ(-1px) scale(2) translateY(20px) rotate(240deg); }
}

.parallax-fore {
    background: radial-gradient(circle at 50% 50%,
        rgba(245, 158, 11, 0.05) 0%,
        transparent 70%);
    transform: translateZ(0) scale(1.5);
    animation: parallaxForePulse 10s ease-in-out infinite;
}

@keyframes parallaxForePulse {
    0%, 100% { transform: translateZ(0) scale(1.5) translateY(0); opacity: 0.7; }
    50% { transform: translateZ(0) scale(1.5) translateY(-10px); opacity: 1; }
}

/* Enhanced Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg,
        var(--accent-primary) 0%,
        var(--accent-secondary) 50%,
        var(--accent-tertiary) 100%);
    z-index: var(--z-fixed);
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}

.scroll-progress.reading {
    background: linear-gradient(90deg,
        var(--accent-tertiary) 0%,
        var(--accent-primary) 50%,
        var(--accent-secondary) 100%);
}

/* Interactive Timeline Enhancements */
.timeline-item.expanded {
    grid-column: span 2;
}

.timeline-content-expandable {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
}

.timeline-item.expanded .timeline-content-expandable {
    max-height: 500px;
    opacity: 1;
}

.timeline-expand-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-inverse);
    font-size: var(--font-size-xs);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.timeline-expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
}

.timeline-expand-btn:active {
    transform: translateY(0);
}

.timeline-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.timeline-filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-filter-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.timeline-filter-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: var(--text-inverse);
}

/* Advanced Loading Animations */
.loading-screen.enhanced .loading-coffee {
    position: relative;
    animation: coffeeBounce 2s ease-in-out infinite;
}

@keyframes coffeeBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

.loading-screen.enhanced .loading-text::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid var(--accent-tertiary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Touch Gesture Support */
.touch-gesture-area {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: var(--z-fixed);
    transition: all 0.3s ease;
}

.touch-gesture-area:hover {
    background: var(--accent-primary);
    transform: scale(1.1);
}

.touch-gesture-area:active {
    transform: scale(0.95);
}

.touch-indicator {
    font-size: 24px;
    color: var(--accent-primary);
}

/* Performance-optimized Animations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.smooth-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Keyboard Navigation */
.focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-primary);
    color: var(--text-inverse);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: var(--z-tooltip);
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .timeline-item.expanded {
        grid-column: span 1;
    }

    .parallax-container {
        transform: translateZ(0); /* Disable parallax on mobile for performance */
    }

    .touch-gesture-area {
        display: flex;
    }

    .timeline-filter {
        gap: 8px;
        margin-bottom: 24px;
    }

    .timeline-filter-btn {
        padding: 6px 12px;
        font-size: var(--font-size-xs);
    }
}

/* Enhanced Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .parallax-layer {
        animation: none !important;
        transform: none !important;
    }

    .gpu-accelerated {
        will-change: auto;
    }

    .loading-screen.enhanced .loading-coffee {
        animation: none;
    }

    .loading-screen.enhanced .loading-text::after {
        animation: none;
    }
}

/* ===================================
   PHASE 2: ENHANCED INTERACTIONS
   =================================== */

/* Enhanced Hover Effects */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

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

.btn-enhanced::after {
    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 ease, height 0.6s ease;
    z-index: 0;
}

.btn-enhanced:hover::after {
    width: 300px;
    height: 300px;
}

/* Project Card 3D Hover Effects */
.project-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(124, 58, 237, 0.3),
        inset 0 0 20px rgba(124, 58, 237, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(124, 58, 237, 0.1) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

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

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 2;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

/* Enhanced Skill Items */
.skill-item {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), transparent);
    transition: left 0.8s ease;
    z-index: 0;
}

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

.skill-item:hover {
    transform: translateY(-5px) translateZ(20px) rotateX(-5deg);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 0 25px rgba(124, 58, 237, 0.4),
        inset 0 0 15px rgba(124, 58, 237, 0.1);
}

.skill-item i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.skill-item:hover i {
    transform: scale(1.2) rotateZ(10deg);
}

/* Enhanced Timeline Items */
.timeline-content-box {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s ease;
}

.timeline-content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(124, 58, 237, 0.05) 30%,
        rgba(6, 182, 212, 0.05) 70%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

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

.timeline-content-box:hover {
    transform: translateY(-8px) translateZ(30px) rotateY(3deg);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(6, 182, 212, 0.3),
        inset 0 0 20px rgba(124, 58, 237, 0.1);
}

.timeline-year {
    transition: all 0.6s ease;
    position: relative;
    z-index: 2;
}

.timeline-item:hover .timeline-year {
    transform: scale(1.1) translateZ(20px);
    box-shadow:
        0 0 25px rgba(124, 58, 237, 0.6),
        inset 0 0 15px rgba(124, 58, 237, 0.2);
}

/* Enhanced Testimonial Cards */
.testimonial-card {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s ease;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        var(--accent-primary),
        var(--accent-secondary),
        var(--accent-tertiary),
        var(--accent-primary));
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
}

.testimonial-card:hover::before {
    opacity: 0.7;
}

.testimonial-card:hover {
    transform: translateY(-8px) translateZ(20px) rotateX(2deg);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(245, 158, 11, 0.3);
}

/* Enhanced Contact Links */
.contact-link {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.contact-link:hover::before {
    width: 200px;
    height: 200px;
}

.contact-link:hover {
    transform: translateY(-5px) translateZ(15px) scale(1.05);
    box-shadow:
        0 15px 25px -5px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(124, 58, 237, 0.4);
}

.contact-link i,
.contact-link span {
    position: relative;
    z-index: 2;
}

.contact-link i {
    transition: transform 0.3s ease;
}

.contact-link:hover i {
    transform: scale(1.2) rotateZ(15deg);
}

/* Enhanced Social Links */
.social-links a {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.social-links a:hover::before {
    width: 60px;
    height: 60px;
}

.social-links a:hover {
    transform: translateY(-3px) translateZ(10px) scale(1.1);
    box-shadow:
        0 10px 20px rgba(124, 58, 237, 0.3),
        0 0 25px rgba(124, 58, 237, 0.5);
}

/* Enhanced Profile Card */
.profile-card {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.8s ease;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg,
        var(--accent-primary),
        var(--accent-secondary),
        var(--accent-tertiary),
        var(--accent-primary));
    border-radius: var(--radius-2xl);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: -1;
    animation: gradient-shift 4s ease-in-out infinite;
}

.profile-card:hover::before {
    opacity: 0.8;
}

.profile-card:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.08) translateZ(30px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(124, 58, 237, 0.4),
        inset 0 0 30px rgba(124, 58, 237, 0.1);
}

.profile-image {
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
}

.profile-card:hover .profile-image {
    transform: scale(1.1) translateZ(20px);
    box-shadow:
        0 0 30px rgba(124, 58, 237, 0.6),
        inset 0 0 20px rgba(124, 58, 237, 0.2);
}

/* Enhanced Navigation Links */
.nav-link {
    position: relative;
    transform-style: preserve-3d;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: translateX(-50%) translateZ(-5px);
    transition: width 0.4s ease;
    border-radius: var(--radius-lg);
}

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

.nav-link:hover {
    transform: translateY(-2px) translateZ(5px);
    text-shadow: 0 0 10px currentColor;
}

/* Coffee Cup Cursor Follower */
.coffee-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: var(--z-tooltip);
    transition: transform 0.1s ease-out;
    opacity: 0.7;
    font-size: 20px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
    animation: cursor-float 3s ease-in-out infinite;
}

@keyframes cursor-float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -55%) rotate(-5deg); }
    75% { transform: translate(-50%, -45%) rotate(5deg); }
}

.coffee-cursor.steam {
    animation: cursor-float 3s ease-in-out infinite, steam-rise 2s ease-in-out infinite;
}

@keyframes steam-rise {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-48%, -52%) rotate(2deg); }
}

/* Timeline Scroll Animations */
.timeline-item.animate-in {
    animation: timelineSlideIn 0.8s ease-out forwards;
}

@keyframes timelineSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px) translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

.timeline-item:nth-child(even).animate-in {
    animation: timelineSlideInRight 0.8s ease-out forwards;
}

@keyframes timelineSlideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

/* Pulse animation for timeline years */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(124, 58, 237, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

/* Staggered Animation Delays */
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Section Animations */
section > * {
    transition: all 0.6s ease;
}

section:hover .section-title {
    transform: scale(1.05) translateZ(20px);
    text-shadow: 0 0 20px currentColor;
}

section:hover .section-subtitle {
    transform: translateY(-5px) translateZ(10px);
    text-shadow: 0 0 10px currentColor;
}

/* Loading Screen Enhanced */
.loading-screen.enhanced {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.coffee-cup.enhanced {
    animation: bounce 1s infinite, coffee-sparkle 2s ease-in-out infinite;
}

@keyframes coffee-sparkle {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 5px rgba(245, 158, 11, 0.5)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 15px rgba(245, 158, 11, 0.8)); }
}

/* Interactive Background Effects */
.hero-background.interactive {
    position: relative;
}

.cosmic-particles.interactive {
    animation: float 20s ease-in-out infinite, pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.code-rain.interactive {
    animation: rain 10s linear infinite, rain-flicker 3s ease-in-out infinite;
}

@keyframes rain-flicker {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

/* ===================================
   REDUCED MOTION & ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-height: 500px) {
    .hero {
        min-height: auto;
        padding: var(--space-16) 0;
    }
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus,
.contact-link:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .loading-screen,
    .scroll-indicator {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }
}