:root {
    --primary-color: #dc3545;
    --secondary-color: #000000;
    --accent-color: #ffffff;
}

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

html {
    font-size: 16px !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px;
    font-size: 16px !important;
}

/* Force consistent navbar sizing at all screen widths */
@media (min-width: 1400px) {
    html {
        font-size: 16px !important;
    }

    body {
        font-size: 16px !important;
    }
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    background: linear-gradient(135deg, #000000 0%, #2c2c2c 50%, #000000 100%);
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(220, 53, 69, 0.03) 50px,
            rgba(220, 53, 69, 0.03) 51px
        );
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #000000 0%, #dc3545 100%);
    padding: 100px 0 50px;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    background: white;
    border: 2px solid #f8f9fa;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
    border-color: var(--primary-color);
}

/* Company Cards */
.company-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e9ecef;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
    border-color: var(--primary-color);
}

/* Technology Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid #f8f9fa;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.2);
    border-color: var(--primary-color);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tech-item span {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Solutions List */
.solutions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.solution-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid #f8f9fa;
}

.solution-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.2);
    border-color: var(--primary-color);
}

.solution-item i {
    font-size: 2rem;
    margin-top: 5px;
}

.solution-item h5 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

/* Methodology Section */
.methodology-section {
    border: 2px solid #e0e0e0;
}

.methodology-badge {
    padding: 15px 30px;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.methodology-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    transition: transform 0.3s ease;
}

.cta-section:hover {
    transform: scale(1.02);
}

/* Contact Form */
.contact-form-wrapper {
    border: 2px solid #e0e0e0;
}

.form-control {
    border-radius: 8px;
    padding: 12px;
    border: 2px solid #e9ecef;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Buttons */
.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-outline-danger:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Navbar */
.bg-black {
    background-color: #000000 !important;
}

.navbar {
    min-height: 76px !important;
    max-height: 76px !important;
    padding: 12.8px 0 !important;
    zoom: 1 !important;
    transform: scale(1) !important;
}

.navbar .container {
    zoom: 1 !important;
    transform: scale(1) !important;
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    zoom: 1 !important;
    line-height: 1.5 !important;
}

.navbar-nav .nav-link {
    font-size: 16.8px !important;
    padding: 8px 16px !important;
    line-height: 1.5 !important;
}

.logo-icon {
    height: 20px !important;
    width: auto !important;
    margin-right: 2px !important;
    vertical-align: middle !important;
    position: relative !important;
    top: 0px !important;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: rgba(250, 250, 250, 0.6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Lock navbar sizing for ultra-wide screens (2560px+) */
@media (min-width: 2000px) {
    .navbar {
        min-height: 76px !important;
        max-height: 76px !important;
        padding: 12.8px 0 !important;
    }

    .navbar-brand {
        font-size: 24px !important;
        line-height: 1.5 !important;
    }

    .navbar-nav .nav-link {
        font-size: 16.8px !important;
        padding: 8px 16px !important;
    }

    .logo-icon {
        height: 20px !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 40px;
        padding-bottom: 20px;
    }

    .page-header {
        min-height: 50vh;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .methodology-badge {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-contact {
        margin-top: 3rem !important;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .hero-contact .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 0;
    }

    .contact-text {
        font-size: 1.1rem;
        padding: 0 15px;
        white-space: normal;
        word-spacing: 100vw;
    }

    /* Add solid background to mobile menu */
    .navbar-collapse {
        background-color: #000000 !important;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .navbar-nav {
        background-color: #000000 !important;
    }

    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background-color: #000000 !important;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Ensure sections don't overlap hero */
    .hero-section + section,
    .page-header + section {
        position: relative;
        z-index: 2;
        margin-top: 0;
    }
}