/* ==========================================================================
   Brandyce - Video-first Branding & Digital Company
   ========================================================================== */

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

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  /* Colors - Modern Dark Theme */
  --bg-dark: transparent; /* Changed to transparent so body background images show */
  --bg-darker: rgba(19, 18, 17, 0.6); /* Semi-transparent alternative to #131211 */
  --bg-card: rgba(26, 25, 24, 0.4);
  --bg-card-hover: rgba(36, 35, 33, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  
  --text-primary: #ffffff;
  --text-secondary: #B5B2AC;
  
  /* Accents */
  --accent-primary: #A09D9B; /* Logo taupe/warm grey */
  --accent-secondary: #E6E4E2; /* Light warm grey/off-white */
  --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  --accent-gradient-animated: linear-gradient(270deg, var(--accent-primary), var(--accent-secondary), #8A8785, var(--accent-primary));
  
  /* Social Colors */
  --whatsapp-color: #25D366;
  --instagram-color: #E1306C;
  --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Sizing & Spacing */
  --max-width: 1200px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Shadows / Glows */
  --glow-primary: 0 0 30px rgba(160, 157, 155, 0.3);
  --glow-secondary: 0 0 30px rgba(230, 228, 226, 0.3);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.6);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  
  /* Cursor */
  --cursor-size: 8px;
  --cursor-outline-size: 30px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fallback for when elements might reset cursor */
a, button, input, textarea, select {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 1.125rem;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

ul {
  list-style: none;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.gradient-text {
  background: var(--accent-gradient-animated);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.1); opacity: 0.25; }
}

.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-lg { font-size: 1.25rem; line-height: 1.8; }

/* ==========================================================================
   Custom Cursor
   ========================================================================== */

/* Custom cursor styling has been removed to use native browser cursors. */

@media (max-width: 768px) {
  .cursor-dot, .cursor-outline {
    display: none;
  }
  body, a, button {
    cursor: auto;
  }
}

/* ==========================================================================
   Layout & Structure
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

section {
  padding: var(--spacing-xl) 0;
  position: relative;
  z-index: 2;
}

section:nth-child(even) {
  background-color: var(--bg-darker);
  box-shadow: inset 0 20px 40px rgba(0,0,0,0.5), inset 0 -20px 40px rgba(0,0,0,0.5);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: opacity var(--transition-normal);
  opacity: 0;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-card);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-primary {
  background: var(--accent-gradient-animated);
  background-size: 300% 300%;
  color: white;
  box-shadow: var(--glow-primary);
  animation: gradientFlow 6s ease infinite;
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(160, 157, 155, 0.6), 0 0 80px rgba(230, 228, 226, 0.3);
}

.btn-outline {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-secondary);
  background: rgba(230, 228, 226, 0.1);
  box-shadow: 0 0 20px rgba(230, 228, 226, 0.2);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
}

.btn-instagram {
  background: var(--instagram-gradient);
  color: #fff;
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.3);
}

.btn-instagram:hover {
  box-shadow: 0 0 30px rgba(225, 48, 108, 0.6);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* Glass Cards */
.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(20, 20, 25, 0.4) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal); /* Removed transform from transition */
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 0 10px 30px rgba(0,0,0,0.5);
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 50%);
    pointer-events: none;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  /* Hover transforms removed to let JS handle 3D tilt seamlessly, but keep shadow glow */
  box-shadow: 0 20px 40px rgba(160, 157, 155, 0.15);
}

/* Services Carousel - Scroll Snap */
.services-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.services-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  flex: 1;
  scroll-behavior: smooth;
  align-items: stretch; /* Forces equal height for all card buttons */
}

.services-carousel::-webkit-scrollbar {
  display: none;
}

.service-card {
  width: 350px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 2.5rem;
  scroll-snap-align: start;
}

.carousel-arrow {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.carousel-arrow:hover {
  background: var(--accent-gradient);
  transform: scale(1.1);
  border-color: transparent;
  color: #fff;
}

.prev-arrow {
  margin-right: -22px;
}

.next-arrow {
  margin-left: -22px;
}

@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }
}

/* Background Effects */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: screen;
  animation: breathe 8s infinite alternate ease-in-out;
}

.bg-glow-purple {
  background: var(--accent-primary);
  width: 40vw;
  height: 40vw;
  top: -10vw;
  left: -10vw;
}

.bg-glow-cyan {
  background: var(--accent-secondary);
  width: 30vw;
  height: 30vw;
  bottom: -5vw;
  right: -5vw;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background-color var(--transition-fast), padding var(--transition-fast);
}

header.scrolled {
  background-color: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent-gradient);
  transition: width var(--transition-normal);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-list {
  margin: 2rem 0;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.about-list li svg {
  color: var(--accent-secondary);
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.2rem;
}

.quote-box {
  background: linear-gradient(135deg, rgba(160,157,155,0.1) 0%, rgba(230,228,226,0.1) 100%);
  border-left: 4px solid var(--accent-primary);
  padding: 2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card.featured {
  transform: scale(1.05);
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.featured .plan-name {
  color: var(--accent-secondary);
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-features {
  flex-grow: 1;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  color: var(--accent-secondary);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.pricing-action {
  margin-top: auto;
  text-align: center;
}

.pricing-action .btn {
  width: 100%;
}

/* ==========================================================================
   Contact / Footer
   ========================================================================== */
.footer {
  background-color: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
}

.contact-item svg {
  color: var(--accent-secondary);
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-secondary);
}

.contact-item a:hover {
  color: var(--accent-secondary);
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-gradient);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(160, 160, 160, 0.5);
  font-size: 0.9rem;
}

.footer-motto {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-card.featured {
    transform: none;
    order: -1;
    grid-column: span 2;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  /* Center align everything on mobile */
  body, .about-content, .about-content h2, .about-content h3, .service-details h2 {
    text-align: center !important;
  }

  .service-card {
    text-align: center !important;
    align-items: center !important;
  }

  .about-list li, .pricing-features li, .contact-item {
    justify-content: center !important;
  }
  
  .flex.gap-sm {
    justify-content: center;
  }

  /* Solid black navbar on mobile and resize logo */
  header {
    background-color: #050505 !important;
    padding: 0.5rem 0 !important;
  }
  
  .logo img {
    height: 50px !important; /* Prevents giant header from blocking content */
  }

  /* Prevent the black header from covering the top sections on mobile */
  .page-header {
    padding-top: 11rem !important;
  }
  
  .hero {
    padding-top: 9rem !important;
  }

  .about-grid, .crm-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .quote-box {
    border-left: none;
    border-top: 4px solid var(--accent-primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    grid-column: auto;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #050505 !important;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .carousel-arrow {
    display: none;
  }
}
