/* ==========================================================================
   LAYOUT - Header, Footer, Grid Systems
   ========================================================================== */

/* ==========================================================================
   HEADER
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: transparent;
    border-bottom: 1px solid transparent;
    padding: 1rem 0;
    transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

header.scrolled .logo {
    height: 40px;
}

header.scrolled .logo-icon {
    display: none;
}

header.scrolled .logo-full {
    display: block;
}

/* Dark nav links when scrolled */
header.scrolled .nav-links a {
    color: var(--text-secondary);
}

header.scrolled .nav-links a:not(.btn):hover {
    color: var(--primary-blue);
    background: rgba(0, 128, 255, 0.08);
}

/* Blog header - white background, sticky */
.blog-page header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
}

.blog-page header .logo {
    height: 40px;
}

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

footer {
    background: var(--dark);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column:first-child {
    flex: 1.5;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.contact-icon {
    margin-right: 12px;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Blog footer variant */
.blog-page footer {
    background: linear-gradient(135deg, #2c3e50, #1a2533);
    padding: 3rem 0 1rem;
    text-align: center;
    margin-top: 4rem;
}

.blog-page footer p {
    color: white;
    opacity: 0.7;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}
