/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* Shooting stars effect */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Fireworks effect */
.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.firework {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: firework-explode 2.5s ease-out forwards;
}

.firework-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: particle-fade 2s ease-out forwards;
}

.firework-spark {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    animation: spark-fade 1.5s ease-out forwards;
}

@keyframes firework-explode {
    0% {
        transform: scale(0);
        opacity: 1;
        box-shadow: 0 0 0 0 currentColor;
    }
    25% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 20px 10px currentColor;
    }
    50% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 30px 15px currentColor;
    }
    100% {
        transform: scale(0);
        opacity: 0;
        box-shadow: 0 0 40px 20px currentColor;
    }
}

@keyframes particle-fade {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px currentColor;
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
        box-shadow: 0 0 15px currentColor;
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
        box-shadow: 0 0 5px currentColor;
    }
}

@keyframes spark-fade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

.particle-move {
    animation: particle-move 1.5s ease-out forwards;
}

@keyframes particle-move {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

.star {
    position: absolute;
    background: linear-gradient(45deg, rgba(255,255,255,0.8), transparent);
    border-radius: 50%;
    animation: shooting 3s linear infinite;
}

@keyframes shooting {
    0% {
        transform: translateX(-100px) translateY(-100px) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(100vh) scale(1);
        opacity: 0;
    }
}

/* Main container */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
    width: 350px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.profile-section {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b9d, #c44569, #f8b500, #ff6b9d);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1rem;
    color: #a0a0a0;
    margin-bottom: 0.25rem;
}

.subtitle {
    font-size: 0.9rem;
    color: #888;
    font-weight: 300;
}

.contact-info {
    width: 100%;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #ccc;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.contact-item i {
    width: 20px;
    margin-right: 0.75rem;
    color: #ff6b9d;
}

.contact-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #ff6b9d;
}

.resume-btn {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.3);
}

.sidebar-nav {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.nav-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: white;
    transform: translateY(-2px);
}

/* Main content styles */
.main-content {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    position: relative;
}

.hero-section {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(45deg, #ff6b9d, #c44569, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.content-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.section-icon {
    color: #ff6b9d;
    font-size: 1.2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
    max-width: 800px;
}

/* Experience styles */
.experience-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.experience-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 157, 0.3);
    transform: translateY(-2px);
}

.experience-item.active .experience-description {
    display: block;
    animation: slideDown 0.3s ease;
}

.experience-description {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    line-height: 1.5;
    width: 100%;
    flex-basis: 100%;
}

.experience-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.experience-description li::before {
    content: '•';
    color: #ff6b9d;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

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

.experience-details {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
}

.experience-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.experience-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.company {
    font-weight: 500;
    color: #ff6b9d;
}

.duration {
    font-size: 0.9rem;
    color: #888;
}

.experience-toggle {
    color: #888;
    transition: transform 0.3s ease;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.experience-item.active .experience-toggle {
    transform: rotate(180deg);
}

.company-logo {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.logo-placeholder.ornl {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
}

.logo-placeholder.vt {
    background: linear-gradient(45deg, #dc2626, #ef4444);
}

.logo-placeholder.codeswva {
    background: linear-gradient(45deg, #059669, #10b981);
}

/* Project styles */
.project-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 157, 0.3);
    transform: translateY(-2px);
}

.project-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ff6b9d;
}

.project-tech {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    font-style: italic;
}

.project-description {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.project-description li::before {
    content: '•';
    color: #ff6b9d;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

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

.project-link:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Additional polish */
.experience-item,
.project-item {
    position: relative;
    overflow: hidden;
}

.experience-item::before,
.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.experience-item:hover::before,
.project-item:hover::before {
    left: 100%;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff8fab, #d63384);
}

/* Selection styling */
::selection {
    background: rgba(255, 107, 157, 0.3);
    color: white;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid #ff6b9d;
    outline-offset: 2px;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 1.5rem;
    }
    
    .main-content {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .experience-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .company-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .experience-details {
        align-items: center;
        text-align: center;
    }
    
    .experience-toggle {
        align-self: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .sidebar {
        padding: 1rem;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
}
