:root {
    --primary-color: #faa21a;
    --secondary-color: #0094da;
    --accent-color: #0a111b;
    --background-color: #ffffff;
    --text-color: #000000;
    --light-gray: #f4f4f4;
    
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.1em; /* Extended tracking */
    text-transform: uppercase;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--accent-color);
}

.bg-light {
    background-color: var(--light-gray);
}

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

.bg-dark .section-title {
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: #e59110;
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--accent-color);
}

.nav-list a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Needed for absolute positioning of video */
    overflow: hidden;
    text-align: center;
    color: #fff;
    padding-top: 80px; /* Header height */
    background-color: var(--accent-color); /* Fallback/Fade background */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: opacity 1.5s ease-in-out; /* Smooth fade transition */
    opacity: 1;
}

.hero-video.fade-out {
    opacity: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 17, 27, 0.6); /* Dark overlay for text contrast */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.hero-content.fade-out {
    opacity: 0;
}

.hero-title {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
}

/* Service Item Animation */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item-anim {
    opacity: 0; /* Start hidden */
    animation: slideUpFade 0.6s ease-out forwards;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Speedtest Widget */
.speedtest-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px auto 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05); /* Slight background for container */
    border-radius: 12px;
    max-width: 500px;
}

.gauge-container {
    width: 150px;
    position: relative;
}

.gauge-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.speed-text-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative; /* For arrow positioning context if needed */
}

.arrows-container {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    fill: #444; /* Inactive color */
    transition: fill 0.3s, transform 0.3s;
}

.arrow-icon.active {
    fill: var(--primary-color);
    transform: scale(1.2);
}

/* Searching / Found Animation */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

.radar-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-text {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 300;
}

.found-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.found-text {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.provider-name {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.speed-display {
    text-align: left;
    display: flex;
    align-items: baseline; /* Align text baselines */
    gap: 10px;
}

.speed-value {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    font-family: var(--font-heading);
    line-height: 1;
    min-width: 110px; /* Prevent jitter layout shift */
    text-align: right;
}

@keyframes slideInUnit {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.speed-unit {
    font-size: 1.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: slideInUnit 0.5s ease-out forwards;
    animation-delay: 1.5s; /* Wait for widget to appear */
    opacity: 0; /* Start hidden */
}

.test-phase {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: bold;
}

.metrics-grid {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.metric-item {
    text-align: center;
}

.metric-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(250, 162, 26, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(250, 162, 26, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(250, 162, 26, 0);
    }
}

.restart-btn {
    background: var(--primary-color);
    border: none;
    color: var(--accent-color); /* Dark text for contrast */
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s, background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-orange 2s infinite;
}

.restart-btn:hover {
    background: #e59110;
    transform: scale(1.05);
    animation: none; /* Stop pulse on hover */
    box-shadow: 0 5px 15px rgba(250, 162, 26, 0.4);
}

.gauge-needle {
    transform-origin: 100px 100px; /* Center of the arc */
    transition: transform 0.1s linear; /* Quick smooth movement for jitter */
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Clients Slider */
.clients-slider {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.clients-track {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.clients-track img {
    height: 60px;
    margin: 0 40px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s;
}

.clients-track img:hover {
    transform: scale(1.1);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Photo Studio (Gallery) */
.gallery-carousel {
    position: relative;
    height: 500px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track-container {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 500ms ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    gap: 10px;
}

.carousel-indicator {
    border: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.carousel-indicator.current-slide {
    background: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--accent-color);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1); /* Make logo white if needed */
}

.footer-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-social a {
    display: block;
    margin-bottom: 10px;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

/* FAB */
.whatsapp-btn {
    position: fixed;
    bottom: 60px;
    right: 30px;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.section, .footer, .hero {
    position: relative;
    z-index: 1;
}

/* Plans Section */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-header {
    background-color: var(--accent-color);
    color: #fff;
    padding: 30px;
    text-align: center;
}

.plan-header h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--primary-color);
}

.plan-icon {
    font-size: 3rem;
    margin-top: 10px;
}

.plan-list {
    padding: 30px;
    flex-grow: 1;
}

.plan-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.plan-list li:last-child {
    border-bottom: none;
}

.plan-speed {
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    flex-direction: column;
}

.plan-note {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
    margin-top: 2px;
}

.plan-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    white-space: nowrap;
}

/* Child Protection Policy */
.protection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.w-100 {
    width: 100%;
}

.contact-socials {
    padding: 20px 0;
}

.contact-socials h3 {
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.contact-socials p {
    margin-bottom: 30px;
    color: #555;
}

.social-links-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-card {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.social-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.social-card.whatsapp:hover { border-left: 4px solid #25D366; }
.social-card.facebook:hover { border-left: 4px solid #1877F2; }
.social-card.instagram:hover { border-left: 4px solid #E4405F; }

/* Map Section */
.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

/* Responsive adjustment for plans */
@media (max-width: 400px) {
    .plan-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .plan-price {
        align-self: flex-end;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .protection-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease-out;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav.active {
        height: auto;
        padding: 20px 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }

    .gallery-carousel {
        height: 300px;
    }
}