/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
  /* Premium Color Palette */
  --color-primary: #0F172A;
  /* Richer Dark Blue/Black */
  --color-secondary: #6366F1;
  /* Vibrant Indigo */
  --color-accent: #8B5CF6;
  /* Violet for gradients */

  --color-background: #F8FAFC;
  /* Clean, cool white */
  --color-surface: #FFFFFF;
  --color-surface-translucent: rgba(255, 255, 255, 0.8);

  --color-text-main: #1E293B;
  --color-text-muted: #64748B;
  --color-white: #FFFFFF;

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --gradient-overlay: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.8));

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 5rem;
  /* Increased for breathing room */
  --spacing-xl: 10rem;

  /* Typography */
  --font-family-sans: 'Outfit', sans-serif;
  --font-family-serif: 'Playfair Display', serif;
  --font-size-base: 16px;
  --line-height-base: 1.7;

  /* Shadows & Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-main);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-lg) 0;
  position: relative;
}

/* Animation Utilities */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Header & Navigation */
.header {
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-family-sans);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient-main);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-primary);
  transition: 0.3s;
  border-radius: 2px;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 75%;
    max-width: 300px;
    background: var(--color-surface);
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  .nav-menu.open+.overlay {
    opacity: 1;
    pointer-events: all;
  }
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-background);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-family-serif);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1.25;
  /* Increased for descenders */
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.025em;
  padding-bottom: 0.2em;
  /* Prevent clipping */
  background: linear-gradient(135deg, #0F172A 0%, #4338CA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto var(--spacing-md);
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  /* Pill shape */
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gradient-main);
  color: var(--color-white);
  box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -10px rgba(99, 102, 241, 0.6);
}

.btn-outline {
  border: 2px solid transparent;
  background: linear-gradient(#F8FAFC, #F8FAFC) padding-box,
    var(--gradient-main) border-box;
  color: var(--color-secondary);
  margin-left: var(--spacing-sm);
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.05) padding-box,
    var(--gradient-main) border-box;
}

/* Typography Utilities */
h1,
h2,
h3 {
  color: var(--color-primary);
  line-height: 1.25;
}

.section-title {
  font-family: var(--font-family-serif);
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 700px;
  /* margin: 0 auto var(--spacing-lg); */
  margin: -1rem auto 3.5rem;
  /* Pull closer to title and reduce bottom gap */
  font-size: 1.125rem;
}

/* Page Headers (Small Hero) */
.page-header {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  background: linear-gradient(to bottom, #F1F5F9 0%, transparent 100%);
}

/* Grid Layouts */
.reels-grid {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  margin-top: 3rem;
  padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.reels-grid::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.reel-card {
  flex: 0 0 calc(25% - 1.5rem);
  /* 4 cards per row */
  min-width: 280px;
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 1.5rem;
  overflow: hidden;
  padding: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  scroll-snap-align: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
  /* Prevents empty space in cards with shorter images */
}

@media (max-width: 1024px) {
  .reel-card {
    flex: 0 0 calc(50% - 1rem);
    /* 2 cards on tablet */
  }
}

@media (max-width: 600px) {
  .reel-card {
    flex: 0 0 calc(100% - 2rem);
    /* 1 card on mobile */
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  align-items: center;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2 {
    gap: var(--spacing-md);
  }
}

@media (max-width: 600px) {

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 3rem;
  }
}

/* Enhanced Cards */
.card {
  background: var(--color-surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99, 102, 241, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.card p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: #94A3B8;
  padding: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: 0;
  font-weight: 300;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.875rem;
}

/* Portfolio Tweaks in CSS */
.portfolio-overlay {
  backdrop-filter: blur(4px);
  background: rgba(15, 23, 42, 0.9);
}

/* Input Fields */
.form-input,
.form-textarea {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  background: #FFFFFF;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Process Section Styles */
.process-step {
  padding: 2rem;
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
}

.process-number {
  font-size: 2rem;
  font-family: var(--font-family-serif);
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(99, 102, 241, 0.1);
  width: 70px;
  height: 70px;
  display: flex;
  /* Centering text */
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* Circle shape */
  margin: 0 auto 1.5rem auto;
  /* Center in the card */
  position: relative;
  opacity: 1;
  /* Fully visible */
  z-index: 1;
  top: auto;
  left: auto;
  transform: none;
}

.process-step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.process-step p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- V4 Content Updates --- */

/* Testimonials */
.testimonial-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  border: 1px solid #F1F5F9;
}

.testimonial-text {
  font-family: var(--font-family-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--color-text-muted);
}

/* Trusted By / Logo Cloud Marquee */
.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: inline-flex;
  gap: 4rem;
  animation: scroll 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .marquee-content {
    gap: 3rem;
    animation: scroll 15s linear infinite;
  }

  .logo-placeholder {
    font-size: 1rem;
    gap: 0.5rem;
    align-items: center;
  }

  .logo-placeholder img {
    height: 32px !important;
    max-width: 100px;
    object-fit: contain;
  }
}

.logo-placeholder {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.6;
  transition: all 0.3s;
}

.logo-placeholder img {
  filter: grayscale(100%);
  transition: all 0.3s;
}

.logo-placeholder:hover {
  opacity: 1;
  color: var(--color-primary);
}

.logo-placeholder:hover img {
  filter: grayscale(0%);
}

/* Team Section */
.team-card {
  text-align: center;
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #E2E8F0;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 4px solid #F8FAFC;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 3rem;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

details.faq-item {
  background: var(--color-white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

details.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

summary.faq-question {
  padding: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  /* Hide default triangle */
  position: relative;
  padding-right: 3rem;
}

summary.faq-question::-webkit-details-marker {
  display: none;
}

summary.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-secondary);
  font-weight: 300;
}

details[open] summary.faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  border-top: 1px solid #F3F4F6;
  margin-top: 0;
  padding-top: 1rem;
}

/* Social Icons */
.social-icon {
  width: 45px;
  height: 45px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.social-icon:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 1.5rem;
    /* Equal spacing on both sides */
    max-width: 100%;
  }

  .hamburger {
    display: flex;
    z-index: 2001;
    /* Ensure above the menu */
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    width: 70%;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    justify-content: flex-start;
    /* Align to top */
    padding-top: 6rem;
    /* Space below header */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 2000;
  }

  /* Fix for Hamburger Alignment: Remove nav wrapper from flex flow */
  .nav-container nav {
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
  }

  .nav-menu.open {
    right: 0;
    /* Slide in */
  }

  .nav-link {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: var(--color-text-main);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Feature Grid (Text + Image Side-by-Side) */
.feature-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: #EEF2FF;
  padding: 2rem;
  border-radius: 1rem;
}

/* Feature Card (Icon Box) */
.feature-card {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--color-white);
  border: 1px solid #F1F5F9;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* --- V7 Footer Overhaul --- */
.footer {
  background: #0F172A;
  /* Deep Charcoal */
  color: #94A3B8;
  /* Muted Text */
  padding: 5rem 0 2rem;
  font-size: 0.95rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #94A3B8;
  transition: color 0.3s;
}

/* Newsletter Styles */
.newsletter-form {
  display: flex;
  margin-top: 1rem;
  gap: 0.5rem;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: white;
  width: 100%;
  font-size: 0.9rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
  background: var(--color-secondary);
  color: white;
  border: none;
  padding: 0 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-btn:hover {
  background: #4F46E5;
}

/* Contact Specifics */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #E2E8F0;
}

.contact-icon {
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-top: 2px;
}

.business-hours {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.copyright-row {
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a {
  color: #64748B;
}

.legal-links a:hover {
  color: white;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .copyright-row {
    flex-direction: column;
    text-align: center;
  }
}

/* --- V10 PREMIUM PORTFOLIO REDESIGN --- */

/* 1. Split Alternate Layout (For Home/Featured) */
.featured-split {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  /* Large breathing room between projects */
  margin-top: 4rem;
}

.featured-item {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.featured-item:nth-child(even) {
  flex-direction: row-reverse;
}

.featured-image-container {
  flex: 1.2;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

.featured-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-item:hover .featured-img {
  transform: scale(1.05);
}

.featured-content {
  flex: 0.8;
}

.featured-content h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.featured-content p {
  font-size: 1.125rem;
  color: var(--color-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* 2. Portfolio Grid (3 Columns) */
.portfolio-staggered {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Exactly 3 columns as requested */
  gap: 3rem;
  align-items: start;
  padding-bottom: 100px;
}

.staggered-item {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 0.4s ease;
}

.staggered-item:hover {
  transform: translateY(-8px);
}

.staggered-image-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  background: #f8fafc;
}

.staggered-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.staggered-item:hover .staggered-img {
  transform: scale(1.03);
}

.staggered-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}

.staggered-info p {
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive Grid */
@media (max-width: 1100px) {
  .portfolio-staggered {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .portfolio-staggered {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .featured-item,
  .featured-item:nth-child(even) {
    flex-direction: column;
    gap: 2rem;
  }

  .featured-content h3 {
    font-size: 2rem;
  }
}