
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navigation Container */
nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

/* Regular Menu Links — φ spacing: 13px vert × 21px horiz */
.nav-menu > li > a {
    display: block;
    padding: 13px 21px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu > li > a:hover {
    color: #007acc;
    background-color: rgba(0, 122, 204, 0.05);
}

/* Dropdown Container */
.dropdown {
    position: relative;
}

/* Dropdown Toggle — matching φ spacing */
.dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 13px 21px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 10px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dropdown Hover State */
.dropdown:hover > .dropdown-toggle {
    color: #007acc;
    background-color: rgba(0, 122, 204, 0.05);
}

.dropdown:hover > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    min-width: 240px;
    padding: 12px 0;
    margin-top: 4px;
    list-style: none;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Arrow Pointer */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

/* Dropdown Menu Items */
.dropdown-menu li {
    margin: 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Staggered Animation */
.dropdown:hover .dropdown-menu li:nth-child(1) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.dropdown:hover .dropdown-menu li:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.dropdown:hover .dropdown-menu li:nth-child(3) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.dropdown:hover .dropdown-menu li:nth-child(4) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s;
}

.dropdown:hover .dropdown-menu li:nth-child(5) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
}

/* Dropdown Links */
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Icons for Menu Items */
.dropdown-menu a::before {
    content: "🏆";
    font-size: 18px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dropdown-menu li:nth-child(2) a::before { content: "📘"; }
.dropdown-menu li:nth-child(3) a::before { content: "📦"; }
.dropdown-menu li:nth-child(4) a::before { content: "🏗️"; }
.dropdown-menu li:nth-child(5) a::before { content: "❄️"; }

/* Hover Effect on Dropdown Items */
.dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(0, 122, 204, 0.08) 0%, rgba(0, 122, 204, 0.04) 100%);
    color: #007acc;
    padding-left: 24px;
}

.dropdown-menu a:hover::before {
    transform: scale(1.2) rotate(10deg);
}

/* Mobile Responsive — φ scaled down */
@media (max-width: 768px) {
    .header-content {
        height: 56px;
    }

    .logo {
        flex: 0 0 auto;
    }

    .logo img {
        height: 34px !important;
    }

    .header-content nav {
        flex: 1;
    }

    .nav-menu {
        gap: 0;
    }

    .nav-menu > li > a,
    .dropdown-toggle {
        padding: 8px 13px;
        font-size: 13px;
    }

    .dropdown-menu {
        min-width: 200px;
    }
}

/* Header Layout — Golden Ratio (φ = 1.618)
   Logo 42px → header 68px (42 × φ)
   Logo area 38.2% : Nav area 61.8% */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex: 0 0 38.2%;
}

.header-content nav {
    flex: 0 0 61.8%;
    display: flex;
    justify-content: flex-end;
}

/* Footer Layout */
footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #64748b;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #007acc;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}
