/* --------------------------------------------------------------------------
   Mahmoud Masoud - Podcast Portfolio Style Sheet (Monochrome Glow Theme)
   -------------------------------------------------------------------------- */

/* Design Tokens & Theme Constants */
:root {
    --bg-primary: #050508;       /* Pure rich black */
    --bg-secondary: #0c0c11;     /* Dark slate gray (one step lighter) */
    --bg-tertiary: #13131a;      /* Inside track container background */
    --text-main: #ffffff;        /* High-contrast pure white */
    --text-muted: #a3aab6;       /* Medium silver-gray for paragraphs */
    --text-dark: #5c626e;        /* Low-contrast dark gray for tags/lines */
    
    /* Neon Glow & Brand Accents */
    --accent-cyan: #ffffff;      /* Metallic white for active components */
    --accent-glow: rgba(255, 255, 255, 0.08); /* Silver soft glow */
    --border-glass: 1px solid rgba(255, 255, 255, 0.07);
    --border-glass-hover: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Timings & Animations */
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    position: relative;
    font-size: 16px;
}

/* Language Configuration (RTL / LTR support) */
body.lang-en {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    direction: ltr;
}

body.lang-ar {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    direction: rtl;
    line-height: 1.6;
}

/* Toggle displays depending on active body class */
body.lang-en .lang-content.ar { display: none !important; }
body.lang-ar .lang-content.en { display: none !important; }

/* Dynamic Shifting Gradient Background */
.hero-section {
    position: relative;
    background: linear-gradient(-45deg, #050508, #08080f, #11111a, #050508);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Dynamic Ambient Glow Blobs */
.bg-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    opacity: 0.12;
    pointer-events: none;
    animation: pulse 12s infinite alternate ease-in-out;
}

.blob-1 {
    top: 5vh;
    left: -10vw;
    background-color: #ffffff;
}

.blob-2 {
    top: 60vh;
    right: -10vw;
    background-color: #4b5563; /* slate gray */
}

.blob-3 {
    top: 150vh;
    left: 10vw;
    background-color: #111827; /* dark space */
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.08; }
    50% { transform: scale(1.15) translate(30px, -30px); opacity: 0.16; }
    100% { transform: scale(0.9) translate(-30px, 30px); opacity: 0.1; }
}

/* Scroll Reveal Animations styling */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Utility Layout Containers */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Headers & Sections Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 40%, #8a8a93 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Header styling */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(5, 5, 8, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--border-glass);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Lang Switcher */
.lang-switch-container {
    display: flex;
    background-color: rgba(255, 255, 255, 0.05);
    border: var(--border-glass);
    border-radius: 20px;
    padding: 2px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn.active {
    background-color: var(--text-main);
    color: var(--bg-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-header-btn {
    text-decoration: none;
    background-color: var(--text-main);
    color: var(--bg-primary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.cta-header-btn:hover {
    background-color: transparent;
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    border: 1px solid var(--text-main);
}

/* Button general styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-primary);
    border: 1px solid var(--text-main);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-main);
    box-shadow: 0 0 25px rgba(255,255,255,0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: var(--border-glass);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

/* Hero Two-Column Layout */
.hero-section {
    padding-top: 150px;
    padding-bottom: 80px;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

body.lang-en .hero-layout {
    text-align: left;
}

body.lang-ar .hero-layout {
    text-align: right;
}

.hero-info {
    flex: 1.2;
}

.hero-image-wrap {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Avatar Frame & Float Animation */
.hero-image-container {
    position: relative;
    width: 320px;
    height: 420px;
    border-radius: 24px;
    border: var(--border-glass);
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.8deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    filter: grayscale(20%);
    transition: var(--transition-smooth);
}

.hero-image-container:hover .hero-avatar {
    filter: grayscale(0%);
}

.hero-image-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.hero-title {
    font-size: 50px;
    line-height: 1.15;
    margin-bottom: 24px;
}

body.lang-ar .hero-title {
    font-size: 42px;
    line-height: 1.35;
}

.hero-subtitle {
    font-size: 17px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

body.lang-ar .hero-ctas {
    justify-content: flex-start;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background-color: rgba(12, 12, 17, 0.6);
    border: var(--border-glass);
    border-radius: 16px;
    padding: 30px 20px;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stat-num {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Sections Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 15px;
    line-height: 1.6;
}

/* Workflow Timeline Tabs */
.workflow-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
    position: relative;
}

/* Unified Grid Workflow Layout */
.workflow-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.workflow-column {
    background-color: var(--bg-secondary);
    border: var(--border-glass);
    border-radius: 24px;
    padding: 35px;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.workflow-column:hover {
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.workflow-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 15px;
}

.workflow-col-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.workflow-col-title i {
    font-size: 18px;
    opacity: 0.8;
}

.workflow-col-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.duration-badge {
    font-size: 11px;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.02);
}

/* Timeline Custom Styles for Grid */
.workflow-column .timeline-vertical {
    max-width: 100%;
    padding-inline-start: 35px;
}

.workflow-column .timeline-vertical::before {
    inset-inline-start: 11px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.01) 100%);
}

.workflow-column .step-num {
    inset-inline-start: -35px;
    width: 24px;
    height: 24px;
    font-size: 10px;
    border-width: 1.5px;
    box-shadow: 0 0 8px rgba(255,255,255,0.1);
}

.workflow-column .step-content {
    background-color: var(--bg-primary);
    border: var(--border-glass);
    padding: 24px;
    border-radius: 14px;
    transition: var(--transition-smooth);
}

.workflow-column .step-content:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 12px rgba(255,255,255,0.03);
}

/* Flow Connect Link Badge */
.step-link-badge {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.03);
    animation: pulseGlow 2.5s infinite ease-in-out;
}

.step-link-badge i.arrow-desktop {
    display: inline-block;
}
.step-link-badge i.arrow-mobile {
    display: none;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Vertical Timeline Structure */
.timeline-vertical {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-inline-start: 40px;
}

/* Vertical timeline vertical bar */
.timeline-vertical::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    inset-inline-start: 14px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.02) 100%);
}

.timeline-step {
    position: relative;
    margin-bottom: 48px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

/* Bullet node */
.step-num {
    position: absolute;
    inset-inline-start: -40px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 2px solid var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    z-index: 2;
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.step-content {
    background-color: var(--bg-primary);
    border: var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.step-content:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transform: translateX(4px);
}

body.lang-ar .step-content:hover {
    transform: translateX(-4px);
}

.step-tools {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tool-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.04);
    border: var(--border-glass);
    padding: 4px 10px;
    border-radius: 4px;
}

.step-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.step-text {
    font-size: 14px;
    line-height: 1.6;
}

/* Philosophy Section Card */
.philosophy-section {
    padding: 100px 0;
    position: relative;
}

.philosophy-card {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.0) 70%), var(--bg-secondary);
    border: var(--border-glass);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.philosophy-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.philosophy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    border-radius: 30px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.philosophy-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 24px;
}

.philosophy-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

/* Simulated Premiere Pro Interface */
.timeline-demo-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
}

.premiere-mockup {
    background-color: #1a1a24;
    border: 1px solid #2d2d3d;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* Timeline Ruler */
.premiere-ruler {
    background-color: #232330;
    height: 36px;
    border-bottom: 1px solid #2d2d3d;
    position: relative;
}

.ruler-ticks {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    font-family: monospace;
    font-size: 11px;
    color: #88889a;
}

/* Playhead Marker */
.playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--accent-cyan);
    z-index: 10;
}

.playhead::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--accent-cyan) transparent transparent;
}

/* Track Lanes */
.premiere-tracks {
    display: flex;
    flex-direction: column;
}

.track-row {
    display: flex;
    height: 48px;
    border-bottom: 1px solid #242433;
}

.track-row:last-child {
    border-bottom: none;
}

.track-info {
    width: 140px;
    background-color: #1f1f2a;
    border-inline-end: 1px solid #2d2d3d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 12px;
    flex-shrink: 0;
}

.track-name {
    font-size: 11px;
    font-weight: 600;
    color: #bbb;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-toggles {
    display: flex;
    gap: 6px;
}

.track-toggles span {
    font-family: monospace;
    font-size: 9px;
    font-weight: 800;
    background-color: #2d2d3d;
    color: #777;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    cursor: default;
}

.track-lane {
    flex-grow: 1;
    background-color: #13131a;
    position: relative;
    overflow: hidden;
}

/* Segment clips */
.clip-segment {
    position: absolute;
    top: 6px;
    bottom: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 10px;
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.clip-segment:hover {
    transform: scaleY(1.05);
    filter: brightness(1.2);
}

/* Video Track Color */
.clip-video {
    background-color: #3b82f6;
    border-left: 2px solid #60a5fa;
}

/* Audio Track Color */
.clip-audio {
    background-color: #10b981;
    border-left: 2px solid #34d399;
}

/* GFX Track Color */
.clip-gfx {
    background-color: #8b5cf6;
    border-left: 2px solid #a78bfa;
}

/* SFX Track Color */
.clip-sfx {
    background-color: #f59e0b;
    border-left: 2px solid #fbbf24;
}

/* Active Segment Border Glow */
.clip-segment.selected {
    box-shadow: 0 0 15px #ffffff;
    border: 1px solid #fff !important;
}

/* Timeline details panel */
.timeline-info-panel {
    background-color: var(--bg-primary);
    border: var(--border-glass);
    border-radius: 12px;
    padding: 30px;
    min-height: 160px;
}

.info-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: var(--text-dark);
}

.info-placeholder i {
    font-size: 32px;
    margin-bottom: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.info-content {
    animation: slideUp 0.3s ease forwards;
}

.info-content.hidden {
    display: none;
}

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

.info-title {
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-title i {
    color: var(--text-main);
}

.info-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Portfolio Shows Grid */
.projects-section {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background-color: var(--bg-secondary);
    border: var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.project-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    overflow: hidden;
}

.project-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.03);
    filter: brightness(0.7);
}

/* Play button overlay */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.play-btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    transition: var(--transition-smooth);
}

/* Handle play icon offset */
body.lang-ar .play-btn-circle i {
    padding-inline-end: 2px;
}
body.lang-en .play-btn-circle i {
    padding-left: 2px;
}

.project-card:hover .play-overlay {
    opacity: 1;
}

.project-card:hover .play-btn-circle {
    transform: scale(1.15);
    background-color: #ffffff;
    box-shadow: 0 0 35px #ffffff;
}

.project-details {
    padding: 24px;
}

.project-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.project-name {
    font-size: 20px;
    margin-bottom: 12px;
}

.project-meta {
    font-size: 14px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Shorts & Reels 9:16 Showcase Grid
   -------------------------------------------------------------------------- */
.shorts-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
    border-top: var(--border-glass);
}

.shorts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.short-card {
    background-color: var(--bg-secondary);
    border: var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.short-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.short-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 aspect ratio (vertical phone shape) */
    background-color: #000;
    overflow: hidden;
}

.short-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.short-card:hover .short-thumbnail img {
    transform: scale(1.04);
    filter: brightness(0.7);
}

.short-card .play-btn-circle {
    width: 50px;
    height: 50px;
    font-size: 16px;
}

.short-details {
    padding: 16px 20px;
    text-align: center;
}

.short-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

/* Resume Section */
.resume-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
}

.resume-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.resume-group {
    margin-bottom: 40px;
}

.resume-group:last-child {
    margin-bottom: 0;
}

.resume-group-title {
    font-size: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.resume-item {
    margin-bottom: 30px;
}

.resume-item:last-child {
    margin-bottom: 0;
}

.resume-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.resume-job-title {
    font-size: 18px;
    margin-bottom: 4px;
}

.resume-company {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.resume-bullets {
    list-style-type: none;
}

.resume-bullets li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
    padding-inline-start: 16px;
}

.resume-bullets li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--text-main);
}

.resume-bullets.font-small li {
    font-size: 13px;
}

.resume-text {
    font-size: 14px;
    line-height: 1.6;
}

.resume-sub-title {
    font-size: 16px;
    margin-bottom: 4px;
}

/* Skills/Tools tag wraps */
.skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag, .tool-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: var(--bg-primary);
    border: var(--border-glass);
    transition: var(--transition-smooth);
}

.skill-tag:hover, .tool-tag:hover {
    border-color: rgba(255,255,255,0.25);
    background-color: rgba(255, 255, 255, 0.02);
}

.tool-tag {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-tag i {
    color: var(--text-muted);
}

/* Footer Section */
.main-footer {
    padding: 80px 0 30px 0;
    border-top: var(--border-glass);
}

.footer-wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 18px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    max-width: 450px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 24px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: var(--text-main);
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.contact-link i {
    font-size: 16px;
    width: 20px;
}

.location-text {
    cursor: default;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-dark);
}

/* Lightbox Modal Player */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 5, 8, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    width: 90%;
    max-width: 900px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), max-width 0.4s ease;
}

/* Slimmer aspect-shorts modifier for lightbox wrapper */
.lightbox-content.aspect-shorts {
    max-width: 380px;
}

.video-lightbox.active .lightbox-content {
    transform: scale(1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 standard video aspect ratio */
    background-color: #000;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    border-radius: 12px;
    overflow: hidden;
    transition: padding-bottom 0.4s ease;
}

/* Inverted aspect-shorts modifier for vertical Shorts */
.video-wrapper.aspect-shorts {
    padding-bottom: 177.78%; /* 9:16 aspect ratio */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    inset-inline-end: 0;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero-layout {
        flex-direction: column-reverse;
        gap: 40px;
        text-align: center !important;
    }
    .hero-info {
        width: 100%;
    }
    .hero-title {
        font-size: 40px;
    }
    body.lang-ar .hero-title {
        font-size: 36px;
    }
    .hero-ctas {
        justify-content: center !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shorts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .resume-layout {
        grid-template-columns: 1fr;
    }
    .workflow-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .step-link-badge i.arrow-desktop {
        display: none;
    }
    .step-link-badge i.arrow-mobile {
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 16px;
    }
    .logo-img {
        height: 32px;
    }
    .header-actions {
        gap: 10px;
    }
    .cta-header-btn {
        padding: 6px 14px;
        font-size: 11px;
    }
    .lang-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    .nav-menu {
        display: none; /* simple hidden nav for tablet/mobile */
    }
    .hero-section {
        padding-top: 120px;
        padding-bottom: 50px;
    }
    .hero-title {
        font-size: 32px;
    }
    body.lang-ar .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hero-ctas .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    .workflow-column {
        padding: 24px 16px;
    }
    .premiere-mockup {
        display: block !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        direction: ltr !important;
        margin-bottom: 24px;
    }
    .premiere-ruler, .premiere-tracks {
        min-width: 750px;
    }
    .timeline-demo-section .section-header {
        margin-bottom: 30px;
    }
    .timeline-info-panel {
        margin-top: 20px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .shorts-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    .footer-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .timeline-vertical {
        padding-inline-start: 30px;
    }
    .timeline-vertical::before {
        inset-inline-start: 9px;
    }
    .step-num {
        inset-inline-start: -30px;
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .cta-header-btn {
        display: none !important;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 26px;
    }
    body.lang-ar .hero-title {
        font-size: 24px;
    }
    .hero-image-container {
        width: 280px;
        height: 370px;
    }
}

/* ==========================================================================
   Client Testimonials Section
   ========================================================================== */
.testimonials-section {
    padding: 100px 0;
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: 20px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    backdrop-filter: blur(10px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 80px;
    font-family: serif;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
}

body.lang-ar .testimonial-card::before {
    left: 25px;
    right: auto;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.03);
}

.test-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    color: #ffb703;
    font-size: 14px;
}

.test-quote {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-style: italic;
    flex-grow: 1;
}

.test-user {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: var(--border-glass);
    padding-top: 20px;
}

.test-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.testimonial-card:hover .test-avatar {
    border-color: var(--text-main);
}

.test-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.test-meta {
    display: flex;
    flex-direction: column;
}

.test-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.test-role {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   Cal.com CTAs & Social Networks
   ========================================================================== */
.btn-cal {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cal:hover {
    background-color: var(--text-main);
    color: var(--bg-primary);
    border-color: var(--text-main);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Booking card in Footer */
.cal-booking-card {
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
}

.cal-booking-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.cal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cal-title i {
    color: var(--text-main);
    opacity: 0.8;
}

.cal-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

.btn-cal-footer {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
}

/* Social Grid Styles */
.social-networks {
    margin-top: 25px;
}

.socials-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 600;
}

.social-icons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    color: var(--text-muted);
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.social-icon-btn.linkedin:hover {
    background-color: #0a66c2;
    border-color: #0a66c2;
    color: #fff;
    box-shadow: 0 0 15px rgba(10, 102, 194, 0.4);
}

.social-icon-btn.youtube:hover {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.social-icon-btn.behance:hover {
    background-color: #0057ff;
    border-color: #0057ff;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 87, 255, 0.4);
}

.social-icon-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.4);
}

.social-icon-btn.tiktok:hover {
    background-color: #010101;
    border-color: #fe2c55;
    color: #fff;
    box-shadow: 0 0 15px rgba(254, 44, 85, 0.4);
}

.social-icon-btn.facebook:hover {
    background-color: #1877f2;
    border-color: #1877f2;
    color: #fff;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
}

/* Responsive Rules for Testimonials & Grid */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .testimonial-card {
        padding: 25px;
    }
}

/* Creative Philosophy & AI Grid Layout */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.philosophy-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: start;
    transition: var(--transition-smooth);
}

body.lang-ar .philosophy-card {
    align-items: flex-start;
    text-align: start;
}

.philosophy-card .philosophy-text {
    margin: 0;
    max-width: 100%;
}

.philosophy-grid .philosophy-title {
    font-size: 26px;
    margin-bottom: 18px;
    text-align: start;
}

body.lang-ar .philosophy-grid .philosophy-title {
    text-align: start;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.02);
}

@media (max-width: 992px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .philosophy-card {
        padding: 40px 24px;
        align-items: center;
        text-align: center;
    }
    body.lang-ar .philosophy-card {
        align-items: center;
        text-align: center;
    }
    .philosophy-card .philosophy-text {
        margin: 0 auto;
    }
    .philosophy-grid .philosophy-title {
        font-size: 24px;
        text-align: center;
    }
    body.lang-ar .philosophy-grid .philosophy-title {
        text-align: center;
    }
}

