/* Cinematic Architectural Redesign Styles */
:root {
    --deep-plum: #0F172A; /* Navy Blue */
    --electric-lavender: #D4AF37; /* Gold */
    --warm-white: #fcfbf9;
    --arch-beige: #e5e0d8;
    --charcoal: #1c1c1c;
    --metallic-champagne: #F3E5AB; /* Light Gold */
    --glass-panel: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: auto !important; /* Disables native smooth scroll for Lenis and GSAP */
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    background-color: var(--deep-plum);
    color: var(--warm-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Canvas Ambient Background */
#ambientCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* Changed from -1 so it stays above body background */
    pointer-events: none;
    opacity: 0.8;
}

/* Custom Cursor */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    transition: transform 0.1s ease;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    transition: width 0.3s, height 0.3s, background-color 0.3s, transform 0.2s ease-out;
}

.cursor-ring.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.8);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring {
        display: none !important;
    }
}

/* Cinematic Overlay */
.cinematic-overlay {
    background: radial-gradient(circle at center, rgba(15, 10, 24, 0.4) 0%, rgba(15, 10, 24, 0.9) 100%) !important;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--gold);
}

/* Hero Typography */
.hero-title {
    font-size: 4.5rem !important;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(to right, #ffffff, #dcdcdc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.3rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem !important;
    }
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
}

/* Magnetic Button (Premium) */
.btn-magnetic {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 40px;
    border-radius: 50px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    cursor: pointer;
}

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

.btn-magnetic:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.btn-magnetic:hover::before {
    opacity: 0.2;
}

.btn-text {
    margin-left: 15px; /* RTL margin */
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--gold);
    border-radius: 50%;
    color: var(--brand-dark);
    transition: transform 0.3s ease;
}

.btn-magnetic:hover .btn-icon {
    transform: translateX(-5px); /* Move left in RTL */
}

/* Hero Architectural Glow */
.hero-shapes .glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    animation: pulse-glow 8s infinite alternate;
}

.glow-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    top: -10vw;
    right: -10vw;
}

.glow-2 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--gold), transparent 70%);
    bottom: -10vw;
    left: -10vw;
    animation-delay: 2s;
}

@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.5; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.hero {
    position: relative;
    overflow: hidden;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    margin-top: 6px;
    animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

.scroll-text {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* Premium Cinematic Section (Global) */
.premium-cinematic-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background-color: transparent;
    z-index: 10;
    scroll-margin-top: 100px;
}

.about-editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 992px) {
    .about-editorial-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.section-title-premium {
    margin-bottom: 30px;
    text-align: right;
}

.subtitle-badge-solid {
    display: inline-block;
    color: var(--metallic-champagne);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title-premium h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--warm-white);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.title-line-solid {
    width: 60px;
    height: 3px;
    background: var(--metallic-champagne);
    margin-right: 0;
}

.premium-white-box {
    background: var(--glass-panel);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.premium-lead-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.9;
    font-weight: 400;
}

/* Force override any inline styles from WYSIWYG editors */
.premium-lead-text * {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.premium-footer-text {
    text-align: right;
    padding-right: 15px;
    border-right: 4px solid var(--electric-lavender);
}

.footer-title {
    font-size: 1.2rem;
    color: var(--metallic-champagne);
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

/* Cinematic Dark Cards */
.about-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.solid-vm-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(41,22,51,0.6), rgba(28,28,28,0.8));
    backdrop-filter: blur(15px);
    padding: 30px 40px;
    border-radius: 16px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.solid-vm-card:hover {
    transform: translateX(-10px);
    border-color: rgba(225, 205, 164, 0.3); /* Champagne border */
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.card-content {
    text-align: right;
    flex: 1;
    padding-left: 20px;
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--warm-white);
    margin-bottom: 10px;
    font-weight: 700;
}

.card-content p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin: 0;
}

.card-icon-solid {
    position: relative;
    width: 65px;
    height: 65px;
    background-color: rgba(225, 205, 164, 0.05);
    border: 1px solid rgba(225, 205, 164, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--metallic-champagne);
    flex-shrink: 0;
    transition: all 0.4s ease;
    overflow: hidden;
}

.solid-vm-card:hover .card-icon-solid {
    border-color: var(--metallic-champagne);
    background-color: rgba(225, 205, 164, 0.1);
    box-shadow: 0 0 20px rgba(225, 205, 164, 0.2);
}

/* Visual Signature Section */
.signature-section {
    background-color: #140b19; /* Deeper plum for contrast */
    position: relative;
    /* Height will be managed by GSAP pinning, but we can set a fallback */
}

.signature-sticky-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    overflow: hidden;
}

.signature-text-wrapper {
    width: 40%;
    position: relative;
    height: 200px;
}

.signature-msg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    font-size: 3rem;
    font-weight: 800;
    color: var(--warm-white);
    opacity: 0;
    visibility: hidden;
    line-height: 1.3;
}

.signature-msg.msg-1 {
    opacity: 1;
    visibility: visible;
}

.signature-msg.msg-5 {
    font-size: 2.5rem;
}

.signature-visual-wrapper {
    width: 50%;
    height: 70vh;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    background: #0f0814;
}

.visual-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
}

.layer-blueprint {
    opacity: 1;
    visibility: visible;
    background: radial-gradient(circle, rgba(163, 112, 196, 0.1), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blueprint-grid-anim {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(225,205,164,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225,205,164,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    border: 1px solid rgba(225,205,164,0.2);
}

.layer-outline {
    display: flex;
    align-items: center;
    justify-content: center;
}

.outline-glow {
    width: 60%;
    height: 60%;
    border: 2px solid var(--electric-lavender);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(163, 112, 196, 0.4);
}

.layer-mass {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mass-structure {
    width: 70%;
    height: 70%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.layer-final {
    /* Uses dynamic background image */
}

@media (max-width: 992px) {
    .signature-sticky-container {
        flex-direction: column;
        justify-content: center;
        padding: 0 5%;
    }
    .signature-text-wrapper {
        width: 100%;
        height: 100px;
        text-align: center;
        margin-bottom: 30px;
    }
    .signature-msg {
        right: 50%;
        transform: translate(50%, -50%);
        font-size: 2rem;
    }
    .signature-msg.msg-5 {
        font-size: 1.5rem;
    }
    .signature-visual-wrapper {
        width: 100%;
        height: 50vh;
    }
}

/* ==========================================================================
   Services Section (Premium Stack Layout)
   ========================================================================== */
.premium-services-stack {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 50px;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.service-row.row-reversed {
    flex-direction: row-reverse;
}

.service-visual {
    width: 50%;
    height: 400px;
    background: var(--glass-panel);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.service-blueprint-graphic {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(163,112,196,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163,112,196,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

.service-blueprint-graphic .s-icon {
    font-size: 4rem;
    color: var(--metallic-champagne);
    filter: drop-shadow(0 0 20px rgba(225, 205, 164, 0.4));
    z-index: 2;
}

.s-line-1, .s-line-2 {
    position: absolute;
    background: var(--electric-lavender);
    opacity: 0.5;
}

.s-line-1 { width: 60%; height: 2px; top: 30%; left: 20%; }
.s-line-2 { width: 2px; height: 60%; left: 70%; top: 20%; }

.service-details {
    width: 50%;
    text-align: right;
}

.service-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: -30px;
    letter-spacing: -2px;
}

.service-heading {
    font-size: 2.2rem;
    color: var(--warm-white);
    font-weight: 800;
    margin-bottom: 20px;
}

.service-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.9;
    margin-bottom: 30px;
}

.btn-link {
    color: var(--metallic-champagne);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    gap: 15px;
    color: var(--electric-lavender);
}

@media (max-width: 992px) {
    .service-row, .service-row.row-reversed {
        flex-direction: column;
        gap: 30px;
    }
    .service-visual, .service-details {
        width: 100%;
    }
}

/* ==========================================================================
   Projects Section (Editorial Gallery)
   ========================================================================== */
.premium-projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-editorial-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    group: hover;
    cursor: pointer;
}

.project-featured {
    grid-column: 1 / -1;
    height: 500px;
}

.project-standard {
    height: 350px;
}

.project-img-mask {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
}

.project-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* transition removed to prevent GSAP conflicts */
    will-change: transform;
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(20, 11, 25, 0.9) 0%, rgba(20, 11, 25, 0.2) 100%);
    transition: background 0.4s ease;
}

.project-editorial-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(20, 11, 25, 0.95) 0%, rgba(20, 11, 25, 0.4) 100%);
}

.project-editorial-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
    text-align: right;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-editorial-card:hover .project-editorial-info {
    transform: translateY(0);
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 10px;
}

.meta-status {
    color: var(--metallic-champagne);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.meta-line {
    width: 40px;
    height: 1px;
    background: var(--metallic-champagne);
}

.project-editorial-info h3 {
    color: var(--warm-white);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.project-featured .project-editorial-info h3 {
    font-size: 2.5rem;
}

.project-editorial-info p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s ease;
}

.project-editorial-card:hover .project-link {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 992px) {
    .premium-projects-gallery {
        grid-template-columns: 1fr;
    }
    .project-featured, .project-standard {
        grid-column: 1 / -1;
        height: 350px;
    }
}

/* ==========================================================================
   Registration Form Section (Premium Conversion Layout)
   ========================================================================== */
.registration-premium-layout {
    display: flex;
    align-items: stretch;
    background: var(--glass-panel);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.registration-visual-side {
    width: 45%;
    padding: 60px;
    background: linear-gradient(135deg, rgba(115, 66, 145, 0.1), rgba(41, 22, 51, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--glass-border);
}

.registration-form-side {
    width: 55%;
    padding: 60px;
    background: rgba(20, 11, 25, 0.6);
}

.trust-points {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trust-point {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--metallic-champagne);
    font-size: 1.1rem;
    font-weight: 600;
}

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

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--warm-white);
    text-decoration: none;
    font-weight: 700;
    padding: 15px 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    width: fit-content;
}

.quick-link:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.premium-form-wrapper {
    position: relative;
    scroll-margin-top: 120px;
}

/* Overriding the default form partial styles for the premium look */
.premium-form-wrapper .form-container {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.premium-form-wrapper label {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
}

.premium-form-wrapper input,
.premium-form-wrapper select,
.premium-form-wrapper textarea {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: var(--warm-white) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    transition: all 0.3s ease !important;
}

.premium-form-wrapper input:focus,
.premium-form-wrapper select:focus,
.premium-form-wrapper textarea:focus {
    background: rgba(255,255,255,0.08) !important;
    border-color: var(--electric-lavender) !important;
    box-shadow: 0 0 15px rgba(163, 112, 196, 0.2) !important;
    outline: none !important;
}

.premium-form-wrapper select option {
    background: var(--deep-plum) !important;
    color: var(--warm-white) !important;
}

.premium-form-wrapper .submit-btn {
    background: var(--brand-primary) !important;
    border: none !important;
    color: white !important;
    width: 100% !important;
    padding: 18px !important;
    font-size: 1.2rem !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

.premium-form-wrapper .submit-btn:hover {
    background: var(--electric-lavender) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(163, 112, 196, 0.3) !important;
}

@media (max-width: 992px) {
    .registration-premium-layout {
        flex-direction: column;
    }
    .registration-visual-side,
    .registration-form-side {
        width: 100%;
        padding: 30px;
    }
    .registration-visual-side {
        border-left: none;
        border-bottom: 1px solid var(--glass-border);
    }
}
