@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --luxury-red: #B91C1C;
    --luxury-gold: #D4AF37;
    --luxury-black: #0F0F0F;
    --luxury-white: #FAFAFA;
    --glass-light: rgba(255, 255, 255, 0.08);
    --glass-dark: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    background-color: #FAFAFA !important;
    background-image: linear-gradient(135deg, #FAFAFA 0%, #E5E5E5 100%) !important;
    color: #0F0F0F !important;
}

body.dark-mode {
    background-color: #0F0F0F !important;
    background-image: none !important;
    color: #FAFAFA !important;
}

@supports (-webkit-touch-callout: none) {

    body.light-mode {
        background-color: #FAFAFA !important;
        -webkit-text-fill-color: #0F0F0F !important;
    }

    body.light-mode .luxury-glass {
        background-color: rgba(255, 255, 255, 0.08) !important;
        -webkit-backdrop-filter: blur(10px);
    }


    body.dark-mode {
        background-color: #0F0F0F !important;
        -webkit-text-fill-color: #FAFAFA !important;
    }

    body.dark-mode .luxury-glass {
        background-color: rgba(0, 0, 0, 0.6) !important;
        -webkit-backdrop-filter: blur(10px);
    }
}

.light-mode * {
    color: inherit;
}

.dark-mode * {
    color: inherit;
}

.theme-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--luxury-gold), transparent);
    opacity: 0;
    pointer-events: none;
    z-index: 99999;
    transition: opacity 0.6s ease;
}

.theme-transition-overlay.active {
    opacity: 0.3;
}

@media (min-width: 1024px) {
    .container-desktop {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .luxury-title {
        font-size: clamp(3.5rem, 5vw, 5rem) !important;
    }

    .section-elegant {
        padding: 80px 40px !important;
    }

    .luxury-glass {
        padding: 24px !important;
    }

    .video-luxury video {
        max-height: 400px;
        object-fit: cover;
    }
}

.github-globe-container {
    position: relative;
    width: 100%;
    height: 450px;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .github-globe-container {
        height: 320px;
    }
}

#globe-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
    background: radial-gradient(ellipse at center,
    rgba(212, 175, 55, 0.02) 0%,
    transparent 50%);
}

#globe-canvas:active {
    cursor: grabbing;
}

.github-globe-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 60%);
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.luxury-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.luxury-gradient {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle at 20% 80%, rgba(185, 28, 28, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(185, 28, 28, 0.05) 0%, transparent 50%);
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(0.9);
    }
}

.particle-container {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.luxury-particle {
    position: absolute;
    bottom: -20px;
    width: 3px;
    height: 3px;
    background: linear-gradient(to top, var(--luxury-gold), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 10s infinite linear;
}

@keyframes floatUp {
    0% {
        bottom: -20px;
        opacity: 0;
        transform: translateX(0) scale(0);
    }
    10% {
        opacity: 0.8;
        transform: translateX(10px) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-10px) scale(0.8);
    }
    90% {
        opacity: 0.3;
        transform: translateX(5px) scale(0.6);
    }
    100% {
        bottom: 100vh;
        opacity: 0;
        transform: translateX(0) scale(0.3);
    }
}

.parallax-element {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.parallax-slow {
    transform: translateY(var(--parallax-slow, 0));
}

.parallax-fast {
    transform: translateY(var(--parallax-fast, 0));
}

.geometric-shape {
    position: absolute;
    border: 1px solid rgba(212, 175, 55, 0.2);
    animation: floatShape 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: 10s;
}

@keyframes floatShape {
    0%, 100% {
        transform: rotate(0deg) translateY(0px);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg) translateY(-30px);
        opacity: 0.1;
    }
}

.luxury-glass {
    background: var(--glass-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode .luxury-glass {
    background: var(--glass-dark);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.luxury-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.luxury-glass:hover::before {
    left: 100%;
}

.luxury-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(185, 28, 28, 0.2);
    border-color: var(--luxury-gold);
}

.control-dock {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    padding: 15px 25px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--luxury-red), var(--luxury-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.control-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.4;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn i,
.control-btn span {
    font-size: 20px;
    color: white;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.luxury-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 7rem);
    background: linear-gradient(135deg, var(--luxury-red), var(--luxury-gold), var(--luxury-red));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 4s ease infinite;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 2rem;
}

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

.subtitle-luxury {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.8;
    animation: fadeInUp 1s ease;
}

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

.btn-luxury {
    position: relative;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--luxury-red), var(--luxury-gold));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-luxury:hover::before {
    left: 100%;
}

.btn-luxury:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(185, 28, 28, 0.3);
}

.video-luxury {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-luxury::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(212, 175, 55, 0.05) 100%);
    pointer-events: none;
}

.video-luxury video {
    width: 100%;
    height: auto;
    display: block;
}

.media-caption {
    padding: 20px;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.05), rgba(212, 175, 55, 0.05));
    border-radius: 10px;
    margin-bottom: 15px;
}

.media-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--luxury-gold);
    margin-bottom: 8px;
}

.media-caption p {
    opacity: 0.85;
    line-height: 1.6;
}

.floor-plan-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin: 40px auto;
}

.floor-plan-container img {
    width: 100%;
    height: auto;
    display: block;
}

.clickable-plan {
    cursor: pointer;
}

.clickable-plan:hover {
    filter: brightness(1.05);
}

.modal-luxury {
    display: flex;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-luxury[style*="display: block"] {
    visibility: visible;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content-luxury {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 500px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    flex-shrink: 0;
    padding: 30px 40px 10px 40px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 40px;
    max-height: calc(100vh - 200px);
}

.modal-footer {
    flex-shrink: 0;
    padding: 20px 40px 30px 40px;
    position: sticky;
    bottom: 0;
    background: inherit;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: 10px;
}

.dark-mode .modal-footer {
    background: rgba(20, 20, 20, 0.95);
}

.light-mode .modal-footer {
    background: rgba(250, 250, 250, 0.95);
}

@media (max-width: 768px) {
    .modal-content-luxury {
        width: 95%;
        max-height: calc(100vh - 40px);
    }

    .modal-header {
        padding: 20px 20px 10px 20px;
    }

    .modal-body {
        padding: 0 20px;
        max-height: calc(100vh - 180px);
    }

    .modal-footer {
        padding: 15px 20px 20px 20px;
    }
}

.dark-mode .modal-content-luxury {
    background: rgba(20, 20, 20, 0.95) !important;
    color: var(--luxury-white) !important;
}

.light-mode .modal-content-luxury {
    background: rgba(250, 250, 250, 0.95) !important;
    color: var(--luxury-black) !important;
}

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

.section-elegant {
    padding: 80px 20px;
    position: relative;
}

@media (min-width: 768px) {
    .section-elegant {
        padding: 120px 40px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.luxury-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--luxury-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    transition: opacity 0.5s ease;
}

.loader-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-elegant {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top-color: var(--luxury-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ar {
    direction: rtl;
    font-family: 'Cairo', 'Poppins', sans-serif;
}

.scale-in {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.active {
    transform: scale(1);
    opacity: 1;
}

.slide-left {
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left.active {
    transform: translateX(0);
    opacity: 1;
}

.slide-right {
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right.active {
    transform: translateX(0);
    opacity: 1;
}

.rotate-in {
    transform: rotate(10deg) scale(0.8);
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-in.active {
    transform: rotate(0) scale(1);
    opacity: 1;
}

.float-on-scroll {
    transition: transform 0.3s ease-out;
}

.golden-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--luxury-gold), transparent);
    opacity: 0.1;
    animation: linePulse 3s infinite;
}

@keyframes linePulse {
    0%, 100% {
        opacity: 0.1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.3;
        transform: scaleY(1.5);
    }
}

.line-1 {
    left: 10%;
    animation-delay: 0s;
}

.line-2 {
    left: 30%;
    animation-delay: 0.5s;
}

.line-3 {
    right: 30%;
    animation-delay: 1s;
}

.line-4 {
    right: 10%;
    animation-delay: 1.5s;
}

footer {
    text-align: center;
    padding: 40px 20px;
    padding-bottom: 120px;
    opacity: 0.7;
    margin-top: 80px;
}

@media (min-width: 768px) {
    footer {
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .luxury-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .control-dock {
        padding: 12px 20px;
        gap: 15px;
    }

    .control-btn {
        width: 45px;
        height: 45px;
    }

    .section-elegant {
        padding: 60px 15px;
    }
}

@media (min-width: 769px) {
    .control-dock {
        top: 50%;
        right: 20px;
        left: auto;
        bottom: auto;
        transform: translateY(-50%);
        flex-direction: column;
    }
}

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

.shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            45deg,
            transparent 30%,
            rgba(212, 175, 55, 0.1) 50%,
            transparent 70%
    );
    transform: rotate(45deg);
    animation: shimmerEffect 3s infinite;
}

@keyframes shimmerEffect {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.scroll-to-top-btn {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--luxury-red), var(--luxury-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    z-index: 9998;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-to-top-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.4;
    z-index: -1;
    animation: pulse 2s infinite;
}

.scroll-to-top-btn:hover {
    transform: scale(1.1);
}

.scroll-to-top-btn i {
    font-size: 20px;
    color: white;
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 42px;
        left: calc(50% + 135px);
    }
}

@media (min-width: 769px) {
    .scroll-to-top-btn {
        bottom: 30px;
        right: 20px;
        top: auto;
        left: auto;
    }
}

.fullscreen-plan-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--luxury-black);
    z-index: 10001;
    overflow: hidden;
}

.fullscreen-plan-modal.active {
    display: flex;
    flex-direction: column;
}

.dark-mode .fullscreen-plan-modal {
    background: #0F0F0F;
}

.light-mode .fullscreen-plan-modal {
    background: #FAFAFA;
}

.fullscreen-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid var(--luxury-gold);
    flex-shrink: 0;
}

.dark-mode .fullscreen-plan-header {
    background: rgba(15, 15, 15, 0.98);
}

.light-mode .fullscreen-plan-header {
    background: rgba(250, 250, 250, 0.98);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.fullscreen-plan-search {
    display: flex;
    align-items: center;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--luxury-gold);
    border-radius: 25px;
    padding: 6px 15px;
    flex: 1;
    max-width: 400px;
}

.fullscreen-plan-search i {
    color: var(--luxury-gold);
    margin-right: 8px;
    font-size: 14px;
}

.fullscreen-plan-search input {
    background: transparent;
    border: none;
    outline: none;
    color: inherit;
    font-size: 14px;
    width: 100%;
}

.fullscreen-plan-search input::placeholder {
    color: rgba(212, 175, 55, 0.5);
}

.fullscreen-plan-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--luxury-red), var(--luxury-gold));
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
}

.fullscreen-plan-close:hover {
    transform: scale(1.1);
}

.fullscreen-plan-close i {
    color: white;
    font-size: 18px;
}

.fullscreen-plan-content {
    flex: 1;
    overflow: auto;
    padding: 5px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.fullscreen-plan-content .interactive-plan-container {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.fullscreen-plan-content .plan-image {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.fullscreen-plan-content .plan-image.grayscale {
    filter: grayscale(100%) brightness(0.6);
}

.booth-overlay.search-highlight {
    border: 2px solid rgba(255, 0, 0, 0.7) !important;
    background: rgba(212, 175, 55, 0.3) !important;
    animation: searchPulse 1.5s infinite;
    z-index: 1001 !important;
}

@keyframes searchPulse {
    0%, 100% {
        background: rgba(212, 175, 55, 0.3) !important;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    }
    50% {
        background: rgba(212, 175, 55, 0.6) !important;
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.9);
    }
}

@media (max-width: 768px) {
    .fullscreen-plan-header {
        padding: 6px 8px;
    }

    .fullscreen-plan-search {
        padding: 5px 12px;
    }

    .fullscreen-plan-close {
        width: 35px;
        height: 35px;
    }

    .fullscreen-plan-content {
        padding: 3px;
    }
}
