@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Add scroll offset to account for fixed header */
#about, #experience, #projects {
    scroll-margin-top: 60px; /* Offset for fixed nav height */
}

/* Navigation Header */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 60px; /* Fixed height for consistent alignment */
}

.nav-brand .nav-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1; /* Ensure consistent line height */
    margin: 0; /* Remove any default margins */
    padding: 0.5rem 0; /* Add some vertical padding */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center; /* Ensure all nav items are vertically centered */
    height: 100%;
}

.nav-link {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    height: 40px; /* Fixed height for consistent alignment */
}

.nav-link:hover {
    color: #64b5f6;
    background: rgba(50, 50, 50, 0.8);
    box-shadow: 
        inset 2px 2px 5px rgba(0, 0, 0, 0.5),
        inset -2px -2px 5px rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.nav-link:active {
    transform: translateY(0);
    box-shadow: 
        inset 3px 3px 7px rgba(0, 0, 0, 0.6),
        inset -1px -1px 3px rgba(255, 255, 255, 0.03);
}

/* Party Mode Toggle */
.party-toggle {
    background: rgba(40, 40, 40, 0.8);
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.5),
        -2px -2px 5px rgba(255, 255, 255, 0.05);
    height: 40px; /* Match nav-link height for alignment */
}

.party-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 
        3px 3px 8px rgba(0, 0, 0, 0.6),
        -3px -3px 8px rgba(255, 255, 255, 0.08);
}

.party-toggle.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    color: white;
    animation: rainbow 2s infinite;
}

@keyframes rainbow {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

.toggle-text {
    font-weight: 500;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.party-toggle.active .toggle-text {
    color: white;
    font-weight: 600;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background: #555;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e0e0e0;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.party-toggle.active .toggle-switch {
    background: #4ecdc4;
}

.party-toggle.active .toggle-switch::after {
    transform: translateX(20px);
    background: #fff;
}

/* Party Mode Overlay */
.party-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.party-overlay.hidden {
    display: none;
}

.dancing-bird, .dancing-kid {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-brand .nav-name {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .party-toggle {
        padding: 0.4rem 0.8rem;
    }
    
    .toggle-text {
        font-size: 0.8rem;
    }
    
    .toggle-switch {
        width: 35px;
        height: 18px;
    }
    
    .toggle-switch::after {
        width: 14px;
        height: 14px;
    }
    
    .party-toggle.active .toggle-switch::after {
        transform: translateX(17px);
    }
    
    .dancing-bird, .dancing-kid {
        width: 20px; /* Reduced from 30px */
        height: 20px; /* Reduced from 30px */
    }
}

.open-to-relocation {
    font-weight: bold;
    color: #64b5f6;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem 2rem; /* Added top padding for fixed nav */
    overflow-x: auto;
    color: #e0e0e0;
}

/* Map header alignment */
.map-header {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-header h1 {
    margin-bottom: 0.25rem;
    color: #e0e0e0;
}

.map-header .tagline {
    color: #b0b0b0;
    font-weight: 400;
    margin-bottom: 0rem;
}

/* Map container and title */
.map-container {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 0rem auto 0.5rem;
    max-width: 1000px;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.4), -8px -8px 16px rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
}

.map-title {
    color: #e0e0e0;
    font-size: 1.8rem;
    margin: 0.5rem 0 1.5rem;
    text-align: left;
    z-index: 10;
    position: relative;
}

/* Map Legend */
.map-legend {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: #3a3a3a;
    padding: 0.75rem;
    border-radius: 8px;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 15;
    max-width: 180px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.legend-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #555;
    padding-bottom: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-label {
    font-size: 0.85rem;
    color: #b0b0b0;
}

/* Main SVG map styling */
svg {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
}

/* Projects Section */
.map-container {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 2rem;
    margin: 1.5rem auto;
    max-width: 1000px;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.4), -8px -8px 16px rgba(255, 255, 255, 0.02);
    width: 100%;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.project-card {
    background: #3a3a3a;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.project-card h3 {
    color: #e0e0e0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.project-card p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.5), -6px -6px 12px rgba(255, 255, 255, 0.03);
}

/* Individual state styling */
path {
    fill: url(#stateGradient);
    stroke: #8a8a8a;  /* Lighter gray for dark theme visibility */
    stroke-width: 0.8;
    transition: all 0.3s ease;
}

/* Add gradient definitions */
svg defs {
    background: transparent;
}


/* Enhanced neumorphic styling */
svg {
    position: relative;
}

svg::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 40px;
    z-index: -1;
    box-shadow: 
        25px 25px 50px rgba(0, 0, 0, 0.4),
        -25px -25px 50px rgba(255, 255, 255, 0.02);
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    svg {
        padding: 1rem;
        border-radius: 20px;
        max-width: 95vw;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    svg {
        padding: 0.5rem;
        border-radius: 15px;
    }
}

   /* Location marker styles */
   .location-marker {
    cursor: pointer;
    transition: r 0.2s ease, fill 0.2s ease;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
 }
 
 .location-marker:hover {
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
 }
 
 /* Tooltip styling */
 #location-tooltip {
    font-weight: bold;
    pointer-events: none;
 }

/* About Me Section */
.about-me {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 1000px;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.4), -8px -8px 16px rgba(255, 255, 255, 0.02);
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Changed from flex-start to center */
    gap: 3rem;
}

.about-text {
    flex: 1;
    min-width: 0;
    padding-right: 2rem;
}

.profile-image {
    flex: 0 0 250px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4), -5px -5px 10px rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center; /* Ensure self alignment is centered */
    margin: 0; /* Remove any default margins */
}

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

.profile-picture {
    display: none; /* Hide the empty div since we're using img tag */
    /* Add your profile image with: 
       background-image: url('path-to-your-image.jpg');
    */
}

.about-text h2 {
    color: #e0e0e0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.about-text p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-info {
    margin: 1.5rem 0;
}

.contact-info p {
    margin: 0.5rem 0;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: #64b5f6;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    color: #64b5f6;
    text-decoration: none;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), -3px -3px 6px rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5), -5px -5px 10px rgba(255, 255, 255, 0.03);
}

.tagline {
    text-align: left;
    color: #64b5f6;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Side Panel Styles */
.side-panel {
    position: fixed;
    top: 0;
    left: -750px; /* Increased from -400px to match new width */
    width: 750px; /* Increased from 400px */
    height: 100vh;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    box-shadow: 
        20px 0 40px rgba(0, 0, 0, 0.5),
        inset 2px 2px 5px rgba(255, 255, 255, 0.02),
        inset -2px -2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-20px);
    opacity: 0;
    z-index: 1000;
    padding: 2.5rem; /* Increased from 2rem */
    overflow-y: auto;
    will-change: transform, opacity;
}

.side-panel.open {
    left: 0;
    transform: translateX(0);
    opacity: 1;
}

.side-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem; /* Increased from 2rem */
    padding-bottom: 1.25rem; /* Increased from 1rem */
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.side-panel-title {
    font-size: 1.75rem; /* Increased from 1.5rem */
    font-weight: 600;
    color: #e0e0e0;
    margin: 0;
}

.close-btn {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #e0e0e0;
    box-shadow: 
        5px 5px 10px rgba(0, 0, 0, 0.4),
        -5px -5px 10px rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        7px 7px 14px rgba(0, 0, 0, 0.5),
        -7px -7px 14px rgba(255, 255, 255, 0.03);
}

.side-panel-content {
    color: #b0b0b0;
    line-height: 1.6;
}

.location-info {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border-radius: 15px;
    padding: 2rem; /* Increased from 1.5rem */
    margin-bottom: 2rem; /* Increased from 1.5rem */
    box-shadow: 
        inset 5px 5px 10px rgba(0, 0, 0, 0.3),
        inset -5px -5px 10px rgba(255, 255, 255, 0.02);
}

.location-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.location-description {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.location-details {
    display: grid;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
    font-weight: 500;
    color: #b0b0b0;
}

.detail-value {
    color: #e0e0e0;
}

/* Overlay for mobile */
.side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.side-panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Enhanced location marker styles */
.location-marker {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    filter: 
        drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.2))
        drop-shadow(-1px -1px 3px rgba(255, 255, 255, 0.8));
}

.location-marker:hover:not(.active) {
    filter: 
        drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3))
        drop-shadow(-2px -2px 4px rgba(255, 255, 255, 0.9));
}

.location-marker.active {
    filter: 
        drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.4))
        drop-shadow(-3px -3px 6px rgba(255, 255, 255, 1));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .side-panel {
        width: 100vw;
        left: -100vw;
    }
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem 0;
    width: 100%;
}

.site-footer p {
    margin: 0;
    color: #b0b0b0;
}