* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #0b0b0b;
    color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    background: #111;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
}

.logo img {
    width: 120px;
    height: auto;
}

nav {
    margin-left: auto;
}

nav a {
    margin-left: 30px;
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: #d4af37;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #d4af37;
}

nav a:hover::after {
    width: 100%;
}

.hero {
    min-height: 88vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.08), transparent 35%),
        linear-gradient(180deg, #050505 0%, #0a0a0a 55%, #050505 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.04) 50%,
            transparent 100%);
    pointer-events: none;
}

.hero>* {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
}

.hero h3 {
    color: #d4af37;
    margin-bottom: 15px;
}

.hero p {
    margin-bottom: 25px;
}

button {
    background: #d4af37;
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.about,
.services {
    padding: 80px 0;
}

.about h2,
.services h2 {
    margin-bottom: 20px;
    color: #d4af37;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
}

footer {
    background: #111;
    text-align: center;
    padding: 20px;
}

.logo img {
    width: 100px;
    height: auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a:hover {
    color: #d4af37;
    transition: 0.3s;
}

.logo img {
    transition: 0.3s;
}

.logo img:hover {
    transform: scale(1.08);
}

.hero h1 {
    font-size: 64px;
    letter-spacing: 2px;
}

.hero h3 {
    color: #d4af37;
    font-size: 22px;
    margin-top: 15px;
}

.hero p {
    font-size: 18px;
    margin-top: 15px;
    color: #ddd;
}

.hero button {
    margin-top: 25px;
    padding: 14px 30px;
    background: #d4af37;
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.hero button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.projects {
    padding: 80px 0;
}

.projects h2 {
    color: #d4af37;
    margin-bottom: 30px;
}

/* =========================
   PROJECTS GRID
========================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: start;
}

.project-card {
    background: #111;
    padding: 18px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 12px;
    text-align: center;
    transition: 0.35s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.12);
}

.project-card h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

/* الصور داخل المشروع */
.project-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.project-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 7px;
    transition: 0.35s ease;
}

.project-images img:hover {
    transform: scale(1.03);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 15px;
    }
}

.project-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.project-images img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* =========================
   PROJECT GALLERY MODAL
========================= */

.project-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 40px;
}

.project-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(1000px, 95vw);
    max-height: 90vh;
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    padding: 25px;
    text-align: center;
    overflow: hidden;
}

.modal-content h2 {
    color: #d4af37;
    margin-bottom: 20px;
}

.modal-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.modal-gallery img {
    max-width: 80%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 10px;
    cursor: zoom-in;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

/* Zoom */
.modal-gallery img.zoomed {
    transform: scale(1.35);
    cursor: zoom-out;
}

/* انتقال ناعم بين الصور */
.modal-gallery img.fade {
    opacity: 0;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

.modal-close:hover {
    color: #d4af37;
}

.modal-prev,
.modal-next {
    background: rgba(212, 175, 55, 0.9);
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

.modal-prev:hover,
.modal-next:hover {
    background: #fff;
}

.modal-counter {
    color: #aaa;
    margin-top: 15px;
    font-size: 14px;
}

.project-card {
    cursor: pointer;
}

/* =========================
   MOBILE & TABLET
========================= */

@media (max-width: 768px) {

    .project-modal {
        padding: 15px;
    }

    .modal-content {
        width: 96vw;
        max-height: 94vh;
        padding: 18px 10px;
    }

    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .modal-gallery {
        gap: 8px;
    }

    .modal-gallery img {
        max-width: 78%;
        max-height: 68vh;
    }

    .modal-prev,
    .modal-next {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .modal-close {
        top: 8px;
        right: 10px;
        font-size: 28px;
    }

    .modal-counter {
        margin-top: 10px;
    }

    .modal-gallery img.zoomed {
        transform: scale(1.15);
    }
}

.hero h1 {
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.hero h3 {
    color: #d4af37;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 400;
    letter-spacing: 3px;
    margin-top: 18px;
    text-transform: uppercase;
}

.hero button {
    margin-top: 30px;
    padding: 15px 34px;
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.35s ease;
}

.hero button:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #080808;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.contact-header h2 {
    color: #d4af37;
    font-size: 38px;
    margin-bottom: 15px;
}

.contact-header p {
    color: #aaa;
    line-height: 1.8;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.contact-info h3 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 35px;
}

.contact-item {
    margin-bottom: 28px;
}

.contact-item span {
    display: block;
    color: #d4af37;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 7px;
}

.contact-item p {
    color: #ccc;
    font-size: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #d4af37;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.08);
}

.contact-form button {
    align-self: flex-start;
    padding: 14px 30px;
    background: #d4af37;
    color: #000;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

@media (max-width: 768px) {
    .contact {
        padding: 70px 20px;
    }

    .contact-header h2 {
        font-size: 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-form button {
        width: 100%;
    }
}

/* Footer */
footer {
    padding: 50px 20px 25px;
    background: #050505;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-brand img {
    width: 55px;
    margin-bottom: 12px;
}

.footer-brand p {
    color: #888;
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #d4af37;
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 12px;
}

/* Footer Mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Mobile Navbar */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 18px;
        padding: 12px 20px;
    }

    .logo img {
        width: 95px;
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    nav a {
        margin-left: 0;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.15;
    }

    .hero h3 {
        font-size: 16px;
        line-height: 1.4;
    }

    .hero p {
        font-size: 13px;
        line-height: 1.6;
    }

    .hero button {
        padding: 12px 22px;
        font-size: 12px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-card {
        padding: 14px;
        border-radius: 10px;
    }

    .project-card h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contact-form {
        width: 100%;
    }
}