:root {
  --bg-main: #0b0b0f;
  --bg-glass: rgba(15,20,32,0.7);
  --text-main: #f1f3f8;
  --text-muted: #9aa0b4;
  --accent: linear-gradient(90deg,#4fd1c5,#5a67d8);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
}

.nav-center {
  display: flex;
  gap: 40px;
}

.nav-center a {
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  position: relative;
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.nav-center a:hover::after {
  width: 100%;
}

/* SEARCH */
.nav-right {
  display: flex;
  justify-content: flex-end;
}

.search-wrapper {
  display: flex;
  align-items: center;
}

.search-wrapper input {
  width: 0;
  opacity: 0;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #2b314d;
  background: #111;
  color: #fff;
  transition: 0.4s;
}

.search-wrapper.active input {
  width: 180px;
  opacity: 1;
  margin-right: 10px;
}

.search-icon {
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  padding: 120px 60px 60px;
  overflow: hidden;
}

/* FILM GRAIN */

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 2;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left h1 {
  font-size: 64px;
  line-height: 1.1;
}

.hero-left span {
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-left p {
  margin: 25px 0;
  max-width: 420px;
  color: var(--text-muted);
}

.hero-left button a{
  padding: 14px 36px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

/* HERO MEDIA */
.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.media-stack {
  position: relative;
  width: 420px;
  height: 520px;
}

/* GLOW PULSE */
.media-stack::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 18px;
  background: radial-gradient(circle at center, rgba(90,103,216,.25), transparent 60%);
  opacity: .6;
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%,100% { opacity: .4; }
  50% { opacity: .8; }
}

.media-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity .8s ease, transform 1.2s ease;
  animation: float 6s ease-in-out infinite;
  will-change: transform, opacity;
}
.ranamam-img{
  width:100%;
  height:700px;   /* zyada chadi/height */
  object-fit:cover;
  display:block;
  border-radius:12px;
  margin-top:20px;
}
.media-stack video {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid #0b0b0f;
  transition: opacity .8s ease, transform 1.2s ease;
  animation: float 6s ease-in-out infinite;
  will-change: transform, opacity;
}

/* FLOAT */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* FADE FOR JS */
.fade {
  opacity: 0;
  transform: scale(1.05);
}

/* MICRO PARALLAX */
.media-stack:hover img {
  transform: scale(1.04) rotate(-0.3deg);
}

.media-stack:hover video {
  transform: scale(1.06) rotate(0.4deg);
}

/* FEATURED */
.featured {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-auto-rows: 300px;
  gap: 20px;
  padding: 80px 60px;
}

.featured img,
.featured video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.tall { grid-row: span 2; }
.wide { grid-column: span 2; }

/* PORTFOLIO */
.portfolio {
  
  padding: 100px 60px;
}

.portfolio h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.filters {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.filters button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
}

.filters button.active {
  color: #fff;
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 25px;
}

.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.work-card img,
.work-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.work-card:hover img,
.work-card:hover video {
  transform: scale(1.1);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,rgba(0,0,0,.7),transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: .4s;
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-overlay h4 {
  font-size: 18px;
}

.work-overlay span {
  font-size: 13px;
  color: var(--text-muted);
}
/* ========================= */
/* EXPLORE WORK – PREMIUM BTN */
/* ========================= */

.explore-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 44px;
  margin-top: 10px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  background: var(--accent);
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(90,103,216,.35),
    inset 0 0 0 1px rgba(255,255,255,.15);
  transition: all 0.45s ease;
}

/* SHINE EFFECT */
.explore-btn span {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 25%,
    rgba(255,255,255,.35),
    transparent 75%
  );
  transform: translateX(-120%);
  transition: transform .7s ease;
}

/* HOVER */
.explore-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 18px 50px rgba(90,103,216,.6),
    inset 0 0 0 1px rgba(255,255,255,.25);
}

.explore-btn:hover span {
  transform: translateX(120%);
}

/* CLICK */
.explore-btn:active {
  transform: scale(.96);
}

/* OPTIONAL: subtle glow pulse */
.explore-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50px;
  background: radial-gradient(circle, rgba(90,103,216,.45), transparent 60%);
  opacity: 0;
  transition: .4s;
  z-index: -1;
}

.explore-btn:hover::before {
  opacity: 1;
}
/* ========================= */
/* EXPLORE WORK – PREMIUM BTN */
/* ========================= */

.explore-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 44px;
  margin-top: 10px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  background: var(--accent);
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(90,103,216,.35),
    inset 0 0 0 1px rgba(255,255,255,.15);
  transition: all 0.45s ease;
}

/* SHINE EFFECT */
.explore-btn span {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 25%,
    rgba(255,255,255,.35),
    transparent 75%
  );
  transform: translateX(-120%);
  transition: transform .7s ease;
}

/* HOVER */
.explore-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 18px 50px rgba(90,103,216,.6),
    inset 0 0 0 1px rgba(255,255,255,.25);
}

.explore-btn:hover span {
  transform: translateX(120%);
}

/* CLICK */
.explore-btn:active {
  transform: scale(.96);
}

/* OPTIONAL: subtle glow pulse */
.explore-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50px;
  background: radial-gradient(circle, rgba(90,103,216,.45), transparent 60%);
  opacity: 0;
  transition: .4s;
  z-index: -1;
}

.explore-btn:hover::before {
  opacity: 1;
}
/* 📱 Mobile */
@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    text-align: center;
  }

  .nav-center {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .featured {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* 📲 Small Mobile */
@media (max-width: 480px) {

  .hero h1 {
    font-size: 24px;
  }

  .nav-center a {
    font-size: 12px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}


/* 💻 Tablet */
@media (min-width: 769px) and (max-width: 1024px) {

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 40px;
  }
}