/*
 * ================================================================
 * SEQUR.CA - FINAL POLISH & MISSING COMPONENTS
 * Adds all missing styles identified in comprehensive analysis
 * ================================================================
 */

/* ====================================
   SECTION DIVIDERS (Previously Missing)
   ==================================== */

.section-divider {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff 0%, #00ff88 100%);
    border-radius: 2px;
}

.section-divider h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #00d4ff !important;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Ensure products section is fully visible */
#products h1,
#products h3,
#products h4 {
    color: #f8fafc !important;
}

#products .section-divider h3 {
    color: #00d4ff !important;
}

#products p {
    color: rgba(248, 250, 252, 0.85) !important;
}

#products .service-item h4 {
    color: #f8fafc !important;
}

#products .service-item p {
    color: rgba(248, 250, 252, 0.85) !important;
}

#products .btn {
    color: #0a0e1a !important;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%) !important;
}

/* Product images styling */
#products .product-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    margin-bottom: 1rem;
}

#products .product-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

#products .service-item:hover .product-image img {
    transform: scale(1.05);
}

/* ====================================
   TAB NAVIGATION (Dark Theme)
   ==================================== */

.nav-tabs {
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    color: rgba(248, 250, 252, 0.65);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tabs .nav-link:hover {
    color: #00d4ff;
    border-bottom-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.05);
}

.nav-tabs .nav-link.active {
    color: #f8fafc;
    background: rgba(0, 212, 255, 0.1);
    border-bottom-color: #00d4ff;
    box-shadow: 0 2px 12px rgba(0, 212, 255, 0.2);
}

.tab-content {
    padding: 2rem 0;
}

.tab-pane p {
    color: rgba(248, 250, 252, 0.85);
    line-height: 1.8;
    font-size: 1rem;
}

/* ====================================
   MODAL STYLING (Dark Theme)
   ==================================== */

.modal-content {
    background: #111827;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    color: #0a0e1a;
    border-bottom: none;
    padding: 1.5rem 2rem;
    border-radius: 16px 16px 0 0;
}

.modal-header .modal-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0a0e1a;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
    color: rgba(248, 250, 252, 0.85);
    background: #111827;
}

.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4,
.modal-body h5,
.modal-body h6 {
    color: #f8fafc;
    margin-bottom: 1rem;
}

.modal-body p {
    color: rgba(248, 250, 252, 0.85);
    line-height: 1.7;
}

.modal-footer {
    background: #111827;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    padding: 1.5rem 2rem;
    border-radius: 0 0 16px 16px;
}

/* ====================================
   FORM ELEMENTS (Dark Theme)
   ==================================== */

input,
textarea,
select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(248, 250, 252, 0.4);
}

input:focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00d4ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

/* Light background forms (modals, white sections) */
.bg-white input,
.bg-white textarea,
.bg-white select,
.bg-light input,
.bg-light textarea,
.bg-light select {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #1f2937;
}

.bg-white input:focus,
.bg-white textarea:focus,
.bg-white select:focus,
.bg-light input:focus,
.bg-light textarea:focus,
.bg-light select:focus {
    background: #ffffff;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-label {
    color: rgba(248, 250, 252, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.bg-white .form-label,
.bg-light .form-label {
    color: #1f2937;
}

/* ====================================
   BUTTON VARIANTS (All Missing Ones)
   ==================================== */

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #f8fafc;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #00ff88 0%, #00cc77 100%);
    color: #0a0e1a;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #00cc77 0%, #00aa66 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #f8fafc;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0a0e1a;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #0a0e1a;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0099cc 0%, #0077aa 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* ====================================
   BADGE VARIANTS (Missing Ones)
   ==================================== */

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #f8fafc;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0a0e1a;
}

.badge.bg-info {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #0a0e1a;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #f8fafc;
}

/* ====================================
   UTILITY CLASSES (Previously Missing)
   ==================================== */

.text-gradient-success {
    background: linear-gradient(135deg, #00ff88 0%, #00cc77 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #1a202e 100%);
}

.bg-gradient-cyber {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4),
                0 0 40px rgba(0, 212, 255, 0.2);
}

.shadow-glow-green {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4),
                0 0 40px rgba(0, 255, 136, 0.2);
}

.shadow-glow-purple {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4),
                0 0 40px rgba(168, 85, 247, 0.2);
}

.border-glow {
    border: 2px solid #00d4ff;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.border-glow-green {
    border: 2px solid #00ff88;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}

/* ====================================
   IMPROVED FOCUS STATES
   ==================================== */

button:focus-visible,
a:focus-visible {
    outline: 3px solid #00d4ff;
    outline-offset: 3px;
    border-radius: 8px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.btn:focus-visible {
    outline: 3px solid #00d4ff;
    outline-offset: 3px;
}

/* ====================================
   NAVBAR ACTIVE STATE (Missing)
   ==================================== */

.nav-link.active {
    color: #00d4ff;
    font-weight: 700;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff 0%, #00ff88 100%);
    border-radius: 2px;
}

/* ====================================
   FOOTER ENHANCEMENTS
   ==================================== */

.footer h5,
.footer h6 {
    color: #f8fafc;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after,
.footer h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff 0%, #00ff88 100%);
    border-radius: 2px;
}

.footer a {
    color: rgba(248, 250, 252, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer a:hover {
    color: #00d4ff;
    padding-left: 8px;
}

.footer a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.footer a:hover::before {
    width: 4px;
}

.footer p {
    color: rgba(248, 250, 252, 0.75);
    line-height: 1.8;
}

/* ====================================
   LANGUAGE SWITCHER STYLING
   ==================================== */

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.language-switcher a:hover img {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 212, 255, 0.3);
}

/* ====================================
   IMPROVED STATS/COUNTER SECTION
   ==================================== */

.facts .counter {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: 1.2;
}

.facts h2:not(.counter) {
    color: #f8fafc;
}

.facts p {
    color: rgba(248, 250, 252, 0.85);
}

.facts span {
    color: rgba(248, 250, 252, 0.85);
}

/* ====================================
   CAROUSEL IMPROVEMENTS
   ==================================== */

.carousel-caption {
    background: linear-gradient(to top, rgba(10, 14, 26, 0.9) 0%, rgba(10, 14, 26, 0.4) 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.carousel-caption h1 {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.carousel-caption p {
    color: rgba(248, 250, 252, 0.9);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
}

/* ====================================
   IMPROVED HOVER EFFECTS
   ==================================== */

.service-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2),
                0 0 20px rgba(0, 212, 255, 0.1);
}

.feature-box {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-box:hover i {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 16px rgba(0, 212, 255, 0.5));
}

/* ====================================
   RESPONSIVE OPTIMIZATIONS
   ==================================== */

@media (max-width: 768px) {
    .section-divider h3 {
        font-size: 1.5rem;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }

    .carousel-caption {
        padding: 2rem 1rem;
    }

    .footer h5::after,
    .footer h6::after {
        width: 40px;
    }
}

/* ====================================
   PRINT STYLES (Optimized)
   ==================================== */

@media print {
    .navbar,
    .footer,
    .btn,
    #particles-js,
    .cookie-consent-banner {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }

    p {
        color: black;
    }

    .service-item,
    .feature-box {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    /* Preserve logo colors */
    .navbar-brand,
    .footer img {
        filter: none;
    }
}

/* ====================================
   ACCESSIBILITY IMPROVEMENTS
   ==================================== */

@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: rgba(255, 255, 255, 0.95);
    }

    button,
    .btn {
        border: 2px solid currentColor;
    }
}

@media (prefers-color-scheme: light) {
    /* Optional: Light mode support for future */
    /* Currently designed for dark theme only */
}

/* ====================================
   PERFORMANCE HINTS
   ==================================== */

.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerate {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ====================================
   END FINAL POLISH
   ==================================== */
