:root {
    /* Light theme (default) */
    --primary-color: #4a90e2;
    --secondary-color: #357abd;
    --text-color: #e0e0e0;
    --background-color: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --blur-bg: rgba(255, 255, 255, 0.8);
    --gradient-start: rgba(74, 144, 226, 0.1);
    --gradient-end: rgba(74, 144, 226, 0.05);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, var(--gradient-start) 0%, transparent 50%),
        radial-gradient(circle at 0% 0%, var(--gradient-end) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    background-color: transparent;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 4rem 0;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    min-height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
}

.typewriter {
    display: inline-block;
    color: var(--text-color);
    opacity: 0.8;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--primary-color);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes deleting {
    from {
        width: 100%;
    }
    to {
        width: 0;
    }
}

.typing {
    animation: typing 1.5s steps(30, end);
}

.deleting {
    animation: deleting 1s steps(30, end);
}

section {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(74, 144, 226, 0.2);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

blockquote {
    font-style: italic;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    opacity: 0.9;
}

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

.skill-category {
    background: rgba(26, 26, 26, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow);
    border-color: rgba(74, 144, 226, 0.2);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style-type: none;
}

.skill-category li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Timeline Section */
.timeline-container {
    position: relative;
    margin: 2rem 0;
}

.timeline-track {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
}

.timeline-item {
    flex: 0 0 100%;
    margin-bottom: 0;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.4);
    border-radius: 12px;
    border-left: 2px solid var(--primary-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 100%;
}

.timeline-scroll-indicator {
    display: none;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.timeline-scroll-indicator span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-item:hover {
    transform: translateX(5px);
    background: rgba(26, 26, 26, 0.6);
    box-shadow: var(--glass-shadow);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.location {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-item ul {
    list-style-type: none;
    padding-left: 1rem;
}

.timeline-item li {
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--text-color);
}

.timeline-item li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: -1rem;
}

.github-link, .blog-link {
    text-align: center;
    margin-top: 1rem;
}

.github-link a, .blog-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(74, 144, 226, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.github-link a:hover, .blog-link a:hover {
    background: rgba(45, 124, 214, 0.95);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(74, 144, 226, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: rgba(45, 124, 214, 0.95);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.callout {
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(45, 124, 214, 0.9), 
        rgba(74, 144, 226, 0.9)
    );
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.2);
}

.callout blockquote {
    border-left: none;
    color: white;
    font-size: 1.1rem;
}

/* Add fade-in animation for sections */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add staggered animation delay for sections */
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }

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

    .social-links {
        flex-direction: column;
        align-items: center;
    }

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

    h1 {
        font-size: 2rem;
    }

    .timeline-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        padding: 1rem 0;
        margin: 0 -2rem;
        padding: 0 2rem;
    }

    .timeline-track::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .timeline-item {
        scroll-snap-align: start;
        flex: 0 0 85%;
        margin-right: 1rem;
    }

    .timeline-scroll-indicator {
        display: block;
        animation: fadeInOut 2s ease-in-out infinite;
    }

    @keyframes fadeInOut {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 0.7; }
    }
}

@media (min-width: 769px) {
    .timeline-track {
        flex-direction: column;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: rgba(45, 124, 214, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.3);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    display: none;
}

/* Metrics Section */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.metric-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow);
}

.metric-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-color);
    font-size: 1rem;
    opacity: 0.9;
}

/* Enhanced Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow);
}

.project-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-item p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metric-number {
        font-size: 2rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Section */
.blog-link {
    text-align: center;
    margin-top: 1rem;
}

.blog-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.blog-link a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Background Cubes Animation */
.background-cubes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cube {
    position: absolute;
    background: rgba(64, 156, 255, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 4px;
    transform-origin: center;
    will-change: transform, opacity;
    z-index: 0;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.1);
    opacity: 0;
    animation: aggregate 8s infinite ease-in-out;
}

.cube::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cube::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(74, 144, 226, 0.1);
    border-radius: 4px;
    animation: pulse 2s infinite;
}

@keyframes aggregate {
    0% {
        transform: scale(0.5) translate(0, 0);
        opacity: 0;
    }
    20% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }
    40% {
        transform: scale(1.2) translate(0, 0);
        opacity: 0.9;
    }
    60% {
        transform: scale(1.5) translate(0, 0);
        opacity: 0.7;
    }
    80% {
        transform: scale(2) translate(0, 0);
        opacity: 0.4;
    }
    100% {
        transform: scale(2.5) translate(0, 0);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.cube-1 { width: 60px; height: 60px; top: 20%; left: 20%; animation-delay: 0s; }
.cube-2 { width: 60px; height: 60px; top: 20%; left: 40%; animation-delay: 1s; }
.cube-3 { width: 60px; height: 60px; top: 20%; left: 60%; animation-delay: 2s; }
.cube-4 { width: 60px; height: 60px; top: 20%; left: 80%; animation-delay: 3s; }
.cube-5 { width: 60px; height: 60px; top: 40%; left: 20%; animation-delay: 4s; }
.cube-6 { width: 60px; height: 60px; top: 40%; left: 40%; animation-delay: 5s; }
.cube-7 { width: 60px; height: 60px; top: 40%; left: 60%; animation-delay: 6s; }
.cube-8 { width: 60px; height: 60px; top: 40%; left: 80%; animation-delay: 7s; }
.cube-9 { width: 60px; height: 60px; top: 60%; left: 20%; animation-delay: 0s; }
.cube-10 { width: 60px; height: 60px; top: 60%; left: 40%; animation-delay: 1s; }
.cube-11 { width: 60px; height: 60px; top: 60%; left: 60%; animation-delay: 2s; }
.cube-12 { width: 60px; height: 60px; top: 60%; left: 80%; animation-delay: 3s; }
.cube-13 { width: 60px; height: 60px; top: 80%; left: 20%; animation-delay: 4s; }
.cube-14 { width: 60px; height: 60px; top: 80%; left: 40%; animation-delay: 5s; }
.cube-15 { width: 60px; height: 60px; top: 80%; left: 60%; animation-delay: 6s; }

/* Adjust container to ensure content stays above cubes */
.container {
    position: relative;
    z-index: 1;
}

/* Add subtle gradient overlay to enhance depth */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(10, 10, 10, 0.3) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Ensure scroll blur stays on top */
.scroll-blur {
    display: none;
} 