/* ==========================================
   DESIGN TOKENS & VARIABLES
   ========================================== */
:root {
    --primary-bg: #4c32eb;
    --secondary-bg: #3c1ab1;
    --text-white: #ffffff;
    --text-dark-purple: #4228a0;
    --note-bg: #ffe4e8;
    --badge-bg: #3d1a8c;
    --badge-border: rgba(255, 255, 255, 0.25);
    
    /* Layout & Styling Values */
    --card-bg: rgba(62, 26, 178, 0.45);
    --card-border: rgba(142, 83, 255, 0.35);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    --card-radius: 30px;
    
    /* Transition presets */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================
   FONT FACE DEFINITIONS
   ========================================== */
@font-face {
    font-family: 'TheSans-Plain';
    src: url('assets/fonts/ArbFONTS-TheSans-Plain.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TheSans-Bold';
    src: url('assets/fonts/ArbFONTS-TheSans-Bold_2.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'TheSansArabic-Plain';
    src: url('assets/fonts/TheSansArabic-Plain.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ExpoArabic-Bold';
    src: url('assets/fonts/EXPOARABIC-BOLD.OTF') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'ExpoArabic-Light';
    src: url('assets/fonts/EXPOARABIC-LIGHT.OTF') format('opentype');
    font-weight: 300;
    font-style: normal;
}

/* ==========================================
   BASE & RESET STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--secondary-bg);
    color: var(--text-white);
    font-family: 'ExpoArabic-Light', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.5;
}

/* ==========================================
   LAYOUT STRUCTURE
   ========================================== */
.page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('assets/images/bg.webp'), url('assets/images/bg.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: top center;
    overflow-x: hidden;
}

/* Background overlay to adjust contrast */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(80, 60, 242, 0.1) 0%, rgba(62, 26, 178, 0.15) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ==========================================
   DECORATIVE FLOATING ANIMATIONS
   ========================================== */
@keyframes float-gentle {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-reverse {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(12px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating-asset {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.25));
    will-change: transform;
    height: auto;
}

.bus-top {
    top: 150px;
    right: 8%;
    width: 130px;
    animation: float-gentle 6s ease-in-out infinite;
}

.backpack-top {
    top: 250px;
    left: 8%;
    width: 120px;
    animation: float-reverse 7s ease-in-out infinite;
}

/* ==========================================
   TOP NAVIGATION BAR
   ========================================== */
.top-navbar {
    position: static;
    width: 100%;
    z-index: 1000;
    padding: 0 32px;
    height: 70px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

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

/* Logo */
.navbar-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    opacity: 0.92;
    transition: opacity 0.3s ease;
}

.navbar-logo-link:hover {
    opacity: 1;
}

.navbar-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Vertical Divider */
.navbar-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
    margin: 0 24px;
}

/* Nav Links Group */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* Base Button */
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'TheSans-Bold', 'ExpoArabic-Bold', sans-serif;
    font-size: 15px;
    font-weight: bold;
    transition: var(--transition-smooth);
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

/* WhatsApp Button */
.nav-whatsapp {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.5);
    color: #5fffb0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

/* Projects Button */
.nav-projects {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-projects:hover {
    background: rgba(142, 83, 255, 0.2);
    border-color: rgba(142, 83, 255, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 83, 255, 0.25);
}

/* CTA Booking Button — Gold, stands out */
.nav-booking {
    background: linear-gradient(135deg, #f5c842 0%, #f0a500 100%);
    color: #2a1600;
    border-color: transparent;
    font-size: 15px;
    padding: 11px 28px;
    box-shadow: 0 4px 18px rgba(240, 165, 0, 0.35);
    flex-shrink: 0;
}

.nav-booking:hover {
    background: linear-gradient(135deg, #ffe066 0%, #f5b800 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(240, 165, 0, 0.5);
    color: #1a0e00;
}

.nav-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}


/* ==========================================
   HEADER HERO SECTION
   ========================================== */
.hero-header {
    position: relative;
    padding-top: 80px;
    padding-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

/* Lined notepad title graphic wrapper */
.hero-title-container {
    position: relative;
    background: rgba(62, 60, 144, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 80px 14px 120px;
    border-radius: 80px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    border: none;
    transform: rotate(-3deg);
}

.notebook-spiral-icon {
    position: absolute;
    top: -30px;
    right: -25px;
    width: 110px;
    transform: rotate(-3deg);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.2));
    height: auto;
}

.hero-title {
    font-family: 'TheSans-Bold', sans-serif;
    font-size: 58px;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-weight: 700;
}

/* Hero Action Buttons */
.hero-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 20;
    margin-top: 45px;
    margin-bottom: 95px;
}

.hero-action-buttons .nav-btn {
    font-size: 20px;
    padding: 16px 36px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    min-width: 250px;
    justify-content: center;
}

.hero-action-buttons .nav-booking {
    font-size: 20px;
    padding: 17px 44px;
    box-shadow: 0 8px 24px rgba(240, 165, 0, 0.3);
}

.hero-action-buttons .nav-icon {
    width: 22px;
    height: 22px;
}

/* Encouraging hover effects */
.hero-action-buttons .nav-btn:hover {
    transform: scale(1.06) translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero-action-buttons .nav-booking:hover {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 15px 35px rgba(240, 165, 0, 0.5);
}

/* Prev Projects Pill Button */
.prev-projects-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    direction: ltr;
    background-color: #dacff4;
    color: var(--text-dark-purple);
    width: 500px;
    height: 100px;
    padding: 0 50px 0 175px;
    border-radius: 100px;
    text-decoration: none;
    font-family: 'TheSans-Plain', sans-serif;
    font-size: 36px;
    font-weight: bold;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    overflow: visible;
    justify-content: flex-end;
    box-sizing: border-box;
    position: relative;
    z-index: 20;
}

.prev-projects-btn span {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    unicode-bidi: plaintext;
    white-space: nowrap;
}

.prev-projects-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
    background-color: #ffdcd1;
    color: var(--text-dark-purple);
}

.btn-icon {
    position: absolute;
    left: 20px;
    bottom: 0;
    height: 125%;
    width: auto;
    flex-shrink: 0;
    z-index: 30;
}

.prev-projects-btn span {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

/* ==========================================
   PROJECTS SECTION & CARDS
   ========================================== */
.projects-section {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 20px 4%;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Floating icons inside cards */
.card-float-icon {
    position: absolute;
    width: 210px;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 16px 28px rgba(0,0,0,0.35));
    will-change: transform;
    height: auto;
}

.icon-left {
    left: -185px;
    bottom: -160px;
    animation: float-gentle 5s ease-in-out infinite;
}

.icon-right {
    right: -185px;
    bottom: -160px;
    animation: float-reverse 6s ease-in-out infinite;
}

.small-notebook-float {
    right: -155px;
    top: -140px;
    width: 140px;
}

.top-notebook-float {
    right: -160px;
    top: -145px;
    width: 150px;
}

/* Hide floating notebook beside Center 3 card */
#card-center3 .small-notebook-float {
    display: none;
}

/* Center floating icon vertically beside the STC card */
#card-stc .icon-right {
    bottom: auto;
    top: 50%;
    margin-top: -85px;
}

/* Center floating icon vertically beside the Sajil card */
#card-sajil .icon-right {
    bottom: auto;
    top: 50%;
    margin-top: -85px;
}

/* Center floating icon vertically beside the Diverse Projects card */
#card-diverse .icon-right {
    bottom: auto;
    top: 50%;
    margin-top: -85px;
}

/* Glassmorphic card styling */
.project-card {
    position: relative;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 42px;
    box-shadow: var(--card-shadow);
    /* backdrop-filter removed: causes scroll lag on all browsers */
    transition: var(--transition-smooth);
    will-change: transform;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(142, 83, 255, 0.6);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.card-inner {
    display: flex;
    flex-direction: row-reverse; /* Details on right, collage/video on left in RTL */
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

/* ==========================================
   COLLAGE GRIDS (LEFT AREA)
   ========================================== */
.collage-container {
    width: 60%;
    aspect-ratio: 16 / 9;
    display: grid;
    gap: 15px;
    border-radius: 20px;
    overflow: hidden;
}

/* Collage-5 Layout (1 large + 4 small) */
.collage-5 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.collage-5 .collage-main {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.collage-5 .item-1 { grid-column: 3; grid-row: 1; }
.collage-5 .item-2 { grid-column: 4; grid-row: 1; }
.collage-5 .item-3 { grid-column: 3; grid-row: 2; }
.collage-5 .item-4 { grid-column: 4; grid-row: 2; }

/* Collage-4 Layout (2x2 grid) */
.collage-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

/* Card 7 Collage Wrapper */
.collage-wrapper {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

#card-diverse .collage-container {
    width: 100%;
}

/* Expandable Collage Grid (4x2 layout) */
.collage-expandable-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    
    /* Collapsed Initial State */
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: scaleY(0.95) translateY(-15px) translateZ(0);
    transform-origin: top;
    will-change: max-height, opacity, transform;
    transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.3s ease,
                transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                margin-top 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    margin-top: 0;
}

/* Expanded State */
.collage-expandable-grid.expanded {
    max-height: 380px;
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1) translateY(0) translateZ(0);
    margin-top: 15px;
}

.collage-expandable-grid .collage-sub {
    aspect-ratio: 16 / 9;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Glassmorphic Expand Button */
.expand-btn {
    align-self: center;
    margin-top: 15px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 83, 255, 0.35);
    border-color: rgba(142, 83, 255, 0.4);
}

.expand-btn:active {
    transform: translateY(0);
}

.expand-btn .btn-icon {
    font-size: 11px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.expand-btn[aria-expanded="true"] .btn-icon {
    transform: rotate(180deg);
}

/* Video Thumbnail Panels (Card 4, 5, 6) */
.video-panel-container {
    position: relative;
    width: 60%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    /* Dark placeholder shown while thumbnail loads — prevents blue flash */
    background-color: rgba(30, 15, 80, 0.6);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.video-panel-container:hover .video-thumbnail,
.collage-main:hover img {
    transform: scale(1.05);
}

/* Shared media triggers */
.collage-sub, .collage-main {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    /* Dark placeholder shown while image loads — prevents blue flash */
    background-color: rgba(30, 15, 80, 0.6);
}

.collage-sub picture,
.collage-main picture,
.video-panel-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

.collage-sub img, .collage-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.collage-sub:hover img {
    transform: scale(1.08);
}

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

.video-panel-container:hover .play-overlay,
.collage-main:hover .play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-button-icon {
    width: 80px;
    height: 80px;
    background-color: var(--text-white);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.play-button-icon::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 33px;
    border-style: solid;
    border-width: 15px 0 15px 23px;
    border-color: transparent transparent transparent var(--text-dark-purple);
}

/* Adjust play icon location for RTL */
[dir="rtl"] .play-button-icon::after {
    left: 31px;
}

.video-panel-container:hover .play-button-icon,
.collage-main:hover .play-button-icon {
    transform: scale(1.15);
    box-shadow: 0 15px 30px rgba(142, 83, 255, 0.4);
    background-color: #ffdcd1;
}

/* ==========================================
   CARD DETAILS (RIGHT COLUMN)
   ========================================== */
.card-details {
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Rounded Dark Purple Badges */
.badge-logo {
    background-color: var(--badge-bg);
    border: 2px solid var(--badge-border);
    border-radius: 20px;
    width: 100%;
    max-width: 300px;
    height: 106px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.stc-logo-badge {
    padding: 16px;
}

.stc-logo {
    max-height: 100%;
}

.text-badge {
    padding: 10px 20px;
}

.badge-text {
    color: var(--text-white);
    text-align: center;
}

.font-bold {
    font-family: 'TheSans-Bold', sans-serif;
    font-size: 28px;
    font-weight: bold;
}

.font-sans {
    font-family: 'TheSans-Plain', sans-serif;
    font-size: 35px;
}

/* Pink Notepad Card container */
.note-paper {
    background-image: url('assets/images/asset_1.webp'), url('assets/images/asset_1.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 100%;
    max-width: 300px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 50px 30px 25px; /* Offset margins to align text on lined section */
    transform: rotate(2deg);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.25));
}

.note-text {
    font-family: 'TheSansArabic-Plain', sans-serif;
    font-size: 32px;
    color: var(--text-dark-purple);
    text-align: center;
    line-height: 1.2;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.main-footer {
    position: relative;
    width: 100%;
    background-color: rgba(62, 26, 178, 0.95);
    padding: 80px 4% 40px 4%;
    z-index: 20;
    background-image: radial-gradient(circle at 10% 20%, rgba(90, 80, 250, 0.15) 0%, transparent 50%);
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/WORLD.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.28;
    pointer-events: none;
    z-index: -1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.footer-title {
    font-family: 'TheSans-Bold', sans-serif;
    font-size: 40px;
    color: var(--text-white);
    text-align: center;
    font-weight: bold;
}

/* Links row block */
.footer-links-grid {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-white);
    text-decoration: none;
    font-family: 'ExpoArabic-Bold', sans-serif;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.footer-link-item:hover {
    color: #ffdcd1;
    transform: translateY(-3px);
}

.icon-circle {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.15);
}

.footer-link-item:hover .icon-circle {
    background-color: var(--text-white);
    color: var(--text-dark-purple);
    box-shadow: 0 8px 20px rgba(142, 83, 255, 0.3);
}

/* Rounded location pill */
.location-pill {
    background-color: rgba(255, 255, 255, 0.1);
    height: 35px;
    padding: 0 16px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.location-pill .icon-circle {
    width: 28px;
    height: 28px;
}

.location-pill .icon-circle svg {
    width: 16px;
    height: 16px;
}

.location-pill:hover {
    background-color: var(--text-white);
    color: var(--text-dark-purple);
    border-color: var(--text-white);
}

.location-pill:hover .icon-circle {
    background-color: transparent;
    color: var(--text-dark-purple);
    border-color: transparent;
    box-shadow: none;
}

.footer-brand-logo {
    max-height: 75px;
    display: flex;
    align-items: center;
}

.spectra-footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Copyright section Divider */
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.copyright-text {
    font-family: 'ExpoArabic-Light', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.itqan-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-decoration-style: dotted;
    font-family: inherit;
    font-weight: normal;
    transition: var(--transition-smooth);
}

.itqan-link:hover {
    color: #ffdcd1;
    text-decoration: underline;
    text-decoration-style: solid;
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    background-color: #128c7e;
}

/* ==========================================
   INTERACTIVE LIGHTBOX MODAL
   ========================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 12, 60, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.lightbox-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 60px;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
    z-index: 10100;
}

.lightbox-close:hover {
    color: #ffdcd1;
    transform: scale(1.15) rotate(90deg);
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-display {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.lightbox-image.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.lightbox-video-container {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.lightbox-video-container iframe {
    width: 100%;
    height: 100%;
}

.lightbox-video-container.active {
    display: block;
}

/* Lightbox Navigation Buttons */
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-white);
    font-size: 35px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    z-index: 10050;
}

/* RTL: prev = right side ❯, next = left side ❮ */
.lightbox-prev { right: -80px; left: auto; }
.lightbox-next { left: -80px; right: auto; }

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: var(--text-white);
    color: var(--text-dark-purple);
    box-shadow: 0 10px 25px rgba(142, 83, 255, 0.4);
}

/* ==========================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================== */

/* Laptop Viewport (1024px) */
@media (max-width: 1199px) {
    .top-navbar { padding: 0 20px; height: 62px; }
    .navbar-divider { margin: 0 14px; }
    .navbar-logo { height: 34px; }
    .nav-btn { padding: 8px 14px; font-size: 13px; }
    .nav-booking { padding: 8px 18px; }

    .floating-asset { display: none; }
    .card-float-icon { display: none; }
    
    .hero-title { font-size: 58px; }
    .hero-title-container { padding: 25px 45px; }
    
    .card-inner { gap: 30px; }
    .collage-container, .collage-wrapper { width: 55%; }
    #card-diverse .collage-container { width: 100%; }
    .video-panel-container { width: 55%; }
    .card-details { width: 40%; }
    
    .lightbox-prev { right: -20px; left: auto; }
    .lightbox-next { left: -20px; right: auto; }
}

/* Tablet Viewport (768px) */
@media (max-width: 991px) {


    .page-wrapper {
        background-size: 100% 100%;
    }

    /* Disable expensive glass blur on tablets/phones to prevent scroll lag */
    .project-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .hero-header { padding-bottom: 20px; } 
    .hero-title { font-size: 42px; } 
    .hero-action-buttons {
        gap: 18px;
        margin-top: 30px;
        margin-bottom: 65px;
    }
    .hero-action-buttons .nav-btn {
        font-size: 17px;
        padding: 13px 28px;
        min-width: auto;
    }
    .hero-action-buttons .nav-booking {
        font-size: 17px;
        padding: 14px 32px;
    }
    .hero-action-buttons .nav-icon {
        width: 19px;
        height: 19px;
    }
    .prev-projects-btn { font-size: 22px; padding: 14px 28px; } 
    .prev-projects-btn { width: 90%; max-width: 400px; height: 80px; font-size: 26px; border-radius: 80px; padding: 0 30px 0 130px; }
    .prev-projects-btn .btn-icon { left: 12px; bottom: 0; height: 125%; width: auto; }
    
    .project-card { padding: 30px; }
    .card-inner {
        flex-direction: column; /* Stack details below the collage */
        gap: 35px;
    }
    
    .collage-container, .collage-wrapper, .video-panel-container {
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
    }
    #card-diverse .collage-container { width: 100%; }
    
    .card-details {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
    
    .badge-logo, .note-paper {
        max-width: 260px;
        height: 110px;
        transform: none;
    }
    
    .note-paper {
        height: 180px;
        padding: 20px 30px 20px 15px;
    }
    
    .note-text { font-size: 30px; }
    .font-bold { font-size: 26px; }
    .font-sans { font-size: 34px; }
    
    .footer-links-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
}

/* Mobile Viewport (480px / 375px) */
@media (max-width: 575px) {
    .top-navbar { padding: 0 12px; height: 58px; }
    
    .navbar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        height: 100%;
    }
    
    .navbar-logo-link {
        display: flex;
        align-items: center;
    }
    
    .navbar-logo { height: 28px; max-width: 90px; }
    .navbar-divider { display: none; }
    .hero-header { padding-top: 20px; padding-bottom: 15px; }
    
    .hero-action-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 20px;
        margin-bottom: 45px;
        width: 100%;
        padding: 0 10px;
        z-index: 20;
    }
    .hero-action-buttons .nav-btn {
        font-size: 14px;
        padding: 10px 20px;
        border-radius: 50px;
        width: auto;
        height: auto;
        min-width: auto;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    }
    .hero-action-buttons .nav-booking {
        font-size: 14px;
        padding: 11px 22px;
        box-shadow: 0 6px 18px rgba(240, 165, 0, 0.25);
    }
    .hero-action-buttons .nav-icon {
        width: 16px;
        height: 16px;
    }

    .page-wrapper {
        background-image: none !important;
        background-color: var(--secondary-bg);
    }
    .background-overlay {
        display: none !important;
    }
    
    .hero-title {
        font-size: 20px;
        white-space: nowrap;
    } 
    .hero-title-container {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px 20px;
        border-width: 2px;
        transform: rotate(-2deg);
        max-width: 95%;
    } 
    .notebook-spiral-icon {
        position: static;
        width: 38px;
        height: auto;
        transform: none;
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
        margin: 0;
    } 
    .prev-projects-btn { width: 85%; max-width: 320px; height: 65px; font-size: 22px; border-radius: 65px; padding: 0 22px 0 105px; }
    .prev-projects-btn .btn-icon { left: 8px; bottom: 0; height: 125%; width: auto; }
    
    .project-card { padding: 15px; border-radius: 20px; }
    .collage-container, .collage-expandable-grid { gap: 8px; }
    .play-button-icon { width: 55px; height: 55px; }
    .play-button-icon::after {
        top: 17px;
        left: 23px;
        border-width: 10px 0 10px 15px;
    }
    [dir="rtl"] .play-button-icon::after { left: 21px; }
    
    .card-details {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .badge-logo, .note-paper {
        width: 100%;
        max-width: 280px;
    }
    
    .badge-logo { height: 95px; }
    .note-paper { height: 190px; padding: 20px 35px 20px 20px; }
    .note-text { font-size: 32px; }
    
    .footer-title { font-size: 36px; }
    .footer-link-item { font-size: 16px; }
    .icon-circle { width: 40px; height: 40px; }
    .spectra-footer-logo { height: 45px; }
    .copyright-text { font-size: 14px; text-align: center; }
    
    .floating-whatsapp { width: 55px; height: 55px; bottom: 20px; right: 20px; }
    
    .lightbox-close { top: 15px; right: 20px; font-size: 40px; }
    .lightbox-prev, .lightbox-next { width: 45px; height: 45px; font-size: 22px; }
    .lightbox-prev { right: -10px; left: auto; }
    .lightbox-next { left: -10px; right: auto; }
}
