/* =====================================================
   QUICK NAVIGATION SYSTEM STYLES
   File: components.css
   ===================================================== */

/* Import Sugar Snow Font - Add this font file to your project */
@font-face {
    font-family: 'Sugar Snow';
    src: url('../fonts/SugarSnow.woff2') format('woff2'),
         url('../fonts/SugarSnow.woff') format('woff'),
         url('../fonts/SugarSnow.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Fallback to similar fonts if Sugar Snow not available */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

/* Quick Navigation Container */
.quick-navigation {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    align-items: center;
    font-family: 'Sugar Snow', 'Comfortaa', sans-serif;
}

/* Navigation Pill */
.nav-pill {
    background: #ffffff;
    border-radius: 50px;
    padding: 25px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dark mode pill for About/Portfolio pages */
body.dark-mode .nav-pill,
.about-page .nav-pill,
.portfolio-page .nav-pill {
    background: #1a1a1a;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Pill hover expansion */
.nav-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

body.dark-mode .nav-pill:hover,
.about-page .nav-pill:hover,
.portfolio-page .nav-pill:hover {
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}

/* Section Indicators Container */
.nav-indicators {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    position: relative;
}

/* Individual Navigation Item */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 14px; /* Fixed height for alignment */
}

/* Indicator Dot */
.nav-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #999999;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

/* Active Indicator */
.nav-item.active .nav-indicator {
    background: #6E45E2;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 20px rgba(110, 69, 226, 0.4);
}

/* Hover effect on indicator */
.nav-indicator:hover {
    background: #6E45E2;
    transform: scale(1.3);
}

/* Section Label */
.nav-label {
    position: absolute;
    right: calc(100% + 25px);
    color: #6E45E2;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 14px; /* Match nav-item height */
}

/* Show label for active section */
.nav-item.active .nav-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Show label on indicator hover */
.nav-item:hover .nav-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile Toggle Arrow Button */
.mobile-toggle {
    display: none;
    position: fixed; /* Changed to fixed positioning */
    right: 20px; /* Position from right edge */
    top: 50%;
    transform: translateY(-50%);
    background: #6E45E2;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(110, 69, 226, 0.3);
    z-index: 100001; /* Ensure it's above everything */
}

.mobile-toggle:hover {
    background: #8b5cf6;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(110, 69, 226, 0.4);
}

.mobile-toggle i {
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulse animation for active indicator */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(110, 69, 226, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(110, 69, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(110, 69, 226, 0);
    }
}

.nav-item.active .nav-indicator {
    animation: pulse 2s infinite;
}

/* =====================================================
   MOBILE STYLES - Simplified Desktop-like Design
   ===================================================== */

@media (max-width: 768px) {
    /* Keep navigation visible like desktop but smaller */
    .quick-navigation {
        right: 15px; /* Slightly closer to edge */
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Hide mobile toggle - not needed for desktop-like behavior */
    .mobile-toggle {
        display: none !important;
    }
    
    /* Smaller pill on mobile */
    .nav-pill {
        padding: 15px 8px; /* Smaller padding */
        transform: scale(0.85); /* Slightly smaller overall */
    }
    
    /* Smaller indicators gap */
    .nav-indicators {
        gap: 18px; /* Reduced from 24px */
    }
    
    /* Smaller indicator dots */
    .nav-indicator {
        width: 8px; /* Reduced from 10px */
        height: 8px;
    }
    
    /* Smaller active indicator */
    .nav-item.active .nav-indicator {
        width: 11px; /* Reduced from 14px */
        height: 11px;
    }
    
    /* Smaller text labels */
    .nav-label {
        font-size: 12px; /* Reduced from 14px */
        right: calc(100% + 18px); /* Closer to pill */
    }
    
    /* Keep same hover behavior as desktop */
    .nav-item.active .nav-label {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    .nav-item:hover .nav-label {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    /* Even smaller for very small screens */
    .quick-navigation {
        right: 10px;
    }
    
    .nav-pill {
        padding: 12px 6px;
        transform: scale(0.75);
    }
    
    .nav-indicators {
        gap: 15px;
    }
    
    .nav-indicator {
        width: 7px;
        height: 7px;
    }
    
    .nav-item.active .nav-indicator {
        width: 10px;
        height: 10px;
    }
    
    .nav-label {
        font-size: 11px;
        right: calc(100% + 15px);
    }
}

@media (max-width: 360px) {
    /* Minimum size for tiny screens */
    .quick-navigation {
        right: 8px;
    }
    
    .nav-pill {
        padding: 10px 5px;
        transform: scale(0.7);
    }
    
    .nav-indicators {
        gap: 12px;
    }
    
    .nav-label {
        font-size: 10px;
        right: calc(100% + 12px);
    }
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Ensure quick nav stays above all content */
.quick-navigation {
    pointer-events: none;
}

.quick-navigation .nav-pill,
.quick-navigation .mobile-toggle {
    pointer-events: auto;
}