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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #E2E8F0;
    background: linear-gradient(135deg, #0B0F14 0%, #121826 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: #CBD5E1;
}

a {
    color: #00E5FF;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: #FFC857;
    outline: 2px solid rgba(0, 229, 255, 0.5);
    outline-offset: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn:focus {
    outline: 2px solid rgba(0, 229, 255, 0.8);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #00E5FF 0%, #00B4CC 100%);
    color: #0B0F14;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00B4CC 0%, #008FA3 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.5);
    color: #00E5FF;
}

.btn-outline {
    background: transparent;
    color: #00E5FF;
    border: 2px solid #00E5FF;
}

.btn-outline:hover {
    background: #00E5FF;
    color: #0B0F14;
}

.btn-urgent {
    background: linear-gradient(135deg, #FFC857 0%, #FF8C42 100%);
    color: #0B0F14;
    box-shadow: 0 4px 15px rgba(255, 200, 87, 0.3);
}

.btn-urgent:hover {
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 200, 87, 0.4);
}

.btn-whatsapp {
    background: #25D366;
    color: #FFFFFF;
}

.btn-whatsapp:hover {
    background: #1DA851;
}

.btn-full {
    width: 100%;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(0, 229, 255, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3); }
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #E2E8F0;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: #00E5FF;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00E5FF, #FFC857);
    transition: width 0.3s ease;
}

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

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #E2E8F0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0B0F14 0%, #121826 50%, #1A202C 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 200, 87, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #A0AEC0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #CBD5E1;
}

.feature-icon {
    font-size: 1.5rem;
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00E5FF, #FFC857);
    border-radius: 2px;
}

/* KPI Band */
.kpi-band {
    padding: 2rem 0;
    margin-top: -1px;
}

.kpi-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.kpi-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00E5FF;
}

.kpi-label {
    color: #A0AEC0;
    font-size: 0.9rem;
}

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

.service-card {
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: #00E5FF;
    margin-bottom: 1rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: rgba(255, 255, 255, 0.05);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #FFFFFF;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Process Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: -3rem;
    width: 2px;
    background: linear-gradient(180deg, #00E5FF, #FFC857);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00E5FF, #00B4CC);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0B0F14;
}

.timeline-content h3 {
    color: #00E5FF;
    margin-bottom: 0.5rem;
}

/* Packages */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.package-card {
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card.featured {
    border: 2px solid #00E5FF;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
}

.package-card h3 {
    color: #00E5FF;
    margin-bottom: 1rem;
}

.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: #FFC857;
    margin-bottom: 1rem;
}

.package-card p {
    margin-bottom: 2rem;
}

.packages-note {
    text-align: center;
    color: #A0AEC0;
    font-size: 0.9rem;
}

/* Emergency */
.emergency {
    background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
    text-align: center;
}

.emergency-content h2 {
    color: #FFC857;
    margin-bottom: 1rem;
}

.emergency-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Safety */
.safety-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.safety-list {
    list-style: none;
}

.safety-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: #CBD5E1;
}

.safety-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00E5FF;
    font-weight: bold;
}

.safety-dont {
    padding: 2rem;
    border-radius: 12px;
}

.safety-dont h3 {
    color: #FFC857;
    margin-bottom: 1rem;
}

.safety-dont ul {
    list-style: none;
}

.safety-dont li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: #CBD5E1;
}

.safety-dont li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #FF6B6B;
    font-weight: bold;
}

/* Smart Home */
.smart-home {
    text-align: center;
}

.smart-home-content {
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.glow {
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #00E5FF;
}

.faq-question:focus {
    outline: 2px solid rgba(0, 229, 255, 0.5);
    outline-offset: 2px;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #00E5FF;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer[aria-hidden="false"] {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item a {
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-form {
    padding: 2rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #E2E8F0;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00E5FF;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A0AEC0;
}

.form-gdpr {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.form-gdpr input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.form-gdpr label {
    font-size: 0.9rem;
    color: #A0AEC0;
}

/* Footer */
.footer {
    background: #0B0F14;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h3,
.footer-section h4 {
    color: #00E5FF;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #CBD5E1;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #00E5FF;
}

.footer-program {
    color: #FFC857;
    font-weight: 500;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

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

.cookie-content p {
    margin: 0;
    color: #CBD5E1;
}

/* Toast */
.toast {
    position: fixed;
    top: 100px;
    right: 1rem;
    background: rgba(11, 15, 20, 0.95);
    color: #FFFFFF;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.hidden {
    transform: translateX(100%);
    opacity: 0;
}

.toast-close {
    background: none;
    border: none;
    color: #A0AEC0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    color: #FFFFFF;
}

/* Legal Pages */
.legal-page {
    padding-top: 100px;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.legal-content h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #00E5FF;
}

.legal-updated {
    text-align: center;
    color: #A0AEC0;
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    color: #00E5FF;
    border-bottom: 2px solid rgba(0, 229, 255, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.legal-section h3 {
    color: #FFC857;
    margin-bottom: 1rem;
}

.legal-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    color: #CBD5E1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .safety-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .emergency-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .toast {
        left: 1rem;
        right: 1rem;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .contact-form,
    .smart-home-content,
    .safety-dont {
        padding: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-contrast: high) {
    :root {
        filter: contrast(1.2);
    }
}

/* Focus visible for better accessibility */
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #00E5FF;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-effect {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .btn-secondary {
        border-color: rgba(255, 255, 255, 0.5);
    }
}