/* Internet Fiber Italy - Fiber Internet Website Styles */
/* Internet Theme - Blue & Purple Connectivity Colors */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;900&family=Poppins:wght@400;600;700;800&display=swap');

/* CSS Variables - Internet Theme */
:root {
    /* Primary Colors - Internet & Fiber */
    --primary-blue: #0077B6;
    --primary-purple: #6B46C1;
    --primary-teal: #00B4D8;
    --accent-electric: #00D4FF;
    --accent-violet: #8B5CF6;

    /* Internet Colors */
    --fiber-blue: #0077B6;
    --fiber-purple: #6B46C1;
    --fiber-teal: #00B4D8;
    --fiber-electric: #00D4FF;

    /* Gradients for Dynamic Feel */
    --gradient-sports: linear-gradient(135deg, #0077B6 0%, #6B46C1 50%, #00D4FF 100%);
    --gradient-forest: linear-gradient(135deg, #023E8A 0%, #0077B6 50%, #6B46C1 100%);
    --gradient-nature: linear-gradient(135deg, #00B4D8 0%, #00D4FF 100%);
    --gradient-leaf: linear-gradient(135deg, #0077B6 0%, #6B46C1 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 119, 182, 0.95) 0%, rgba(107, 70, 193, 0.9) 50%, rgba(0, 212, 255, 0.85) 100%);

    /* Backgrounds */
    --bg-light: #F0F8FF;
    --bg-white: #FFFFFF;
    --bg-cream: #F8F9FF;
    --bg-dark: #1A1A2E;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Text Colors */
    --text-primary: #1A1A2E;
    --text-secondary: #4A5568;
    --text-light: #718096;
    --text-white: #FFFFFF;

    /* Shadows */
    --shadow-small: 0 2px 8px rgba(0, 119, 182, 0.1);
    --shadow-medium: 0 8px 32px rgba(0, 119, 182, 0.15);
    --shadow-large: 0 16px 64px rgba(0, 119, 182, 0.2);

    /* Borders */
    --border-light: 1px solid rgba(0, 119, 182, 0.2);
    --border-medium: 2px solid rgba(0, 119, 182, 0.3);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Navbar Height */
    --navbar-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-sports {
    background: var(--gradient-sports);
    color: var(--text-white);
    box-shadow: var(--shadow-medium);
}

.btn-sports:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-outline-white {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-outline-white:hover {
    background: var(--text-white);
    color: var(--primary-blue);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: var(--border-light);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-height);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-accent {
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-sports);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cta-nav {
    background: var(--gradient-sports);
    color: var(--text-white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    margin-left: 1rem;
}

.cta-nav:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.cta-nav::after {
    display: none;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    background: none;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    opacity: 0.7;
}

.lang-btn:hover {
    background: var(--primary-blue);
    transform: scale(1.05);
    opacity: 1;
}

.lang-btn.active {
    background: var(--gradient-sports);
    border-color: var(--primary-blue);
    opacity: 1;
    transform: scale(1.05);
}

.lang-btn .flag {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 2rem;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-large);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .cta-nav {
        margin-left: 0;
        margin-top: 1rem;
    }

    .lang-switcher {
        margin-left: 0;
        margin-bottom: 1rem;
        order: -1;
    }

    .lang-btn {
        min-width: 50px;
        padding: 0.6rem 1rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: var(--navbar-height);
    background: var(--bg-gradient);
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.energy-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    font-size: 2rem;
    animation: particlesFloat 6s infinite linear;
    opacity: 0.6;
}

@keyframes particlesFloat {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 0 0;
    text-align: left;
    color: white;
    padding: 0 2rem;
}

.hero-title {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.highlight-sports {
    background: var(--gradient-sports);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-electric);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--gradient-sports);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Internet Plans Section */
.sports-tours {
    background: var(--bg-light);
}

.tour-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tour-filter {
    background: white;
    border: var(--border-medium);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tour-filter:hover,
.tour-filter.active {
    background: var(--gradient-sports);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tour-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
    border: var(--border-light);
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.tour-card.featured {
    border: 2px solid var(--primary-blue);
    position: relative;
}

.tour-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.tour-card:hover .image-placeholder {
    transform: scale(1.1);
    transition: transform var(--transition-slow);
}

.sports-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-sports);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
}

.featured-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-electric);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
}

.tour-content {
    padding: 2rem;
}

.tour-title {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tour-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tour-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tour-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.feature {
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-label {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.price-amount {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 900;
}

.price-per {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Speed Test Section */
.destinations {
    background: white;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.destination-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: var(--border-light);
}

.destination-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.destination-image {
    height: 300px;
    position: relative;
}

.speed-test-widget {
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.speed-meter {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-blue) 0deg, var(--primary-blue) 180deg, #e2e8f0 180deg, #e2e8f0 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.speed-needle {
    position: absolute;
    width: 2px;
    height: 60px;
    background: var(--text-primary);
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    transition: transform var(--transition-slow);
}

.speed-display {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-blue);
}

.speed-test-btn {
    margin-top: 1rem;
}

.destination-content {
    padding: 2rem;
}

.destination-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.destination-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tours-count {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Benefits Section */
.training {
    background: var(--bg-light);
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.training-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-medium);
    border: var(--border-light);
    transition: all var(--transition-normal);
}

.training-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.training-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.training-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.training-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-sports);
    border-radius: 4px;
    transition: width var(--transition-slow);
}

.progress-label {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Testimonials */
.testimonials {
    background: white;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    border: var(--border-light);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
}

.author-tour {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Booking */
.cta-booking {
    background: var(--gradient-sports);
    color: white;
    padding: 5rem 0;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-text h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.booking-form-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-large);
}

.booking-form-container h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    padding: 1rem;
    border: var(--border-medium);
    border-radius: var(--radius-md);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.booking-form input:invalid,
.booking-form select:invalid {
    border-color: #E63946;
}

.booking-form input:valid,
.booking-form select:valid {
    border-color: #06A77D;
}

.booking-form textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.checkbox-label a {
    color: var(--primary-blue);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--accent-electric);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 968px) {
    .cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .cta-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 0 1rem;
        text-align: center;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
        margin-top: 1rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .tour-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .tour-filters {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .tours-grid,
    .destinations-grid,
    .training-grid,
    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}