
/*
=========================================================
Project      : UPI QR Studio
Website      : https://rsbusinesses0.github.io/UPI_QR_Studio/
Created By   : Sumit Kumar Shakya
Developer    : Solo Creator & Developer
Developed For: RS Businesses
GitHub       : https://github.com/sksumitkumarshakya
Contact      : sksumitkumarshakya@gmail.com

Description  : Stylesheet for the UPI QR Studio website.
               Supports the website's layout, responsive
               design, components, and visual presentation.

Year         : 2026
=========================================================
*/

/* ========================================
   UPI QR STUDIO - HEADER
   File: css/header.css
======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 15px rgba(16, 42, 67, 0.035);
    backdrop-filter: blur(12px);
}

.header-container {
    width: min(var(--container-width), calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.logo:hover {
    color: var(--secondary);
}

.logo strong {
    color: var(--primary);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 12px;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(11, 128, 104, 0.2);
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    color: #425466;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    content: "";
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.nav-button:hover {
    color: #ffffff;
    background: var(--primary-dark);
}


/* Mobile hamburger menu button */
.menu-toggle {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: var(--secondary);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 11px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 21px;
    height: 2.5px;
    margin: 0;
    background: currentColor;
    border-radius: 3px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Show hamburger on mobile screens */
@media (max-width: 768px) {
    .header-container {
        gap: 10px;
    }

    .menu-toggle {
        display: flex;
    }
}

/* Animate hamburger into an X */
.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7.5px) rotate(-45deg);
}
