/* Global CSS for NextNetTech */
/* Google Fonts loaded in HTML */

:root {
    /* Brand Colors */
    --clr-navy: #00205B;
    --clr-navy-dark: #001033;
    --clr-green: #54A92F;
    --clr-green-light: #6bc046;

    /* Surfaces */
    --clr-surface: #f8f9fa;
    --clr-surface-low: #f3f4f5;
    --clr-surface-high: #ffffff;
    --clr-dark: #191c1d;
    --clr-text: #444650;
    --clr-text-title: #191c1d;

    /* Utilities */
    --radius-xl: 1.5rem;
    --radius-md: 0.75rem;
    --radius-sm: 0.5rem;

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-6: 3rem;
    --space-8: 5rem;
    --space-12: 8rem;

    /* Shadows Premium */
    --shadow-sm: 0 8px 24px rgba(0, 32, 91, 0.06);
    --shadow-md: 0 16px 40px rgba(0, 32, 91, 0.12);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--clr-surface);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
.display-lg {
    font-family: 'Manrope', sans-serif;
    color: var(--clr-text-title);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: var(--space-4);
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.align-center {
    align-items: center;
}

@media (min-width: 900px) {
    .grid--2.reverse> :first-child {
        order: 2;
    }

    .grid--2.reverse> :last-child {
        order: 1;
    }
}

.section {
    padding: var(--space-8) 0;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-6);
}

.section__header h2,
.content-block h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-2);
    line-height: 1.2;
}

.bg-surface {
    background-color: var(--clr-surface);
}

.bg-low {
    background-color: var(--clr-surface-low);
}

.bg-dark {
    background-color: var(--clr-navy);
    color: #fff;
}

.bg-dark h2,
.bg-dark h3 {
    color: #fff;
}

.bg-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.text-green {
    color: var(--clr-green) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn--primary {
    background: linear-gradient(135deg, var(--clr-green) 0%, #3e881e 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(84, 169, 47, 0.4);
    border: 1px solid rgba(84, 169, 47, 0.8);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(84, 169, 47, 0.6);
}

.btn--secondary {
    background: linear-gradient(135deg, var(--clr-navy), var(--clr-navy-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 32, 91, 0.3);
}

.btn--secondary:hover {
    background: linear-gradient(135deg, #003380, var(--clr-navy));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 32, 91, 0.4);
}

.btn--glass {
    background: rgba(0, 32, 91, 0.08);
    color: var(--clr-navy);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 32, 91, 0.25);
}

.btn--glass:hover {
    background: rgba(0, 32, 91, 0.15);
    color: var(--clr-navy);
}

.btn--primary-outline {
    background: transparent;
    color: var(--clr-navy);
    border: 2px solid var(--clr-navy);
}

.btn--primary-outline:hover {
    background: var(--clr-navy);
    color: #fff;
}

.btn--full {
    width: 100%;
}

/* Header & Nav */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(25px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: var(--transition);
}

[data-theme="dark"] .header {
    background: #001033 !important;
    /* Navy oscuro sólido para contraste total */
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 32, 91, 0.15) !important;
    height: 70px !important;
}

[data-theme="dark"] .header.scrolled {
    background: #00081a !important;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    transition: var(--transition);
}

.header.scrolled .header__container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo__img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    transition: var(--transition);
}

.header.scrolled .logo__img {
    height: 36px;
}

.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__name {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--clr-navy);
    line-height: 1;
    letter-spacing: -0.5px;
}

[data-theme="dark"] .logo__name {
    color: #fff;
}

.logo__slogan {
    font-size: 0.65rem;
    color: var(--clr-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.8;
}

[data-theme="dark"] .logo__slogan {
    color: rgba(255, 255, 255, 0.7);
}

.nav__list {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 1rem !important;
    /* Espacio mínimo necesario */
    flex-wrap: nowrap !important;
    /* Prohibir cualquier salto */
}

.nav__link {
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    /* Aún más pequeño para asegurar que todo quepa en una fila */
    color: var(--clr-text-title) !important;
    position: relative;
    padding: 5px 0;
    white-space: nowrap !important;
    display: inline-block !important;
}

[data-theme="dark"] .nav__link {
    color: #fff;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--clr-green);
    border-radius: 4px;
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.active {
    color: var(--clr-navy);
}

[data-theme="dark"] .nav__link:hover,
[data-theme="dark"] .nav__link.active {
    color: #fff;
}


/* Highlighted AT&T Link */
.nav__link.text-att {
    color: var(--clr-att);
    padding: 6px 14px;
    background: rgba(0, 159, 219, 0.08);
    border-radius: 30px;
    border: 1px solid rgba(0, 159, 219, 0.15);
}

.nav__link.text-att::after {
    display: none;
}

.nav__link.text-att:hover {
    background: rgba(0, 159, 219, 0.12);
    transform: translateY(-1px);
}

.nav__close,
.nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--clr-navy);
    cursor: pointer;
}

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

.header__phone {
    font-weight: 600;
    color: var(--clr-navy);
    display: flex;
    align-items: center;
    gap: 5px;
}

.header__phone i {
    color: var(--clr-green);
}

/* Hero */
.hero {
    padding: 140px 0 var(--space-8);
    background: var(--clr-surface-low);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(84, 169, 47, 0.15) 0%, rgba(0, 32, 91, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 550px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.badge--green {
    background: rgba(84, 169, 47, 0.1);
    color: var(--clr-green);
}

.display-lg {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    margin-bottom: var(--space-2);
    line-height: 1.1;
}

.display-lg span {
    color: var(--clr-navy);
}

.body-lg {
    font-size: 1.1rem;
    color: var(--clr-text);
    margin-bottom: var(--space-4);
}

.hero__cta {
    display: flex;
    gap: var(--space-2);
}

.hero__visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    min-height: auto;
    background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-dark) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow removed to allow glass cards to be visible outside boundaries */
}

.hero__visual::after {
    content: "NNT";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Manrope';
    font-size: 8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.hero__visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 32, 91, 0.4);
    /* Overlay azul marino oscuro */
    border-radius: var(--radius-xl);
    z-index: 2;
}

.hero__ad-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-xl);
    position: relative;
    display: block;
    z-index: 1;
}

.hero__visual .glass-card {
    z-index: 2;
}

.glass-card {
    position: absolute;
    background: rgba(0, 13, 47, 0.65);
    /* Fondo oscuro translúcido para asegurar contraste total */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    box-shadow: var(--shadow-glass);
}

.glass-card h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 2px;
}

.glass-card p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.glass-card i {
    font-size: 1.8rem;
    color: var(--clr-green);
}

.gcard-1 {
    top: -20px;
    left: -40px;
}

.gcard-2 {
    bottom: 40px;
    right: -40px;
}

.pulse-indicator {
    width: 12px;
    height: 12px;
    background: var(--clr-green);
    border-radius: 50%;
    position: relative;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    background: rgba(84, 169, 47, 0.4);
    animation: ripple 2s infinite ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Plan Cards */
.plan-card {
    background: var(--clr-surface-high);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 32, 91, 0.05);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.plan-card--featured {
    border: 2px solid var(--clr-green);
    transform: scale(1.02);
}

.plan-card--featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.plan-card__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-green);
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--clr-navy);
    letter-spacing: 1px;
}

.plan-card__header h3 {
    font-size: 2.5rem;
    margin: 5px 0;
}

.plan-card__desc {
    font-size: 0.9rem;
    margin-bottom: var(--space-2);
}

.plan-card__features {
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.plan-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.plan-card__features i {
    color: var(--clr-green);
    font-weight: bold;
}

.plan-card__footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text-title);
}

.price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--clr-text);
}

/* Feature Blocks */
.content-block h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
}

.content-block p {
    font-size: 1.1rem;
    margin-bottom: var(--space-4);
}

.feature-list li {
    display: flex;
    gap: 15px;
    margin-bottom: var(--space-2);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 32, 91, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--clr-navy);
}

.visual-placeholder {
    background: linear-gradient(135deg, #e7e8e9, #f3f4f5);
    border-radius: var(--radius-xl);
    height: 300px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-icon {
    font-size: 6rem;
    color: rgba(0, 32, 91, 0.1);
}

.section__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

/* Feature Cards (Security) */
.feature-card {
    background: var(--clr-surface-high);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 32, 91, 0.05);
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
}

.feature-card__img {
    display: block;
    width: calc(100% + var(--space-4) * 2);
    height: 180px;
    margin: calc(var(--space-4) * -1) calc(var(--space-4) * -1) var(--space-3) calc(var(--space-4) * -1);
    object-fit: cover;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(84, 169, 47, 0.1);
    color: var(--clr-green);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto var(--space-2);
}

.feature-card h3 {
    margin-bottom: 10px;
}

/* Smart Home Grid */
.smart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

.smart-item {
    background: var(--clr-surface-high);
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--clr-navy);
    box-shadow: var(--shadow-sm);
}

.smart-item i {
    color: var(--clr-green);
    font-size: 1.2rem;
}

/* Bundles */
.bundle-card {
    background: var(--clr-surface-high);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 32, 91, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bundle-card__content {
    padding: var(--space-4);
    flex-grow: 1;
}

.bundle-card__content h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.bundle-card__content p {
    color: var(--clr-navy);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.check-list li {
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
}

.check-list i {
    color: var(--clr-green);
}

.bundle-card__action {
    background: var(--clr-surface-low);
    padding: var(--space-3) var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Contact Section */
.channel-link {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.channel-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.channel-link i {
    font-size: 1.5rem;
    color: var(--clr-green);
}

.channel-link span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
}

.channel-link strong {
    font-size: 1.1rem;
}

.contact-form-wrapper {
    background: var(--clr-surface-high);
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    color: var(--clr-text);
}

.contact-form h3 {
    color: var(--clr-navy);
    font-size: 1.8rem;
    margin-bottom: var(--space-3);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    background: var(--clr-surface-low);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--clr-green);
}

/* Footer */
.footer {
    background: var(--clr-navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-6) 0 0;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.logo--light .logo__name {
    color: #fff;
}

.logo--light .logo__icon {
    color: var(--clr-green);
}

.footer h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer ul a:hover {
    color: var(--clr-green);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2) 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Global Styling */
@media (max-width: 1100px) {
    .header__phone span {
        display: none;
    }

    .hero {
        padding: 120px 20px 4rem 20px;
    }

    .hero__container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        align-items: center;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__cta {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .hero__cta .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero__visual {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        margin-top: 1.5rem;
        background: transparent;
        box-shadow: none;
    }

    .hero__visual::before,
    .hero__visual::after {
        display: none;
    }

    .hero__ad-img {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 600px;
        object-fit: contain;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-md);
        margin-bottom: 1rem;
    }

    .glass-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        margin-bottom: 0.8rem;
        background: rgba(0, 13, 47, 0.9);
        justify-content: center;
    }

    .gcard-1,
    .gcard-2 {
        transform: translateY(0) !important;
    }

    .footer__container {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .logo__slogan {
        font-size: 0.5rem;
        letter-spacing: 0;
        line-height: 1.2;
    }

    .display-lg {
        font-size: 2.2rem;
        line-height: 1.15;
        padding: 0 5px;
    }

    .section__header h2,
    .content-block h2 {
        font-size: 1.8rem;
    }

    .body-lg {
        font-size: 1rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
    }

    .nav.open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }

    .nav__link {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 0.8rem;
    }

    .nav__link.btn {
        border-bottom: none;
        text-align: center;
    }

    .nav__toggle {
        display: block;
        font-size: 2rem;
        color: var(--clr-navy);
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 2.2rem;
        color: var(--clr-navy);
    }

    .footer {
        padding-top: 2rem;
    }

    .footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }

    .footer__brand {
        grid-column: 1 / -1;
        margin-bottom: 0.5rem;
    }

    .footer h4 {
        margin-bottom: 0.5rem;
    }

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

    .visual-placeholder {
        height: 220px;
    }

    .smart-grid {
        grid-template-columns: 1fr;
    }

    .plan-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }
}

/* --- ANIMATIONS & EFFECTS --- */

.section__img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.visual-placeholder:hover .section__img {
    transform: scale(1.08);
}

.hero__ad-img {
    transition: transform 10s ease-out;
}

.hero:hover .hero__ad-img {
    transform: scale(1.04);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Grids staggered animations */
.grid>.reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.grid>.reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.grid>.reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.grid>.reveal:nth-child(4) {
    transition-delay: 0.4s;
}

/* Hero Initial Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__content>* {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.hero__content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.hero__content>*:nth-child(2) {
    animation-delay: 0.2s;
}

.hero__content>*:nth-child(3) {
    animation-delay: 0.3s;
}

.hero__content>*:nth-child(4) {
    animation-delay: 0.4s;
}

.glass-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.gcard-1 {
    animation-delay: 0.6s;
}

.gcard-2 {
    animation-delay: 0.8s;
}

/* --- DARK MODE --- */
[data-theme="dark"] {
    --clr-surface: #0a0f1e;
    --clr-surface-low: #0f1628;
    --clr-surface-high: #161e32;
    --clr-text: #c8d0e0;
    --clr-text-title: #ffffff;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.5);
    background-color: var(--clr-surface);
    color: var(--clr-text);
}

/* Header */
[data-theme="dark"] .header {
    background: rgba(10, 15, 30, 0.92);
}

[data-theme="dark"] .logo:not(.logo--light) .logo__name {
    color: #ffffff;
}

[data-theme="dark"] .logo__slogan {
    color: var(--clr-text);
}

[data-theme="dark"] .nav__link {
    color: #ffffff;
}

[data-theme="dark"] .header__phone {
    color: #fff;
}

/* Mobile nav panel */
[data-theme="dark"] .nav {
    background: rgba(22, 30, 50, 0.98);
}

[data-theme="dark"] .nav__link {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav__toggle,
[data-theme="dark"] .nav__close {
    color: #fff;
}

/* Buttons */
[data-theme="dark"] .btn--primary-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

[data-theme="dark"] .btn--primary-outline:hover {
    background: #fff;
    color: var(--clr-navy);
}

[data-theme="dark"] .btn--glass {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn--glass:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Plan / Feature cards */
[data-theme="dark"] .label {
    color: #7ec8ff;
}

[data-theme="dark"] .plan-card__footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .price {
    color: #ffffff;
}

[data-theme="dark"] .price small {
    color: var(--clr-text);
}

[data-theme="dark"] .plan-card__badge {
    background: var(--clr-green);
    color: #fff;
}

/* Feature icon box */
[data-theme="dark"] .icon-box {
    background: rgba(126, 200, 255, 0.08);
    color: #7ec8ff;
}

/* Smart home items */
[data-theme="dark"] .smart-item {
    color: #ffffff;
    background: var(--clr-surface-high);
}

/* Bundle cards */
[data-theme="dark"] .bundle-card__content p {
    color: #7ec8ff;
}

[data-theme="dark"] .bundle-card__action {
    background: rgba(0, 0, 0, 0.2);
}

/* Contact */
[data-theme="dark"] .contact-form-wrapper {
    background: var(--clr-surface-high);
}

[data-theme="dark"] .contact-form h3 {
    color: #fff;
}

[data-theme="dark"] .contact-form label {
    color: #c8d0e0;
}

[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form select {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .contact-form select option {
    background: #161e32;
    color: #fff;
}

/* Visual placeholders */
[data-theme="dark"] .visual-placeholder {
    background: linear-gradient(135deg, #161e32, #0f1628);
}

[data-theme="dark"] .placeholder-icon {
    color: rgba(255, 255, 255, 0.05);
}

/* Hero */
[data-theme="dark"] .hero {
    background: var(--clr-surface-low);
}

[data-theme="dark"] .badge--green {
    background: rgba(84, 169, 47, 0.15);
    color: var(--clr-green);
}

[data-theme="dark"] .body-lg {
    color: var(--clr-text);
}

/* Nav links active/hover underline color stays green */
[data-theme="dark"] .nav__link:not(.btn):hover,
[data-theme="dark"] .nav__link.active {
    color: var(--clr-green);
}

.theme-toggle {
    background: rgba(0, 32, 91, 0.06);
    border: 1.5px solid rgba(0, 32, 91, 0.18);
    font-size: 1.3rem;
    color: var(--clr-navy);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.theme-toggle:hover {
    background: rgba(0, 32, 91, 0.12);
    transform: scale(1.08);
}

[data-theme="dark"] .theme-toggle {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* AT&T Color Tokens */
:root {
    --clr-att: #009fdb;
    --clr-att-dark: #0077b5;
}

/* AT&T Banner for Index Page - Premium Upgrade */
.att-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-radius: 2.5rem;
    border: 1px solid rgba(0, 159, 219, 0.15);
    padding: 1.5rem;
    gap: 2rem;
    box-shadow: 0 30px 60px rgba(0, 32, 91, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.att-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 159, 219, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.att-banner:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(0, 159, 219, 0.12);
}

.att-banner__content {
    flex: 1.2;
    padding: 2.5rem;
    z-index: 1;
}

.att-banner__image {
    flex: 1;
    align-self: stretch;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.att-banner__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.att-banner:hover .att-banner__image img {
    transform: scale(1.05);
}

.att-badge {
    background: var(--clr-att);
    color: #fff;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 159, 219, 0.3);
}

.att-logo-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.att-logo-flex i {
    font-size: 3rem;
    color: var(--clr-att);
}

.att-logo-flex h3 {
    font-size: 2.2rem;
    color: var(--clr-navy);
    font-weight: 800;
}

.att-logo-flex h3 strong {
    color: var(--clr-att);
}

.att-mini-features {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.att-mini-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text-title);
}

.att-mini-features i {
    color: var(--clr-att);
    font-size: 1.3rem;
}

.att-banner__actions {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2rem;
}

.btn--att {
    background: linear-gradient(135deg, var(--clr-att) 0%, var(--clr-att-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 159, 219, 0.35);
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn--att:hover {
    box-shadow: 0 15px 35px rgba(0, 159, 219, 0.5);
    transform: translateY(-3px);
}

.att-pricing-start {
    font-size: 1rem;
    font-weight: 500;
    color: var(--clr-text);
}

.att-pricing-start strong {
    font-size: 2rem;
    color: var(--clr-navy);
    margin: 0 5px;
}

/* -------------------- Dark Mode AT&T -------------------- */
[data-theme="dark"] .att-banner {
    background: linear-gradient(135deg, #101930 0%, #161e32 100%);
    border-color: rgba(0, 159, 219, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .att-logo-flex h3,
[data-theme="dark"] .att-pricing-start strong {
    color: #fff;
}

[data-theme="dark"] .att-mini-features li {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .btn--att {
    box-shadow: 0 10px 25px rgba(0, 159, 219, 0.2);
}

nav#nav {
    padding: 8px;
    border-radius: 3px;
}

/* -------------------- Responsive AT&T -------------------- */
@media (max-width: 1100px) {
    .att-banner {
        flex-direction: column;
        padding: 1rem;
        border-radius: 2rem;
    }

    .att-banner__image {
        width: 100%;
        height: 250px;
        order: -1;
    }

    .att-banner__content {
        padding: 1.5rem;
        text-align: center;
    }

    .att-mini-features {
        justify-content: center;
    }

    .att-banner__actions {
        flex-direction: column;
        gap: 1rem;
    }
}

/* -------------------- Mobile Header Fixes -------------------- */
@media (max-width: 1100px) {
    .header__container {
        height: 70px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 2000;
    }

    .nav.open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav__link {
        font-size: 1.5rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
    }

    .nav__toggle {
        display: block;
    }

    [data-theme="dark"] .nav {
        background: rgba(10, 15, 30, 0.98);
    }

    [data-theme="dark"] .nav__link {
        color: #fff;
    }
}