/* ============================================
   AdGen AI - Main Styles جالس
   Modern, Premium, AR-first Design
   ============================================ */

/* ========== CSS Variables ========== */
:root {
    /* Colors */
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #EC4899;
    --accent: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Dark Theme */
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.6);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Typography */
    --font-arabic: 'Cairo', sans-serif;
    --font-latin: 'Poppins', sans-serif;
    --font-code: 'Fira Code', monospace;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* Language Specific Fonts & Direction */
html[lang="ar"] body {
    font-family: var(--font-arabic);
    direction: rtl;
}

html[lang="en"] body {
    font-family: var(--font-latin);
    direction: ltr;
}

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

/* ========== Typography ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--primary);
}

strong {
    font-weight: 700;
    color: var(--text-primary);
}

/* ========== Utilities ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: inline;
    }
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--spacing-md) 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: var(--spacing-sm) 0;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-lg);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: none;
    gap: var(--spacing-lg);
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    gap: var(--spacing-sm);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

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

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--spacing-2xl)) 0 var(--spacing-3xl);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -250px;
    right: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary), transparent);
    bottom: -200px;
    left: -200px;
    animation-delay: 8s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

#particlesCanvas {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: right;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.badge-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.typed-text {
    color: var(--primary);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-inline: auto;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        margin-inline: 0;
    }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-lg);
    max-width: 500px;
    margin-inline: auto;
}

@media (min-width: 1024px) {
    .hero-stats {
        margin-inline: 0;
    }
}

.stat-item {
    text-align: center;
}

@media (min-width: 1024px) {
    .stat-item {
        text-align: right;
    }
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.mockup-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.mockup-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    filter: blur(40px);
    opacity: 0.5;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.7;
    }
}

.mockup-screen {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-2xl);
}

.chat-demo {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.chat-message {
    display: flex;
    gap: var(--spacing-sm);
    animation: slideIn 0.5s ease-out;
}

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

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

.chat-message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
}

.chat-message.user .message-bubble {
    background: var(--gradient-primary);
    color: white;
}

.chat-message.ai .message-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-accent);
}

.thinking-dots {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.thinking-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: bounce 1.4s infinite both;
}

.thinking-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {

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

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

.mockup-reflection {
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.2), transparent);
    border-radius: var(--radius-2xl);
    filter: blur(20px);
    transform: scaleY(-1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: float 2s ease-in-out infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: var(--radius-full);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {

    0%,
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, 12px);
        opacity: 0;
    }
}

/* ========== Problem & Solution Section ========== */
.problem-solution {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
}

@media (min-width: 1024px) {
    .section-split {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
}

.split-side {
    position: relative;
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.section-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.section-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
}

.problem-list,
.solution-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.problem-item,
.solution-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.problem-item {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.problem-item:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: translateX(5px);
}

.solution-item {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.solution-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    transform: translateX(-5px);
    box-shadow: var(--shadow-glow);
}

.problem-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.solution-icon {
    flex-shrink: 0;
}

.problem-text h4,
.solution-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.problem-text p,
.solution-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===========================================
   Legal & Document Pages (Precision Engineered)
   =========================================== */
.legal-page {
    position: relative;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    padding-top: clamp(100px, 15vh, 160px);
    /* Responsive Top Safety Zone */
    padding-bottom: 0;
}

/* Structural Container Optimization */
.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 5;
}

.legal-header {
    text-align: center;
    margin-bottom: clamp(40px, 8vh, 80px);
}

.legal-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* Master Glassmorphic Card */
.legal-card {
    background: rgba(15, 17, 26, 0.85);
    /* Deep contrast overlay */
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: clamp(30px, 5vw, 48px);
    padding: clamp(30px, 8vw, 80px);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
}

/* Section Grid System */
.legal-main-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.legal-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: start;
}

.legal-icon-box {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.legal-text-box h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.legal-text-box p {
    color: #cbd5e1;
    font-size: 1.2rem;
    line-height: 1.9;
    font-weight: 400;
}

/* Responsive Overrides (The Grid Logic) */
@media (max-width: 768px) {
    .legal-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .legal-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        border-radius: 14px;
    }

    .legal-text-box h2 {
        font-size: 1.5rem;
    }

    .legal-text-box p {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .legal-card {
        padding: 40px 24px;
    }
}

/* Background Sync */
.legal-page .hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ===========================================
   Premium UX Components
   =========================================== */

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    position: relative;
    width: 100px;
    height: 100px;
    animation: preloaderPulse 2s infinite ease-in-out;
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.9));
    }
}

/* Custom Cursor */
.custom-cursor {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    width: calc(100% - 48px);
    max-width: 650px;
    background: rgba(15, 17, 26, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 28px;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-content p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Demo Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
}

.modal-overlay.show {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 95%;
    max-width: 1100px;
    background: #0f111a;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    transform: scale(0.85);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 50px 150px rgba(0, 0, 0, 0.9);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #fff;
    z-index: 10;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.video-container {
    padding-top: 56.25%;
    /* 16:9 */
    position: relative;
    background: #000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Registration Modal Premium Design */
.registration-modal-content {
    max-width: 520px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 32px !important;
    padding: 40px 50px !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(99, 102, 241, 0.2) !important;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.registration-modal-content::-webkit-scrollbar {
    width: 4px;
}

.registration-modal-content::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

.registration-modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.registration-header {
    text-align: center;
    margin-bottom: 45px;
}

.registration-header h2 {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.registration-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    opacity: 0.85;
    line-height: 1.6;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-right: 4px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    padding: 18px 24px !important;
    color: #fff !important;
    font-size: 1.05rem !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3),
        inset 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}

.registration-form .btn-primary {
    padding: 22px !important;
    border-radius: 18px !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    margin-top: 15px !important;
    background: var(--gradient-primary) !important;
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.35) !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.4s ease !important;
}

.registration-form .btn-primary:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.5) !important;
    filter: brightness(1.2) !important;
}

.form-status {
    text-align: center;
    font-size: 1.05rem;
    margin-top: 25px;
    font-weight: 600;
}

.form-status.success {
    color: #10b981;
}

.form-status.error {
    color: #ef4444;
}

/* Social Hub Styles */
.modal-social-hub {
    margin-top: 40px;
    padding-top: 30px;
}

.hub-divider {
    text-align: center;
    position: relative;
    margin-bottom: 30px;
}

.hub-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.hub-divider span {
    background: #111827;
    padding: 0 15px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.social-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-link-card.whatsapp:hover {
    border-color: #25D366;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.1);
}

.social-link-card.linkedin:hover {
    border-color: #0077B1;
    box-shadow: 0 10px 20px rgba(0, 119, 177, 0.1);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-text span {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.card-text small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .registration-modal-content {
        padding: 40px 25px !important;
        max-width: 95% !important;
    }

    .registration-header h2 {
        font-size: 2rem;
    }

    .social-links-grid {
        grid-template-columns: 1fr;
    }
}



.custom-cursor,
.cursor-follower {
    display: none;
}

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