:root {
    --primary: #c9a876;
    --dark: #14141f;
    --dark-2: #1c1c2b;
    --light: #f7f5f1;
    --gray: #8b8b98;
    --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.section-title { font-size: 34px; font-weight: 700; margin-bottom: 18px; }
.section-desc { color: var(--gray); max-width: 640px; margin-bottom: 50px; font-size: 15px; line-height: 2; }

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; right: 0; left: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 5%;
    transition: 0.35s;
    background: transparent;
}
.navbar.scrolled { background: rgba(20,20,31,0.92); backdrop-filter: blur(8px); padding: 14px 5%; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.navbar .logo { font-size: 20px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.navbar .logo img { height: 38px; width: auto; border-radius: 8px; }
.navbar ul { display: flex; gap: 32px; }
.navbar ul a { color: #eee; font-size: 14px; font-weight: 500; transition: 0.2s; position: relative; }
.navbar ul a:hover { color: var(--primary); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; flex-shrink: 0; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; }

/* ===== Hero ===== */
.hero {
    min-height: 100vh; min-height: 100svh; position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 140px 0 80px;
    background: radial-gradient(120% 100% at 15% 10%, #24243a 0%, var(--dark) 55%, #0d0d15 100%);
}

/* soft ambient blobs drifting slowly in the background — plain 2D transforms only */
.hero-blobs { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.blob {
    position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55;
    animation: blobDrift 18s ease-in-out infinite alternate;
}
.blob.b1 { width: 420px; height: 420px; top: -10%; right: -8%; background: radial-gradient(circle, rgba(201,168,118,0.55), transparent 70%); animation-duration: 22s; }
.blob.b2 { width: 340px; height: 340px; bottom: -12%; left: -6%; background: radial-gradient(circle, rgba(120,110,190,0.4), transparent 70%); animation-duration: 26s; animation-delay: -6s; }
.blob.b3 { width: 260px; height: 260px; top: 45%; left: 38%; background: radial-gradient(circle, rgba(201,168,118,0.3), transparent 70%); animation-duration: 20s; animation-delay: -3s; }
@keyframes blobDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 30px) scale(1.15); }
}

.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center;
}
.hero-text { color: #fff; text-align: right; }
.hero-text .section-tag { color: var(--primary); }
.hero-text h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 18px;
}
.hero-text p { font-size: 16px; color: #cfcfda; margin-bottom: 32px; line-height: 1.95; max-width: 520px; }
.btn-3d {
    display: inline-block; padding: 16px 38px; background: var(--primary); color: var(--dark);
    font-weight: 700; border-radius: 50px; font-size: 15px;
    box-shadow: 0 15px 35px -10px rgba(201,168,118,0.6);
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-3d:hover { transform: translateY(-4px); box-shadow: 0 22px 45px -12px rgba(201,168,118,0.75); }

/* floating photo collage */
.hero-showcase { position: relative; height: 420px; }
.showcase-card {
    position: absolute; border-radius: 22px; overflow: hidden;
    box-shadow: 0 35px 60px -20px rgba(0,0,0,0.55);
    border: 4px solid rgba(255,255,255,0.06);
    transition: transform 0.4s ease;
}
.showcase-card img { width: 100%; height: 100%; object-fit: cover; }
.showcase-card.card-back {
    width: 72%; height: 78%; top: 0; left: 8%;
    transform: rotate(-6deg);
    filter: brightness(0.85);
}
.showcase-card.card-front {
    width: 62%; height: 62%; bottom: 0; right: 4%;
    transform: rotate(4deg);
}
.hero-showcase:hover .card-back { transform: rotate(-9deg) translateY(-6px); }
.hero-showcase:hover .card-front { transform: rotate(2deg) translateY(-10px); }
.showcase-badge {
    position: absolute; top: 8%; right: -4%; z-index: 2;
    background: #fff; color: var(--dark); border-radius: 18px; padding: 16px 20px;
    text-align: center; box-shadow: 0 20px 40px -15px rgba(0,0,0,0.4);
    min-width: 92px;
}
.showcase-badge strong { display: block; font-size: 26px; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.showcase-badge span { font-size: 12px; color: var(--gray); }

.scroll-cue {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1;
    color: #ccc; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px;
    animation: bounce 2s infinite;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(180deg, var(--primary), transparent); }
@keyframes bounce { 0%,100%{ transform: translate(-50%, 0);} 50%{ transform: translate(-50%, 8px);} }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.about-image-wrap { position: relative; perspective: 1200px; }
.about-image-wrap .frame {
    border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 60px -25px rgba(20,20,31,0.35);
    transform: rotateY(-6deg) rotateX(2deg);
    transition: transform 0.5s;
}
.about-image-wrap:hover .frame { transform: rotateY(0deg) rotateX(0deg); }
.about-image-wrap .frame img { aspect-ratio: 4/5; object-fit: cover; }
.about-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.about-stats .stat b { font-size: 30px; color: var(--dark); display: block; }
.about-stats .stat span { font-size: 13px; color: var(--gray); }
.about-text p { color: #4a4a55; line-height: 2.1; font-size: 15.5px; white-space: pre-line; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.service-card {
    background: #fff; border-radius: var(--radius); padding: 38px 30px;
    box-shadow: 0 15px 40px -20px rgba(20,20,31,0.15);
    transform: translateY(0) rotateX(0deg); transition: transform 0.4s, box-shadow 0.4s;
    border: 1px solid rgba(0,0,0,0.04);
}
.service-card:hover { transform: translateY(-10px) rotateX(4deg); box-shadow: 0 30px 55px -20px rgba(20,20,31,0.25); }
.service-icon {
    width: 58px; height: 58px; border-radius: 16px; background: rgba(201,168,118,0.14);
    display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 22px; color: var(--primary);
}
.service-card h3 { font-size: 18px; margin-bottom: 12px; }
.service-card p { color: var(--gray); font-size: 14px; line-height: 1.9; }

/* ===== Projects ===== */
.filter-bar { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-bar button {
    padding: 9px 20px; border-radius: 50px; border: 1px solid #ddd; background: #fff;
    font-family: inherit; font-size: 13px; cursor: pointer; transition: 0.2s;
}
.filter-bar button.active, .filter-bar button:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.project-card {
    position: relative; border-radius: var(--radius); overflow: hidden; height: 340px;
    box-shadow: 0 20px 45px -20px rgba(20,20,31,0.25);
    transform-style: preserve-3d; transition: transform 0.5s;
}
.project-card:hover { transform: scale(1.02) rotateX(2deg); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.project-card:hover img { transform: scale(1.1); }
.project-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 26px; background: linear-gradient(180deg, transparent 40%, rgba(15,15,24,0.9) 100%);
    color: #fff;
}
.project-card { cursor: pointer; }
.project-zoom {
    position: absolute; top: 16px; left: 16px; width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.18); backdrop-filter: blur(6px); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
    opacity: 0; transform: scale(0.8); transition: 0.3s;
}
.project-card:hover .project-zoom { opacity: 1; transform: scale(1); }
.project-overlay .cat { color: var(--primary); font-size: 12px; margin-bottom: 6px; }
.project-overlay h3 { font-size: 19px; }

/* ===== Testimonials ===== */
.testimonials-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.testimonial-card {
    background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: 0 15px 40px -22px rgba(20,20,31,0.2);
}
.testimonial-card .stars { color: var(--primary); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { color: #4a4a55; line-height: 1.9; margin-bottom: 20px; font-size: 14.5px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-author b { font-size: 14px; }

/* ===== Contact / Customer form ===== */
.contact-section { background: var(--dark); color: #fff; }
.contact-section .section-desc { color: #b7b7c4; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-list { display: flex; flex-direction: column; gap: 22px; }
.contact-info-list .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(201,168,118,0.16); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.contact-info-list b { display: block; margin-bottom: 4px; }
.contact-info-list span { color: #a9a9b8; font-size: 14px; }
.social-links { display: flex; gap: 12px; margin-top: 26px; }
.social-links a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.social-links a:hover { background: var(--primary); color: var(--dark); }

.contact-form { background: rgba(255,255,255,0.04); border-radius: var(--radius); padding: 34px; border: 1px solid rgba(255,255,255,0.08); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 13px; margin-bottom: 6px; color: #cfcfda; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05); color: #fff; font-family: inherit; font-size: 14px;
}
.contact-form textarea { min-height: 90px; resize: vertical; }
.contact-form ::placeholder { color: #7f7f8f; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.form-alert.success { background: rgba(72,199,142,0.14); color: #6adf9c; }
.form-alert.error { background: rgba(224,101,101,0.14); color: #ff9b9b; }

/* ===== Footer ===== */
footer { background: var(--dark-2); color: #a9a9b8; padding: 40px 0; text-align: center; font-size: 13px; }
footer b { color: #fff; }

/* ===== Scroll reveal base ===== */
.reveal { opacity: 0; transform: translateY(60px); }

/* ===== Lightbox ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,16,0.94);
    display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-body { max-width: 88vw; max-height: 82vh; text-align: center; }
.lightbox-body img {
    max-width: 88vw; max-height: 74vh; border-radius: 10px; box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    margin: 0 auto;
}
.lightbox-caption { color: #ddd; margin-top: 16px; font-size: 14px; display: flex; gap: 14px; justify-content: center; align-items: center; }
.lightbox-caption span:last-child { color: var(--primary); }
.lightbox-close, .lightbox-nav {
    position: absolute; background: rgba(255,255,255,0.08); border: none; color: #fff;
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--primary); color: var(--dark); }
.lightbox-close { top: 26px; left: 26px; }
.lightbox-nav.prev { right: 26px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { left: 26px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
    .lightbox-nav { width: 40px; height: 40px; font-size: 15px; }
    .lightbox-close { top: 16px; left: 16px; }
    .lightbox-nav.prev { right: 10px; }
    .lightbox-nav.next { left: 10px; }
}

@media (max-width: 900px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }

    /* mobile nav dropdown */
    .navbar { flex-wrap: wrap; }
    .nav-toggle { display: flex; }
    .navbar ul {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: rgba(20,20,31,0.98); backdrop-filter: blur(8px);
        padding: 10px 0; box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    }
    .navbar ul.open { display: flex; }
    .navbar ul a { display: block; padding: 14px 24px; border-top: 1px solid rgba(255,255,255,0.06); }

    /* hero: stack text above the photo collage on smaller screens */
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-text { text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-showcase { height: 320px; max-width: 420px; margin: 0 auto; }
    .showcase-badge { right: 2%; }
}

@media (max-width: 480px) {
    .section { padding: 80px 0; }
    .section-title { font-size: 26px; }
    .hero-text p { font-size: 15px; }
    .btn-3d { padding: 14px 30px; font-size: 14px; }
    .hero-showcase { height: 260px; }
    .showcase-badge { padding: 10px 14px; min-width: 74px; }
    .showcase-badge strong { font-size: 20px; }
}
