:root {
    --primary: #FF6B00;
    --primary-dark: #E65A00;
    --primary-glow: rgba(255, 107, 0, 0.4);
    --secondary: #0A192F;
    --secondary-light: #112240;
    --accent: #2196F3;
    --white: #FFFFFF;
    --black: #020617;
    --gray-100: #F3F4F6;
    --text-main: #334155;
    --text-muted: #64748B;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

::selection {
    background-color: var(--primary);
    color: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--gray-100);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #FF8E3C, #FF6B00);
    color: var(--white);
    padding: 1.1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF6B00, #E65A00);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: var(--white);
    color: var(--secondary);
    padding: 1.1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    border: none;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: var(--gray-100);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* --- Header --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0));
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

#main-header.scrolled nav ul li a:not(.btn-primary) {
    color: var(--secondary);
}

#main-header.scrolled .menu-toggle {
    color: var(--secondary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-header:not(.scrolled) .logo img {
    background-color: rgba(255, 255, 255, 0.85);
    /* Adds a white pill behind logo initially */
    padding: 5px 15px;
    border-radius: 8px;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav ul li a {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

nav ul li a:not(.btn-primary):hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown i {
    font-size: 0.8rem;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-xl);
    border-radius: 12px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    display: block;
    border: 1px solid var(--gray-100);
}

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

.dropdown-menu li a {
    color: var(--text-main) !important;
    padding: 0.8rem 1.8rem;
    display: block;
    font-size: 1rem;
    font-weight: 500;
}

.dropdown-menu li a:after {
    display: none;
}

.dropdown-menu li a:hover {
    background: var(--gray-100);
    color: var(--primary) !important;
    padding-left: 2.2rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 95vh;
    min-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ADJUST THE OVERLAY HERE: change the "0.25" below to a higher number (e.g. 0.3 or 0.4) for a darker center */
    background: radial-gradient(circle at center, rgba(10, 25, 47, 0.25) 0%, rgba(10, 25, 47, 0.75) 100%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    padding-top: 5rem;
    /* Account for header */
}

.badge {
    background: rgba(255, 107, 0, 0.15);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: inline-block;
    border: 1px solid var(--primary);
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Form Wrapper */
.quote-form {
    padding: 3rem 2.5rem;
    border-radius: 20px;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.quote-form h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 800;
}

.quote-form p {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    color: var(--gray-100);
    opacity: 0.9;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    background: var(--white);
    border: none;
    border-radius: 8px;
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus {
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%230A192F%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem top 50%;
    background-size: 0.65rem auto;
}

.form-group select option {
    background: var(--white);
    color: var(--secondary);
    font-weight: 600;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #FF8E3C, #FF6B00);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #FF6B00, #E65A00);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* --- Services Section --- */
.services {
    padding: 120px 0;
    background: var(--gray-100);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-main);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    border: none;
    /* Removed unnecessary border */
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF6B00, #FF8E3C);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.card-img {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.card-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.8) 0%, transparent 60%);
    z-index: 1;
    opacity: 0.8;
    transition: var(--transition);
}

.service-card:hover .card-img::before {
    opacity: 1;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.9) 0%, transparent 80%);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .card-img img {
    transform: scale(1.15);
}

.card-body {
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 2;
    background: var(--white);
    margin-top: -30px;
    border-radius: 20px 20px 0 0;
}

.card-body h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--secondary);
    font-weight: 800;
}

.card-body p {
    color: var(--text-main);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.read-more {
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.read-more i {
    transition: var(--transition);
    font-size: 1.2rem;
}

.read-more:hover i {
    transform: translateX(8px);
}

/* --- Mobile Elements Styling --- */
.mobile-call-btn {
    display: none;
}

.close-menu {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .services-grid {
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    #main-header {
        background: var(--white) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 0.8rem 0;
    }

    #main-header:not(.scrolled) .logo img {
        background: transparent !important;
        padding: 0;
        filter: none;
    }

    #main-header nav ul li a {
        color: var(--secondary) !important;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .menu-toggle {
        display: block;
        color: var(--secondary) !important;
    }

    .mobile-call-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: linear-gradient(135deg, #FF8E3C, #FF6B00);
        color: var(--white);
        font-size: 1.2rem;
        box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
    }

    nav#nav-menu {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 2000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        clip-path: circle(0% at 90% 10%);
        transition: all 0.6s cubic-bezier(0.86, 0, 0.07, 1);
    }

    nav#nav-menu.active {
        opacity: 1;
        visibility: visible;
        clip-path: circle(150% at 100% 0%);
    }

    .close-menu {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 2rem;
        font-size: 2.5rem;
        color: var(--white);
        background: none;
        border: none;
        cursor: pointer;
        opacity: 0;
        transform: rotate(90deg);
        transition: all 0.5s ease 0.3s;
    }

    nav#nav-menu.active .close-menu {
        opacity: 1;
        transform: rotate(0);
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        width: 100%;
    }

    nav ul li {
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.4s ease 0.3s;
    }

    nav#nav-menu.active ul li {
        transform: translateY(0);
        opacity: 1;
    }

    nav#nav-menu ul li a {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--white) !important;
        padding: 0;
    }

    nav#nav-menu ul li a::after {
        display: none;
    }

    nav#nav-menu ul li a.btn-primary {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        color: var(--white) !important;
        box-shadow: none !important;
        text-transform: none !important;
        letter-spacing: normal !important;
        font-weight: 700;
    }

    nav#nav-menu .dropdown-menu {
        position: static;
        background: var(--white);
        border-radius: 12px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        height: auto;
        transform: none;
        padding: 1.2rem 0;
        margin-top: 1rem;
        display: none;
        width: 100%;
        min-width: 250px;
    }

    nav#nav-menu .dropdown:hover .dropdown-menu,
    nav#nav-menu .dropdown:active .dropdown-menu,
    nav#nav-menu .dropdown:focus-within .dropdown-menu {
        display: block;
    }

    nav#nav-menu .dropdown-menu li {
        transform: none !important;
        margin: 0 0 1rem 0;
        opacity: 1 !important;
    }

    nav#nav-menu .dropdown-menu li:last-child {
        margin-bottom: 0;
    }

    nav#nav-menu .dropdown-menu li a {
        font-size: 1.15rem !important;
        font-weight: 600;
        color: var(--secondary) !important;
        /* Blue text for the white background */
        padding: 0 !important;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        align-items: flex-start;
        padding-top: 75px;
        background: transparent;
        min-height: auto;
        height: auto;
        padding-bottom: 0;
    }

    .hero-video,
    .hero-overlay {
        top: 75px;
        height: 75vh;
        min-height: 400px;
    }

    .hero-container {
        padding-top: 30px;
        gap: 0;
        display: block;
    }

    .hero-content {
        min-height: calc(55vh - 30px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 1rem;
    }

    .hero-form-wrapper {
        position: relative;
        z-index: 10;
        margin-top: -30px;
        padding-bottom: 3rem;
    }

    .logo img {
        height: 46px;
        max-width: 140px;
    }

    .hero-content h1 {
        font-size: 2.3rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .hero-btns {
        margin-bottom: 2.5rem;
    }

    .badge {
        margin-bottom: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .quote-form {
        padding: 1.5rem;
    }

    .quote-form h3 {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group select {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .services,
    .how-it-works {
        padding: 70px 0;
    }

    .card-img {
        height: 220px;
    }

    .card-body {
        padding: 2rem 1.5rem;
    }

    .card-body h3 {
        font-size: 1.4rem;
    }
}

/* --- How It Works Section --- */
.how-it-works {
    padding: 120px 0;
    background: var(--white);
    position: relative;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 2rem;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 60px;
    /* aligns with icons */
    left: 10%;
    right: 10%;
    border-top: 2px dashed #CBD5E1;
    z-index: 0;
}

.step {
    width: 22%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.step:nth-of-type(even) {
    margin-top: 80px;
}

.step-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 10px rgba(255, 107, 0, 0.2);
    transition: var(--transition);
}

.step-icon-alt {
    background: var(--secondary);
    box-shadow: 0 0 0 10px rgba(10, 25, 47, 0.1);
}

.step:hover .step-icon {
    transform: scale(1.1);
}

.step-number {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.step-content p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .steps-container::before {
        display: none;
    }

    .step {
        width: 100%;
        max-width: 400px;
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .step:nth-of-type(even) {
        margin-top: 0;
    }

    .step-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
        font-size: 1.5rem;
    }
}

