/* ===== Custom Styles for Maximum Wireless ===== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(65, 87, 154, 0.15) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(245, 197, 24, 0.15);
    top: 20%;
    left: 45%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-rect-2 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(245, 197, 24, 0.1);
    bottom: 25%;
    right: 15%;
    transform: rotate(20deg);
    animation: spin-slow 15s linear infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(245, 197, 24, 0.06);
    top: 40%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
}

.shape-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(245, 197, 24, 0.2) 1px, transparent 1px);
    background-size: 12px 12px;
    top: 60%;
    left: 10%;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Navbar ===== */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(6, 10, 19, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(245, 197, 24, 0.1);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu toggle animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuToggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuToggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
    margin: 0;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0), transparent);
    transition: background 0.4s ease;
}

.service-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.6), transparent);
}

/* ===== Phone Cards ===== */
.phone-card {
    position: relative;
}

/* ===== Scroll Reveal Animations ===== */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* JS-gated: hide initially, then reveal on scroll */
.js .reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.js .reveal-delay-1 { transition-delay: 0.1s; }
.js .reveal-delay-2 { transition-delay: 0.2s; }
.js .reveal-delay-3 { transition-delay: 0.3s; }
.js .reveal-delay-4 { transition-delay: 0.4s; }
.js .reveal-delay-5 { transition-delay: 0.5s; }
.js .reveal-delay-6 { transition-delay: 0.6s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal,
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .geo-shape { animation: none; }
    .shape-rect-1, .shape-rect-2 { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .shape-circle-1 { width: 300px; height: 300px; }
    .shape-circle-2 { width: 200px; height: 200px; }
    .shape-rect-1, .shape-rect-2, .shape-triangle { display: none; }
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(245, 197, 24, 0.3);
    color: #fff;
}
