/* Modern CSS Reset */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #ec4899;
    --accent-dark: #db2777;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gray-light: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --border-radius: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.loading {
    opacity: 0;
    visibility: hidden;
}

body.loaded {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    fill: currentColor;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #475569;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary.pulse {
    animation: pulse 2s infinite;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-text {
    background: none;
    color: var(--primary);
    padding: 0;
    font-weight: 600;
}

.btn-text:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Hero Section - Modern Design */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
    padding: 100px 0;
    isolation: isolate;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:rgb(21, 4, 70);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    stroke-width: 3px;
}

.hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    text-align: left;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(90deg, #ec4899 0%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    line-height: 1.5;
    color: #ffffff;
    text-align: left;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 1rem;
}

.hero-features svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
    color: var(--accent);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.speed-widget {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.speed-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.speed-metric {
    text-align: center;
}

.speed-value-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.speed-value {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    color: white;
}

.speed-unit {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.speed-label {
    font-size: 0.9375rem;
    opacity: 0.8;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.speed-test-btn {
    width: 100%;
    position: relative;
    padding: 0.875rem 1.75rem;
}

.spinner {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.speed-test-btn.loading .spinner {
    opacity: 1;
}

.speed-test-btn.loading span {
    opacity: 0;
}

.speed-test-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin-top: 1rem;
    opacity: 0.7;
    justify-content: center;
}

.speed-test-message svg {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-hint:hover {
    opacity: 1;
}

.scroll-hint svg {
    width: 32px;
    height: 32px;
    stroke-width: 2px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .speed-widget {
        margin: 0;
    }
    
    .hero-text {
        padding-right: 2rem;
    }
}

@media (min-width: 992px) {
    .hero {
        min-height: 800px;
    }
    
    .hero-background img {
        object-position: center 30%;
    }
}

@media (max-width: 767px) {
    .hero {
        text-align: center;
        padding: 80px 0;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(2, 13, 46, 0.9) 0%,
            rgba(9, 18, 66, 0.7) 50%,
            rgba(15, 23, 85, 0.5) 100%
        );
    }
}
/* Trust Badges */
.trust-badges {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
    margin-top: -2rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--dark);
}

.trust-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e7ff;
    border-radius: 50%;
    color: var(--primary);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.125rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card.featured {
    border-top: 4px solid var(--accent);
    position: relative;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e7ff;
    border-radius: 50%;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card.featured .service-icon {
    background-color: #fce7f3;
    color: var(--accent);
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.service-features svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Coverage Section Styles */
.coverage {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.coverage .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.coverage .section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.coverage-map {
    height: 500px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.coverage-checker {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.coverage-checker h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.coverage-form .form-group {
    display: flex;
    gap: 0.5rem;
}

.coverage-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.coverage-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coverage-result .result-icon svg {
    fill: #4CAF50;
}

.coverage-result .result-content h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.coverage-result .result-content p {
    color: #666;
    margin: 0;
}

.coverage-notify {
    margin-top: 2rem;
    text-align: center;
}

.coverage-notify p {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Leaflet Map Customization */
.leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: 8px;
}

.leaflet-control-attribution {
    font-size: 9px;
}

.leaflet-popup-content {
    font-size: 14px;
}

.leaflet-popup-content h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.coverage-area-marker {
    background-color: #4CAF50;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: block;
    position: relative;
}

.coverage-area-marker::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(76, 175, 80, 0.4);
    border-radius: 50%;
    animation: pulse 2s infinite;
    top: 0;
    left: 0;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .coverage-grid {
        grid-template-columns: 1fr;
    }
    
    .coverage-map {
        height: 350px;
    }
}

/* Promo Banner */
.promo {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.promo-content {
    max-width: 800px;
    margin: 0 auto;
}

.promo-badge {
    display: inline-block;
    background-color: white;
    color: var(--accent);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.promo-cta {
    margin-top: 2rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: white;
}

.gallery-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    counter-reset: step-counter;
    margin: 3rem 0;
}

.process-step {
    position: relative;
    padding-left: 4rem;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-number::before {
    counter-increment: step-counter;
    content: counter(step-counter);
}

.process-cta {
    text-align: center;
}

/* Final CTA */
.final-cta {
    text-align: center;
    background-color: var(--dark);
    color: white;
}

.final-cta p {
    color: var(--gray-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .coverage-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .promo .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    
    .promo-cta {
        margin-top: 0;
        margin-left: 2rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Accessibility Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .hero, .promo, .trust-badges, .final-cta {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 1rem 0;
    }
    
    .btn, .scroll-hint, .hero-cta {
        display: none !important;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
}