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

:root {
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e6e6e6;
    --hover-color: #f5f5f5;
    --toggle-bg: #1a1a1a;
    --toggle-active: #ffffff;
    --button-bg: #1a1a1a;
    --button-text: #ffffff;
    --button-hover: #333333;
}

body.dark-theme {
    --bg-color: #0a0e27;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #17172c;
    --hover-color: #1a1e3a;
    --toggle-bg: #667eea;
    --toggle-active: #0a0e27;
    --button-bg: #667eea;
    --button-text: #ffffff;
    --button-hover: #7c8ff0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    font-style: normal;
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

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

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    user-select: none;
}

.toggle-track {
    position: relative;
    width: 70px;
    height: 32px;
    background: var(--toggle-bg);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    transition: background-color 0.3s ease;
}

.toggle-thumb {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 24px;
    background: var(--toggle-active);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .toggle-thumb {
    transform: translateX(38px);
}

.toggle-icon {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.sun-icon {
    color: #fbbf24;
}

.moon-icon {
    color: #f3f4f6;
}

body.dark-theme .sun-icon {
    opacity: 0.3;
}

body.dark-theme .moon-icon {
    opacity: 1;
}

body:not(.dark-theme) .sun-icon {
    opacity: 1;
}

body:not(.dark-theme) .moon-icon {
    opacity: 0.3;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 900px;
    width: 100%;
    padding: 3rem;
    border: 2px solid var(--border-color);
    border-radius: 1.5rem;
    background: var(--bg-color);
    transition: border-color 0.3s ease;
}

/* Profile Picture */
.profile-picture-wrapper {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

/* Right side content */
.profile-info {
    flex: 1;
    text-align: left;
}

/* Name */
.name {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Bio */
.bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: var(--hover-color);
    border-radius: 0.75rem;
    width: fit-content;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-radius: 50%;
}

.social-link:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Resume Download Button */
.resume-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 2rem;
}

.resume-download:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

body.dark-theme .resume-download:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.resume-download svg {
    width: 18px;
    height: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .container {
        padding: 2rem 1.5rem;
        min-height: calc(100vh - 200px);
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
    }

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

    .social-links {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .profile-picture-wrapper {
        width: 150px;
        height: 150px;
    }

    .name {
        font-size: 2rem;
    }

    .bio {
        font-size: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

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

    .logo {
        font-size: 1.1rem;
    }

    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .profile-picture-wrapper {
        width: 130px;
        height: 130px;
    }

    .name {
        font-size: 1.75rem;
    }

    .bio {
        font-size: 0.95rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .resume-download {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* --- Aesthetic Enhancements --- */

/* 1. Custom Cursor */
.cursor-dot {
    display: none;
    /* Hidden as requested */
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    opacity: 0.5;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* 2. Entrance Animations */
.animate-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. 3D Tilt Effect - REMOVED */
/* Container perspective and transform properties removed */

/* 4. Animated Gradient Text */
.name-gradient {
    background: linear-gradient(to right,
            var(--text-primary) 20%,
            #667eea 40%,
            #764ba2 60%,
            var(--text-primary) 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* 5. Enhanced Hover Effects */
.social-link:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.dark-theme .social-link:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
    background: var(--hover-color);
}