:root {
    --bg-dark: #ffffff;
    --bg-card: #0f1218;
    --bg-card-hover: #161b24;
    --accent-red: #E5001C;
    /* Updated to company main color */
    --accent-blue: #2d5af0;
    --text-main: #1a1a1a;
    /* Dark text for white background */
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);

    --font-head: 'Rajdhani',
        sans-serif;
    --font-body: 'Inter',
        sans-serif;

    --container-width: 1200px;
    --header-height: 100px;
    --top-bar-height: 40px;
}

.mobile-menu-toggle {
    display: none;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-bar-height);
    background-color: var(--accent-red);
    z-index: 2001;
    /* Ensure top bar is above header */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 2rem;
    /* Match container padding roughly or use container */
    transition: transform 0.3s ease;
}

.top-bar-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.social-link:hover {
    opacity: 1;
}

.social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.text-red {
    color: var(--accent-red);
}

.overline {
    font-family: var(--font-head);
    color: var(--accent-red);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    border: 1px solid var(--accent-red);
    box-shadow: 0 4px 15px rgba(229, 0, 28, 0.3);
}

.btn-primary:hover {
    background: #c40018;
    box-shadow: 0 6px 20px rgba(229, 0, 28, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--text-main);
    color: white;
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.btn-small:hover {
    background: var(--accent-red);
    color: white;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    transform: translateY(var(--top-bar-height));
    /* Start below top bar using transform */
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2000;
    /* Ensure header is above subscribe bar (1002) */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    /* Animate transform for sync with top-bar */
}

/* Scrolled State (applied via JS) */
body.is-scrolled .top-bar {
    transform: translateY(-100%);
}

body.is-scrolled .glass-header {
    transform: translateY(0);
}

.header-container {
    width: 100%;
    height: 100%;
    /* Ensure container fills header height */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
    /* Fill container height */
}

/* Nav Link Hover Effect (Accent Line) */
.nav-links li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
    /* Add slight hit area padding */
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--accent-red);
    opacity: 0.8;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    /* Starts exactly at bottom of header */
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: none;
    /* Removed shadow */
    border-radius: 0 0 4px 4px;
    /* Square top, rounded bottom */
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    /* No movement transition for seamless feel */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1100;
}

/* No gap connector needed if top is 100% of full height li */
.dropdown::after {
    display: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
    /* Changed from blue to main text color */
    /* Or text-main, keeping consistency */
    text-transform: none;
    /* Keep sub-items normal case or as preferred */
    font-weight: 500;
    white-space: nowrap;
    border-left: 2px solid transparent;
    /* For hover effect */
}

.dropdown-menu li a:hover {
    background-color: rgba(229, 0, 28, 0.05);
    /* Very light red bg */
    color: var(--accent-red);
    border-left: 2px solid var(--accent-red);
    opacity: 1;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    /* Lighter dark/grey instead of deep black */
    color: #aeaeae;
    padding: 5rem 0 2rem;
    border-top: none;
    /* Removed red accent line */
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
    /* Make logo white if it's draggable png, or use white version */
    opacity: 0.9;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social .social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.footer-social .social-link:hover {
    background: var(--accent-red);
    transform: translateY(-3px);
}

.footer-heading {
    color: white;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-list li {
    margin-bottom: 0.8rem;
}

.footer-links-list a {
    color: #aeaeae;
    transition: 0.3s;
}

.footer-links-list a:hover {
    color: white;
    padding-left: 5px;
    /* Slight movement */
    color: var(--accent-red);
}

.contact-info li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.contact-icon {
    color: white;
    /* Changed icon color to white */
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: #aeaeae;
}

.footer-bottom-links a:hover {
    color: var(--accent-red);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Subscribe Bar (Common Component) */
.subscribe-bar {
    background: linear-gradient(135deg, #8a0011 0%, #b30016 100%);
    /* Darker, richer red */
    padding: 1.5rem 0;
    /* Reduced padding for shorter height */
    position: relative;
    z-index: 1002;
    color: white;
    /* Text is white on red */
    border-bottom: none;
}

.subscribe-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.subscribe-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subscribe-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.8rem;
    /* Larger title */
    color: white;
    /* White text */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subscribe-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    /* Slightly transparent white */
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-grow: 1;
    /* Allow form to take space */
    max-width: 500px;
    /* Limit width */
}

.subscribe-input {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    width: 100%;
    /* Flexible width */
    font-size: 1rem;
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.subscribe-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.btn-subscribe {
    background: white;
    /* White button on red bg */
    color: var(--accent-red);
    /* Red text */
    border: none;
    cursor: pointer;
    font-weight: 800;
    padding: 1rem 2rem;
    white-space: nowrap;
}

.btn-subscribe:hover {
    background: var(--bg-card);
    /* Dark hover */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Specific adjustment for mobile - subscribe bar */
@media (max-width: 768px) {
    .subscribe-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .subscribe-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .btn-subscribe {
        width: 100%;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-container {
        justify-content: space-between;
        padding: 0 1.5rem;
    }

    /* Smaller logo for mobile */
    .logo-img {
        height: 50px;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex !important;
        /* Force display on mobile */
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 9999;
        /* Ensure highest z-index */
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--accent-red);
        /* Changed to red for visibility */
        transition: 0.3s;
    }

    .glass-header {
        height: 80px;
        /* Adjust header height for mobile */
    }

    /* Navigation Menu */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 50vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        /* Left align */
        padding: 6rem 2rem 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        /* Hide off-screen */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 2000;
        /* Behind toggle button */
        pointer-events: none;
        /* Prevent clicks when hidden */
    }

    .nav-links.active {
        transform: translateY(0);
        /* Slide down */
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        border-bottom: none;
        /* Remove border as requested */
        display: flex;
        flex-direction: column;
        /* Force vertical stacking */
        align-items: flex-start;
    }

    .nav-links li>a {
        display: flex;
        justify-content: flex-start;
        /* Align arrow next to text */
        align-items: center;
        padding: 0.4rem 0;
        /* Narrower spacing */
        font-size: 0.95rem;
        /* Reduced font size */
        font-weight: 700;
        /* Bolder font like image */
        width: 100%;
        color: #004d80;
        /* Blue color like reference, or adapt to brand */
    }

    /* Dropdown Toggle Arrow */
    .dropdown-toggle::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid #00aeef;
        /* Light blue accent or brand red */
        border-bottom: 2px solid #00aeef;
        transform: rotate(45deg);
        margin-left: 15px;
        /* Spacing from text */
        transition: transform 0.3s ease;
        margin-top: -4px;
        /* Slight vertical adjustment */
    }

    /* Rotate arrow when open (pointing up) */
    .dropdown.active .dropdown-toggle::after {
        transform: rotate(-135deg);
        margin-top: 4px;
    }

    /* Active Toggle Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Mobile Dropdown Menu (Accordion) */
    .dropdown-menu {
        position: static !important;
        /* Force static positioning */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f4f4f4;
        margin-top: 0;
        padding: 0;
        display: none;
        width: 100% !important;
        /* Force full width */
        min-width: 100%;
        box-sizing: border-box;
        left: auto !important;
        top: auto !important;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
        /* Disable hover interaction on mobile */
    }

    .dropdown.active:hover .dropdown-menu {
        display: block;
    }

    /* Submenu items styling */
    .dropdown-menu li a {
        padding: 0.8rem 0;
        border-bottom: none;
        font-size: 0.9rem;
        color: #005a8d;
        /* Sub-item color */
        background: transparent;
        font-weight: 500;
        justify-content: flex-start;
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    /* Hero Section */
    .industry-hero,
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Grid Layouts */
    .services-grid {
        grid-template-columns: 1fr !important;
        /* Force single column */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        margin-bottom: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}