/* ============================================================
   🎬 CINEMATIC DARK MODE — Movie Trailer Interface
   Premium recruitment landing page for creative professionals
   ============================================================ */

:root {
    --primary: #ff0000;
    --primary-dark: #b30000;
    --primary-bright: #ff3333;
    --primary-glow: rgba(255, 0, 0, 0.35);
    --primary-glow-strong: rgba(255, 0, 0, 0.6);
    --primary-glow-subtle: rgba(255, 0, 0, 0.12);
    --bg-black: #000000;
    --bg-deep: #050505;
    --card-bg: rgba(8, 8, 8, 0.55);
    --card-bg-hover: rgba(12, 12, 12, 0.65);
    --input-bg: rgba(10, 10, 10, 0.8);
    --input-bg-focus: rgba(15, 10, 10, 0.9);
    --border: rgba(255, 255, 255, 0.06);
    --border-red: rgba(255, 0, 0, 0.15);
    --border-red-glow: rgba(255, 0, 0, 0.4);
    --text-white: #ffffff;
    --text-light: #e5e5e5;
    --text-gray: #8a8a8a;
    --text-dim: #555555;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

/* ============ GLOBAL RESET ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient background glow */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(255, 0, 0, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 100%, rgba(255, 0, 0, 0.03) 0%, transparent 50%);
    z-index: -1;
    animation: ambientShift 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ambientShift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-3%, 2%) rotate(1deg);
    }
}

/* ============================================================
   HERO SECTION — Cinematic Video Background
   ============================================================ */
.hero {
    position: relative;
    height: 70vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.9) contrast(1.1) saturate(0.8);
}

/* Cinematic gradient overlays */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.4) 0%,
            transparent 30%,
            transparent 60%,
            rgba(0, 0, 0, 0.7) 85%,
            var(--bg-black) 100%);
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center 40%, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

/* Red cinematic light leak */
.hero .hero-content::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(255, 0, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 24px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow:
        0 0 30px rgba(255, 255, 255, 0.15),
        0 0 60px rgba(255, 0, 0, 0.1);
    margin-bottom: 16px;
}

.hero-content h1 span {
    color: var(--primary);
    text-shadow:
        0 0 20px var(--primary-glow),
        0 0 50px rgba(255, 0, 0, 0.2),
        0 0 80px rgba(255, 0, 0, 0.08);
    position: relative;
}

.hero-content p {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--text-gray);
    font-weight: 300;
    letter-spacing: 0.3px;
    max-width: 500px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   CONTAINER & LAYOUT — Generous Spacing
   ============================================================ */
.container {
    max-width: 880px;
    margin: -25px auto 80px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* ============================================================
   CARDS — Enhanced Glassmorphism + Floating Effect
   ============================================================ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    position: relative;
    transition:
        transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        border-color 0.4s ease,
        box-shadow 0.5s ease;
    animation: cardFloat 6s ease-in-out infinite;
}

.card:nth-child(2) {
    animation-delay: -2s;
}

.card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Red edge glow — top accent line */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    border-radius: 1px;
    opacity: 0.6;
    transition: opacity 0.4s;
}

/* Corner glow effect */
.card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg,
            rgba(255, 0, 0, 0.08) 0%,
            transparent 40%,
            transparent 60%,
            rgba(255, 0, 0, 0.04) 100%);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.4s;
    opacity: 0;
}

.card:hover {
    border-color: var(--border-red-glow);
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 0, 0, 0.06),
        inset 0 0 60px rgba(255, 0, 0, 0.02);
    animation-play-state: paused;
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    letter-spacing: 0.3px;
}

.card-title i {
    color: var(--primary);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

/* ============================================================
   GRID & INPUTS — Sleek with Neon Focus
   ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.input-group {
    margin-bottom: 6px;
}

.input-group label {
    display: block;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.3s;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: color 0.3s ease, filter 0.3s ease;
    z-index: 2;
}

input,
select,
textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 48px 14px 16px;
    color: var(--text-white);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.92rem;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-dim);
    font-weight: 300;
}

/* ✨ Neon Red Focus Glow */
input:focus,
textarea:focus {
    border-color: var(--primary);
    background: var(--input-bg-focus);
    box-shadow:
        0 0 0 3px rgba(255, 0, 0, 0.1),
        0 0 20px rgba(255, 0, 0, 0.08),
        inset 0 0 20px rgba(255, 0, 0, 0.02);
}

/* Icon turns red on focus */
.input-wrapper:focus-within i {
    color: var(--primary);
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

/* Label highlight on focus */
.input-group:focus-within label {
    color: var(--primary-bright);
}

textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.7;
    padding-right: 16px;
}

/* ============================================================
   TYPE SELECTION — Editor / Photographer Cards
   ============================================================ */
.type-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.type-btn {
    background: var(--input-bg);
    border: 2px solid var(--border);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition:
        all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow on hover */
.type-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    pointer-events: none;
}

.type-btn:hover::before {
    width: 300px;
    height: 300px;
}

.type-btn:hover {
    border-color: rgba(255, 0, 0, 0.25);
    transform: scale(1.03) translateY(-3px);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 0, 0, 0.05);
}

.type-btn.active {
    border-color: var(--primary);
    background: rgba(255, 0, 0, 0.04);
    box-shadow:
        0 0 25px rgba(255, 0, 0, 0.1),
        inset 0 0 30px rgba(255, 0, 0, 0.03);
    transform: scale(1.03);
}

.type-btn i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    color: var(--text-dim);
    transition: all 0.4s;
}

.type-btn:hover i {
    color: var(--text-gray);
    transform: scale(1.1);
}

.type-btn.active i {
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary-glow));
    transform: scale(1.15);
}

.type-btn b {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.type-btn p {
    color: var(--text-dim);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.type-btn.active b {
    color: var(--text-white);
}

.type-btn.active p {
    color: var(--primary-bright);
}

/* ============================================================
   SUBMIT BUTTON — Heroic with Pulse Animation
   ============================================================ */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-bright));
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 1.3rem 5rem;
    border-radius: 60px;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    display: block;
    margin: 3rem auto 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    transition:
        transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s;
    box-shadow:
        0 4px 25px rgba(255, 0, 0, 0.3),
        0 0 50px rgba(255, 0, 0, 0.1);
    animation:
        btnGradient 4s ease infinite,
        btnPulse 3s ease-in-out infinite;
}

@keyframes btnGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow:
            0 4px 25px rgba(255, 0, 0, 0.3),
            0 0 50px rgba(255, 0, 0, 0.1);
    }

    50% {
        box-shadow:
            0 6px 35px rgba(255, 0, 0, 0.45),
            0 0 70px rgba(255, 0, 0, 0.15),
            0 0 100px rgba(255, 0, 0, 0.05);
    }
}

/* Shine sweep effect */
.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transition: left 0.6s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow:
        0 8px 40px rgba(255, 0, 0, 0.4),
        0 0 80px rgba(255, 0, 0, 0.15);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    background: #333;
    cursor: not-allowed;
    box-shadow: none;
    animation: none;
    opacity: 0.6;
}

/* ============================================================
   ADD PORTFOLIO BUTTON
   ============================================================ */
.btn-add {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 0;
    transition: all 0.3s;
    position: relative;
}

.btn-add:hover {
    color: var(--primary-bright);
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transform: translateX(-3px);
}

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

.btn-add:hover i {
    transform: rotate(90deg);
}

/* Remove portfolio link button */
.btn-remove {
    background: rgba(255, 0, 0, 0.08);
    border: 1px solid rgba(255, 0, 0, 0.15);
    color: var(--primary);
    cursor: pointer;
    border-radius: 8px;
    padding: 10px 14px;
    margin-right: 8px;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.btn-remove:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Portfolio item layout */
.portfolio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   STATUS MESSAGES
   ============================================================ */
.status-msg {
    padding: 1.1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    text-align: center;
    display: none;
    font-weight: 500;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    animation: statusSlide 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes statusSlide {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success {
    background: rgba(0, 255, 50, 0.06);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.05);
}

.error {
    background: rgba(255, 0, 0, 0.06);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.05);
}

/* ============================================================
   UPLOAD ZONE (if re-enabled)
   ============================================================ */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--input-bg);
}

.upload-zone:hover {
    border-color: rgba(255, 0, 0, 0.3);
    background: rgba(255, 0, 0, 0.02);
    box-shadow: inset 0 0 30px rgba(255, 0, 0, 0.02);
}

.upload-zone p {
    color: var(--text-dim);
    margin-top: 8px;
    font-size: 0.9rem;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the card animations */
.card.reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.card.reveal:nth-child(2) {
    transition-delay: 0.25s;
}

.card.reveal:nth-child(3) {
    transition-delay: 0.4s;
}

.card.reveal:nth-child(4) {
    transition-delay: 0.55s;
}

/* ============================================================
   SCROLLBAR — Minimal Dark
   ============================================================ */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 0, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 0, 0.4);
}

/* ============================================================
   SELECTION HIGHLIGHT
   ============================================================ */
::selection {
    background: rgba(255, 0, 0, 0.25);
    color: white;
}

/* ============================================================
   RESPONSIVE — Mobile Optimizations
   ============================================================ */
@media (max-width: 768px) {
    .hero {
        height: 55vh;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .container {
        margin-top: -60px;
        padding: 0 16px;
    }

    .card {
        padding: 1.6rem 1.3rem;
        margin-bottom: 2rem;
        border-radius: var(--radius-md);
        animation: none;
        /* Disable floating on mobile for performance */
    }

    .card:hover {
        transform: translateY(-4px);
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .type-selection {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .type-btn {
        padding: 1.5rem 1rem;
    }

    .type-btn i {
        font-size: 2rem;
    }

    .btn-submit {
        padding: 1.1rem 3rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 350px;
    }

    .card-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 400px) {
    .type-selection {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 45vh;
    }

    .btn-submit {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ============================================================
   HERO LOGO
   ============================================================ */
.hero-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow:
        0 0 40px rgba(255, 0, 0, 0.2),
        0 0 80px rgba(255, 0, 0, 0.08);
    animation: logoFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .hero-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 14px;
    }
}

/* ============================================================
   PHONE VALIDATION STYLES
   ============================================================ */
.phone-prefix-label {
    display: inline-block;
    background: rgba(255, 0, 0, 0.1);
    color: var(--primary, #ff0000);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-right: 6px;
    direction: ltr;
    letter-spacing: 1px;
}

.phone-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-dim, #555);
    transition: all 0.3s ease;
}

.phone-hint i {
    font-size: 0.75rem;
}

.phone-hint.warning {
    color: #f59e0b;
}

.phone-hint.success {
    color: #10b981;
}

.phone-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #ef4444;
    animation: shakeHint 0.4s ease;
}

.phone-error i {
    font-size: 0.75rem;
}

@keyframes shakeHint {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

/* Input validation states */
input.input-valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 0 15px rgba(16, 185, 129, 0.05) !important;
}

input.input-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1), 0 0 15px rgba(239, 68, 68, 0.05) !important;
}

/* Phone input with prefix icon styling */
#whatsappInput {
    direction: ltr;
    text-align: left;
    letter-spacing: 1.5px;
    font-weight: 500;
}