:root {
    --primary-color: #003366;
    /* Deep Corporate Blue */
    --primary-light: #004d99;
    --secondary-color: #D62828;
    /* Vibrant Red */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --transition-speed: 0.3s;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    /* Removed padding to align with full height links */
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
    text-transform: uppercase;
}

.main-nav .container {
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 5px;
    /* Slight gap between items */
    height: 100%;
    align-items: center;
    width: auto;
}

/* Dropdown Menu Styles */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color);
    padding: 0 1.2rem;
    /* Slightly reduced padding */
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Prevent text wrapping */
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color);
    background-color: transparent;
    /* Remove heavy background on hover, keep text change */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--secondary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1001;
    border-radius: 0 0 5px 5px;
    padding: 5px 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    /* More compact */
    color: #555;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f5f5;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: var(--secondary-color);
    padding-left: 25px;
    /* Slide effect */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001f3f 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    /* Subtle pattern */
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(214, 40, 40, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214, 40, 40, 0.6);
}

/* Services/Categories */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all var(--transition-speed);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.2rem;
    border-left: 3px solid var(--secondary-color);
    padding-left: 10px;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #999;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #666;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive */
@media (max-width: 992px) {
    .hamburger {
        display: flex !important;
    }

    .main-nav {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-links {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background-color: var(--white) !important;
        flex-direction: column !important;
        gap: 0 !important;
        height: auto !important;
        align-items: stretch !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
        z-index: 999 !important;
        display: flex !important;
    }

    .nav-links.active {
        max-height: 800px !important;
    }

    .nav-item {
        height: auto !important;
        width: 100% !important;
        border-bottom: 1px solid #eee !important;
        display: block !important;
    }

    .nav-link {
        padding: 15px 20px !important;
        height: auto !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        display: block !important;
    }

    .dropdown-menu {
        position: static !important;
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
        box-shadow: none !important;
        border-top: none !important;
        background-color: #f8f9fa !important;
        transform: none !important;
    }

    .nav-item:hover .dropdown-menu,
    .nav-item.active .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 500px !important;
    }

    .dropdown-menu li a {
        padding: 10px 20px 10px 40px !important;
        font-size: 0.85rem !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        height: auto !important;
        padding: 10px 0 !important;
    }

    .nav-links {
        top: 70px !important;
    }

    .top-bar {
        display: none;
    }
}