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

:root {
    /* Colors */
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --secondary-color: #00cc99;
    --accent-color: #ff6b35;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-light: #e5e7eb;
    --success-color: #10b981;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00cc99 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

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

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section__title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section__subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 48px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-fast);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-fast);
}

.nav__logo img:hover {
    transform: scale(1.05);
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

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

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

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

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ===== HERO ===== */
.hero {
    margin-top: var(--header-height);
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e5f3ff 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 204, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, -30px) rotate(120deg); }
    66% { transform: translate(30px, -20px) rotate(240deg); }
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero__title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

.hero__description {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__graphic {
    width: 500px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
}

.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 102, 204, 0.1);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fiber Animation */
.fiber-animation {
    width: 300px;
    height: 300px;
    position: relative;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fiber-line {
    position: absolute;
    width: 200px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: pulse 2s infinite ease-in-out;
}

.fiber-line:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: 0s;
}

.fiber-line:nth-child(2) {
    transform: rotate(60deg);
    animation-delay: 0.5s;
}

.fiber-line:nth-child(3) {
    transform: rotate(120deg);
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* ===== SERVICES ===== */
.services {
    background: var(--background-white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
}

.service__card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
}

.service__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.service__image {
    position: relative;
    height: 200px;
    margin: calc(-1 * var(--spacing-2xl)) calc(-1 * var(--spacing-2xl)) var(--spacing-lg);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    overflow: hidden;
}

.service__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.service__card:hover .service__image img {
    transform: scale(1.05);
}

.service__icon {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--box-shadow);
}

.service__title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.service__description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== PROCESS ===== */
.process {
    background: var(--background-light);
}

.process__timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process__step {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    align-items: flex-start;
    position: relative;
}

.process__step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 31px;
    top: 70px;
    width: 2px;
    height: calc(100% + var(--spacing-lg));
    background: var(--border-light);
}

.step__number {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-xl);
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step__content {
    flex: 1;
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-light);
}

.step__content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.step__content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: var(--background-light);
    padding: var(--spacing-3xl) 0;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
}

.testimonial__card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-normal);
}

.testimonial__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
}

.testimonial__content {
    margin-bottom: var(--spacing-lg);
}

.testimonial__content p {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--text-light);
    font-style: italic;
    position: relative;
}

.testimonial__content p::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
    opacity: 0.5;
    font-family: serif;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author__info h4 {
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
}

.author__info span {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

/* ===== STATS ===== */
.stats {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-3xl) 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
}

.stat__item {
    text-align: center;
    padding: var(--spacing-xl);
}

.stat__number {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.stat__label {
    font-size: var(--font-size-lg);
    color: white;
    opacity: 0.9;
    font-weight: 500;
}

/* ===== CTA ===== */
.cta {
    position: relative;
    color: white;
    text-align: center;
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
}

.cta__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

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

.cta__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.9) 0%, rgba(0, 204, 153, 0.8) 100%);
    z-index: 2;
}

.cta .container {
    position: relative;
    z-index: 3;
}

.cta__content {
    position: relative;
    z-index: 3;
}

.cta__title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta__description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== CONTACT ===== */
.contact {
    background: var(--background-white);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact__info h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.contact__info > p {
    color: var(--text-light);
    margin-bottom: var(--spacing-2xl);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact__item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.contact__icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ===== FORM ===== */
.contact__form {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-light);
}

.form__group {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-md);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: var(--transition-fast);
    background: white;
    outline: none;
}

.form__group input:focus,
.form__group textarea:focus {
    border-color: var(--primary-color);
}

.form__group label {
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-md);
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition-fast);
    background: white;
    padding: 0 var(--spacing-xs);
}

.form__group input:focus + label,
.form__group input:not(:placeholder-shown) + label,
.form__group textarea:focus + label,
.form__group textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--primary-color);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer__brand h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

.footer__brand p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.footer__section h4 {
    margin-bottom: var(--spacing-lg);
    color: white;
}

.footer__section ul {
    list-style: none;
}

.footer__section li {
    margin-bottom: var(--spacing-sm);
}

.footer__section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid #333;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        justify-content: start;
        padding: var(--spacing-2xl);
        transition: var(--transition-normal);
        box-shadow: var(--box-shadow-lg);
    }

    .nav__menu.show {
        left: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }

    .hero__title {
        font-size: var(--font-size-4xl);
    }

    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__graphic {
        width: 300px;
        height: 300px;
    }

    .fiber-animation {
        width: 250px;
        height: 250px;
    }

    .fiber-line {
        width: 150px;
    }

    .section__title {
        font-size: var(--font-size-3xl);
    }

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

    .contact__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

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

    .process__step {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .process__step:not(:last-child)::after {
        display: none;
    }

    .step__number {
        margin: 0 auto;
    }

    .cta__title {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero__title {
        font-size: var(--font-size-3xl);
    }

    .section__title {
        font-size: var(--font-size-2xl);
    }

    .service__card {
        padding: var(--spacing-lg);
    }

    .contact__form {
        padding: var(--spacing-lg);
    }
}