/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:root {
    /* Dark theme (default) */
    --background-color: #000000;
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #ffffff;
    --link-color: #ffffff;
    --nav-bg: rgba(0, 0, 0, 0.8);
    --skill-bg: #ffffff;
    --skill-text: #000000;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme */
[data-theme="light"] {
    --background-color: #ffffff;
    --text-color: #000000;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --accent-color: #000000;
    --link-color: #000000;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --skill-bg: #000000;
    --skill-text: #ffffff;
}

body {
    font-family: -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;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 4rem;
}

.container {
    max-width: 650px;
    width: 100%;
    position: relative;
    padding: 2rem 1rem 8rem 1rem;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin: 2.5rem 0 1.25rem;
}

h3 {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
}

/* Header */
header {
    margin-bottom: 3rem;
    position: relative;
    padding-right: 100px;
    animation: fadeInUp 0.8s var(--animation-timing) both;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
}

.avatar {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

/* About Section */
.tldr {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--text-color);
    text-decoration: underline;
}

/* Experience Section */
.experience-item, .education-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.company-logo, .university-logo {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    flex-shrink: 0;
}

.experience-content, .education-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.role, .degree {
    color: var(--text-color);
    margin: 0.25rem 0;
}

.date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Skills Section */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    margin: -0.3rem;
    padding-bottom: 2rem;
}

.skills-list span {
    color: var(--skill-text);
    font-size: clamp(0.75rem, 1.4vw, 0.85rem);
    background-color: var(--skill-bg);
    padding: 0.1rem 0.9rem;
    border-radius: 5px;
    font-weight: 500;
    transition: transform 0.2s ease, opacity 0.2s ease;
    margin: 0.3rem;
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 0.5s var(--animation-timing) forwards;
}

.skills-list span:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Generate delays for skills items */
.skills-list span:nth-child(1) { animation-delay: 1.6s; }
.skills-list span:nth-child(2) { animation-delay: 1.7s; }
.skills-list span:nth-child(3) { animation-delay: 1.8s; }
.skills-list span:nth-child(4) { animation-delay: 1.9s; }
.skills-list span:nth-child(5) { animation-delay: 2.0s; }
.skills-list span:nth-child(6) { animation-delay: 2.1s; }
.skills-list span:nth-child(7) { animation-delay: 2.2s; }
.skills-list span:nth-child(8) { animation-delay: 2.3s; }

/* Navigation */
.social-nav {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    gap: clamp(0.8rem, 1.5vw, 1.2rem);
    padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(1.2rem, 2.5vw, 1.5rem);
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    z-index: 100;
    width: fit-content;
    max-width: min(calc(100% - 2rem), 650px);
    opacity: 0;
    animation: fadeInUp 0.8s var(--animation-timing) 2.4s forwards;
}

/* Hide scrollbar but keep functionality */
.social-nav::-webkit-scrollbar {
    display: none;
}

.social-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
    border: 2px dashed;
}

.nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    opacity: 0.85;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 1.1rem;
    height: 1.1rem;
}

.nav-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-item i {
    filter: brightness(1.1);
}

/* Tooltip Styles */
.nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 0.4rem 0.9rem;
    background-color: var(--skill-bg);
    color: var(--skill-text);
    font-size: 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    font-weight: 500;
    pointer-events: none;
}

.nav-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.theme-toggle {
    outline: none;
}

/* Media Queries */
@media (min-width: 1200px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem 7rem 1rem;
    }

    header {
        padding-right: 80px;
    }

    .avatar {
        width: 70px;
        height: 70px;
    }

    .company-logo, .university-logo {
        width: 35px;
        height: 35px;
    }

    .nav-item::after {
        display: none; /* Hide tooltips on mobile */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 1rem 6rem 1rem;
    }

    header {
        margin-bottom: 2.5rem;
        padding-right: 60px;
    }

    .avatar {
        width: 50px;
        height: 50px;
    }

    .experience-item, .education-item {
        gap: 0.75rem;
    }

    .company-logo, .university-logo {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 360px) {
    header {
        padding-right: 0;
    }

    .avatar {
        position: relative;
        margin: 1.5rem auto;
        display: block;
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 650px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 650px) {
    .container {
        padding: 1.5rem 1rem 7rem 1rem;
    }
}

/* Header Animation */
header {
    margin-bottom: 3rem;
    position: relative;
    padding-right: 100px;
    animation: fadeInUp 0.8s var(--animation-timing) both;
}

/* About Section Animation */
.about {
    animation: fadeInUp 0.8s var(--animation-timing) 0.2s both;
}

/* Experience Section Animation */
.experience {
    animation: fadeInUp 0.8s var(--animation-timing) 0.4s both;
}

.experience-item {
    opacity: 0;
    animation: fadeInUp 0.8s var(--animation-timing) forwards;
}

.experience-item:nth-child(1) {
    animation-delay: 0.6s;
}

.experience-item:nth-child(2) {
    animation-delay: 0.8s;
}

/* Education Section Animation */
.education {
    animation: fadeInUp 0.8s var(--animation-timing) 1s both;
}

.education-item {
    opacity: 0;
    animation: fadeInUp 0.8s var(--animation-timing) 1.2s forwards;
}

/* Skills Section Animation */
.skills {
    animation: fadeInUp 0.8s var(--animation-timing) 1.4s both;
}

/* Reduce animation duration for better performance on mobile */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
} 
