/* =========================================================
 ParPhonix — MAIN CSS (Space OLED Dark Edition)
 ========================================================= */

:root {
 --ink: #ffffff;
 --muted: #a0a5b0;
 --line: rgba(197, 161, 91, 0.2); /* خطوط با هاله طلایی ملایم */
 --bg0: #06080a;
 --bg1: #0b0e11;
 --radius: 18px;
 --accent: #c5a15b; /* رنگ طلایی برند */
 
 /* Drawer Dark Style */
 --drawer-bg: rgba(11, 14, 17, 0.85);
 --drawer-border: rgba(197, 161, 91, 0.25);
 --drawer-shadow: 0 24px 70px rgba(0,0,0,0.7);
}

* {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

body {
 font-family: "Poppins", "Segoe UI", sans-serif;
 background: #06080a;
 color: var(--ink);
 overflow-x: hidden;
}

.wrap {
 display: flex;
 flex-direction: column;
 align-items: center;
 min-height: 100vh;
 justify-content: flex-start;
 padding: 30px 16px;
 position: relative;
 z-index: 2;
}

/* لوگو و عنوان */
.logo-wrap {
 text-align: center;
 margin-bottom: 28px;
}

.logo {
 width: 100px;
 height: 100px;
 border-radius: 50%;
 background: #11151a;
 display: grid;
 place-items: center;
 margin: 0 auto 16px auto;
 border: 1px solid var(--line);
 box-shadow: inset 0 2px 4px rgba(255,255,255,.05), 0 6px 16px rgba(0,0,0,.5);
 position: relative;
}

.logo img {
 width: 80%;
 height: auto;
}

.title {
 font-size: clamp(24px, 3vw, 32px);
 letter-spacing: .08em;
 font-weight: 700;
 color: #ffffff;
 text-shadow: 0 0 15px rgba(197, 161, 91, 0.4);
}

.tagline {
 font-size: 11px;
 letter-spacing: .25em;
 color: var(--accent);
 margin-top: 6px;
 font-weight: 600;
}

/* کارت‌ها */
.rail {
 display: flex;
 justify-content: center;
 align-items: flex-start;
 gap: 2vw;
 flex-wrap: nowrap;
 width: 100%;
 max-width: 1200px;
 margin: 10px auto 40px;
 overflow: hidden;
 padding: 20px 1vw;
}

.card {
 flex: 0 0 calc(25% - 2vw);
 height: clamp(260px, 28vw, 320px);
 border-radius: var(--radius);
 overflow: hidden;
 position: relative;
 background: #090c0e;
 border: 1px solid rgba(255, 255, 255, 0.05);
 transform-style: preserve-3d;
 transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
 box-shadow: 0 8px 25px rgba(0,0,0,0.5);
 perspective: 1000px;
}

.card[data-tilt="left"] { transform: perspective(1000px) rotateY(5deg) rotateZ(-1deg); }
.card[data-tilt="right"]{ transform: perspective(1000px) rotateY(-5deg) rotateZ(1deg); }
.card[data-tilt="center"]{ transform: perspective(1000px); }

.card:hover {
 box-shadow: 0 18px 40px rgba(197, 161, 91, 0.15);
 border-color: var(--accent);
}

.shot {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform .4s ease;
 opacity: 0.75;
}

.card:hover .shot {
 transform: scale(1.05);
 opacity: 0.9;
}

.overlay {
 position: absolute;
 bottom: 0;
 left: 0;
 right: 0;
 height: 40%;
 background: linear-gradient(to top, rgba(6,8,10,0.9), transparent);
 display: flex;
 align-items: flex-end;
 justify-content: center;
 padding-bottom: 18px;
}

.overlay span {
 color: #fff;
 font-size: 16px;
 font-weight: 600;
 letter-spacing: .05em;
}

/* بازتاب نور طلایی روی کارت‌ها */
.card::before {
 content: "";
 position: absolute;
 top: 0;
 left: 0;
 width: 200%;
 height: 200%;
 background: radial-gradient(
   circle at var(--mx, 50%) var(--my, 30%),
   rgba(197, 161, 91, 0.4) 0%,
   rgba(197, 161, 91, 0.1) 20%,
   transparent 60%
 );
 opacity: 0;
 pointer-events: none;
 transform: translate(-50%, -50%);
 filter: blur(10px);
 transition: opacity 0.3s ease;
}

.card:hover::before {
 opacity: 1;
}

/* منوهای ناوبری پایین */
nav {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 16px;
 border-top: 1px solid var(--line);
 padding-top: 20px;
 width: min(900px, 100%);
}

nav a {
 text-decoration: none;
 color: #ffffff;
 font-size: 11px;
 letter-spacing: .15em;
 border: 1px solid var(--line);
 border-radius: 999px;
 padding: 7px 16px;
 background: rgba(11, 14, 17, 0.6);
 backdrop-filter: blur(5px);
 transition: all .2s ease;
}

nav a:hover {
 background: var(--accent);
 color: #06080a;
 font-weight: 600;
 box-shadow: 0 0 15px rgba(197, 161, 91, 0.4);
 border-color: var(--accent);
}

/* بخش شبکه های اجتماعی */
.socials {
 display: flex;
 justify-content: center;
 align-items: center;
 gap: 14px;
 margin-top: 20px;
 padding-top: 16px;
 border-top: 1px solid var(--line);
 width: min(900px, 100%);
}

.social {
 display: flex;
 align-items: center;
 gap: 8px;
 text-decoration: none;
 color: #ffffff;
 font-size: 11px;
 letter-spacing: .12em;
 border: 1px solid var(--line);
 border-radius: 999px;
 padding: 8px 16px;
 background: rgba(11, 14, 17, 0.6);
 backdrop-filter: blur(5px);
 transition: all .2s ease;
}

.social:hover {
 background: #ffffff;
 color: #06080a;
 transform: translateY(-2px);
}

.social svg {
 width: 16px;
 height: 16px;
 fill: currentColor;
}

/* دکمه منوی کشویی */
.drawer-btn {
 position: fixed;
 left: 14px;
 top: 16px;
 width: 46px;
 height: 46px;
 border-radius: 999px;
 border: 1px solid var(--drawer-border);
 background: rgba(11, 14, 17, 0.75);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 box-shadow: 0 10px 26px rgba(0,0,0,0.4);
 cursor: pointer;
 z-index: 1001;
 display: grid;
 place-items: center;
 transition: all .2s ease;
}

.drawer-btn:hover {
 border-color: var(--accent);
 box-shadow: 0 0 15px rgba(197, 161, 91, 0.3);
}

.drawer-btn__icon {
 width: 18px;
 height: 2px;
 background: #ffffff;
 border-radius: 2px;
 position: relative;
}

.drawer-btn__icon::before,
.drawer-btn__icon::after {
 content: "";
 position: absolute;
 left: 0;
 width: 18px;
 height: 2px;
 background: #ffffff;
 border-radius: 2px;
 transition: transform 0.2s ease;
}

.drawer-btn__icon::before { top: -6px; }
.drawer-btn__icon::after { bottom: -6px; }

/* پس‌زمینه مات دراور */
.drawer-backdrop {
 position: fixed;
 inset: 0;
 background: rgba(0,0,0,0.5);
 backdrop-filter: blur(4px);
 -webkit-backdrop-filter: blur(4px);
 z-index: 1000;
}

/* پنل اصلی دراور */
.drawer {
 position: fixed;
 top: 12px;
 left: 12px;
 bottom: 12px;
 width: min(340px, calc(100vw - 24px));
 border-radius: 18px;
 background: var(--drawer-bg);
 border: 1px solid var(--drawer-border);
 backdrop-filter: blur(20px);
 -webkit-backdrop-filter: blur(20px);
 box-shadow: var(--drawer-shadow);
 z-index: 1002;
 transform: translateX(-110%);
 transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1);
 display: flex;
 flex-direction: column;
 overflow: hidden;
}

.drawer.is-open { transform: translateX(0); }

.drawer__head {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 16px;
 border-bottom: 1px solid rgba(197, 161, 91, 0.15);
}

.drawer__brand {
 display: flex;
 align-items: center;
 gap: 10px;
}

.drawer__dot {
 width: 10px;
 height: 10px;
 border-radius: 50%;
 background: var(--accent);
 box-shadow: 0 0 12px var(--accent);
}

.drawer__title {
 font-weight: 700;
 letter-spacing: .08em;
 font-size: 13px;
 color: #fff;
}

.drawer__sub {
 font-size: 10px;
 letter-spacing: .18em;
 color: var(--muted);
 margin-top: 2px;
}

.drawer__close {
 width: 34px;
 height: 34px;
 border-radius: 12px;
 border: 1px solid rgba(255,255,255,0.1);
 background: rgba(255,255,255,0.05);
 color: #ffffff;
 cursor: pointer;
 transition: all .18s ease;
}

.drawer__close:hover {
 background: var(--accent);
 color: #06080a;
 border-color: var(--accent);
}

.drawer__nav {
 padding: 16px;
 display: flex;
 flex-direction: column;
 gap: 12px;
}

.drawer__item {
 text-decoration: none;
 color: #ffffff;
 border: 1px solid rgba(255,255,255,0.05);
 background: rgba(255,255,255,0.02);
 border-radius: 16px;
 padding: 14px;
 transition: all .2s ease;
}

.drawer__item:hover {
 border-color: var(--accent);
 background: rgba(197, 161, 91, 0.05);
 transform: translateX(4px);
}

.drawer__kicker {
 display: block;
 font-size: 9px;
 letter-spacing: .22em;
 color: var(--accent);
 text-transform: uppercase;
}

.drawer__label {
 display: block;
 margin-top: 4px;
 font-size: 13px;
 font-weight: 600;
 letter-spacing: .04em;
}

.drawer__foot {
 margin-top: auto;
 padding: 14px;
 border-top: 1px solid rgba(197, 161, 91, 0.15);
}

.drawer__hint {
 font-size: 10px;
 letter-spacing: .18em;
 color: var(--muted);
}

/* نقاط زیر اسلایدر */
.slider-dots {
 display: flex;
 justify-content: center;
 align-items: center;
 gap: 8px;
 margin-top: 10px;
 margin-bottom: 20px;
}

.dot {
 width: 8px;
 height: 8px;
 border-radius: 50%;
 background: rgba(255, 255, 255, 0.2);
 transition: all 0.3s ease;
}

.dot.active {
 background: var(--accent);
 transform: scale(1.3);
 box-shadow: 0 0 8px var(--accent);
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 900px) {
 .rail {
   overflow-x: auto;
   scroll-snap-type: x mandatory;
   flex-wrap: nowrap;
   justify-content: flex-start;
   max-width: none;
   padding-left: 16px;
 }
 .card {
   flex: 0 0 75%;
   height: 290px;
   scroll-snap-align: center;
 }
 .rail::-webkit-scrollbar { display: none; }
}

@media (max-width: 600px) {
 .overlay span { font-size: 14px; }
 .drawer-btn { top: 12px; left: 12px; }
 .socials { gap: 10px; }
 .social { padding: 8px 12px; }
}
