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

:root {
    /* Color Palette */
    --bg-darker: #060913;
    --bg-dark: #0b0f19;
    --bg-card: rgba(15, 23, 42, 0.45);
    
    --primary: #ff6b00;
    --primary-glow: rgba(255, 107, 0, 0.25);
    --primary-gradient: linear-gradient(135deg, #ff8c00, #e65c00);
    
    --secondary-blue: #0ea5e9;
    --secondary-blue-glow: rgba(14, 165, 233, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Layout & Fonts */
    --font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    overflow: hidden; /* Hide body scroll, columns will handle overflow if needed */
    line-height: 1.85;
}

/* Background Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(255, 107, 0, 0) 70%);
    top: 20%;
    right: -100px;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

/* Split Layout Container */
.split-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Content Side (Right Side in RTL) */
.content-side {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem 5rem;
    overflow-y: auto;
    position: relative;
    z-index: 10;
    background-color: var(--bg-dark);
}

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

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo-link:hover {
    transform: scale(1.04) rotate(-1deg);
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.5));
}

.logo-img {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.main-content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 2.5rem 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 680px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 850;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 40%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    align-self: flex-start;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.hero-description {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.lead-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.65;
    border-right: 4px solid var(--primary);
    padding-right: 1rem;
    margin-bottom: 0.5rem;
}

.hero-actions {
    margin-top: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.6rem;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.55);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.hero-footer-phrase {
    align-self: flex-start;
    padding: 1rem 2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-footer-phrase strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, #fff 40%, #ffc17a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.side-footer {
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* Image Side (Left Side in RTL) */
.image-side {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-darker);
    perspective: 1200px;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.05); /* Slight scale to hide edges on tilt */
    transition: var(--transition-smooth);
}

.image-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0) 35%);
    pointer-events: none;
    z-index: 2;
}

/* Animations */
@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .content-side {
        padding: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    html, body {
        overflow: auto;
    }
    
    .split-layout {
        flex-direction: column-reverse; /* Stacked layout on tablets and mobiles: Image at the top, Content below */
        height: auto;
        width: 100%;
    }
    
    .image-side {
        width: 100%;
        height: 50vh;
        min-height: 380px;
    }
    
    .content-side {
        width: 100%;
        height: auto;
        padding: 3rem 2rem;
        overflow-y: visible;
    }
    
    .main-content-wrapper {
        margin: 2.5rem 0;
    }
    
    .image-overlay-gradient {
        background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0) 45%);
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .content-side {
        padding: 2.5rem 1.25rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .lead-text {
        font-size: 1.35rem;
        padding-right: 0.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-footer-phrase {
        width: 100%;
        text-align: center;
    }
}
