/* The Innovative Times - Dark Circuit Board Theme */

:root {
    --primary-blue: #00BFFF;
    --light-blue: #40E0D0;
    --cyan: #00CED1;
    --dark-bg: #0a0e1a;
    --darker-bg: #050810;
    --nav-background: #0a0e1a;
    --text-white: #ffffff;
    --text-light: #e0f2fe;
    --text-gray: #9ca3af;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--text-white);
}

p, li, span, div {
    color: var(--text-light);
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 191, 255, 0.2);
    transition: all 0.3s ease;
}

.floating-nav:hover {
    background: rgba(10, 14, 26, 0.85);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 191, 255, 0.3);
}

.floating-nav.scrolled {
    top: 1rem;
    padding: 0.5rem 1.5rem;
}

.nav-link {
    color: var(--text-white);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--cyan));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
}

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

/* Mobile Hamburger Button */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10001;
    position: relative;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: var(--cyan);
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.98), rgba(5, 8, 16, 0.98));
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 191, 255, 0.3);
    z-index: 10000;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0, 191, 255, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.mobile-menu.active {
    transform: translateX(0);
    pointer-events: auto;
}

.mobile-menu * {
    pointer-events: auto;
}

.mobile-menu-content {
    padding: 5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    color: var(--text-white);
    text-decoration: none;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.mobile-nav-link:hover {
    background: rgba(0, 191, 255, 0.1);
    border-color: rgba(0, 191, 255, 0.3);
    color: var(--cyan);
    transform: translateX(5px);
}

.mobile-nav-link.active {
    background: rgba(0, 191, 255, 0.15);
    border-color: rgba(0, 191, 255, 0.5);
    color: var(--cyan);
}

.mobile-nav-link i {
    color: var(--cyan);
}

@media (max-width: 768px) {
    .floating-nav {
        top: 1rem;
        padding: 0.75rem 1.5rem;
        border-radius: 30px;
        width: calc(100% - 2rem);
        max-width: none;
        left: 1rem;
        right: 1rem;
        transform: none;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-menu-button {
        display: flex;
    }
}

/* Circuit Board Background */
.circuit-board-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    background-image: 
        linear-gradient(rgba(0, 191, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 191, 255, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(64, 224, 208, 0.06) 0.5px, transparent 0.5px),
        linear-gradient(90deg, rgba(64, 224, 208, 0.06) 0.5px, transparent 0.5px),
        linear-gradient(90deg, 
            transparent 0%,
            transparent 35%,
            rgba(0, 191, 255, 0.2) 35%,
            rgba(0, 191, 255, 0.2) 36%,
            transparent 36%,
            transparent 65%,
            rgba(0, 191, 255, 0.2) 65%,
            rgba(0, 191, 255, 0.2) 66%,
            transparent 66%
        ),
        linear-gradient(0deg,
            transparent 0%,
            transparent 25%,
            rgba(64, 224, 208, 0.15) 25%,
            rgba(64, 224, 208, 0.15) 26%,
            transparent 26%,
            transparent 75%,
            rgba(64, 224, 208, 0.15) 75%,
            rgba(64, 224, 208, 0.15) 76%,
            transparent 76%
        );
    background-size: 
        50px 50px,
        50px 50px,
        10px 10px,
        10px 10px,
        200px 200px,
        200px 200px;
    opacity: 1;
    z-index: 0;
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(0, 191, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 35% 30%, rgba(64, 224, 208, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 55% 15%, rgba(0, 191, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 75% 25%, rgba(64, 224, 208, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 25% 50%, rgba(0, 191, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 45% 60%, rgba(64, 224, 208, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 65% 45%, rgba(0, 191, 255, 0.4) 3px, transparent 3px),
        radial-gradient(circle at 85% 55%, rgba(64, 224, 208, 0.4) 3px, transparent 3px),
        repeating-linear-gradient(45deg,
            transparent 0px,
            transparent 48px,
            rgba(0, 191, 255, 0.08) 48px,
            rgba(0, 191, 255, 0.08) 50px,
            transparent 50px,
            transparent 98px
        ),
        repeating-linear-gradient(-45deg,
            transparent 0px,
            transparent 52px,
            rgba(64, 224, 208, 0.08) 52px,
            rgba(64, 224, 208, 0.08) 54px,
            transparent 54px,
            transparent 104px
        );
    background-size: 
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        150px 150px,
        150px 150px;
    opacity: 0.7;
    z-index: 0;
}

.circuit-details {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(0, 191, 255, 0.1) 0%, transparent 5%, transparent 95%, rgba(0, 191, 255, 0.1) 100%),
        linear-gradient(0deg, rgba(64, 224, 208, 0.1) 0%, transparent 5%, transparent 95%, rgba(64, 224, 208, 0.1) 100%),
        radial-gradient(ellipse at 30% 40%, rgba(0, 191, 255, 0.15) 8px, transparent 8px),
        radial-gradient(ellipse at 70% 60%, rgba(64, 224, 208, 0.15) 8px, transparent 8px);
    background-size: 
        120px 80px,
        120px 80px,
        200px 200px,
        200px 200px;
    background-position: 
        20% 30%,
        70% 50%,
        0% 0%,
        100% 100%;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 0;
}

/* Page Background with Circuit Board */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-background .circuit-board-bg,
.page-background .circuit-lines,
.page-background .circuit-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--cyan));
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.3);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 191, 255, 0.5);
    background: linear-gradient(135deg, var(--cyan), var(--light-blue));
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline:hover {
    background: rgba(0, 191, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.3);
}

/* Cards */
.card, .content-card {
    background: rgba(20, 25, 40, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 191, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    color: var(--text-white);
}

.card:hover, .content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 191, 255, 0.3);
    border-color: var(--primary-blue);
}

.card h1, .card h2, .card h3, .card h4,
.content-card h1, .content-card h2, .content-card h3, .content-card h4 {
    color: var(--text-white);
}

.card p, .content-card p {
    color: var(--text-light);
}

/* Forms */
.form-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    width: 100%;
    background: rgba(20, 25, 40, 0.8);
    color: var(--text-white);
    backdrop-filter: blur(10px);
}

.form-input:focus, input:focus, textarea:focus, select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.25);
    outline: none;
    background: rgba(25, 30, 45, 0.9);
}

.form-input::placeholder, input::placeholder, textarea::placeholder {
    color: var(--text-gray);
}

/* Section Dividers */
.section-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--cyan));
    margin: 1rem auto;
    border-radius: 2px;
}

/* Links */
a {
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--cyan);
}

/* Text Colors */
.text-white {
    color: var(--text-white) !important;
}

.text-light {
    color: var(--text-light) !important;
}

.text-gray {
    color: var(--text-gray) !important;
}

/* Background Colors */
.bg-dark {
    background-color: var(--dark-bg) !important;
}

.bg-darker {
    background-color: var(--darker-bg) !important;
}

/* Override white backgrounds */
.bg-white {
    background: rgba(20, 25, 40, 0.8) !important;
    backdrop-filter: blur(10px);
}

.bg-gray-50, .bg-blue-50 {
    background: rgba(15, 20, 35, 0.6) !important;
    backdrop-filter: blur(10px);
}

/* Ensure content is above circuit board */
.content-wrapper {
    position: relative;
    z-index: 1;
}


