/* ========== NAVIGATION BAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 15, 28, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.navbar-link {
    color: #e0e6ed;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #00d4ff, #4a90e2);
    transition: width 0.3s ease;
}

.navbar-link:hover {
    color: #00d4ff;
}

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

.navbar-link.active {
    color: #00d4ff;
}

.navbar-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: #00d4ff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Styles */
@media (max-width: 992px) {
    .navbar-container {
        padding: 1rem 1.5rem;
    }

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

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 15, 28, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .navbar-link {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .navbar-logo img {
        height: 35px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #1e293b, #05080f 60%);
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(5, 8, 15, 0.8), rgba(5, 8, 15, 0.8)),
        url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2070&auto=format&fit=crop') center/cover;
    opacity: 0.4;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-align: justify;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Professional SVG Icon Container */
.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.card:hover .card-icon {
    transform: scale(1.05);
}

/* Icon color variations */
.icon-search {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
}

.icon-design {
    background: linear-gradient(135deg, #10b981, #059669);
}

.icon-training {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.icon-support {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.icon-shield {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.icon-cellular {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.icon-drone {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.icon-legal {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* Value Cards */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.light-theme .card {
    background: white;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.light-theme .card:hover {
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

/* Card titles on light background sections need dark color for contrast */
.section[style*="background: var(--color-bg-light)"] .card-title,
section[style*="background: var(--color-bg-light)"] .card-title {
    color: #0f172a;
    font-weight: 700;
}

body.light-theme .card-title {
    color: var(--color-text-dark);
}

.card-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Card text on light background sections needs darker color */
.section[style*="background: var(--color-bg-light)"] .card-text,
section[style*="background: var(--color-bg-light)"] .card-text {
    color: #334155;
    line-height: 1.6;
}

/* Feature List (Bullets) */
.feature-list {
    margin-bottom: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.feature-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Warning Banner */
.warning-banner {
    background: rgba(255, 50, 50, 0.1);
    border-left: 4px solid #ff4444;
    padding: 1rem;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: #ffcccc;
    border-radius: var(--radius-sm);
}

/* Accordion */
.accordion {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border-light);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: var(--color-bg-light);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--color-bg-light);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-check input {
    margin-top: 0.25rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2rem;
    background: var(--color-primary);
    color: white;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ========== RESPONSIVE DESIGN ========== */
/* Large Desktop (1200px+) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Landscape (992px-1199px) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 2rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* Tablet Portrait (768px-991px) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 1.5rem;
    }

    .grid-2,

    .grid-3,

    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero {
        min-height: 500px;
        padding-top: 80px;
    }

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

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-icon {
        width: 56px;
        height: 56px;
    }

    /* Mobile form improvements */
    .form-control,

    select.form-control {
        font-size: 16px;

        /* Prevents zoom on iOS */
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Accordion adjustments */
    .accordion-header {
        font-size: 1rem;
        padding: 1.25rem;
    }
}

/* Mobile (576px-767px) */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

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

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

    .section-title {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.25rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .feature-list li {
        font-size: 0.85rem;
    }

    /* Stack grid items on very small screens */
    .grid-2>*,

    .grid-3>*,

    .grid-4>* {
        margin-bottom: 1rem;
    }

    /* Accordion mobile */
    .accordion-header {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Tablet landscape improvements */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3>*:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Focus improvements for accessibility */
.btn:focus-visible,

.form-control:focus-visible,

.accordion-header:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,

    *::before,

    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .header,

    .footer,

    .btn,

    .hero-actions {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }

    .card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Link improvements */
a.text-primary:hover {
    text-decoration: underline;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.whatsapp-button:hover::before {
    opacity: 1;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
    min-width: 32px;
    /* Prevent shrinking */
    min-height: 32px;
    max-width: 32px;
    /* Prevent growing */
    max-height: 32px;
    fill: white;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover svg {
    transform: rotate(15deg);
}

/* Pulse animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-button {
    animation: whatsapp-pulse 2s infinite;
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 15, 28, 0.95);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: rgba(10, 15, 28, 0.95);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
    }

    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none;
        /* Hide tooltip on mobile */
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
    }

    .whatsapp-button svg {
        width: 26px;
        height: 26px;
    }
}

/* ========== ACCORDION ========== */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: #0a0f1c;
    /* Force dark background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: #e0e6ed;
    /* Explicit light color */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--color-primary);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.accordion-header.active {
    color: var(--color-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-header.active::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 1rem;
}