/* ============================================
   PRELOADER
============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loading 1.5s ease forwards;
}

@keyframes loading {
    to { width: 100%; }
}

/* ============================================
   CUSTOM CURSOR
============================================ */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-outline.hovering {
    width: 56px;
    height: 56px;
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.05);
}

/* ============================================
   HEADER
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.site-header.scrolled {
    padding: 12px 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.text-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

/* Nav */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-item > a:hover::after,
.nav-item.active > a::after {
    transform: scaleX(1);
}

.nav-item > a:hover,
.nav-item.active > a {
    color: var(--text-white);
}

/* Nav Badge */
.nav-badge {
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50px;
    margin-left: 2px;
}

/* Dropdown */
.nav-item.has-dropdown {
    position: relative;
}

.nav-item.has-dropdown > a .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--text-light);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-card);
    color: var(--text-white);
}

.dropdown-menu li a i {
    width: 36px;
    height: 36px;
    background: var(--blue-glow);
    border: 1px solid rgba(26, 108, 246, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.dropdown-menu li a div span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-white);
}

.dropdown-menu li a div small {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* Header CTA */
.header-cta {
    flex-shrink: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 8px;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 999;
    transition: right 0.4s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-inner {
    padding: 100px 24px 40px;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 30px;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-nav-list li a:hover {
    background: var(--bg-card);
    color: var(--text-white);
}

.mobile-nav-list li a i {
    width: 20px;
    color: var(--cyan);
}

.mobile-dropdown {
    padding-left: 20px;
    display: none;
}

.mobile-dropdown.active {
    display: block;
}

.mobile-dropdown li a {
    font-size: 0.85rem !important;
    padding: 8px 16px !important;
}

.arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.arrow.rotated {
    transform: rotate(180deg);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-top {
    padding: 80px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-gray);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    color: #fff;
    transform: translateY(-3px);
}

.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links li a i {
    font-size: 0.7rem;
    color: var(--cyan);
    transition: transform 0.3s ease;
}

.footer-links li a:hover {
    color: var(--cyan);
    padding-left: 4px;
}

.footer-links li a:hover i {
    transform: translateX(3px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: var(--blue-glow);
    border: 1px solid rgba(26, 108, 246, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.contact-info span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 2px;
}

.contact-info a {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--cyan);
}

/* Newsletter */
.footer-newsletter {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg-card);
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.newsletter-text p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.newsletter-form input {
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.9rem;
    width: 280px;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.newsletter-form input::placeholder {
    color: var(--text-gray);
}

/* Footer Bottom */
.footer-bottom {
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-gray);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--cyan);
}

/* ============================================
   WHATSAPP FLOAT
============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: glow-green 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes glow-green {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.7); }
}

.whatsapp-tooltip {
    position: absolute;
    right: 66px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   BACK TO TOP
============================================ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE HEADER & FOOTER
============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form input {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .header-nav,
    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        gap: 16px;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input {
        width: 100%;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .back-to-top {
        bottom: 84px;
        right: 20px;
    }
}