/* ================================================================= */
/* DJ EKNAR — stylesheet                                             */
/* Color palette (EDIT here to tweak the whole site):               */
/* ================================================================= */
:root {
  --black: #000000;
  --white: #ffffff;
  --grey: #9a9a9a;        /* muted text */
  --line: rgba(255, 255, 255, 0.12);  /* subtle borders */
  --card: rgba(255, 255, 255, 0.03);  /* card background */
  --card-hover: rgba(255, 255, 255, 0.07);
  --max-width: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;        /* smooth scrolling between sections */
  scroll-padding-top: 80px;       /* offset so nav doesn't cover titles */
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================================= */
/* ANIMATED BACKGROUND                                               */
/* ================================================================= */
/* Slow-moving radial gradient blobs behind everything */
.bg-gradient {
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 40% at 20% 20%, rgba(255,255,255,0.06), transparent 70%),
    radial-gradient(35% 35% at 80% 30%, rgba(255,255,255,0.05), transparent 70%),
    radial-gradient(45% 45% at 50% 90%, rgba(255,255,255,0.04), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3%, -2%) scale(1.08); }
  100% { transform: translate(-3%, 2%) scale(1); }
}

/* Subtle film-grain noise overlay (pure CSS, no image needed) */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ================================================================= */
/* NAVBAR                                                            */
/* ================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
/* .scrolled class is toggled by script.js once you scroll down */
.nav.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-monogram {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 3px;
}
/* Real EKM logo image in the navbar. Adjust height to taste. */
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--grey);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
/* Animated X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================= */
/* HERO                                                              */
/* ================================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 100px 24px 60px;
}
.hero-logo {
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 6px;
  margin-bottom: 40px;
  opacity: 0.9;
}
.hero-title {
  font-size: clamp(3.5rem, 14vw, 10rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 0.95;
  margin-bottom: 28px;
}
.hero-name {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 500;
}
.hero-tagline {
  font-size: clamp(0.9rem, 2.2vw, 1.2rem);
  color: var(--grey);
  letter-spacing: 2px;
  margin-top: 6px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 44px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid var(--white);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: var(--grey); border-color: var(--grey); }
.btn-outline { background: transparent; color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-lg { padding: 18px 44px; font-size: 0.95rem; }

/* Scroll-down mouse hint */
.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
}
.scroll-mouse {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid var(--grey);
  border-radius: 14px;
  position: relative;
}
.scroll-mouse::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 7px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollWheel 1.6s infinite;
}
@keyframes scrollWheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; }
}

/* ================================================================= */
/* GENERIC SECTION                                                   */
/* ================================================================= */
.section { padding: 120px 0; }
.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--grey);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 540px;
}

/* ================================================================= */
/* ABOUT                                                             */
/* ================================================================= */
.about-text {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 300;
  line-height: 1.5;
  max-width: 820px;
  margin-top: 8px;
}
.about-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
}
.flag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--white);
  animation: pulse 2.4s infinite;
}
/* Small elegant Lebanon flag next to "Proudly representing Lebanon" */
.flag-img {
  height: 18px;
  width: auto;
  border-radius: 3px;
  vertical-align: middle;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.4); }
}

/* ================================================================= */
/* MUSIC GRID                                                        */
/* ================================================================= */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.music-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.music-card:hover {
  background: var(--card-hover);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.4);
}
.music-arrow {
  transition: transform 0.3s var(--ease);
  color: var(--grey);
}
.music-card:hover .music-arrow {
  transform: translateX(6px);
  color: var(--white);
}

/* ================================================================= */
/* SERVICES GRID                                                     */
/* ================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.service-card {
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover {
  background: var(--card-hover);
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.4);
}
.service-num {
  font-size: 0.85rem;
  color: var(--grey);
  letter-spacing: 2px;
}
.service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 14px 0 10px;
}
.service-card p { color: var(--grey); font-size: 0.98rem; }

/* ================================================================= */
/* GALLERY                                                           */
/* ================================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.gallery-card {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--grey);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}
.gallery-card:hover {
  background: var(--card-hover);
  border-color: rgba(255,255,255,0.3);
}
/* When you add real <img>, it fills the card nicely */
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-card:hover img { transform: scale(1.06); }

/* ================================================================= */
/* CONTACT                                                           */
/* ================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-card:hover {
  background: var(--card-hover);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.4);
}
.contact-label {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
}
.contact-value { font-size: 1.1rem; font-weight: 600; }
.contact-cta { margin-top: 8px; }

/* ================================================================= */
/* FOOTER                                                            */
/* ================================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px 0;
  text-align: center;
}
.footer-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.footer-managed { color: var(--grey); font-size: 0.9rem; }
.footer-copy { color: var(--grey); font-size: 0.82rem; margin-top: 8px; }

/* ================================================================= */
/* SCROLL-REVEAL ANIMATION (triggered by script.js)                 */
/* ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================= */
/* RESPONSIVE — MOBILE                                               */
/* ================================================================= */
@media (max-width: 768px) {
  .section { padding: 90px 0; }

  /* Slide-in mobile menu */
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 70%;
    max-width: 320px;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 110; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
