/* LAYOUT.CSS - Navigation, Footer, and Structural Elements */


/* Shared across all pages */


/* ===================================
   NAVIGATION BASE
   =================================== */

nav,
.nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: var(--vh-nav);
}


/* ===================================
   STICKY NAVIGATION
   =================================== */

#desktop-nav,
#hamburger-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-main);
    box-shadow: var(--shadow-nav);
    z-index: var(--z-nav);
    transition: height var(--transition-fast);
}

#desktop-nav.scrolled,
#hamburger-nav.scrolled {
    height: var(--vh-nav-scrolled);
    background-color: var(--color-bg-ash-transparent);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: var(--shadow-nav-scrolled);
}


/* Ensure text remains readable on transparent background */

#desktop-nav.scrolled .nav-links a,
#hamburger-nav.scrolled .logo,
#desktop-nav.scrolled .logo {
    color: rgba(0, 0, 0, 0.847);
}


/* ===================================
   NAVIGATION LINKS
   =================================== */

.nav-links {
    gap: var(--space-xl);
    list-style: none;
    font-size: var(--font-size-xl);
    transition: font-size var(--transition-base);
}

#desktop-nav.scrolled .nav-links {
    font-size: var(--font-size-md);
}

.nav-links li {
    list-style: none;
}


/* ===================================
   LOGO
   =================================== */

.logo {
    font-size: var(--font-size-3xl);
    transition: font-size var(--transition-base);
    font-weight: 600;
}

#desktop-nav.scrolled .logo,
#hamburger-nav.scrolled .logo {
    font-size: var(--font-size-xl);
}

.logo:hover {
    cursor: default;
}


/* ===================================
   HAMBURGER MENU
   =================================== */

#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    transition: var(--transition-all);
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-bg-main);
    width: fit-content;
    min-width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-all);
    z-index: var(--z-dropdown);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-links a {
    display: block;
    padding: 12px 20px;
    text-align: center;
    font-size: 1.15rem;
    color: var(--color-black);
    text-decoration: none;
    transition: var(--transition-all);
    white-space: nowrap;
}

.menu-links.open {
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


/* Add scrollbar styling for hamburger menu */

.menu-links::-webkit-scrollbar {
    width: 6px;
}

.menu-links::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.menu-links::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.menu-links::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}


/* ===================================
   FOOTER
   =================================== */

footer {
    padding: var(--space-xl) var(--space-md);
    background-color: var(--color-bg-main);
    border-top: 1px solid var(--color-border-light);
}

footer nav {
    margin-bottom: var(--space-sm);
}

footer p {
    text-align: center;
    margin-top: var(--space-md);
    color: var(--color-secondary);
}

.nav-links-container {
    display: flex;
    justify-content: center;
}

.nav-links-container .nav-links {
    display: flex;
    flex-direction: row;
    gap: var(--space-xl);
    font-size: var(--font-size-base);
}


/* ===================================
   CONTACT SECTION
   =================================== */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: var(--space-xl) 0;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
    border: 0.1rem solid var(--color-border);
    background: rgb(250, 250, 250);
    margin: var(--space-xl) auto;
    padding: var(--space-sm);
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-md);
}

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
    height: 2rem;
}

.email-icon {
    height: 2.5rem;
}


/* ===================================
   SECTION PROGRESS INDICATOR
   =================================== */

.section-progress {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-border);
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.progress-dot::before {
    content: attr(data-section-name);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.progress-dot:hover::before {
    opacity: 1;
}

.progress-dot:hover {
    background-color: var(--color-accent);
    transform: scale(1.3);
}

.progress-dot.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.6);
    box-shadow: 0 0 0 3px rgba(53, 53, 53, 0.2);
}


/* ===================================
   MOBILE RESPONSIVE FOR PROGRESS DOTS
   =================================== */

@media screen and (max-width: 1200px) {
    .section-progress {
        right: 1rem;
    }
    .progress-dot::before {
        right: 20px;
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

@media screen and (max-width: 768px) {
    .section-progress {
        right: 0.75rem;
        gap: 0.75rem;
        display: flex;
        /* Keep visible on mobile */
    }
    .progress-dot {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
    .progress-dot.active {
        transform: scale(1.4);
    }
    .progress-dot:hover {
        transform: scale(1.2);
    }
    .progress-dot::before {
        right: 18px;
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

@media screen and (max-width: 600px) {
    .section-progress {
        right: 0.5rem;
        gap: 0.6rem;
    }
    .progress-dot {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
    .progress-dot.active {
        transform: scale(1.3);
    }
    .progress-dot:hover {
        transform: scale(1.1);
    }
    .progress-dot::before {
        display: none;
        /* Hide tooltip text on very small screens */
    }
}