/* =========================
   DAR AL FNOON
   Main Design
========================= */

:root {
    --bg: #101010;
    --bg-secondary: #191919;
    --card: #202020;
    --text: #ffffff;
    --muted: #bdbdbd;
    --gold: #d6a34a;
    --orange: #f28b22;
    --border: rgba(214, 163, 74, 0.25);
    --shadow: 0 12px 35px rgba(0,0,0,0.35);
}

body.light-mode {
    --bg: #f7f5f1;
    --bg-secondary: #ffffff;
    --card: #ffffff;
    --text: #171717;
    --muted: #666666;
    --gold: #bd852c;
    --orange: #ed861c;
    --border: rgba(180, 125, 35, 0.25);
    --shadow: 0 12px 35px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    transition: background 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* HEADER */

.header {
    width: 100%;
    min-height: 85px;
    padding: 12px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.logo h2 {
    color: var(--text);
    font-size: 21px;
    line-height: 1.5;
}

.logo span {
    color: var(--gold);
    font-size: 12px;
    direction: ltr;
    display: block;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar a {
    color: var(--text);
    font-size: 14px;
    transition: 0.3s;
}

.navbar a:hover {
    color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-btn {
    background: var(--card);
    color: var(--gold);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 9px 16px;
    font-size: 18px;
}

.menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 24px;
}

/* HERO */

.hero {
    min-height: 590px;
    padding: 75px 8%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    background:
        radial-gradient(circle at 75% 45%, rgba(214,163,74,0.13), transparent 35%),
        linear-gradient(135deg, var(--bg), #17130e);
    overflow: hidden;
    position: relative;
}

body.light-mode .hero {
    background:
        radial-gradient(circle at 75% 45%, rgba(214,163,74,0.16), transparent 35%),
        linear-gradient(135deg, #fff, #eee8df);
}

.hero-content {
    max-width: 650px;
}

.small-title {
    color: var(--gold);
    font-size: 15px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 65px);
    line-height: 1.5;
    margin: 18px 0;
}

.hero h1 span {
    color: var(--orange);
    display: block;
}

.hero p {
    color: var(--muted);
    font-size: 17px;
    max-width: 520px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}

.primary-btn {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #17110a;
}

.secondary-btn {
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(214,163,74,0.2);
}

/* HERO DECORATION */

.hero-decoration {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.gold-circle {
    width: 280px;
    height: 280px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    box-shadow:
        0 0 25px rgba(214,163,74,0.3),
        inset 0 0 30px rgba(214,163,74,0.12);
    position: absolute;
}

.hero-mark {
    font-family: Georgia, serif;
    font-size: 190px;
    font-weight: bold;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(214,163,74,0.5);
    z-index: 1;
}

.hero-caption {
    display: flex;
    gap: 12px;
    color: var(--gold);
    margin-top:2px;
    z-index: 1;
}

/* GENERAL SECTIONS */

.section {
    padding: 85px 7%;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading > span {
    color: var(--orange);
    font-size: 14px;
}

.section-heading h2 {
    font-size: 36px;
    color: var(--gold);
    margin: 8px 0;
}

.section-heading p {
    color: var(--muted);
}

/* ABOUT */

.about {
    background: var(--bg-secondary);
}

.about-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
    background: var(--card);
    padding: 40px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.about-text h3 {
    color: var(--gold);
    font-size: 25px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 15px;
}

/* SERVICES */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 22px;
    text-align: center;
    transition: 0.35s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(214,163,74,0.12);
}

.service-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e6b85c;
    font-size: 38px;
    border: 1px solid rgba(230, 184, 92, 0.35);
    border-radius: 18px;
    background: rgba(230, 184, 92, 0.06);
    filter: drop-shadow(0 0 8px rgba(230, 184, 92, 0.35));
    transition: 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(230, 184, 92, 0.13);
    filter: drop-shadow(0 0 14px rgba(230, 184, 92, 0.65));
    transform: scale(1.08);
}

.service-card h3 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 20px;
}

.service-card p {
    color: var(--muted);
    font-size: 14px;
}

/* GALLERY */

.gallery {
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 13px;
    border: 1px solid var(--border);
    transition: 0.4s;
}

.gallery-grid img:hover {
    transform: scale(1.035);
    border-color: var(--gold);
}

/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-grid a {
    text-align: center;
    padding: 25px 15px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: 0.3s;
}

.contact-grid a:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.contact-grid a span {
    font-size: 35px;
    color: var(--gold);
}

.contact-grid h3 {
    color: var(--gold);
    margin: 8px 0;
}

.contact-grid p {
    color: var(--muted);
    font-size: 13px;
}

/* FOOTER */

.footer {
    background: #111b2c;
    color: white;
    padding: 45px 20px;
    text-align: center;
}

.footer h2 {
    color: var(--gold);
    font-size: 28px;
}

.footer p {
    margin-top: 8px;
    color: #ddd;
    font-size: 14px;
}

.footer-line {
    width: 100px;
    height: 2px;
    background: var(--gold);
    margin: 22px auto;
}

/* WHATSAPP */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #13b85a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 999;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* TABLET */

@media (max-width: 1024px) {

    .header {
        padding: 12px 4%;
    }

    .navbar {
        gap: 13px;
    }

    .navbar a {
        font-size: 12px;
    }

    .hero {
        padding: 65px 5%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* MOBILE */

@media (max-width: 768px) {

    .header {
        min-height: 75px;
        padding: 10px 4%;
    }

    .logo img {
        width: 45px;
        height: 45px;
    }

    .logo h2 {
        font-size: 17px;
    }

    .logo span {
        font-size: 10px;
    }

    .menu-btn {
        display: block;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: var(--bg-secondary);
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        font-size: 15px;
        padding: 8px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 65px 6% 35px;
        gap: 20px;
    }

    .hero-content {
        margin: auto;
    }

    .hero p {
        margin: 0 auto 25px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-decoration {
        min-height: 250px;
    }

    .gold-circle {
        width: 200px;
        height: 200px;
    }

    .hero-mark {
        font-size: 140px;
    }

    .section {
        padding: 60px 5%;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .about-content {
        padding: 25px 18px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-card {
        padding: 22px 12px;
    }

    .service-card h3 {
        font-size: 16px;
    }

    .service-card p {
        font-size: 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-grid img {
        height: 160px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

}

/* SMALL MOBILE */

@media (max-width: 380px) {

    .logo img {
        width: 38px;
        height: 38px;
    }

    .logo h2 {
        font-size: 15px;
    }

    .theme-btn {
        padding: 7px 10px;
        font-size: 15px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 135px;
    }

}
.hero-logo-wrap {
    width: 340px;
    height: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: auto;
    overflow: visible;
    margin-top: 10px;
}

.hero-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 0 12px rgba(214,173,85,0.2));
    transform: translateY(22px);
}

@media (max-width: 768px) {
    .hero-logo-wrap {
        width: min(85vw, 300px);
    }
}
/* أيقونات التواصل الذهبية */
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d6ad55;
    margin-bottom: 15px;
}

.contact-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: 0.3s ease;
}

.contact-card:hover .contact-icon svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px #d6ad55);
}
.hero p {
    margin-top: 20px;
}
.hero-logo-wrap {
    width: 340px;
    margin: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.hero-logo-video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: none;
    border-radius: 0;
}

@media (max-width: 768px) {
    .hero-logo-wrap {
        width: min(85vw, 300px);
    }
}
.hero-tagline {
    margin-top: 25px;
    text-align: center;
}
/* معرض أعمال دار الفنون */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 35px;
}

.gallery-grid img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border: 1px solid rgba(230, 184, 92, 0.35);
    border-radius: 14px;
    cursor: pointer;
    transition: 0.35s ease;
}

.gallery-grid img:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(230, 184, 92, 0.2);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-grid img {
        height: 155px;
    }
}
/* ترتيب الواجهة الرئيسية في المنتصف */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo-wrap {
    order: 1;
    margin: 0 auto 8px !important;
}

.hero-caption {
    order: 2;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 25px !important;
}

.hero-content {
    order: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.lang-toggle {
  background: #e98b35;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin: 5px;
}
/* ===== معرض دار الفنون 3D ===== */

.gallery-3d-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #081321, #101f35, #07101d);
    text-align: center;
    overflow: hidden;
    color: #fff;
}

.gallery-3d-heading span {
    color: #ff8a32;
    font-size: 15px;
    letter-spacing: 2px;
}

.gallery-3d-heading h2 {
    font-size: clamp(28px, 5vw, 42px);
    margin: 12px 0;
    color: #fff;
}

.gallery-3d-heading p {
    color: #b8c7d9;
    margin-bottom: 45px;
}

.gallery-3d-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 850px;
    margin: auto;
    perspective: 1200px;
}

.gallery-3d-card {
    position: relative;
    width: min(100%, 620px);
    height: 390px;
    border: 2px solid #16d9ff;
    border-radius: 22px;
    overflow: hidden;
    background: #101b2d;
    box-shadow: 0 0 20px #16d9ff55, 0 20px 55px #0009;
    transform: rotateY(0deg);
    transition: transform .5s, box-shadow .5s;
}

.gallery-3d-card:hover {
    transform: rotateY(-5deg) scale(1.02);
    box-shadow: 0 0 35px #16d9ff88, 0 25px 60px #000b;
}

.gallery-3d-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-3d-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 25px 15px 18px;
    background: linear-gradient(transparent, #06101fee);
}

.gallery-3d-caption h3 {
    color: #fff;
    font-size: 23px;
    margin: 0 0 14px;
}

.gallery-3d-caption button {
    background: #ff852e;
    color: #fff;
    border: 0;
    padding: 11px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
}

.gallery-3d-arrow {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: 1px solid #16d9ff;
    border-radius: 50%;
    background: #102b43;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: .3s;
}

.gallery-3d-arrow:hover {
    background: #ff852e;
    border-color: #ff852e;
    transform: scale(1.1);
}

.gallery-3d-counter {
    color: #16d9ff;
    margin-top: 22px;
    font-size: 16px;
    direction: ltr;
}

.gallery3d-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000e;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.gallery3d-lightbox.active {
    display: flex;
}

.gallery3d-lightbox img {
    max-width: 95%;
    max-height: 85vh;
    object-fit: contain;
    border: 2px solid #16d9ff;
    border-radius: 12px;
}

.gallery3d-lightbox button {
    position: absolute;
    top: 20px;
    left: 25px;
    background: #ff852e;
    color: #fff;
    border: 0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .gallery-3d-section {
        padding: 55px 10px;
    }

    .gallery-3d-container {
        gap: 7px;
    }

    .gallery-3d-card {
        height: 300px;
        border-radius: 15px;
    }

    .gallery-3d-arrow {
        width: 35px;
        height: 35px;
        font-size: 17px;
    }

    .gallery-3d-caption h3 {
        font-size: 18px;
    }
}