/* Sky Roof Real Estate - Independent Brand Identity */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&display=swap');

:root {
    --primary: #042240; /* Official Sky Roof Deep Blue */
    --accent: #d4c2b0;  /* Official Sky Roof Beige */
    --accent-dark: #bba691;
    --text: #ffffff;
    --text-dark: #042240;
    --bg-light: #f8f9fa;
    --glass: rgba(4, 34, 64, 0.85);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--primary);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(212, 194, 176, 0.03), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(4, 34, 64, 0.8), transparent 50%);
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
    position: relative;
}

/* ─── Premium Noise & Ambient Glow ─── */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: -2;
}

/* ─── Demo Access Bar ─── */
.demo-access-bar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(4, 34, 64, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 194, 176, 0.2);
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    z-index: 2000;
}

.demo-btn {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(212, 194, 176, 0.1);
    border: 1px solid rgba(212, 194, 176, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.demo-btn i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .demo-access-bar {
        gap: 8px;
        padding: 8px 5px;
        flex-wrap: wrap;
    }
    .demo-btn {
        font-size: 11px;
        padding: 6px 10px;
        flex: 1 1 45%;
        justify-content: center;
    }
}

.ambient-glow-1, .ambient-glow-2 {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    animation: drift 20s infinite alternate ease-in-out;
}

.ambient-glow-1 {
    top: -10%; right: -10%;
    width: 600px; height: 600px;
    background: rgba(4, 34, 64, 0.6);
}

.ambient-glow-2 {
    bottom: -20%; left: -10%;
    width: 800px; height: 800px;
    background: rgba(212, 194, 176, 0.05);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

/* ─── Custom Pattern Background Removed ─── */
.pattern-bg { display: none; }

/* ─── Header ─── */
header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 194, 176, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    gap: 4px;
    align-items: flex-end;
}

.logo-icon span {
    width: 6px;
    background: var(--accent);
    border-radius: 2px;
}

.logo-icon span:nth-child(1) { height: 20px; }
.logo-icon span:nth-child(2) { height: 32px; }
.logo-icon span:nth-child(3) { height: 20px; }

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

.logo-text span { color: var(--accent); }

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    color: var(--accent);
    font-size: 24px;
    cursor: pointer;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--accent);
    font-size: 18px;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--white);
    transform: translateY(-3px);
}

/* ─── Hero Section ─── */
.hero {
    height: 100vh;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-family: 'Bodoni Moda', serif;
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-logo {
    width: 180px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: heroReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    mix-blend-mode: screen; /* Blends the black/dark JPG background seamlessly */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)) contrast(1.2);
}

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

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 35px;
}

.hero-image {
    position: absolute;
    left: -10%;
    width: 60%;
    height: 80%;
    background: url('skyroof_hero.png') center center no-repeat;
    background-size: cover;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-10deg);
}

.btn {
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: #fff; transform: translateY(-3px); }

/* ─── Stats ─── */
.stats {
    padding: 60px 5%;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 { font-size: 42px; font-weight: 900; }
.stat-item p { font-size: 14px; font-weight: 700; text-transform: uppercase; }

/* ─── Projects Grid ─── */
.projects {
    padding: 100px 5%;
}

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

.section-title h2 { font-size: 42px; font-weight: 900; }
.section-title .divider {
    width: 80px; height: 4px;
    background: var(--accent);
    margin: 15px auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 450px;
}

.project-card img, .project-card video {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.project-card:hover img, .project-card:hover video { transform: scale(1.1); }

.video-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    z-index: 5;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(4, 34, 64, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.project-overlay h4 { font-size: 22px; margin-bottom: 5px; }
.project-overlay p { font-size: 14px; color: var(--accent); }

/* ─── Contact Info Section ─── */
.contact-section {
    padding: 80px 5%;
    background: #062b50;
    display: flex;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

.contact-info-list {
    flex: 0 1 450px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px; height: 50px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}

.info-item div h5 { font-size: 14px; color: var(--accent); }
.info-item div p { font-size: 18px; font-weight: 700; }

/* ─── Footer ─── */
footer {
    padding: 60px 5% 30px;
    text-align: center;
    background: var(--primary);
}

.footer-logo { margin-bottom: 30px; }

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-socials a {
    width: 45px; height: 45px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: rotate(360deg);
}

.copyright {
    font-size: 13px;
    color: var(--accent);
    opacity: 0.7;
    border-top: 1px solid rgba(212, 194, 176, 0.1);
    padding-top: 30px;
}

/* ─── Responsive & Mobile Styles ─── */
@media (max-width: 991px) {
    header {
        padding: 15px 5%;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary);
        transition: var(--transition);
        z-index: 999;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 40px 5%;
        gap: 30px;
        align-items: center;
    }

    nav ul li a {
        font-size: 20px;
    }

    /* Hero Section */
    .hero { 
        flex-direction: column; 
        text-align: center; 
        justify-content: center;
        height: auto;
        padding: 140px 5% 60px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    .hero h1 { 
        font-size: 38px; 
        gap: 10px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero-btns {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-image { 
        position: relative; 
        width: 100%; 
        left: 0; 
        margin-top: 50px; 
        transform: none; 
        height: 300px;
        border-radius: 20px;
    }

    /* Contact Section */
    .contact-section { 
        flex-direction: column; 
        gap: 50px;
        padding: 60px 5%;
    }
    .contact-info-list {
        flex: 1;
        width: 100%;
    }
    .info-item {
        text-align: center;
        flex-direction: column;
        gap: 15px;
    }
    .contact-image-container {
        width: 100%;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .hero { padding: 110px 5% 40px; }
    .hero h1 { font-size: 22px; line-height: 1.4; }
    .hero-logo { width: 90px; }
    .section-title h2 { font-size: 26px; }
    .project-card { height: 340px; }
    .core-values { padding: 25px 5% !important; }
    .btn { padding: 10px 16px; font-size: 13px; }
}
