/* 
   Modern Minimal Theme for Media Production Company
   Primary Color: #ce1212 (Red Bright)
   Background: #282727 (Dark)
   Text: #ffffff (White)
*/

/* Fonts Setup */
@font-face {
    font-family: 'Quasimoda';
    src: url('assets/fonts/Quasimoda Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Quasimoda';
    src: url('assets/fonts/Quasimoda Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Quasimoda';
    src: url('assets/fonts/Quasimoda Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Tajawal';
    src: url('assets/fonts/Tajawal-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Tajawal';
    src: url('assets/fonts/Tajawal-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Tajawal';
    src: url('assets/fonts/Tajawal-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

:root {
    --bg-dark: #000;
    --text-white: #ffffff;
    --text-muted: #f2efe4;
    --red-bright: #ce1212;
    --red-deep: #bf3b3b;
    --red-violet: #8b0000;
    --font-primary: 'Tajawal', sans-serif;
    /* Primary for Arabic */
    --font-secondary: 'Quasimoda', sans-serif;
    /* For English/Latin */
    --accent-glow: rgba(206, 18, 18, 0.4);
}

::selection {
    background: var(--red-bright);
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
}

/* Main Containers */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    /* Strict horizontal containment */
    position: relative;
    -webkit-overflow-scrolling: touch;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Creative Texture: Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

@media (max-width: 768px) {
    .noise-overlay {
        opacity: 0.03;
    }
}

/* Cosmic Background Glows */
.cosmic-glow {
    position: fixed;
    width: 60vmax;
    height: 60vmax;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    animation: cosmic-float 20s infinite alternate ease-in-out;
    will-change: transform;
}

@media (max-width: 768px) {
    .cosmic-glow {
        display: none;
    }
}

@keyframes cosmic-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

/* Premium Loading Screen */
#loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease-in-out, visibility 1.2s;
    transform-origin: bottom;
}

#loader.fade-out {
    transform: translateY(100%) scaleY(1.1);
    opacity: 0.9;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loader-breathing 3s infinite ease-in-out;
    will-change: transform, opacity;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.5s ease-out;
}

#loader.fade-out .loader-logo {
    transform: translateY(-50px) scale(0.8);
    opacity: 0;
}

.loading-svg {
    filter: drop-shadow(0 0 20px rgba(206, 18, 18, 0.3));
}

.logo-dot {
    transform-origin: center;
    animation: dot-pulse 2s infinite ease-in-out;
}

@keyframes loader-breathing {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes dot-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
        filter: brightness(1.5) drop-shadow(0 0 10px var(--red-bright));
    }
}

/* Reveal on Scroll System */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

[data-reveal="left"] {
    transform: translateX(-30px);
}

[data-reveal="right"] {
    transform: translateX(30px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 4rem);
}

/* Fluid Heading System */
h1 {
    font-size: clamp(2.5rem, 8vw, 7rem);
}

h2 {
    font-size: clamp(2rem, 6vw, 4rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

p {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
}

/* Navigation */
#main-nav {
    background: transparent;
    border: none;
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, height 0.3s ease, transform 0.3s ease;
    transform: translateZ(0);
}

#main-nav.scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 75px;
}

#scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: var(--red-bright);
    width: 0%;
    transition: width 0.1s ease-out, opacity 0.3s ease;
    opacity: 0;
    z-index: 1001;
}

#main-nav.scrolled #scroll-progress {
    opacity: 1;
}

#main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#logo-img {
    height: 40px;
}

/* Mobile Toggle */
/* Mobile Menu Redesign */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.menu-toggle.active {
    background: var(--red-bright);
    border-color: var(--red-bright);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}


.nav-links li a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
}

.nav-links .separator {
    color: var(--red-bright);
    font-weight: bold;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    display: flex;
    overflow: hidden;
}

.hero-bg-lines {
    position: absolute;
    top: 0;
    right: 35%;
    width: 100%;
    height: 100%;
    background-image: url('assets/lines.svg');
    background-repeat: no-repeat;
    background-size: 50% auto;
    background-position: top center;
    height: calc(100% + 50px);
    opacity: 0.6;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.hero-lines-bar {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('assets/lines-bar.svg') no-repeat bottom left;
    background-size: auto 125%;
    z-index: 5;
    pointer-events: none;
}

.rev {
    rotate: 175deg;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    /* Spreads content vertically */
    height: 100%;
    width: 100%;
    padding: clamp(80px, 10vh, 150px) 0;
    align-items: flex-start;
}

.hero-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: clamp(25px, 5dvh, 50px);
}

.hero-slogan-wrapper {
    border-right: 8px solid var(--red-bright);
    padding-right: 30px;
}

.hero-slogan {
    font-family: var(--font-primary);
    font-size: clamp(4rem, 10vw, 8.5rem);
    font-weight: 900;
    line-height: 1;
    text-align: right;
    letter-spacing: -2px;
    animation: hero-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes hero-reveal {
    0% {
        opacity: 0;
        transform: translate3d(0, 50px, 0) skewY(5deg);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) skewY(0);
    }
}

.hero-slogan .highlight {
    color: var(--red-bright);
    display: block;
    margin-bottom: 25px;
}

.slogan-text {
    margin-right: clamp(10px, 5vw, 60px);
    display: block;
}

.hero-subtext {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--text-muted);
    max-width: clamp(300px, 60vw, 700px);
    margin: 2dvh 0 4dvh 0;
    line-height: 1.6;
    text-align: right;
}

.hero-actions {
    display: flex;
    gap: clamp(15px, 2vw, 30px);
    justify-content: flex-start;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--text-white);
    padding: 12px 75px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: 2px solid var(--text-white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--red-deep);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(206, 18, 18, 0.4);
}

.hero-badges {
    display: flex;
    gap: clamp(10px, 1.5vw, 20px);
    margin-top: clamp(30px, 6dvh, 80px);
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--red-bright);
    border-radius: 50%;
}



/* Latin Headings & Names */
.company-name,
.hero-title,
.en-text {
    font-family: var(--font-secondary);
}

/* Fluid Responsive System */
@media (max-width: 675px) {
    .hero-container {
        align-items: center;
        text-align: center;
        padding: 10dvh clamp(1.5rem, 5vw, 3rem);
    }

    .hero-slogan-wrapper {
        border-right: none;
        padding-right: 0;
        border-bottom: clamp(2px, 0.5vh, 4px) solid var(--red-bright);
        padding-bottom: 2dvh;
        width: 100%;
        margin-bottom: 2dvh;
        margin-top: 4dvh;
    }

    .hero-slogan {
        text-align: center;
        width: 100%;
    }

    .slogan-text {
        margin-right: 0 !important;
    }

    .hero-details {
        align-items: center;
        width: 100%;
        gap: clamp(20px, 5dvh, 60px);
        /* Dynamic gap based on floor/height */
    }

    .hero-subtext {
        text-align: center;
        margin: 0 auto;
        max-width: 90%;
        line-height: 1.5;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 450px;
        gap: clamp(10px, 2dvh, 25px);
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        padding: clamp(14px, 2dvh, 20px) 20px !important;
    }

    .hero-badges {
        justify-content: center;
        gap: clamp(8px, 2vw, 15px);
        margin-top: clamp(20px, 4dvh, 50px);
    }
}

/* Height-based adjustments for short/landscape phones */
@media (max-height: 600px) and (max-width: 1024px) {
    .hero-container {
        justify-content: flex-start;
        padding-top: 80px;
    }

    .hero-details {
        gap: 15px;
    }

    .hero-slogan {
        font-size: min(10vw, 3rem);
    }

    .hero-badges {
        display: none;
        /* Hide badges on very short screens to save space */
    }
}


/* Utility */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Mission Box */
.mission-box {
    max-width: 900px;
    margin: clamp(40px, 8dvh, 100px) auto;
    padding: clamp(30px, 10dvh, 80px) clamp(20px, 5vw, 60px);
    border: 1px solid rgba(206, 18, 18, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.large-text {
    font-size: 1.8rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.highlight-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--red-bright);
    line-height: 1.4;
}

@media (max-width: 868px) {
    .large-text {
        font-size: 1.4rem;
    }

    .highlight-text {
        font-size: 1.6rem;
    }
}



/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--red-bright);
    color: var(--text-white);
    padding: 12px 75px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 rgba(206, 18, 18, 0);
}

.btn-primary:hover {
    background-color: var(--red-deep);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(206, 18, 18, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* Sections */
.section {
    padding: clamp(60px, 12dvh, 120px) 0;
}

.section h2 {
    margin-bottom: clamp(30px, 6dvh, 60px);
    text-align: center;
    color: var(--red-bright);
}

.dark-bg {
    background-color: #1a1a1a;
}

/* Grid Layouts */
.about-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 25px;
}

.services-grid,
.contact-grid {
    display: grid;
    gap: clamp(20px, 4vw, 50px);
}

.services-wrapper {
    display: grid;
    gap: 40px;
}

@media (min-width: 992px) {
    .services-wrapper {
        grid-template-columns: 1fr 2fr;
        align-items: start;
    }
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* About Section - Hero Theme Integration */
.about-hero-theme {
    position: relative;
    /* overflow: hidden; Removed to allow lines overflow */
    padding: clamp(80px, 15vh, 180px) 0;
}

.about-hero-theme .hero-bg-lines {
    opacity: 0.25;
    right: -15%;
    background-position: center right;
}

.about-side-lines {
    position: absolute;
    left: 0;
    top: 0;
    /* Overlap with hero to meet hero-lines-bar */
    width: 100px;
    height: 100%;
    background-image: url('assets/lines-bar2.svg');
    background-repeat: no-repeat;
    background-size: 125% auto;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.about-grid-layered {
    display: flex;
    flex-direction: column;
    gap: clamp(60px, 10vh, 120px);
    position: relative;
    z-index: 5;
}

.about-main-row {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: clamp(20px, 6vw, 40px);
    align-items: center;
}

.about-title-side {
    position: relative;
    z-index: 3;
    padding: 0;
    text-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.about-title-side::before {
    content: '';
    position: absolute;
    right: -25px;
    top: -25px;
    width: 60px;
    height: 60px;
    border-right: 4px solid var(--red-bright);
    border-top: 4px solid var(--red-bright);
    z-index: -1;
}

.about-title-side h2 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    margin: 0;
}

.about-text-side {
    margin: 0 auto;
    position: relative;
}

.modern-text-flow {
    text-align: center;
}

.text-phrase {
    font-size: clamp(1.1rem, 2.8vw, 2rem);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    line-height: 1.4;
    transition: all 0.4s ease;
}

.text-phrase.highlight {
    font-weight: 800;
    color: var(--red-bright);
}

.text-phrase.muted {
    color: rgba(255, 255, 255, 0.4);
}



/* Why Us Section - Integrated Style */
.about-values-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-block {
    padding: 30px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.value-block:hover {
    border-bottom-color: var(--red-bright);
    transform: translateY(-5px);
}

.value-block .num {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--red-bright);
    margin-bottom: 10px;
    display: block;
    letter-spacing: 2px;
}

.value-block h4 {
    font-size: 1.6rem;
    color: var(--text-white);
    margin-bottom: 15px;
    font-weight: 800;
    width: 100%;
}

.value-block p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Statement Integration */
.about-statement-hero {
    text-align: center;
    padding: clamp(35px, 5vh, 50px) 0;
    position: relative;
}

.about-statement-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .about-main-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-title-side {
        border-right: none;
        border-bottom: 4px solid var(--red-bright);
        padding-right: 0;
        padding-bottom: 20px;
    }

    .about-values-hero {
        grid-template-columns: 1fr;
    }

    .value-block {
        padding: 30px;
        text-align: center;
        align-items: center;
    }
}

/* Modern Services Section */
.services-section {
    position: relative;
    padding: clamp(80px, 15vh, 180px) 0;
    overflow: hidden;
    /* Restored for perfect scroll smoothness */
}

.floating-decoration-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    pointer-events: none;
    z-index: 10;
}

.services-side-lines,
.services-side-lines2 {
    position: absolute;
    /* Bridge between sections */
    width: 80vw;
    height: clamp(150px, 25vw, 400px);
    background-image: url('assets/lines2.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left top;
    opacity: 0.5;
    pointer-events: none;
    will-change: transform;
}

.services-side-lines {
    left: -15vw;
    top: -15vw;
    rotate: -15deg;
}

.services-side-lines2 {
    left: auto;
    right: -25vw;
    top: -20vw;
    rotate: 330deg;
    width: 60vw;
    height: clamp(100px, 20vw, 300px);
}

@media (max-width: 768px) {

    .services-side-lines,
    .services-side-lines2 {
        opacity: 0.2;
        width: 100vw;
        height: 150px;
    }

    .services-side-lines {
        left: -20vw;
        top: -50px;
    }

    .services-side-lines2 {
        right: -20vw;
        top: -50px;
    }

    [data-reveal] {
        transform: translateY(15px);
    }
}

.services-header {
    margin-bottom: clamp(50px, 10vh, 100px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    /* Keep above background lines */
}

.services-header h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1;
}

.services-header .accent-line {
    width: 25%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
    margin-top: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.services-header .accent-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Modern Services Kinetic List */
.services-kinetic-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.kinetic-service-row {
    position: relative;
    padding: clamp(35px, 6vh, 75px) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    overflow: hidden;
    display: grid;
    grid-template-columns: 450px 1fr;
    /* Title side, Description side */
    align-items: center;
    gap: 40px;
}

.kinetic-service-row:hover {
    background: linear-gradient(90deg, rgba(206, 18, 18, 0.04) 0%, transparent 100%);
}

.service-main-info {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 50px);
    z-index: 2;
}

.service-row-num {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--red-bright);
    opacity: 0.4;
}

.service-row-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
    transition: all 0.5s ease;
}

.kinetic-service-row:hover .service-row-title {
    color: var(--red-bright);
}

.service-row-desc {
    max-width: 600px;
    font-size: clamp(1.05rem, 1.3vw, 1.35rem);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin: 0;
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: right;
}

.kinetic-service-row:hover .service-row-desc {
    opacity: 1;
    color: #fff;
    transform: translateX(0);
}

.service-row-icon {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    font-size: 8rem;
    opacity: 0;
    filter: blur(10px) grayscale(1);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    z-index: 1;
}

.kinetic-service-row:hover .service-row-icon {
    opacity: 0.1;
    filter: blur(2px) grayscale(0);
    transform: translateY(-50%) scale(1.1) rotate(-10deg);
}

@media (max-width: 992px) {
    .kinetic-service-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 15px;
        padding: 30px 0;
    }

    .service-row-desc {
        text-align: right;
        max-width: 100%;
    }

    .service-row-icon {
        display: none;
    }
}

/* Modern Cinematic Portfolio (Bento Mosaic & Slider) */
.portfolio-section {
    position: relative;
    padding: clamp(80px, 15vh, 180px) 0 clamp(100px, 20vh, 250px);
}

.portfolio-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 30px;
    margin: 60px auto 50px;
    max-width: 1100px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: #111;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio-item.small {
    grid-row: span 2;
}

.portfolio-img-wrapper {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 130%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.portfolio-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 35%, rgba(206, 18, 18, 0.5) 10%, transparent 75%);
}

/* Portfolio Item Info (Hidden on Desktop, shown on Mobile or Hover) */
.portfolio-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.portfolio-item-info h3 {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: 5px;
}

.portfolio-item-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.portfolio-item:hover .portfolio-item-info {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-nav-controls {
    display: none;
    /* Desktop hidden */
}

/* Enhanced CTA Button */
.portfolio-cta {
    margin-top: clamp(60px, 10vh, 120px);
    display: flex;
    justify-content: center;
}

.instagram-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(206, 18, 18, 0.3);
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.instagram-cta-btn .btn-text {
    font-weight: 800;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    background: linear-gradient(45deg, #CE1212 0%, #ff4d4d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-cta-btn:hover {
    transform: scale(1.05) translateY(-5px);
    background: rgba(206, 18, 18, 0.05);
    border-color: rgba(206, 18, 18, 0.8);
    box-shadow: 0 20px 50px rgba(206, 18, 18, 0.2);
}

.instagram-cta-btn:hover .btn-text {
    filter: brightness(1.2);
}

/* Our Clients - Nebula Array */
.clients-cosmos-cloud {
    margin-top: 100px;
    padding-bottom: 80px;
}

.clients-nebula-array {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 75px 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.client-orb {
    width: 200px;
    height: 200px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: drift 6s ease-in-out infinite;
    position: relative;
    border-radius: 24px;
}

/* Red Overlay to match theme */
.client-orb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(206, 18, 18, 0.25);
    mix-blend-mode: multiply;
    transition: all 0.4s ease;
    z-index: 2;
    pointer-events: none;
    border-radius: 24px;
    /* Matches parent to prevent bleed without overflow:hidden */
}

.client-orb:hover::after {
    background: rgba(206, 18, 18, 0.05);
    /* Fade out on hover to show natural colors */
}

.client-title {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 18px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.7;
    transition: all 0.4s ease;
    pointer-events: none;
    /* Make sure it doesn't block hover on the card */
}

.client-orb:hover .client-title {
    opacity: 1;
    bottom: -45px;
    background: var(--red-bright);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(206, 18, 18, 0.3);
}

.client-orb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: fill;
    border-radius: 24px;
}

.c1 {
    animation-delay: 0s;
}

.c2 {
    animation-delay: 1.2s;
}

.c3 {
    animation-delay: 0.5s;
}

.c4 {
    animation-delay: 2s;
}

.c5 {
    animation-delay: 1.5s;
}

.c6 {
    animation-delay: 0.8s;
}

.c7 {
    animation-delay: 2.5s;
}

.c8 {
    animation-delay: 0.3s;
}

.c9 {
    animation-delay: 1.8s;
}

.c10 {
    animation-delay: 0.7s;
}

.client-orb:hover {
    transform: translateY(-12px) scale(1.1);
    border-color: var(--red-bright);
    box-shadow: 0 20px 40px rgba(206, 18, 18, 0.2);
    z-index: 10;
}

@keyframes drift {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .clients-nebula-array {
        gap: 70px 15px;
    }

    .client-orb {
        width: calc(50% - 15px);
        aspect-ratio: 1 / 1;
        height: auto;
        border-radius: 24px;
    }

    .client-title {
        font-size: 0.8rem;
        padding: 4px 12px;
        bottom: -45px;
    }
}

@media (max-width: 1024px) {
    .portfolio-bento-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 0 20px 40px;
        margin-left: -20px;
        margin-right: -20px;
        scrollbar-width: none;
        /* Hide scrollbar */
    }

    .portfolio-bento-grid::-webkit-scrollbar {
        display: none;
    }

    .portfolio-bento-grid.active-dragging {
        cursor: grabbing;
        cursor: -webkit-grabbing;
        scroll-snap-type: none;
    }

    .portfolio-item {
        flex: 0 0 280px;
        /* Fixed width to prevent collapsing */
        height: 450px;
        /* Cinematic tall proportions */
        scroll-snap-align: center;
        border-radius: 40px;
        margin-bottom: 0;
    }

    .portfolio-item.large,
    .portfolio-item.small {
        grid-column: auto;
        grid-row: auto;
        width: 280px;
        height: 350px;
    }

    .portfolio-insta-link {
        opacity: 1;
        transform: scale(1);
    }



    .portfolio-nav-controls {
        display: flex;
        justify-content: center;
        gap: 50px;
        margin-top: 20px;
        flex-direction: row-reverse;
    }

    .portfolio-nav-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
        color: #555;
    }

    .portfolio-nav-btn:hover {
        background: var(--red-bright);
        color: #fff;
        border-color: var(--red-bright);
    }
}

/* Why Choose Us / Identity Section - Premium Redesign */
.why-us-section {
    position: relative;
    padding: clamp(80px, 15vh, 180px) 0;
    overflow: hidden;
}

.why-us-bento {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
}

/* 4 Main Reasons Grid */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.reason-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 3px solid transparent;
    padding: 15px 15px;
    border-radius: 24px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    text-align: right;
    direction: rtl;
    min-height: 125px;
    align-items: center;
    justify-content: center;
}

.reason-card:hover {
    transform: translateX(-10px);
    background: rgba(255, 255, 255, 0.04);
    border-right-color: var(--red-bright);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.3);
}


.reason-card h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--red-bright);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.reason-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    opacity: 0.9;
    margin: 0;
}

/* Mission & Vision Grid */
.identity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.identity-card {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    padding: 25px 40px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.identity-card.mission {
    background: linear-gradient(135deg, rgba(30, 0, 0, 0.4) 0%, rgba(10, 10, 10, 0.9) 100%);
    border-right: 2px solid rgba(206, 18, 18, 0.3);
}

.identity-card.vision {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(5, 5, 5, 0.9) 100%);
    border-left: 2px solid rgba(206, 18, 18, 0.1);
}

.identity-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: right;
}

.identity-content .label {
    font-size: 1.1rem;
    color: var(--red-bright);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.identity-content p {
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.6;
    font-weight: 400;
}

.identity-content p strong {
    color: var(--red-bright);
    font-weight: 900;
}

.identity-content .secondary-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.quote-box {
    margin-top: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border-right: 4px solid var(--red-bright);
}

.quote-box p {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #fff;
    opacity: 0.9;
}

.bg-label {
    position: absolute;
    bottom: -20px;
    left: 20px;
    font-family: var(--font-secondary);
    font-size: 10rem;
    font-weight: 950;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    line-height: 0.8;
}

/* Responsive Identify Adjustments */
@media (max-width: 1024px) {
    .identity-grid {
        grid-template-columns: 1fr;
    }

    .identity-card {
        padding: 50px 30px;
    }

    .identity-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .reason-card {
        padding: 30px;
    }

    .bg-label {
        font-size: 6rem;
    }
}

/* Contact Info */
/* Compact Premium Contact Section */
.contact-section.compact {
    padding: clamp(60px, 10vh, 120px) 0;
}

.contact-compact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Map Side */
.map-side {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.map-frame-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 0;
    transition: border-color 0.4s ease;
}

.map-frame-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.4);
    pointer-events: none;
    transition: background 0.6s ease;
    z-index: 1;
}

.map-frame-wrapper:hover {
    border-color: var(--red-bright);
}

.map-frame-wrapper:hover::after {
    background: rgba(8, 8, 8, 0);
}

.map-frame-wrapper iframe {
    width: 100%;
    height: 100% !important;
    min-height: 300px;
    filter: grayscale(1) brightness(0.6) contrast(1.2);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.map-frame-wrapper:hover iframe {
    filter: grayscale(0) brightness(1) contrast(1);
}

.address-minimal {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 15px;
    justify-content: space-evenly;
}

.address-minimal .icon {
    font-size: 1.2rem;
}

.address-minimal p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Mini Links Grid */

.links-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mini-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}

.mini-icon svg {
    width: 20px;
    height: 20px;
}

.mini-text {
    display: flex;
    flex-direction: column;
}

.mini-text span {
    font-size: 0.85rem;
    color: var(--red-bright);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-text small {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

/* Mini Card Hovers & Improvements */
.mini-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--red-bright);
}

/* Make last item span 2 columns if odd (5 items) */
.mini-links-grid a:last-child:nth-child(odd) {
    grid-column: span 2;
}

.mini-card.facebook:hover .mini-icon {
    background: #1877F2;
}

.mini-card.instagram:hover .mini-icon {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.mini-card.whatsapp:hover .mini-icon {
    background: #25D366;
}

.mini-card.telegram:hover .mini-icon {
    background: #0088cc;
}

.mini-card.phone:hover .mini-icon,
.mini-card.email:hover .mini-icon {
    background: var(--red-bright);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .contact-compact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .mini-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .mini-card {
        padding: 15px;
        justify-content: center;
    }

    .mini-text {
        display: none;
    }

    .mini-links-grid a:last-child:nth-child(odd) {
        grid-column: span 1;
    }
}

.divider-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
    margin: 50px 0;
}

/* Responsive Adjustments */
@media (max-width: 1000px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100svh;
        background-color: rgba(0, 0, 0, 0.5);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 0;
    }

    .nav-links.show {
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.show li {
        transform: translateY(0);
        opacity: 1;
    }

    /* Staggered Delay - Managed by JS or hardcoded here */
    .nav-links.show li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.show li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.show li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.show li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.show li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.show li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-links li a {
        font-size: 1.5rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--text-white);
        position: relative;
    }

    .nav-links li a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 4px;
        background-color: var(--red-bright);
        transition: width 0.3s ease;
    }

}

/* Footer */
footer {
    padding: 60px 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}