.masthead {
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0; 
    padding-bottom: 120px;
}

.masthead-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 3, 24, 0.15),
        rgba(6, 3, 24, 0.9)
    );
    z-index: 1;
}

.masthead .container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.hero-content {
    max-width: 620px;
    text-align: left;
    margin-left: 90px;
    transform: translateY(80px);
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.3rem;
    font-weight: 800;
    line-height: 1.05;
    color: #ffffff;
    margin-bottom: 16px;
    max-width: 12ch; 
    word-wrap: break-word;
}

.hero-desc {
    font-size: 1.1rem;
    font-weight: 400;
    color: #c7d2fe;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.55);
    color: #ffffff;
}

.hero-btn i {
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: translateX(6px);
}

.masthead-heading,
.masthead-subheading {
    all: unset;
}

.section-heading {
    font-size: 2rem !important;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

@media (max-width: 992px) {
    .hero-content {
        margin-left: 48px;
    }

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

@media (max-width: 1024px) and (min-width: 769px) {
    .hero-content {
        margin-left: 64px;
        max-width: 600px;
        transform: translateY(70px);
    }

    .hero-title {
        font-size: 3.6rem;
        line-height: 1.06;
        max-width: 13ch;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 1.05rem;
        max-width: 500px;
        margin-bottom: 30px;
    }

    .hero-btn {
        font-size: 0.98rem;
        padding: 13px 28px;
        border-radius: 14px;
        gap: 10px;
    }

    .hero-btn i {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 1.6rem !important; 
    }

    .masthead {
        min-height: 100vh;
        align-items: flex-end;
        padding-bottom: 140px;
    }

    .hero-content {
        margin-left: 24px;
        margin-bottom: 24px;
        transform: none;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.15;
        margin-bottom: 12px;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .hero-btn {
        font-size: 0.9rem;
        padding: 10px 22px;
        border-radius: 12px;
        gap: 8px;
    }

    .hero-btn i {
        font-size: 0.85rem;
    }
}
