/* ============================================
   PUBLIC HEADER & FOOTER DARK THEME
   Triple A-Tech
   ============================================ */

/* ===== MAIN HEADER ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    background: rgba(10, 14, 20, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* ===== LOGO ===== */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-icon {
    color: #3498db;
    transition: all 0.3s ease;
}

.logo-link:hover .logo-icon {
    filter: drop-shadow(0 0 12px rgba(52, 152, 219, 0.6));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== MAIN NAV ===== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav .nav-link {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.main-nav .nav-link.active {
    color: #3498db;
}

.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: #3498db;
    border-radius: 2px;
}

/* Contact Button */
.main-nav .contact-btn {
    margin-left: 0.5rem;
    padding: 0.5rem 1.2rem !important;
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 50px !important;
    color: #5dade2 !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.main-nav .contact-btn:hover {
    background: rgba(52, 152, 219, 0.25) !important;
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.2);
}

.main-nav .contact-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.main-nav .contact-btn:hover i {
    transform: translateX(3px);
}

/* ===== MOBILE TOGGLE ===== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-nav-overlay.open {
    pointer-events: all;
    opacity: 1;
}

.mobile-nav-bg {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-nav-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1.5rem;
    z-index: 1;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #3498db;
}

.mobile-nav-link.contact-link {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 50px;
    color: #ffffff !important;
    font-size: 1rem;
}

/* ===== MAIN FOOTER ===== */
.main-footer {
    background: #0a0e14;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 1.5rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-brand-col p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #3498db;
}

.footer-brand-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-brand-tag {
    display: block;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: #3498db;
    padding-left: 0.3rem;
}

.footer-col a i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== ADMIN LOGIN BUTTON ===== */
.footer-admin-row {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1.5rem;
}

.footer-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.footer-admin-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
    color: #5dade2;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.15);
}

.footer-admin-btn i:first-child {
    font-size: 0.7rem;
}

.footer-admin-btn i:last-child {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.footer-admin-btn:hover i:last-child {
    transform: translateX(3px);
}

/* ===== RESPONSIVE HEADER & FOOTER ===== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}