/* Modern Automotive Engineering Portal CSS */

:root {
    --primary-color: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #06d6a0;
    --warning-color: #fbbf24;
    --danger-color: #ef4444;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
    --gradient-accent: linear-gradient(135deg, #06d6a0 0%, #059669 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-primary: 0 10px 30px rgba(30, 64, 175, 0.2);
    --shadow-accent: 0 10px 30px rgba(6, 214, 160, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
    scroll-behavior: smooth;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(6, 214, 160, 0.2);
    padding: 0.8rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #06d6a0 !important;
    transition: var(--transition);
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.6rem 1rem;
    margin: 0 0.2rem;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #06d6a0 !important;
    background: rgba(6, 214, 160, 0.1);
}

.navbar-nav .nav-link.active {
    color: #06d6a0 !important;
    background: rgba(6, 214, 160, 0.1);
    font-weight: 600;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    min-width: 240px;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
}

.dropdown-item:hover {
    background: rgba(6, 214, 160, 0.1) !important;
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 18px;
    opacity: 0.7;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Hero Section with Binary/Circuit Background */
.hero-section {
    background: linear-gradient(135deg, #0a0f1c 0%, #1a2332 50%, #2d3748 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Binary matrix effect */
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><text x="10" y="20" font-family="Courier,monospace" font-size="10" fill="rgba(6,214,160,0.3)">01001001 11010011 00101110</text><text x="40" y="40" font-family="Courier,monospace" font-size="10" fill="rgba(6,214,160,0.2)">10110100 01011001 11000110</text><text x="20" y="60" font-family="Courier,monospace" font-size="10" fill="rgba(6,214,160,0.3)">11000011 10101010 01110011</text><text x="60" y="80" font-family="Courier,monospace" font-size="10" fill="rgba(6,214,160,0.2)">01110001 00110110 10010111</text><text x="30" y="100" font-family="Courier,monospace" font-size="10" fill="rgba(6,214,160,0.3)">10010111 11001001 00101101</text><text x="10" y="120" font-family="Courier,monospace" font-size="10" fill="rgba(6,214,160,0.2)">00101101 01000011 11011000</text><text x="50" y="140" font-family="Courier,monospace" font-size="10" fill="rgba(6,214,160,0.3)">11011000 10110011 01001110</text><text x="25" y="160" font-family="Courier,monospace" font-size="10" fill="rgba(6,214,160,0.2)">01001110 11010001 10111010</text><text x="45" y="180" font-family="Courier,monospace" font-size="10" fill="rgba(6,214,160,0.3)">10111010 00101100 11010010</text><text x="15" y="200" font-family="Courier,monospace" font-size="10" fill="rgba(6,214,160,0.2)">11010010 01001001 00110101</text></svg>'),
        /* Circuit board pattern */
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><g stroke="rgba(30,64,175,0.2)" stroke-width="1" fill="none"><path d="M20,20 L130,20 L130,40 L100,40 L100,60 L130,60 L130,80"/><path d="M20,80 L50,80 L50,60 L80,60 L80,100 L130,100"/><circle cx="20" cy="20" r="3" fill="rgba(30,64,175,0.3)"/><circle cx="50" cy="80" r="3" fill="rgba(30,64,175,0.3)"/><circle cx="100" cy="60" r="3" fill="rgba(30,64,175,0.3)"/><circle cx="130" cy="100" r="3" fill="rgba(30,64,175,0.3)"/><rect x="95" y="35" width="10" height="10" fill="rgba(30,64,175,0.2)"/><rect x="45" y="75" width="10" height="10" fill="rgba(30,64,175,0.2)"/></g></svg>');
    background-size: 400px 300px, 200px 200px;
    background-position: 0 0, 100px 50px;
    animation: matrixFlow 25s linear infinite;
    opacity: 0.6;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(6, 214, 160, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(30, 64, 175, 0.08) 0%, transparent 50%);
    z-index: 2;
}

@keyframes matrixFlow {
    0% { 
        background-position: 0 0, 100px 50px;
        opacity: 0.6;
    }
    50% { 
        opacity: 0.4;
    }
    100% { 
        background-position: 400px 300px, -100px 250px;
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-primary);
    border-color: var(--primary-color);
}

.modern-card.accent:hover {
    box-shadow: var(--shadow-accent);
    border-color: var(--accent-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.card-icon.primary {
    background: var(--gradient-primary);
    color: white;
}

.card-icon.accent {
    background: var(--gradient-accent);
    color: white;
}

/* Statistics Cards */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stats-label {
    color: var(--secondary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

/* Technical Cards */
.premium-card {
    transition: transform 0.3s ease;
    border: none;
}

.premium-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-img-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Test Cards */
.test-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.test-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Tools Section */
.tool-result {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.375rem;
}

.result-success {
    border-left-color: var(--success-color);
    background: rgba(25, 135, 84, 0.1);
}

.result-error {
    border-left-color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
}

/* Progress Bars */
.progress {
    height: 8px;
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Modern Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.3);
    color: white;
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(6, 214, 160, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    border: none;
    box-shadow: var(--shadow-accent);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(6, 214, 160, 0.4);
}

/* PayPal Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

/* Technical Elements */
.technical-border {
    border: 2px solid var(--technical-blue);
    border-radius: 8px;
}

.circuit-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(30, 58, 138, 0.1) 2%, transparent 2%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.1) 2%, transparent 2%);
    background-size: 50px 50px;
}

/* Feature Items */
.feature-item {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}

/* Tools Specific Styles */
.hex-input {
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
}

.binary-display {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: #e9ecef;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

/* Test Interface */
.answer-option {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 86, 179, 0.05);
}

.answer-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(0, 86, 179, 0.1);
}

.answer-option.correct {
    border-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.1);
}

.answer-option.incorrect {
    border-color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
}

/* Timer */
.timer-warning {
    color: var(--warning-color);
}

.timer-danger {
    color: var(--danger-color);
    font-weight: bold;
}

/* Footer */
footer {
    border-top: 3px solid var(--primary-color);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Code Display */
.code-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* Animations & Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInFromLeft 0.6s ease-out;
}

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

/* Live Data Indicators */
.live-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.live-text {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section Separators */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 4rem 0;
}

/* Glassmorphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

.section-spacing {
    padding: 5rem 0;
}

.mb-6 {
    margin-bottom: 4rem;
}

/* Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .section-spacing {
        padding: 3rem 0;
    }
    
    .fab {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}


/* Cache buster 1753809355 */
/* FORCE UPDATE 1753809690 */
