/* Variables */
:root {
    --quality-blue: #0066CC;
    --problem-red: #DC143C;
    --stable-green: #00CC66;
    --neutral-gray: #F5F5F5;
    --research-purple: #8A2BE2;
    --dark-bg: #1a1a2e;
    --text-dark: #2C3E50;
    --text-light: #ffffff;
    --font-system: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-tech: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-system);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease-out;
}

.cookie-consent.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-accept, .btn-decline {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accept {
    background: var(--stable-green);
    color: white;
}

.btn-accept:hover {
    background: #00b359;
    transform: translateY(-2px);
}

.btn-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-decline:hover {
    background: rgba(255,255,255,0.1);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--quality-blue);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-tech);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--quality-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--quality-blue);
}

.nav-link:hover::after {
    width: 100%;
}

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

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--quality-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    padding: 100px 0;
    position: relative;
    background: linear-gradient(135deg, var(--quality-blue) 0%, var(--research-purple) 100%);
    color: white;
    overflow: hidden;
}

.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,0.03) 50px, rgba(255,255,255,0.03) 100px),
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,0.03) 50px, rgba(255,255,255,0.03) 100px);
    animation: waveMove 20s linear infinite;
}

@keyframes waveMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 50px;
    opacity: 0.95;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.metric-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

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

.metric-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.metric-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-tech);
    display: block;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--neutral-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--quality-blue);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Diagnostics Section */
.diagnostics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.diagnostic-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.diagnostic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,102,204,0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--quality-blue);
}

.diagnostic-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.diagnostic-card p {
    color: #666;
    margin-bottom: 20px;
}

.signal-bars {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    justify-content: center;
    height: 80px;
    margin-top: 20px;
}

.signal-bars .bar {
    width: 30px;
    background: var(--neutral-gray);
    border-radius: 5px;
    height: var(--height);
    transition: all 0.3s ease;
}

.signal-bars .bar.active {
    background: var(--stable-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.interference-meter {
    position: relative;
    height: 30px;
    background: var(--neutral-gray);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
}

.meter-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--stable-green), var(--quality-blue));
    animation: meterPulse 3s ease-in-out infinite;
}

@keyframes meterPulse {
    0%, 100% { width: 25%; }
    50% { width: 30%; }
}

.meter-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 0.9rem;
}

.tower-count {
    text-align: center;
    margin-top: 20px;
}

.count-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--quality-blue);
    font-family: var(--font-tech);
}

.count-label {
    font-size: 0.9rem;
    color: #666;
}

/* Coverage Section */
.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.coverage-map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.coverage-image {
    width: 100%;
    height: auto;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
}

.map-legend h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.coverage-features {
    list-style: none;
}

.coverage-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.coverage-features svg {
    width: 24px;
    height: 24px;
    stroke: var(--stable-green);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Speed Test Section */
.speed-test-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.speed-gauge-container {
    text-align: center;
}

.speed-gauge {
    position: relative;
    margin-bottom: 40px;
}

.gauge-svg {
    width: 100%;
    max-width: 300px;
}

.gauge-fill {
    transition: stroke-dashoffset 1.5s ease;
}

.gauge-value {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.speed-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--quality-blue);
    font-family: var(--font-tech);
}

.speed-unit {
    font-size: 1.2rem;
    color: #666;
}

.btn-test {
    padding: 15px 40px;
    background: var(--quality-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-test:hover {
    background: #0052a3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,102,204,0.3);
}

.btn-test:active {
    transform: translateY(-1px);
}

.speed-results {
    display: grid;
    gap: 20px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.result-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-gray);
    border-radius: 50%;
}

.result-content {
    flex: 1;
}

.result-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--quality-blue);
    font-family: var(--font-tech);
}

/* Technologies Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.tech-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.tech-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.tech-content {
    padding: 30px;
}

.tech-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--quality-blue);
}

.tech-content p {
    color: #666;
    line-height: 1.7;
}

/* Solutions Section */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.solution-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(138,43,226,0.2);
}

.solution-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0,102,204,0.1);
    font-family: var(--font-tech);
}

.solution-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--research-purple);
}

.solution-card > p {
    color: #666;
    margin-bottom: 20px;
}

.solution-benefits {
    list-style: none;
    margin-top: 20px;
}

.solution-benefits li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
    color: #555;
    font-size: 0.95rem;
}

.solution-benefits li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--quality-blue);
    font-weight: 700;
}

/* Comparison Section */
.comparison-table-wrapper {
    overflow-x: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.comparison-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    font-family: var(--font-tech);
}

.comparison-table thead {
    background: var(--quality-blue);
    color: white;
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.comparison-table tbody tr:hover {
    background: var(--neutral-gray);
}

.score {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.score.excellent {
    background: rgba(0,204,102,0.15);
    color: var(--stable-green);
}

.score.good {
    background: rgba(0,102,204,0.15);
    color: var(--quality-blue);
}

.score.fair {
    background: rgba(138,43,226,0.15);
    color: var(--research-purple);
}

.comparison-note {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-style: italic;
}

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

.dashboard-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.dashboard-card h4 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--quality-blue);
    font-size: 1.2rem;
}

.progress-ring {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-circle {
    transition: stroke-dashoffset 1s ease;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--quality-blue);
    font-family: var(--font-tech);
}

.progress-value::after {
    content: '%';
    font-size: 1.5rem;
}

.congestion-bars {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    justify-content: space-between;
    height: 150px;
}

.cong-bar {
    flex: 1;
    background: linear-gradient(to top, var(--quality-blue), var(--research-purple));
    border-radius: 5px 5px 0 0;
    height: var(--fill);
    position: relative;
    transition: height 0.5s ease;
}

.cong-bar span {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #666;
}

.cong-bar:hover {
    opacity: 0.8;
}

.tech-distribution {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tech-label {
    width: 40px;
    font-weight: 600;
    font-family: var(--font-tech);
}

.bar-bg {
    flex: 1;
    height: 30px;
    background: var(--neutral-gray);
    border-radius: 15px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    transition: width 1s ease;
}

.tech-percent {
    width: 50px;
    text-align: right;
    font-weight: 600;
    font-family: var(--font-tech);
}

/* Research Section */
.research-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.research-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.research-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.research-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--research-purple);
}

.research-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--quality-blue);
    margin-bottom: 15px;
}

.contact-info > p {
    color: #666;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-item {
    display: flex;
    gap: 20px;
}

.detail-item svg {
    width: 30px;
    height: 30px;
    stroke: var(--quality-blue);
    flex-shrink: 0;
}

.detail-item h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.detail-item p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

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

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

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

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--quality-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,102,204,0.3);
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(0,204,102,0.15);
    color: var(--stable-green);
    display: block;
}

.form-message.error {
    background: rgba(220,20,60,0.15);
    color: var(--problem-red);
    display: block;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.map-container iframe {
    display: block;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 50px;
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--quality-blue);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--quality-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .coverage-content,
    .speed-test-wrapper,
    .contact-wrapper,
    .research-item {
        grid-template-columns: 1fr;
    }

    .comparison-table-wrapper {
        overflow-x: scroll;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .diagnostics-grid,
    .tech-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .research-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 360px) {
    body {
        min-width: 360px;
    }
}