:root {
    --primary-color: #ff0000;
    --secondary-color: #5d8fb5;
    --accent-color: #8b6f47;
    --light-bg: #f8f9fa;
    --dark-text: #1a1a1a;
    --medium-text: #4a5568;
    --gradient-start: #ff0000;
    --gradient-end: #cc0000;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--medium-text);
    margin-bottom: 3rem;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-nav .nav-link {
    color: var(--dark-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

.btn-primary-custom {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
    color: white;
}

.btn-secondary-custom {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.network-bg-svg {
    width: 100%;
    height: 100%;
    opacity: 0.7;
    transform: scale(1.5);
    transform-origin: center;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.network-animation-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 3;
}

.network-animation {
    width: 100%;
    max-width: 1600px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.3));
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

.network-node {
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
}

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

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.9));
    }
}

.hero-section h1 {
    font-family: 'Inter', sans-serif;
    font-size: 5.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-section .lead {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Trust Badges */
.trust-section {
    background: white;
    padding: 2rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--dark-text);
    font-size: 0.95rem;
    font-weight: 500;
}

.trust-badge i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Features Grid */
.features-section {
    padding: 80px 0;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--medium-text);
    line-height: 1.7;
}

/* Products Section */
.products-section {
    background: var(--light-bg);
    padding: 80px 0;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.12);
}

.product-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Diagnostics Section */
.diagnostics-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #cc0000 0%, #ff0000 100%);
    color: white;
    position: relative;
}

.diagnostic-feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.diagnostic-feature h4 {
    margin-bottom: 0.75rem;
}

/* Who We Serve Section */
.serve-section {
    padding: 80px 0;
    background: white;
}

.serve-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
}

.serve-card:hover {
    background: var(--light-bg);
    transform: translateY(-5px);
}

.serve-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.serve-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Why Choose Section */
.why-choose-section {
    background: var(--light-bg);
    padding: 80px 0;
}

.benefit-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #6d573a 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-section .btn-secondary-custom {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-section .btn-secondary-custom:hover {
    background: white;
    color: var(--accent-color);
    border-color: white;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

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

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }
}

/* Form Styling */
#demoForm .form-control:focus,
#demoForm .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
}

#demoForm .form-control.is-invalid,
#demoForm .form-select.is-invalid {
    border-color: #dc3545;
}

#demoForm .form-control.is-valid,
#demoForm .form-select.is-valid {
    border-color: #28a745;
}

#demoModal .modal-header {
    border-radius: 0.5rem 0.5rem 0 0;
}

#demoModal .modal-content {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#successModal .modal-content {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

