/* Hero Section from Root index.html */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 0;
    color: var(--light-text, #ffffff);
    position: relative;
    overflow: hidden;
}

/* ── Mobile: stack, start from top, add clear gap below fixed 80px header ── */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 96px 5% 40px;   /* 80px header + 16px gap */
        text-align: center;
    }

    .hero-content {
        width: 100%;
        margin-bottom: 24px;
    }

    .hero h2 {
        font-size: 1.85rem;
        min-height: 72px;          /* shorter reserve while typing */
    }

    .hire-form {
        position: static;
        transform: none;
        width: 100%;
        max-width: 440px;
        margin: 0 auto 32px;
    }

    .hero-icons  { display: none; }
    .corner-badge { display: none; }
}

@media (max-width: 480px) {
    .hero {
        padding: 92px 5% 30px;
    }
    .hero h2 {
        font-size: 1.6rem;
        min-height: 62px;
    }
}

@media (max-width: 375px) {
    .hero {
        padding: 90px 4% 28px;
    }
    .hero h2 {
        font-size: 1.45rem;
        min-height: 58px;
    }
}

@media (max-width: 320px) {
    .hero {
        padding: 88px 4% 24px;
    }
    .hero h2 {
        font-size: 1.2rem;
        min-height: 50px;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    z-index: 0;
}

/* Dark gradient overlay for text readability */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.60) 0%,
        rgba(0, 0, 0, 0.35) 60%,
        rgba(0, 0, 0, 0.50) 100%
    );
    z-index: 1;
}

.hero-content {
    width: 60%;
    z-index: 3;   /* above overlay (z:1) and video (z:0) */
}

.hire-form {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 300px;
    z-index: 3;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hire-form h3 {
    color: var(--secondary-color, #0f0f0f);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.hire-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color, #f52008);
}

.hire-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.hire-form .form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color, #f52008);
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.hire-form input {
    width: 100%;
    padding: 12px 15px 12px 70px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color, #333333);
}

.hire-form input:focus {
    border-color: var(--primary-color, #f52008);
    outline: none;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
    background-color: rgba(255, 255, 255, 1);
}

.hire-form .submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color, #f52008);
    color: #ffffff;
    border: none;
    border-radius: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.hire-form .submit-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.hero h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    min-height: 90px;
    display: flex;
    align-items: flex-start;
    opacity: 1 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #ffffff;
    margin-left: 6px;
    vertical-align: bottom;
    animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.type-accent {
    color: var(--primary-color, #f52008);
}

/* Corner badge styles */
.corner-badge {
    position: absolute;
    left: 5%;
    bottom: 0%;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fff;
    z-index: 2;
    transform: translateY(0);
    opacity: 0;
    animation: badgeIn 800ms ease-out 600ms forwards;
}

.badge-left {
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    margin-bottom: 10px;
}

.badge-divider {
    width: 4px;
    height: 0;
    background: var(--primary-color, #f52008);
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.6);
    border-radius: 2px;
    animation: growDivider 900ms ease-out 900ms forwards;
}

.badge-right {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    margin-top: 15px;
}

@keyframes badgeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes growDivider {
    from { height: 0; }
    to { height: 84px; }
}

@media (max-width: 768px) {
    .corner-badge { display: none; }
    .badge-left { font-size: 1.4rem; }
    .badge-right { font-size: 0.95rem; }
    @keyframes growDivider {
        from { height: 0; }
        to { height: 64px; }
    }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.tagline {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-icons {
    position: absolute;
    left: 50%;
    bottom: 11.5%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 28px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 14px 22px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.hero-icon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-icon i {
    font-size: 28px;
    color: var(--light-text, #ffffff);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-icon-text {
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-icon-text .accent {
    color: var(--primary-color, #f52008);
}

.hero-icon-divider {
    width: 3px;
    height: 64px;
    background: var(--primary-color, #f52008);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
}

@media (max-width: 992px) {
    .hero-icons {
        bottom: 16%;
        gap: 20px;
        padding: 12px 16px;
    }
    .hero-icon i { font-size: 22px; }
    .hero-icon-text { font-size: 0.95rem; }
}

@media (max-width: 768px) {
    .hero-icons { display: none; }
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color, #f52008);
    color: var(--light-text, #ffffff);
    text-decoration: none;
    border-radius: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

/* Responsive Design for Hero */
@media (max-width: 992px) {
    .hero-content {
        width: 50%;
    }
}

/* iPad/tablet landscape fix: avoid overlap by stacking hero content and form */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 5% 50px;
        height: auto;
        overflow: visible;
    }
    .hero-content {
        width: 100%;
        margin-bottom: 24px;
    }
    .hire-form {
        position: static;
        transform: none;
        width: 100%;
        max-width: 460px;
        margin: 0 auto 24px;
    }
    .hero-icons {
        display: none;
    }
    .corner-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 5% 50px;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    .hero-content {
        width: 100%;
        margin-bottom: 24px;
    }
    .hero h2 {
        font-size: 2.0rem;
        min-height: 80px;
    }
    .hire-form {
        position: static;
        transform: none;
        width: 100%;
        max-width: 420px;
        margin: 0 auto 32px;
        padding: 18px;
    }
}

/* Ensure hire form inputs have extra left padding past generic .form-group rule */
.hire-form .form-group input {
    padding-left: 40px;
}

/* Additional responsive refinements */
@media (max-width: 900px) {
    .hero {
        padding: 100px 5% 0;
    }
    .hero h2 {
        font-size: 1.85rem;
        min-height: 72px;
    }
    .tagline {
        font-size: 1.1rem;
    }
    .hero-icons {
        bottom: 14%;
    }
}

/* Large phones and small tablets (e.g., iPhone XR portrait) */
@media (max-width: 480px) {
    .hero {
        padding: 100px 5% 18px;
    }
    .hero h2 {
        font-size: 1.35rem;
        min-height: 56px;
    }
    .tagline {
        font-size: 1rem;
        font-weight: 700;
    }
    .cta-button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .hire-form {
        padding: 18px;
        border-radius: 14px;
        width: 100%;
        max-width: 420px;
    }
    .hire-form input {
        padding: 12px 14px 12px 56px;
        border-radius: 12px;
    }
    .hire-form .submit-btn {
        padding: 12px;
        border-radius: 12px;
    }
}

/* Small phones (e.g., iPhone SE 2/3) */
@media (max-width: 375px) {
    .hero {
        padding: 96px 4% 16px;
    }
    .hero h2 {
        font-size: 1.18rem;
        min-height: 50px;
    }
    .tagline {
        font-size: 0.95rem;
    }
    .cta-button {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Extra small legacy devices (<=320px) */
@media (max-width: 320px) {
    .hero {
        padding: 96px 4% 14px;
    }
    .hero h2 {
        font-size: 1.0rem;
        min-height: 44px;
    }
    .tagline {
        font-size: 0.9rem;
        letter-spacing: 0.2px;
    }
    .cta-button {
        padding: 9px 16px;
        font-size: 0.85rem;
    }
}
