/* ==========================================================================
   SHAHZAIB GILLANI — CINEMATOGRAPHER & COLORIST
   Native Instagram Reel Cards & 16:9 YouTube Embedded Cards Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #000000;
  --bg-secondary: #080808;
  --bg-card: #0d0d0d;
  --bg-card-hover: #141414;
  
  --accent-white: #ffffff;
  --accent-cyan: #00f0ff;
  --text-main: #ffffff;
  --text-muted: #a3a3a3;
  --text-dim: #666666;
  
  --border-glass: rgba(255, 255, 255, 0.15);
  --border-white: rgba(255, 255, 255, 0.4);
  --border-cyan: #00f0ff;
  --glow-white: 0 0 25px rgba(255, 255, 255, 0.25);
  --glow-cyan: 0 0 30px rgba(0, 240, 255, 0.6);
  
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Film Grain Overlay */
.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 3D FLOATING BACKGROUND CANVAS OBJECTS */
.floating-3d-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.floating-3d-element {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  box-shadow: var(--glow-cyan);
  animation: float3d 8s ease-in-out infinite alternate;
  backdrop-filter: blur(4px);
}

.element-aperture {
  width: 170px;
  height: 170px;
  top: 15%;
  left: 5%;
  background: radial-gradient(circle, rgba(0,240,255,0.18) 0%, rgba(0,0,0,0) 70%);
  animation-delay: 0s;
}

.element-lens {
  width: 230px;
  height: 230px;
  bottom: 20%;
  right: 8%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0) 70%);
  border-color: rgba(255, 255, 255, 0.4);
  animation-delay: -3s;
}

.element-ring {
  width: 110px;
  height: 110px;
  top: 45%;
  left: 45%;
  border: 2px dashed rgba(0, 240, 255, 0.7);
  animation: rotate3d 15s linear infinite;
}

@keyframes float3d {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-25px) rotate(10deg) scale(1.05); }
  100% { transform: translateY(15px) rotate(-10deg) scale(0.95); }
}

@keyframes rotate3d {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Typography Utilities */
h1, h2, h3, h4, .brand-name, .hero-title, .section-title {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  color: var(--text-main);
  text-transform: uppercase;
}

p, span, div, button, a {
  font-family: var(--font-body);
}

.text-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #a3a3a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.navbar .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-profile-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #00f0ff;
  box-shadow: var(--glow-cyan);
  flex-shrink: 0;
  background: #000000;
}

.nav-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #00f0ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  box-shadow: var(--glow-white);
}

.btn-primary:hover {
  background: #00f0ff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: var(--border-white);
}

.btn-outline:hover {
  border-color: #00f0ff;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
  background: #000000;
}

.hero-bg-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  z-index: 1;
  opacity: 0.8;
  filter: contrast(1.1) brightness(0.95);
  object-fit: cover;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.65) 55%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 4rem 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--accent-cyan);
  color: #00f0ff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: var(--glow-cyan);
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Aspect Ratio Switcher Tool */
.aspect-control-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  background: rgba(15, 15, 15, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
  width: fit-content;
}

.aspect-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.36rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.aspect-btn.active, .aspect-btn:hover {
  background: #00f0ff;
  color: #000000;
}

/* Section Common */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
}

/* SOLID ELECTRIC CYAN LOGO BADGES (0% INVERT FILTER) */
.client-marquee-section {
  background: #000000;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  align-items: center;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo-card {
  padding: 1rem 2rem;
  border-radius: 14px;
  background: #00f0ff !important;
  border: 2px solid #00f0ff;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 85px;
  min-width: 170px;
  transition: var(--transition-smooth);
}

.client-logo-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.85);
  background: #ffffff !important;
}

.client-logo-img {
  max-height: 55px;
  max-width: 140px;
  object-fit: contain;
  filter: none !important;
}

/* Showcase & Filters */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: #00f0ff;
  color: #000000;
  border-color: #00f0ff;
  box-shadow: var(--glow-cyan);
}

/* PROJECTS GRID & MATCHING USER SCREENSHOT CARD STYLES */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.2rem;
  align-items: start;
}

.project-card {
  position: relative;
  border-radius: 16px;
  background: #0a0a0a;
  border: 1px solid var(--border-white);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  border-color: #00f0ff;
  box-shadow: var(--glow-cyan);
}

/* Authentic Instagram Embed Card Container */
.aspect-instagram-card {
  height: 590px;
  width: 100%;
}

.instagram-embed-wrapper {
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
  border-radius: 14px;
}

.instagram-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Authentic YouTube Embed 16:9 Card Container */
.aspect-widescreen-card {
  grid-column: 1 / -1; /* Full Width Widescreen Showcase */
  max-width: 800px;
}

.card-category-badge {
  padding: 0.6rem 1.2rem;
  background: #0d0d0d;
  border-bottom: 1px solid var(--border-glass);
}

.card-category-badge span {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #00f0ff;
  letter-spacing: 0.08em;
}

.youtube-embed-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Ratio */
  background: #000000;
}

.youtube-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Gear Spec Rack */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gear-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 2rem;
  transition: var(--transition-smooth);
}

.gear-card:hover {
  border-color: #00f0ff;
  transform: translateY(-5px);
  box-shadow: var(--glow-cyan);
}

.gear-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-glass);
}

.gear-item {
  margin-bottom: 1rem;
}

.gear-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.gear-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  .hero-bg-visual {
    width: 100%;
    opacity: 0.4;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}
