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

:root {
    --bg-primary: #222222;
    --text-primary: #ebebea;
    --text-secondary: #a8a8a8;
    --accent: #fccd03;
    --accent-hover: #ffd933;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container & Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    gap: 4rem;
    position: relative;
}

.left-sidebar {
    position: sticky;
    top: 2rem;
    width: 280px;
    height: fit-content;
    flex-shrink: 0;
}

.main-content {
    max-width: 720px;
    flex: 1;
    padding-top: 2rem;
}

.profile-section {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent);
    transition: var(--transition);
}

.profile-pic:hover {
    transform: scale(1.05);
    border-color: var(--accent-hover);
    box-shadow: 0 0 20px rgba(252, 205, 3, 0.3);
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
}


section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out both;
}

section:nth-child(1) { animation-delay: 0.2s; }
section:nth-child(2) { animation-delay: 0.3s; }
section:nth-child(3) { animation-delay: 0.4s; }
section:nth-child(4) { animation-delay: 0.5s; }
section:nth-child(5) { animation-delay: 0.6s; }

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--accent);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.4s ease-out;
}

h2:hover::after {
    width: 100%;
}

/* Bio Section */
.bio-section p {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

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

/* Lists */
ul {
    list-style: none;
}

.interests-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-primary);
    transition: var(--transition);
}

.interests-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    transition: var(--transition);
}

.interests-list li:hover {
    transform: translateX(5px);
    color: var(--accent);
}

.interests-list li:hover::before {
    color: var(--accent-hover);
}

/* Work List */
.work-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.work-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    transition: var(--transition);
}

.work-list a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.work-list a:hover {
    color: var(--accent);
}

.work-list li:hover::before {
    color: var(--accent-hover);
}

/* Projects List */
.projects-list li {
    margin-bottom: 1.5rem;
}

.projects-list a {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    padding: 1rem;
    border-left: 2px solid transparent;
    transition: var(--transition);
}

.projects-list a:hover {
    border-left-color: var(--accent);
    background-color: rgba(252, 205, 3, 0.05);
    transform: translateX(5px);
}

.project-name {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.project-desc {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn 1s ease-out 0.8s both;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    text-align: right;
}

.sidebar-links a::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease-out;
}

.sidebar-links a:hover {
    color: var(--accent);
}

.sidebar-links a:hover::before {
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .sidebar {
        display: none;
    }

    .container {
        gap: 3rem;
    }

    .left-sidebar {
        width: 220px;
    }
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        gap: 2rem;
    }

    .left-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .main-content {
        max-width: 100%;
        padding-top: 0;
    }
}

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

    .name {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    h2 {
        font-size: 1.15rem;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    section {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 1rem;
    }

    .name {
        font-size: 1.5rem;
    }

    .profile-pic {
        width: 130px;
        height: 130px;
    }
}

/* 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;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .profile-pic {
        border-color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
