/* ========== RESET ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-main: #020617;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.45);
  --accent-1: #a855f7;
  --accent-2: #3b82f6;
  --transition-fast: 0.25s ease;
}

/* ========== GLOBAL ========== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at 0% 100%, #ff00d4 0, transparent 45%),
    radial-gradient(circle at 100% 0%, #2563eb 0, transparent 45%),
    #020617;
  color: var(--text-main);
  overflow-x: hidden;
  cursor: none;
}

a,
button,
input,
textarea {
  cursor: none;
}

/* ========== INTRO LOADER ========== */
#intro-loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.intro-title {
  font-size: 2.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #f9fafb;
  opacity: 0;
  animation: introText 1.5s ease forwards;
}

@keyframes introText {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  40% {
    opacity: 1;
    transform: scale(1.05);
  }
  75% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

/* ========== CUSTOM CURSOR ========== */
.cursor,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  z-index: 5000;
}

.cursor {
  width: 10px;
  height: 10px;
  background: #ffffff;
}

.cursor-outline {
  width: 30px;
  height: 30px;
  border: 2px solid #ffffff;
  transition: transform 0.18s ease, border 0.18s ease;
}

.cursor-active {
  transform: translate(-50%, -50%) scale(1.7) !important;
  border-width: 2px;
  
}


/* ========== NAVBAR ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 14px 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  z-index: 100;
}

.logo {
  letter-spacing: 0.24em;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav nav {
  display: flex;
  align-items: center;
}

.nav-link {
  margin-left: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.primary-btn {
  border: 1px solid rgba(148, 163, 184, 0.7);
}

/* ========== SECTIONS ========== */
.section {
  padding: 120px 7vw 80px;
}

/* ========== HERO SECTION ========== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.tagline {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  color: #c7d2fe;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero h1 span {
  background: linear-gradient(120deg, #e879f9, #3b82f6, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  transition: var(--transition-fast);
}

.btn.filled {
  border: none;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  text-decoration: none;
}
.btn.outline
{text-decoration: none;}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #22d3ee;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.6);
}

/* ========== HERO PREVIEW FRAME ========== */
.floating-card {
  background: rgba(15, 23, 42, 0.96);
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 1);
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: linear-gradient(135deg, #9333ea, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BRAND BADGE */
.brand-badge {
  position: absolute;
  bottom: -18px;
  right: 18px;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(248, 250, 252, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-logo {
  font-weight: 700;
  font-size: 1.25rem;
}

.badge-name {
  font-weight: 600;
  font-size: 0.92rem;
}

/* ========== PORTFOLIO ========== */
.section-header {
  margin-bottom: 26px;
}

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid.videos,
.card-grid.thumbs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-card,
.thumb-card {
  background: rgba(15, 23, 42, 0.96);
  padding: 14px 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.98);
}
.preview-video {
  width: 100%;
  aspect-ratio: 16 / 9;   /* ALWAYS 1920x1080 shape */
  object-fit: cover;      /* fills the frame perfectly */
  background: #000;
  border-radius: 18px;
  margin-bottom: 14px;
}

/* ========== FIXED THUMBNAIL ========== */
.thumb-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain !important;
  background: #000;
  border-radius: 14px;
  display: block;
  margin-bottom: 10px;
}

/* HOVER LIFT */
.hover-elevate {
  transition: 0.35s ease;
}

/* Individual interactive glass cards */
.hover-elevate:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: #22d3ee;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.6);
}

/* ========== SERVICES — GLASS CARDS ONLY ========== */
.service-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: 26px 20px;
  text-align: left;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.7);
  transition: 0.38s ease;
}

/* Hover boost — cursor reactive */
.service-card:hover {
  transform: translateY(-10px) scale(1.07);
  border-color: #22d3ee;
  box-shadow: 0 0 45px rgba(34, 211, 238, 0.8);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ========== CONTACT ========== */
.contact-wrapper {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.social-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.social-pill {
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 14px;
  text-decoration: none;
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  transition: 0.35s ease;
}

.social-pill:hover {
  transform: translateY(-6px) scale(1.08);
  border-color: #22d3ee;
}

.social-icon {
  width: 26px;
  height: 26px;
  stroke: #f9fafb;
  fill: none;
}

/* CONTACT FORM */
.contact-form {
  background: rgba(15, 23, 42, 0.96);
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.98);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.96);
  color: #f9fafb;
  margin-bottom: 10px;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px 10px;
  color: var(--text-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-showcase {
    order: -1;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav nav {
    display: none;
  }
  .section {
    padding: 100px 5vw 70px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}
... (your existing CSS)

/* ===== END OF YOUR OLD CSS ===== */


/* VIDEO SHOWCASE LAYOUT */
.card-grid.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* ✔ same as thumbnail layout */
  gap: 22px;  /* matching thumbnail spacing */
}


/* VIDEO FRAME */
.preview-video {
  width: 100%;
  height: 350px;
  object-fit: contain;
  background: #000;
  border-radius: 18px;
  margin-bottom: 14px;
}

/* CARD STYLE */
.portfolio-card {
  background: rgba(15, 23, 42, 0.96);
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 1);
  transition: 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: #22d3ee;
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.6);
}

/* ============================
   HOVER-TO-PLAY VIDEO SYSTEM
   ============================ */

.video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

/* Thumbnail (image on top) */
.video-wrapper .thumbnail {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    transition: 0.25s ease;
}

/* Actual video (hidden initially) */
.video-wrapper .hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: 0;
    border-radius: 18px;
    transition: 0.25s ease;
}
/* VIDEO WRAPPER FIX */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
}

.video-wrapper .thumbnail,
.video-wrapper .hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: 0.25s ease;
}

.video-wrapper .hover-video {
    opacity: 0;
}


.original-link
{
  text-decoration: none; 

}
/* ===== MOBILE / TOUCHSCREEN CURSOR ANIMATION ===== */
@media (hover: none) and (pointer: coarse) {
  .cursor,
  .cursor-outline {
    transition: left 0.18s ease, top 0.18s ease, scale 0.2s ease;
  }
}

/* ==============================
   MOBILE VIDEO + THUMBNAIL FIX
   1 COLUMN LAYOUT
============================== */
@media (max-width: 768px) {

  /* Videos section */
  .card-grid.videos {
    grid-template-columns: 1fr !important;
  }

  /* Thumbnails section */
  .card-grid.thumbs {
    grid-template-columns: 1fr !important;
  }

  /* Safety: any card grid fallback */
  .card-grid {
    grid-template-columns: 1fr !important;
  }

}
