@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* =================================================================
   MARKTEN STYLE SHEET - DESIGN SYSTEM & STYLING
   ================================================================= */

/* -----------------------------------------------------------------
   1. CSS VARIABLES & SYSTEM DESIGN
   ----------------------------------------------------------------- */
:root {
    --primary-red: #D90429;
    --primary-red-hover: #ef233c;
    --dark-red-gradient: linear-gradient(135deg, #D90429 0%, #5c0211 100%);
    --glow-red-gradient: radial-gradient(circle, rgba(217, 4, 41, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    
    --bg-black: #050505;
    --bg-card: rgba(18, 18, 18, 0.7);
    --bg-nav: rgba(5, 5, 5, 0.8);
    --bg-footer: #080808;
    
    --border-glass: rgba(217, 4, 41, 0.12);
    --border-glass-hover: rgba(217, 4, 41, 0.4);
    
    --text-white: #ffffff;
    --text-gray-light: #e0e0e0;
    --text-gray: #a0a0a0;
    --text-gray-dark: #666666;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-mid: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
    
    --shadow-red: 0 8px 32px 0 rgba(217, 4, 41, 0.15);
    --shadow-red-hover: 0 12px 40px 0 rgba(217, 4, 41, 0.35);
    --shadow-inset: inset 0 0 12px rgba(255, 255, 255, 0.03);
}

/* -----------------------------------------------------------------
   2. BASE RESET & GENERAL STYLES
   ----------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-color: var(--bg-black);
}

/* Custom Selection Color */
::selection {
    background-color: var(--primary-red);
    color: var(--text-white);
}

/* Hide Default Cursor (Replaced by Custom Cursor) */
@media (pointer: fine) {
    body, a, button, select, textarea, input {
        cursor: none !important;
    }
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 100px 0;
}

.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* -----------------------------------------------------------------
   3. CUSTOM SCROLLBAR & PROGRESS BAR
   ----------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

#scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05);
}

#scroll-progress-bar {
    height: 100%;
    width: 0;
    background: var(--dark-red-gradient);
    box-shadow: 0 0 10px var(--primary-red);
    transition: width 0.1s ease-out;
}

/* -----------------------------------------------------------------
   4. PRELOADER & CUSTOM CURSOR
   ----------------------------------------------------------------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

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

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 20px;
    animation: pulseLogo 2s infinite ease-in-out;
}

.preloader-logo span {
    color: var(--primary-red);
    animation: flashDot 1.5s infinite alternate;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 15px auto;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.preloader-progress {
    width: 0;
    height: 100%;
    background: var(--primary-red);
    box-shadow: 0 0 8px var(--primary-red);
    transition: width 0.4s ease-out;
}

.preloader-status {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--text-gray);
    text-transform: uppercase;
}

/* Custom Cursor */
.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-red);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s ease-in-out, height 0.2s ease-in-out;
}

.custom-cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(217, 4, 41, 0.5);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.08s ease-out, width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

/* Custom Cursor Hover States */
.custom-cursor-dot.hovered {
    width: 4px;
    height: 4px;
    background-color: var(--text-white);
}

.custom-cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(217, 4, 41, 0.15);
    border-color: var(--primary-red);
    box-shadow: 0 0 15px rgba(217, 4, 41, 0.3);
}

/* Hide cursor on mobile devices */
@media (max-width: 1024px) {
    .custom-cursor-dot, .custom-cursor-outline {
        display: none;
    }
}

/* -----------------------------------------------------------------
   5. PREMIUM GLASSMORPHISM CARDS & GLOW EFFECTS
   ----------------------------------------------------------------- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-red);
    box-shadow: var(--shadow-inset);
    transition: var(--transition-mid);
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-red-hover);
    transform: translateY(-5px);
}

.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--glow-red-gradient);
    pointer-events: none;
    z-index: 1;
    filter: blur(80px);
    opacity: 0.6;
}

.glow-1 {
    top: -200px;
    left: -200px;
    animation: drift 15s infinite alternate ease-in-out;
}

.glow-2 {
    bottom: -200px;
    right: -200px;
    animation: drift 20s infinite alternate-reverse ease-in-out;
}

.glow-3 {
    top: 50%;
    left: 60%;
    width: 400px;
    height: 400px;
    animation: drift 25s infinite alternate ease-in-out;
}

/* -----------------------------------------------------------------
   6. PREMIUM BUTTONS & TYPOGRAPHY
   ----------------------------------------------------------------- */
.text-gradient {
    background: linear-gradient(135deg, var(--text-white) 30%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary-red);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.title-line {
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    border: none;
    transition: var(--transition-mid);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--dark-red-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7A0010 0%, #D90429 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(217, 4, 41, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    border-color: var(--primary-red);
    background: rgba(217, 4, 41, 0.05);
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.15);
    transform: translateY(-2px);
}

.btn-text-icon {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: var(--transition-fast);
}

.btn-text-icon:hover {
    color: var(--primary-red);
}

.btn-text-icon i {
    transition: transform 0.3s ease;
}

.btn-text-icon:hover i {
    transform: translateX(5px);
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    padding: 0;
}

.btn-link:hover {
    color: var(--text-white);
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.btn i {
    margin-left: 10px;
}

/* -----------------------------------------------------------------
   7. STICKY HEADER & NAV
   ----------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 25px 0;
    transition: var(--transition-mid);
}

.header.scrolled {
    padding: 15px 0;
    background: var(--bg-nav);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-white);
}

.logo .dot {
    color: var(--primary-red);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-gray-light);
    position: relative;
    padding: 5px 0;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

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

.btn-nav {
    padding: 10px 20px;
    font-size: 0.8rem;
    background: rgba(217, 4, 41, 0.1);
    border: 1px solid rgba(217, 4, 41, 0.3);
}

.btn-nav:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--text-white);
}

/* Mobile Nav Toggle Button */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    z-index: 101;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-mid);
}

/* -----------------------------------------------------------------
   8. HERO SECTION
   ----------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 130px;
    overflow: hidden;
}

.hero-bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Particles styling */
.particle {
    position: absolute;
    background: rgba(217, 4, 41, 0.4);
    border-radius: 50%;
    animation: floatUp infinite linear;
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.founder-intro {
    margin-bottom: 25px;
}

.founder-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-top: 4px;
}

.founder-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 2px;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary-red);
    background: rgba(217, 4, 41, 0.08);
    border: 1px solid rgba(217, 4, 41, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    margin-bottom: 35px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 30px;
}

.instagram-handle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-gray-light);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 4px;
}

.instagram-handle i {
    color: var(--primary-red);
    font-size: 1.2rem;
}

.instagram-handle:hover {
    color: var(--primary-red);
    border-color: var(--primary-red);
}

/* Founder Media Frame Right */
.founder-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    aspect-ratio: 4 / 5;
    background: #111;
}

.founder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-image-wrapper:hover .founder-image {
    transform: scale(1.05);
}

.image-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%),
                linear-gradient(to right, rgba(217, 4, 41, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.frame-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    pointer-events: none;
    transition: var(--transition-mid);
}

.founder-image-wrapper:hover .frame-border {
    border-color: var(--primary-red);
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
}

/* Hero Stats Bar */
.hero-stats-bar {
    background: rgba(5, 5, 5, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    position: relative;
    z-index: 3;
}

.stats-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =================================================================
   PARTNER BRANDS MARQUEE SLIDER STYLING
   ================================================================= */
.hero-brands-marquee {
    width: 100%;
    padding: 40px 0 20px 0;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.marquee-title-wrapper {
    text-align: center;
    margin-bottom: 25px;
}

.marquee-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-gray);
    text-transform: uppercase;
    opacity: 0.6;
    position: relative;
    display: inline-block;
}

.marquee-title::before,
.marquee-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(217, 4, 41, 0.3);
}

html[dir="ltr"] .marquee-title::before {
    right: 100%;
    margin-right: 15px;
}
html[dir="ltr"] .marquee-title::after {
    left: 100%;
    margin-left: 15px;
}

html[dir="rtl"] .marquee-title::before {
    left: 100%;
    margin-left: 15px;
}
html[dir="rtl"] .marquee-title::after {
    right: 100%;
    margin-right: 15px;
}

.marquee-wrapper {
    direction: ltr !important;
    overflow: hidden;
    width: 100%;
    display: flex;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    padding: 10px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 40px;
    direction: ltr !important;
}

.marquee-track:hover .marquee-group {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    min-width: 100%;
    flex-shrink: 0;
    animation: marquee-scroll 28s linear infinite;
    direction: ltr !important;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 40px));
    }
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 18, 18, 0.45);
    border: 1px solid rgba(217, 4, 41, 0.1);
    border-radius: 12px;
    padding: 15px 25px;
    height: 85px;
    width: 170px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
    box-shadow: var(--shadow-inset);
}

.marquee-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.85) opacity(0.55);
    transition: all 0.4s ease;
}

.marquee-item:hover {
    background: rgba(217, 4, 41, 0.08);
    border-color: rgba(217, 4, 41, 0.45);
    box-shadow: 0 8px 25px rgba(217, 4, 41, 0.25);
    transform: translateY(-5px) scale(1.06);
}

.marquee-item:hover img {
    filter: grayscale(0%) brightness(1) opacity(1);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .hero-brands-marquee {
        padding: 25px 0 15px 0;
    }
    .marquee-item {
        height: 70px;
        width: 140px;
        padding: 10px 15px;
    }
    .marquee-track {
        gap: 24px;
    }
    .marquee-group {
        gap: 24px;
        animation-duration: 20s;
    }
    @keyframes marquee-scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-100% - 24px)); }
    }
}

/* -----------------------------------------------------------------
   9. ABOUT US SECTION
   ----------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: start;
}

.about-lead {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--text-white) 40%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-p {
    color: var(--text-gray-light);
    margin-bottom: 40px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.mv-card {
    padding: 30px;
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.mv-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.mv-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.highlights-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 45px;
}

.highlights-list li {
    display: flex;
    gap: 20px;
}

.highlight-icon {
    width: 24px;
    height: 24px;
    background: rgba(217, 4, 41, 0.1);
    border: 1px solid rgba(217, 4, 41, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.highlight-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.highlight-info p {
    font-size: 0.88rem;
    color: var(--text-gray);
}

/* Timeline Subsection */
.timeline-container {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
}

.timeline-heading {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.timeline {
    position: relative;
    border-left: 2px solid rgba(217, 4, 41, 0.2);
    padding-left: 30px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--bg-black);
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.timeline-item:hover::before {
    background: var(--primary-red);
    box-shadow: 0 0 8px var(--primary-red);
}

.time-year {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-red);
    display: block;
    margin-bottom: 2px;
}

.time-content h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.time-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* -----------------------------------------------------------------
   10. OUR WORK / PORTFOLIO SECTION
   ----------------------------------------------------------------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.portfolio-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-mid);
}

.play-icon {
    font-size: 2.2rem;
    color: var(--text-white);
    background: var(--primary-red);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px; /* Alignment visual correction */
    box-shadow: 0 0 20px rgba(217, 4, 41, 0.5);
    transform: scale(0.8);
    transition: var(--transition-mid);
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.08);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .play-icon {
    transform: scale(1);
}

.portfolio-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.portfolio-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-card-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

/* -----------------------------------------------------------------
   11. TUTORIALS SECTION
   ----------------------------------------------------------------- */
.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    width: 320px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray-dark);
    font-size: 0.95rem;
}

#tutorialSearch {
    width: 100%;
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 25px;
    padding: 12px 20px 12px 45px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

#tutorialSearch:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(217, 4, 41, 0.2);
}

.filter-tabs {
    display: flex;
    gap: 12px;
}

.filter-tab {
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 8px 18px;
    color: var(--text-gray);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.filter-tab:hover, .filter-tab.active {
    background: var(--primary-red);
    color: var(--text-white);
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(217, 4, 41, 0.3);
}

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

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

.tutorial-thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.tutorial-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.tutorial-card:hover .tutorial-thumbnail {
    transform: scale(1.05);
}

.tutorial-body {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tutorial-tag {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.tutorial-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tutorial-desc {
    font-size: 0.82rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tutorial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    font-size: 0.78rem;
    color: var(--text-gray-dark);
}

.tutorial-meta i {
    margin-right: 5px;
}

/* -----------------------------------------------------------------
   12. COURSES SECTION
   ----------------------------------------------------------------- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(217, 4, 41, 0.4);
}

.course-thumbnail-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.course-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.course-card:hover .course-thumbnail {
    transform: scale(1.04);
}

.course-body {
    padding: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.course-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.course-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.course-duration {
    font-size: 0.85rem;
    color: var(--text-gray-light);
}

.course-duration i {
    color: var(--primary-red);
    margin-right: 6px;
}

.course-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
}

/* -----------------------------------------------------------------
   13. CLIENT FEEDBACK / TESTIMONIALS SECTION
   ----------------------------------------------------------------- */
.testimonial-slider-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    padding: 60px;
    border-radius: 20px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid var(--border-glass);
}

.testimonial-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    display: flex;
    flex-direction: column;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.testimonial-quote-icon {
    font-size: 3rem;
    color: rgba(217, 4, 41, 0.1);
    position: absolute;
    top: -30px;
    left: -10px;
    pointer-events: none;
}

.testimonial-text {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-gray-light);
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.client-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--primary-red);
}

.client-meta {
    flex-grow: 1;
}

.client-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.client-company {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.client-rating {
    display: flex;
    gap: 4px;
    color: #ffb703;
    font-size: 0.85rem;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.slider-arrow {
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--border-glass);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.slider-arrow:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 4px 10px rgba(217, 4, 41, 0.3);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

.slider-dot.active {
    background: var(--primary-red);
    width: 20px;
    border-radius: 4px;
}

/* -----------------------------------------------------------------
   14. CONSULTATION BOOKING SECTION
   ----------------------------------------------------------------- */
.booking-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.promo-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.promo-desc {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 45px;
}

.promo-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.promo-icon {
    width: 50px;
    height: 50px;
    background: rgba(217, 4, 41, 0.08);
    border: 1px solid rgba(217, 4, 41, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.promo-item h5 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 2px;
}

.promo-item p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.booking-form-wrapper {
    padding: 40px;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-gray-light);
    margin-bottom: 8px;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    background: rgba(5, 5, 5, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group textarea {
    resize: none;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 12px rgba(217, 4, 41, 0.25);
    background: rgba(18, 18, 18, 0.8);
}

/* Custom Select Dropdown Styling */
.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* Validation Errors */
.error-msg {
    color: var(--primary-red);
    font-size: 0.75rem;
    display: block;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    position: absolute;
}

.form-group.invalid .error-msg {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.form-group.invalid input,
.form-group.invalid textarea,
.form-group.invalid select {
    border-color: var(--primary-red);
}

/* -----------------------------------------------------------------
   15. FOOTER SECTION
   ----------------------------------------------------------------- */
.footer {
    background: var(--bg-footer);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 2;
}

.footer-top {
    padding: 80px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 60px;
}

.brand-col .footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.brand-col .footer-logo span {
    color: var(--primary-red);
}

.footer-tagline {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray-light);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(217, 4, 41, 0.3);
}

.footer-col .footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-col .footer-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-red);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.newsletter-col p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.newsletter-form {
    position: relative;
}

.newsletter-input-group {
    display: flex;
    background: rgba(5, 5, 5, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.newsletter-input-group:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(217, 4, 41, 0.2);
}

.newsletter-input-group input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 14px 18px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.btn-square {
    background: var(--primary-red);
    border: none;
    color: var(--text-white);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-square:hover {
    background: var(--primary-red-hover);
}

.newsletter-error {
    top: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray-dark);
    font-size: 0.85rem;
}

.footer-policy-links {
    display: flex;
    gap: 25px;
}

.footer-policy-links a {
    color: var(--text-gray-dark);
}

.footer-policy-links a:hover {
    color: var(--primary-red);
}

/* -----------------------------------------------------------------
   16. MODALS & POPUPS
   ----------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 90%;
    max-width: 900px;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), var(--shadow-inset);
}

.modal-overlay.open .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: var(--text-gray);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary-red);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 25px;
}

/* Portfolio Video Modal Content */
.gallery-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr;
    gap: 30px;
}

.video-player-container {
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-slow);
}

.video-play-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.active-play-icon {
    font-size: 2.5rem;
    color: var(--text-white);
    background: var(--primary-red);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    box-shadow: 0 0 30px rgba(217, 4, 41, 0.6);
    transition: transform 0.3s ease;
}

.video-placeholder:hover .active-play-icon {
    transform: scale(1.1);
}

.video-loading-text {
    position: absolute;
    bottom: 20px;
    font-size: 0.8rem;
    color: var(--text-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 8px;
}

.gallery-thumbnails::-webkit-scrollbar {
    width: 4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.thumbnail-item {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.thumbnail-item:hover, .thumbnail-item.active {
    opacity: 1;
    border-color: var(--primary-red);
}

/* Simulated video playing iframe styled state */
.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Course Modal Specific */
.course-modal-container {
    max-width: 480px;
}

.modal-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-top: -15px;
    margin-bottom: 30px;
}

/* Tutorial Modal Specific */
.tutorial-modal-container {
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.modal-date {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: -15px;
    margin-bottom: 25px;
}

.tutorial-modal-video {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tutorial-modal-content {
    font-size: 0.95rem;
    color: var(--text-gray-light);
    line-height: 1.7;
}

.tutorial-modal-content p {
    margin-bottom: 20px;
}

.tutorial-takeaways {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary-red);
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    margin-top: 30px;
}

.tutorial-takeaways h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.tutorial-takeaways ul {
    list-style-type: square;
    padding-left: 20px;
}

.tutorial-takeaways li {
    margin-bottom: 8px;
}

/* Global Success Success Popup */
.success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-popup-overlay.open {
    opacity: 1;
    visibility: visible;
}

.success-popup-content {
    width: 90%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.success-popup-overlay.open .success-popup-content {
    transform: scale(1);
}

.success-icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(46, 196, 182, 0.1);
    border: 2px solid #2ec4b6;
    color: #2ec4b6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 25px auto;
    box-shadow: 0 0 15px rgba(46, 196, 182, 0.2);
}

.success-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.success-msg {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 30px;
}

/* -----------------------------------------------------------------
   17. SCROLL REVEAL ANIMATIONS
   ----------------------------------------------------------------- */
.reveal-left, 
.reveal-right, 
.reveal-bottom {
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-bottom {
    transform: translateY(40px);
}

.reveal-active {
    opacity: 1;
    transform: translate(0) !important;
}

/* -----------------------------------------------------------------
   18. ANIMATION KEYFRAMES
   ----------------------------------------------------------------- */
@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 40px) scale(1.1);
    }
    100% {
        transform: translate(-40px, -80px) scale(0.9);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulseLogo {
    0% {
        transform: scale(0.98);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
        text-shadow: 0 0 15px rgba(217, 4, 41, 0.5);
    }
    100% {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

@keyframes flashDot {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--primary-red);
    }
}

/* -----------------------------------------------------------------
   19. RESPONSIVE MEDIA QUERIES
   ----------------------------------------------------------------- */

/* Desktop & Large Tablet view bounds */
@media (max-width: 1100px) {
    .hero-headline {
        font-size: 3.5rem;
    }
    
    .about-grid, .booking-grid {
        gap: 40px;
    }
}

/* Tablet portrait */
@media (max-width: 900px) {
    .section-padding {
        padding: 75px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-bottom: 40px;
    }
    
    .hero-media {
        order: -1;
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-headline {
        font-size: 3.2rem;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-meta {
        justify-content: center;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-item:nth-child(2)::after {
        display: none;
    }
    
    .about-grid, .booking-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .portfolio-grid, .tutorials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .gallery-wrapper {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: unset;
        padding-right: 0;
        padding-bottom: 8px;
    }
    
    .thumbnail-item {
        width: 120px;
        flex-shrink: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-col .footer-title {
        margin-bottom: 15px;
    }
}

/* Mobile & Small Tablets Navigation Layout overrides */
@media (max-width: 900px) {
    /* Mobile Menu Toggle Activators */
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: var(--bg-black);
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav.open {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.5rem;
        font-weight: 700;
    }
    
    /* Toggle active animations */
    .nav-toggle.open .bar-1 {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.open .bar-2 {
        opacity: 0;
    }
    
    .nav-toggle.open .bar-3 {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Extra Small Phones */
@media (max-width: 580px) {
    .hero-headline {
        font-size: 2.3rem;
    }
    
    .about-lead {
        font-size: 1.4rem;
    }
    
    .about-mission-vision {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid, .tutorials-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filter-tabs {
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .filter-tab {
        flex-shrink: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .booking-form-wrapper {
        padding: 25px;
    }
    
    .promo-title {
        font-size: 2.2rem;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-item::after {
        display: none !important;
    }
    
    .testimonial-slider-container {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 1.05rem;
    }
    
    .modal-container {
        padding: 20px;
    }
}

/* =================================================================
   LOGO IMAGES OVERRIDES
   ================================================================= */
.logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition-mid);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.preloader-logo-img {
    height: 75px;
    width: auto;
    display: block;
    margin: 0 auto 25px auto;
    animation: pulseLogo 2s infinite ease-in-out;
    object-fit: contain;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    height: 44px;
}

/* =================================================================
   INSTAGRAM REELS STYLE MODAL OVERRIDES
   ================================================================= */
.reels-player-container {
    aspect-ratio: 9 / 16;
    max-height: 70vh;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    border: 2px solid var(--border-glass-hover);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

.reels-video-wrapper {
    width: 100%;
    height: 100%;
}

.reels-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reels-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Sidebar overlay controls */
.reels-sidebar {
    position: absolute;
    right: 12px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 10;
    align-items: center;
}

.reels-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: var(--transition-fast);
}

.reels-btn i {
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.reels-btn:hover i {
    transform: scale(1.15);
}

.reels-btn span {
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    color: #e0e0e0;
}

.reels-btn.liked {
    color: var(--primary-red);
}

/* Bottom info details overlay */
.reels-info-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 20px 60px 20px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    z-index: 9;
    color: #ffffff;
    pointer-events: none;
}

.reels-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    pointer-events: auto;
}

.reels-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1.5px solid #ffffff;
    background-color: var(--bg-black);
}

.reels-username {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.btn-follow-reel {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.btn-follow-reel:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.reels-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.reels-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #dddddd;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Hide Instagram Reels overlay elements to show video alone */
.reels-info-overlay,
#reelLikeBtn,
#reelCommentBtn,
#reelShareBtn {
    display: none !important;
}

/* Adjust Reels sidebar to only show the mute button cleanly in the corner */
.reels-sidebar {
    bottom: 20px !important;
    right: 20px !important;
}

/* Adjust gallery wrapper columns on desktop */
@media (min-width: 901px) {
    .modal-container {
        max-width: 720px;
    }
    .gallery-wrapper {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* =================================================================
   9. LANGUAGE SWITCHER BUTTON
   ================================================================= */
.btn-lang {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-lang:hover {
    border-color: var(--primary-red);
    background: var(--primary-red);
    box-shadow: 0 0 15px rgba(217, 4, 41, 0.4);
    transform: translateY(-2px);
}

.nav-lang-switcher {
    display: flex;
    align-items: center;
}

/* Adjustments for mobile menu language toggle list item spacing */
@media (max-width: 900px) {
    .nav-lang-switcher {
        justify-content: center;
    }
}

/* =================================================================
   10. RTL (ARABIC) DIRECTIONS & STYLES
   ================================================================= */
html[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;
}

html[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .founder-title,
html[dir="rtl"] .founder-desc,
html[dir="rtl"] .hero-headline,
html[dir="rtl"] .section-title,
html[dir="rtl"] .btn,
html[dir="rtl"] .nav-link,
html[dir="rtl"] .stat-label,
html[dir="rtl"] .about-lead,
html[dir="rtl"] .timeline-heading,
html[dir="rtl"] .modal-title,
html[dir="rtl"] .success-title {
    font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .tagline {
    letter-spacing: 0px;
}

/* Mirror layout spacing and flex items */
html[dir="rtl"] .btn i {
    margin-left: 0;
    margin-right: 10px;
}

html[dir="rtl"] .btn-text-icon:hover i {
    transform: translateX(-5px);
}

/* Flip arrow, plane and quotes icon elements */
html[dir="rtl"] .fa-arrow-right,
html[dir="rtl"] .fa-chevron-right,
html[dir="rtl"] .fa-paper-plane,
html[dir="rtl"] .prev-arrow i,
html[dir="rtl"] .next-arrow i,
html[dir="rtl"] .testimonial-quote-icon i {
    transform: scaleX(-1);
}

/* Timeline direction overrides for RTL */
html[dir="rtl"] .timeline {
    border-left: none;
    border-right: 2px solid rgba(217, 4, 41, 0.2);
    padding-left: 0;
    padding-right: 30px;
    margin-left: 0;
    margin-right: 10px;
}

html[dir="rtl"] .timeline-item::before {
    left: auto;
    right: -36px;
}

/* Modal absolute positions overrides */
html[dir="rtl"] .modal-close {
    right: auto;
    left: 25px;
}

html[dir="rtl"] .reels-sidebar {
    right: auto;
    left: 12px;
}

html[dir="rtl"] .reels-info-overlay {
    padding: 20px 16px 20px 60px;
}

/* Preloader status alignment */
html[dir="rtl"] .preloader-status {
    letter-spacing: 2px;
}

/* =================================================================
   11. HERO LOGO PLACEHOLDER STYLING
   ================================================================= */
.logo-hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(217, 4, 41, 0.12) 0%, rgba(5, 5, 5, 0.95) 100%) !important;
    padding: 40px;
}

.logo-hero-image {
    object-fit: contain !important;
    width: 90% !important;
    height: auto !important;
    max-height: 80% !important;
    filter: drop-shadow(0 0 35px rgba(217, 4, 41, 0.65));
    animation: floatLogo 6s infinite ease-in-out;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.03);
    }
}


