:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #141414;
    --tertiary-dark: #1a1a1a;
    --quaternary-dark: #252525;
    --primary-white: #ffffff;
    --light-gray: #e0e0e0;
    --medium-gray: #999999;
    --gold-start: #ffd700;
    --gold-mid: #ffc107;
    --gold-end: #ff9800;
    --gold-gradient: linear-gradient(
        135deg,
        var(--gold-start) 0%,
        var(--gold-mid) 50%,
        var(--gold-end) 100%
    );
    --gold-glow: rgba(255, 215, 0, 0.4);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--primary-dark);
    color: var(--primary-white);
    overflow-x: hidden;
    line-height: 1.6;
}

[dir="rtl"] body {
    font-family: "Cairo", sans-serif;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

/* Colors */
.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px var(--gold-glow);
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--quaternary-dark);
    padding: 20px 0;
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-medium);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.navbar-toggler {
    border: 1px solid rgba(255, 215, 0, 0.35);
    padding: 0.45rem 0.7rem;
    border-radius: 0.85rem;
    box-shadow: none;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.15);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-nav .nav-link {
    color: var(--primary-white);
    font-weight: 500;
    margin: 0 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--gold-start);
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.language-toggle {
    background: var(--gold-gradient);
    border: none;
    color: var(--primary-dark);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow:
        var(--shadow-medium),
        0 0 20px var(--gold-glow);
}

/* Hero Section with Background Image */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://picsum.photos/seed/dubai-skyline-night/1920/1080.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.8) 100%
    );
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(
        135deg,
        var(--primary-white) 0%,
        var(--gold-start) 50%,
        var(--primary-white) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: goldGlow 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--gold-start);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.3rem;
    color: var(--primary-white);
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.gold-button {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow:
        var(--shadow-medium),
        0 0 20px var(--gold-glow);
}

.gold-button:hover {
    transform: translateY(-3px);
    box-shadow:
        var(--shadow-strong),
        0 0 30px var(--gold-glow);
    color: var(--primary-dark);
}

.outline-button {
    background: transparent;
    color: var(--primary-white);
    padding: 15px 40px;
    border: 2px solid var(--gold-start);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.outline-button:hover {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow:
        var(--shadow-medium),
        0 0 20px var(--gold-glow);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: var(--primary-dark);
}

.section-secondary {
    background: var(--secondary-dark);
}

.section-tertiary {
    background: var(--tertiary-dark);
}

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

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

/* Service Cards */
.service-card {
    background: var(--secondary-dark);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--quaternary-dark);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.05) 0%,
        rgba(255, 215, 0, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow:
        var(--shadow-strong),
        0 0 30px var(--gold-glow);
    border-color: var(--gold-start);
}

.service-card:hover:before {
    opacity: 1;
}

.service-icon {
    font-size: 3.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 25px;
    display: inline-block;
}

.service-card img,
.service-card .service-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    display: inline-block;
    padding: 2px;
    border: 1px solid var(--gold-start);
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

/* Portfolio Grid */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid var(--quaternary-dark);
}

#portfolioGrid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
}

#portfolioGrid .portfolio-item {
    grid-column: span 4;
    margin-bottom: 0;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 215, 0, 0.1) 0%,
        rgba(10, 10, 10, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.5s ease;
}

.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow:
        var(--shadow-strong),
        0 0 30px var(--gold-glow);
}

.portfolio-item:hover .portfolio-img {
    filter: brightness(0.9) contrast(1.2);
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    color: var(--primary-white);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.portfolio-category {
    color: var(--gold-start);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buildings Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 350px;
    border: 2px solid var(--quaternary-dark);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: brightness(0.8) contrast(1.1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        var(--shadow-strong),
        0 0 40px var(--gold-glow);
    border-color: var(--gold-start);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        transparent 100%
    );
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 5px;
}

.gallery-location {
    color: var(--gold-start);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-location i {
    font-size: 0.8rem;
}

/* Featured Building Section */
.featured-building {
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    margin: 50px 0;
    box-shadow: var(--shadow-strong);
    border: 3px solid var(--gold-start);
}

.featured-building img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
    transition: all 0.8s ease;
}

.featured-building:hover img {
    transform: scale(1.05);
    filter: brightness(0.9) contrast(1.2);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        transparent 100%
    );
    padding: 60px 40px 40px;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-white);
    margin-bottom: 15px;
}

.featured-description {
    font-size: 1.1rem;
    color: var(--light-gray);
    max-width: 700px;
    margin-bottom: 25px;
}

/* Trust Markers */
.trust-marker {
    text-align: center;
    padding: 50px 30px;
    background: var(--secondary-dark);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border: 1px solid var(--quaternary-dark);
}

.trust-marker:hover {
    transform: translateY(-5px);
    box-shadow:
        var(--shadow-strong),
        0 0 30px var(--gold-glow);
}

.trust-number {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    text-shadow: 0 0 20px var(--gold-glow);
}

.trust-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--light-gray);
    font-weight: 500;
}

/* Footer */
footer {
    background: linear-gradient(
        135deg,
        var(--primary-dark) 0%,
        var(--secondary-dark) 100%
    );
    color: var(--primary-white);
    padding: 80px 0 30px;
    border-top: 1px solid var(--quaternary-dark);
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

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

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--light-gray);
}

.footer-contact-item i {
    color: var(--gold-start);
    font-size: 1.3rem;
    margin-right: 15px;
    width: 30px;
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border: 2px solid var(--gold-start);
    color: var(--gold-start);
    margin-right: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 15px var(--gold-glow);
}

.map-container {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid var(--gold-start);
    margin-top: 30px;
    box-shadow:
        var(--shadow-medium),
        0 0 20px var(--gold-glow);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid var(--quaternary-dark);
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Glow effect for gold elements */
@keyframes goldGlow {
    0%,
    100% {
        filter: drop-shadow(0 0 10px var(--gold-glow));
    }

    50% {
        filter: drop-shadow(0 0 20px var(--gold-glow));
    }
}

.gold-glow-animation {
    animation: goldGlow 2s ease-in-out infinite;
}

/* Parallax effect for hero background */
@keyframes parallax {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

.hero-background {
    animation: parallax 20s ease-in-out infinite alternate;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 14px 0;
    }

    .navbar-brand {
        font-size: 1.45rem;
    }

    .navbar-collapse {
        background: rgba(10, 10, 10, 0.98);
        border: 1px solid rgba(255, 215, 0, 0.12);
        border-radius: 1rem;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: var(--shadow-medium);
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .navbar-nav .nav-link {
        margin: 0;
        padding: 0.8rem 0;
        text-align: center;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .language-toggle {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 0.75rem;
        margin-left: 0 !important;
    }

    .hero {
        min-height: calc(100vh - 72px);
        margin-top: 72px;
    }

    .hero-content {
        padding: 0 8px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 2.9rem);
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: clamp(1.3rem, 6vw, 1.65rem);
        line-height: 1.25;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    h1 {
        font-size: clamp(2rem, 9vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.7rem, 7vw, 2rem);
    }

    h3 {
        font-size: 1.35rem;
    }

    p {
        font-size: 1rem;
    }

    .trust-number {
        font-size: 3rem;
    }

    .section {
        padding: 56px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .hero-buttons .gold-button,
    .hero-buttons .outline-button {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .gold-button,
    .outline-button {
        width: 100%;
        padding: 14px 22px;
        font-size: 1rem;
        text-align: center;
    }

    .section-title {
        margin-bottom: 48px;
    }

    .service-card,
    .trust-marker {
        padding: 26px 20px;
    }

    #portfolioGrid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #portfolioGrid .portfolio-item {
        grid-column: auto;
    }

    .portfolio-overlay,
    .gallery-info {
        opacity: 1;
    }

    .portfolio-overlay {
        position: absolute;
        padding: 20px 18px;
    }

    .gallery-item {
        height: 260px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-building {
        height: 400px;
    }

    .featured-content {
        padding: 36px 22px 24px;
    }

    .featured-title {
        font-size: 1.8rem;
    }

    .footer-logo {
        font-size: 1.7rem;
    }

    .footer-contact-item {
        align-items: flex-start;
    }

    .footer-contact-item i {
        margin-top: 4px;
    }

    .map-container {
        height: 240px;
    }

    .scroll-top {
        width: 44px;
        height: 44px;
        right: 16px;
        bottom: 16px;
    }

    .hero-background {
        background-attachment: scroll;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    #portfolioGrid .portfolio-item {
        grid-column: span 6;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero {
        min-height: auto;
        padding: 60px 0 42px;
    }

    .hero-subtitle {
        margin-bottom: 18px;
    }

    .service-card img,
    .service-card .service-image {
        height: 150px;
    }

    .gallery-info {
        padding: 18px 16px 16px;
    }

    .gallery-name,
    .portfolio-title {
        font-size: 1.1rem;
    }

    .featured-building {
        height: 320px;
        border-width: 2px;
    }

    footer {
        padding: 60px 0 24px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        line-height: 40px;
        margin-right: 8px;
    }
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow:
        var(--shadow-medium),
        0 0 20px var(--gold-glow);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow:
        var(--shadow-strong),
        0 0 30px var(--gold-glow);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-mid);
}
