/**
 * USIFDA Shared Header and Footer Styles
 * Ensures uniform appearance across all pages
 */

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-hexagons {
    display: flex;
    position: relative;
    width: 65px;
    height: 60px;
}

.hex {
    width: 24px;
    height: 28px;
    position: absolute;
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    transition: all 0.4s ease;
    opacity: 0.9;
    animation: hexFloat 6s ease-in-out infinite;
}

.hex-1 { 
    background: #ef4444; 
    left: 12px; 
    top: 0; 
    animation-delay: 0s;
}
.hex-2 { 
    background: #84cc16; 
    left: 32px; 
    top: 0; 
    animation-delay: 0.5s;
}
.hex-3 { 
    background: #2563eb; 
    left: 2px; 
    top: 20px; 
    animation-delay: 1s;
}
.hex-4 { 
    background: #fb923c; 
    left: 42px; 
    top: 20px; 
    animation-delay: 1.5s;
}
.hex-5 { 
    background: #6b7280; 
    left: 12px; 
    bottom: 0; 
    animation-delay: 2s;
}
.hex-6 { 
    background: #60a5fa; 
    left: 32px; 
    bottom: 0; 
    animation-delay: 2.5s;
}

@keyframes hexFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        filter: brightness(1);
    }
    50% { 
        transform: translateY(-3px) scale(1.05); 
        filter: brightness(1.2);
    }
}

.logo:hover .hex {
    transform: scale(1.15);
    filter: brightness(1.3);
}

.logo:hover .hex-1 { transform: translate(-2px, -2px) scale(1.15); }
.logo:hover .hex-2 { transform: translate(2px, -2px) scale(1.15); }
.logo:hover .hex-3 { transform: translate(-2px, 0) scale(1.15); }
.logo:hover .hex-4 { transform: translate(2px, 0) scale(1.15); }
.logo:hover .hex-5 { transform: translate(-2px, 2px) scale(1.15); }
.logo:hover .hex-6 { transform: translate(2px, 2px) scale(1.15); }

.logo-text {
    color: white;
}

.logo-text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    white-space: nowrap;
    line-height: 1;
}

.logo-text h1 a {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
}

.logo-text h1 .nz {
    color: #fff;
}

.logo-text h1 .if {
    color: #dc2626;
}

.logo-text h1 .da {
    color: #3b82f6;
}

.logo-text span {
    font-size: 0.7rem;
    opacity: 0.9;
    text-transform: none;
    letter-spacing: 0.05em;
    font-weight: 400;
    display: block;
    margin-top: 0.2rem;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.95rem;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--danger);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--danger);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--danger);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

@media (max-width: 767px) {
    .header {
        height: auto;
        min-height: 70px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-container {
        padding: 1rem;
    }
}

/* Footer Styles */
.footer {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--danger);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

.footer-bottom a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

