@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@300;500;700;900&display=swap');

:root {
  /* Colors */
  --bg-color: #050505;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-blue: #0070f3;
  --accent-purple: #7928ca;
  --accent-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Spacing */
  --section-padding: 100px 5%;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --cursor-size: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important; /* Hide default cursor for custom one */
}

@media (max-width: 1024px) {
  * { cursor: auto !important; }
  .custom-cursor { display: none; }
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--cursor-size);
  height: var(--cursor-size);
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.custom-cursor.hover {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid white;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* Layout */
section {
  padding: var(--section-padding);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header/Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  z-index: 1000;
  transition: var(--transition-smooth);
}

nav.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(15px);
  padding: 15px 5%;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: #fff;
}

.nav-logo {
  height: 36px;
  width: auto;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
  z-index: -1;
  transform: scale(1.1);
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: none;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 10px 20px rgba(121, 40, 202, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(121, 40, 202, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--glass-border);
  margin-left: 15px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
  transform: translateY(-3px);
}

/* Video Reel */
.reel-section {
  background: #000;
}

.reel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.reel-placeholder {
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  color: var(--text-secondary);
  font-size: 2rem;
  border: 2px dashed var(--glass-border);
}

.reel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: var(--transition-smooth);
}

.reel-overlay:hover {
  background: rgba(0,0,0,0.2);
}

.play-btn {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.play-btn svg {
  width: 30px;
  height: 30px;
  fill: black;
  margin-left: 5px;
}

.reel-overlay:hover .play-btn {
  transform: scale(1.1);
}

/* Logos Ticker */
.logos-section {
  padding: 30px 0;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo-flex-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 5%; /* Ensure text isn't cut off on edges */
}

.logo-header {
  flex-shrink: 0;
  width: 140px; /* Increased to prevent cut-off */
  border-right: 1px solid rgba(0,0,0,0.1);
  padding-right: 25px;
}

.trusted-text {
  color: #000;
  font-size: 0.85rem; /* Slightly larger */
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  display: block;
}

.logo-slider {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
}

/* Fades for smooth entry/exit */
.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.logo-track {
  display: flex;
  width: calc(150px * 42);
  animation: scroll 60s linear infinite;
  align-items: center;
}

.logo-item {
  width: 150px; /* Tightened from 180px */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  transition: var(--transition-smooth);
}

.logo-item img {
  max-width: 130px; /* Larger max width */
  max-height: 55px; /* Larger max height */
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-150px * 21)); }
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.category-card {
  position: relative;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  cursor: none;
  opacity: 0;
  transform: translateY(30px);
}

.category-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-card:hover .category-img-placeholder {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
}

.category-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: var(--accent-gradient);
  padding: 120px 5%;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* Footer */
footer {
  padding: 80px 5% 40px;
  background: #000;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
  display: block;
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer-links h4 {
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Typography Refinements */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.section-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: block;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header.text-center .badge {
  margin-left: auto;
  margin-right: auto;
}

.mb-120 {
  margin-bottom: 120px;
}

.mt-80 {
  margin-top: 80px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* Hero Centered adjustments */
.hero-content {
  max-width: 900px;
}

/* Portfolio Grid */
.work-grid-section {
  background: #080808;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.work-card {
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.work-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #111 0%, #1a1a1a 100%);
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.work-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.work-card:hover .work-img-placeholder {
  transform: scale(1.08);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.work-overlay p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Final CTA */
.final-cta-section {
  padding: 160px 5%;
  background: radial-gradient(circle at center, #111 0%, #050505 100%);
  text-align: center;
}

.final-cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.final-cta-section h2 {
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 24px;
  line-height: 1.1;
  max-width: 1000px;
}

.final-cta-section p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 50px;
  max-width: 700px;
}

.cta-center {
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-large {
  padding: 22px 54px;
  font-size: 1.25rem;
  box-shadow: 0 10px 40px rgba(121, 40, 202, 0.3);
}

/* Reveal Animation Class (if not handled by animejs) */
.reveal {
  opacity: 0;
}

/* Contact Section */
.contact-section {
  padding: 100px 5%;
}

.contact-card {
  padding: 60px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.contact-info h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: rgba(121, 40, 202, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.w-100 {
  width: 100%;
  justify-content: center;
}

/* Apple Liquid Glass Effect */
/* The V2 Difference Section */
.difference-section {
  padding: 120px 0;
  position: relative;
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.diff-card {
  padding: 50px 40px;
  border-radius: 32px;
  text-align: center;
  transition: var(--transition-smooth);
}

.diff-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.diff-icon {
  font-size: 3rem;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 20px rgba(121, 40, 202, 0.4));
}

.diff-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-family: 'Outfit', sans-serif;
}

.diff-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Cursor Glow Effect */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  opacity: 0;
}

.magnetic-btn {
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (max-width: 900px) {
  .difference-grid {
    grid-template-columns: 1fr;
  }
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.37),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Custom Portfolio Grid (2+3) */
.portfolio-custom-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
}

.portfolio-custom-grid a {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.work-card-horizontal {
  grid-column: span 3;
  height: 380px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.work-card-horizontal .iframe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.work-card-horizontal .iframe-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 105%;
  height: 105%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.work-card-horizontal .work-overlay-static {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.work-card {
  grid-column: span 2;
  height: 240px; /* Reduced for cinematic ratio */
  border-radius: 24px; /* Slightly tighter radius for smaller cards */
  background: #000;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.work-card .iframe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.work-card .iframe-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 105%;
  height: 105%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.work-card .work-overlay-static {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 25px; /* Tighter padding for shorter cards */
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.work-card .work-overlay-static h3 {
  margin-bottom: 2px;
  font-size: 1.2rem; /* Scaled down for shorter cards */
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.work-card .work-overlay-static p {
  font-size: 0.75rem; /* Scaled down for shorter cards */
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0;
}

.iframe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.iframe-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 105%; /* Reduced overflow */
  height: 105%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
  object-fit: cover;
}

.iframe-cover-vertical {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1.25); /* Reduced zoom for 16:9 cards */
  border: none;
  pointer-events: none;
  object-fit: cover;
}

.vertical-work-card {
  height: 600px;
  margin-top: -75px; /* Offset to create a dynamic overlapping look */
}

.vertical-work-card .work-overlay-static {
  padding-top: 100px; /* More space for vertical content */
}

.work-overlay-static {
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  z-index: 2;
}

.work-overlay-static h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-family: 'Outfit', sans-serif;
}

.work-overlay-static p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Lighting & Bottom Brightness */
.liquid-glow {
  background: radial-gradient(circle at 50% -20%, rgba(121, 40, 202, 0.15) 0%, transparent 70%),
              radial-gradient(circle at 0% 50%, rgba(0, 112, 243, 0.1) 0%, transparent 50%);
}

.liquid-glow-bottom {
  position: relative;
  background: #050505;
}

.liquid-glow-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 100%, rgba(121, 40, 202, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Wall of Love Layout */
.reviews-columns {
  column-count: 3;
  column-gap: 30px;
  margin-top: 50px;
}

.review-card {
  break-inside: avoid;
  margin-bottom: 30px;
  padding: 40px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.review-card:hover {
  transform: translateY(-5px);
}

.stars {
  color: #ffb400;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.review-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.author {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  text-transform: uppercase;
}

.btn-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(121, 40, 202, 0.5);
}

/* Responsive adjustments for 2+3 grid */
@media (max-width: 1100px) {
  .work-card-horizontal, .work-card {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .reviews-columns {
    column-count: 1;
  }
  .contact-card {
    padding: 40px 20px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .cta-center {
    margin-top: 80px;
    margin-bottom: 120px;
    text-align: center;
  }
  .contact-info h2 {
    font-size: 2.5rem;
  }
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
}
