/*
 * ================================================================
 * SEQUR.CA - ENHANCED DESIGN SYSTEM
 * Modern, Clean, High-Quality Design for Cybersecurity Excellence
 * ================================================================
 */

/* ====================================
   TYPOGRAPHY SYSTEM - DISTINCTIVE FONTS
   ==================================== */

/* Import modern, distinctive fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Sora:wght@300;400;600;700;800&display=swap');

:root {
    /* Enhanced Color Palette - Cyber Security Theme */
    --primary-cyber: #00d4ff;
    --primary-deep: #0099cc;
    --primary-dark: #006b8f;
    --accent-electric: #00ff88;
    --accent-purple: #a855f7;
    --accent-warning: #ff6b35;

    /* Neutral Grays - Premium */
    --gray-50: #fafbfc;
    --gray-100: #f4f6f8;
    --gray-200: #e5e9ed;
    --gray-300: #cbd2d9;
    --gray-400: #9aa5b1;
    --gray-500: #7b8794;
    --gray-600: #616e7c;
    --gray-700: #52606d;
    --gray-800: #3e4c59;
    --gray-900: #1f2933;
    --gray-950: #0d1117;

    /* Dark Theme Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1a202e;
    --bg-elevated: #1e293b;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: rgba(248, 250, 252, 0.75);
    --text-tertiary: rgba(248, 250, 252, 0.55);

    /* Shadows - Elevated */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.16);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.24);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.32);
    --shadow-glow: 0 0 24px rgba(0, 212, 255, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography Scale */
    --font-display: 'Sora', -apple-system, system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* Enhanced Typography */
body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary) !important;
}

/* Ensure section titles are always visible */
.container-xxl h1,
.container-xxl h2,
.container h1,
.container h2 {
    color: var(--text-primary) !important;
}

.display-1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.display-2 { font-size: clamp(2rem, 5vw, 4rem); }
.display-3 { font-size: clamp(1.75rem, 4vw, 3.5rem); }
.display-4 { font-size: clamp(1.5rem, 3.5vw, 3rem); }
.display-5 { font-size: clamp(1.25rem, 3vw, 2.5rem); }

/* Code/Mono elements */
code, kbd, pre, samp {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* ====================================
   ENHANCED HERO SECTION
   ==================================== */

.carousel-caption {
    background: linear-gradient(
        to top,
        rgba(10, 14, 26, 0.95) 0%,
        rgba(10, 14, 26, 0.85) 50%,
        rgba(10, 14, 26, 0.4) 100%
    );
    backdrop-filter: blur(8px);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-2xl);
    left: 5%;
    right: 5%;
    bottom: 8%;
}

.carousel-caption h1 {
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--primary-cyber) 0%, var(--accent-electric) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-lg);
}

.carousel-caption p {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(12px);
}

/* ====================================
   ENHANCED BUTTONS
   ==================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyber) 0%, var(--primary-deep) 100%);
    border: none;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    box-shadow:
        0 4px 16px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-outline-primary {
    border: 2px solid var(--primary-cyber);
    color: var(--primary-cyber);
    background: transparent;
    font-family: var(--font-display);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-cyber);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline-primary:hover::before {
    width: 100%;
}

.btn-outline-primary:hover {
    color: var(--bg-primary);
    border-color: var(--primary-cyber);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

/* ====================================
   ENHANCED CARDS & SERVICE ITEMS
   ==================================== */

.service-item {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyber), var(--accent-electric));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-item h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

.service-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====================================
   ENHANCED FEATURE BOXES
   ==================================== */

.feature-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.3s ease;
    position: relative;
}

.feature-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 255, 136, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-box:hover::after {
    opacity: 1;
}

.feature-box i {
    color: var(--primary-cyber);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.3));
}

.feature-box h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-bottom: var(--space-sm);
}

.feature-box span,
.feature-box p {
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Fix About section features */
.border.rounded .d-flex h4 {
    color: var(--text-primary) !important;
}

.border.rounded .d-flex span {
    color: var(--text-secondary) !important;
}

/* ====================================
   ENHANCED STATS/FACTS SECTION
   ==================================== */

.facts {
    background: linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #1a202e 100%);
    position: relative;
    overflow: hidden;
}

.facts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 136, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.facts .counter {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-cyber), var(--accent-electric));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.facts i {
    color: var(--primary-cyber);
    filter: drop-shadow(0 4px 16px rgba(0, 212, 255, 0.4));
}

.facts p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* ====================================
   ENHANCED NAVBAR
   ==================================== */

.navbar {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.navbar-brand h1 {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--primary-cyber), var(--accent-electric));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-cyber);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-link:hover {
    color: var(--primary-cyber);
}

/* ====================================
   ENHANCED FOOTER
   ==================================== */

.footer-section h5,
.footer-section h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.footer-section h5::after,
.footer-section h6::after {
    background: linear-gradient(90deg, var(--primary-cyber), transparent);
    height: 3px;
    width: 60px;
    border-radius: 2px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-section ul li a::before {
    color: var(--primary-cyber);
}

.social-links .btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-cyber);
}

.social-links .btn:hover {
    background: var(--primary-cyber);
    border-color: var(--primary-cyber);
    color: var(--bg-primary);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4);
}

/* ====================================
   ENHANCED SPACING & LAYOUT
   ==================================== */

.container-xxl {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

section {
    padding: var(--space-4xl) 0;
}

.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }
.py-5 { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }

/* ====================================
   ENHANCED BADGES
   ==================================== */

.badge {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-cyber), var(--primary-deep)) !important;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--accent-electric), #00cc77) !important;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

/* ====================================
   MICRO-ANIMATIONS & INTERACTIONS
   ==================================== */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

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

/* Enhanced focus states for accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-cyber);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ====================================
   RESPONSIVE ENHANCEMENTS
   ==================================== */

@media (max-width: 1200px) {
    :root {
        --space-3xl: 3rem;
        --space-4xl: 4rem;
    }
}

@media (max-width: 768px) {
    :root {
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
        --space-4xl: 3rem;
    }

    .carousel-caption {
        left: 3%;
        right: 3%;
        bottom: 5%;
        padding: var(--space-xl) var(--space-lg);
    }

    .service-item {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    :root {
        --space-xl: 1.5rem;
        --space-2xl: 1.75rem;
    }

    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ====================================
   DARK MODE ENHANCEMENTS
   ==================================== */

@media (prefers-color-scheme: dark) {
    /* Already optimized for dark mode by default */
}

/* ====================================
   PRINT STYLES
   ==================================== */

@media print {
    .navbar,
    .carousel,
    .btn,
    .cookie-consent-banner {
        display: none !important;
    }

    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* ====================================
   UTILITY CLASSES
   ==================================== */

.text-gradient-cyber {
    background: linear-gradient(135deg, var(--primary-cyber), var(--accent-electric));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-cyber {
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.5);
}

.border-gradient {
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
                linear-gradient(135deg, var(--primary-cyber), var(--accent-electric)) border-box;
}

.backdrop-blur {
    backdrop-filter: blur(12px);
}

/* ====================================
   CONTRAST & VISIBILITY FIXES
   ==================================== */

/* Ensure all headings are visible on dark background */
.container h1,
.container h2,
.container h3,
.container h4,
.container h5,
.container-xxl h1,
.container-xxl h2,
.container-xxl h3,
.container-xxl h4,
.container-xxl h5 {
    color: var(--text-primary) !important;
}

/* Fix section titles visibility */
.section-divider h3,
.text-center h1,
.text-center h2 {
    color: var(--text-primary) !important;
}

/* Ensure paragraph text is visible */
.container p,
.container-xxl p,
.service-item p,
.feature-box p {
    color: var(--text-secondary) !important;
}

/* Fix white text on white background */
.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white p {
    color: var(--gray-900) !important;
}

/* About section specific fixes */
#about h1,
#about h4,
#about p {
    color: var(--text-primary) !important;
}

#about .border.rounded h4 {
    color: var(--text-primary) !important;
}

#about .border.rounded span {
    color: var(--text-secondary) !important;
}

/* Products section fixes */
#products h1,
#products h3,
#products h4 {
    color: var(--text-primary) !important;
}

/* Services section fixes */
#service h1,
#service h2,
#service p {
    color: var(--text-primary) !important;
}

/* ====================================
   END ENHANCED DESIGN SYSTEM
   ==================================== */
