/* --- THRIVE DIGITAL EXACT CLONE THEME --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Colors */
  --thrive-plum: #1D1223;
  --thrive-purple-light: #311C3B;
  --thrive-beige: #E6D9B9;
  --thrive-lavender: #E9DDE8;
  --thrive-orange: #633a81;
  --thrive-highlight: #7A5198;
  --thrive-white: #FFFFFF;

  /* Theme Defaults (Set to Dark Plum) */
  --bg-color: var(--thrive-plum);
  --bg-surface: var(--thrive-purple-light);
  --text-main: var(--thrive-white);
  --text-muted: rgba(255, 255, 255, 0.7);
  --primary-color: var(--thrive-orange);
  --secondary-color: var(--thrive-beige);

  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --section-padding: 140px 5%;
}

::selection {
  background: var(--thrive-highlight);
  color: var(--thrive-white);
}

/* Base Body Resets */
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .logo {
  font-family: var(--font-heading) !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.mono-text, .tag, .metadata {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Turn off blobs for a cleaner look */
.blob { display: none !important; }
.text-gradient {
  background: none;
  -webkit-text-fill-color: inherit;
  color: inherit;
  animation: none;
}

/* SECTION BACKGROUNDS */
.bg-plum {
  background-color: var(--thrive-plum);
  color: var(--thrive-white);
}
.bg-beige {
  background-color: var(--thrive-beige);
  color: var(--thrive-plum);
}
.bg-beige h1, .bg-beige h2, .bg-beige h3, .bg-beige h4, .bg-beige p, .bg-beige ul, .bg-beige li, .bg-beige .metadata {
  color: var(--thrive-plum) !important;
}

.bg-lavender {
  background-color: var(--thrive-lavender);
  color: var(--thrive-plum);
}
.bg-lavender h1, .bg-lavender h2, .bg-lavender h3, .bg-lavender h4, .bg-lavender p, .bg-lavender .metadata {
  color: var(--thrive-plum) !important;
}

.section {
  padding: var(--section-padding) !important;
}

/* EXACT NAVBAR STRUCTURE */
.navbar {
  padding: 30px 0 !important;
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.navbar.scrolled {
  background: var(--thrive-plum) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  padding: 0px !important;
}
.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1400px;
  width: 100%;
}
.nav-links {
  display: flex;
  gap: 30px;
  justify-content: flex-start;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--thrive-orange); }
.nav-container .logo {
  justify-self: center;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-container .logo img {
  height: 80px;
  width: 150px;
}
.nav-container .header-btn-wrap {
  justify-self: flex-end;
}

/* BUTTONS */
.btn {
  font-family: var(--font-mono) !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 16px 32px !important;
  border-radius: 50px !important;
  border: 2px solid var(--thrive-orange) !important;
  background: transparent !important;
  color: inherit !important;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 4px 4px 0px var(--thrive-orange) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn::after {
  content: '→';
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.btn:hover {
  background: var(--thrive-orange) !important;
  color: #fff !important;
  transform: translate(2px, 2px) !important;
  box-shadow: 2px 2px 0px var(--thrive-orange) !important;
}
.btn:active {
  transform: translate(4px, 4px) !important;
  box-shadow: 0px 0px 0px var(--thrive-orange) !important;
}
.btn:hover::after {
  transform: translateX(4px);
}

.btn-secondary {
  border-color: rgba(255,255,255,0.3) !important;
  box-shadow: 4px 4px 0px rgba(255,255,255,0.3) !important;
}
.btn-secondary:hover {
  border-color: var(--thrive-white) !important;
  background: var(--thrive-white) !important;
  color: var(--thrive-plum) !important;
  box-shadow: 2px 2px 0px var(--thrive-white) !important;
}
.bg-beige .btn-secondary {
  border-color: rgba(29,18,35,0.3) !important;
  box-shadow: 4px 4px 0px rgba(29,18,35,0.3) !important;
  color: var(--thrive-plum) !important;
}
.bg-beige .btn-secondary:hover {
  border-color: var(--thrive-plum) !important;
  background: var(--thrive-plum) !important;
  box-shadow: 2px 2px 0px var(--thrive-plum) !important;
  color: var(--thrive-beige) !important;
}

/* HERO SECTION MODS */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}
/* Abstract Animated Glow Aura */
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: -10%;
  width: 120%; height: 120%;
  background: radial-gradient(circle at 50% 50%, rgba(122, 81, 152, 0.15), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(255, 92, 57, 0.1), transparent 30%);
  animation: auraPulse 10s infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes auraPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.1) translate(-2%, 2%); opacity: 1; }
}
.hero-container { position: relative; z-index: 1; }

.hero h1 {
  font-size: 5.5rem;
  line-height: 1.05;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}
.hero h1:hover {
  text-shadow: 3px 0 var(--thrive-orange), -3px 0 var(--thrive-highlight);
  color: var(--thrive-beige);
}
.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  line-height: 1.6;
}

/* CARDS & GRIDS (3D TILT PREP) */
.glass-card {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important; /* Base shadow for 3D depth */
  padding: 40px !important;
  /* 3D Hardware Acceleration */
  transform-style: preserve-3d;
  will-change: transform;
  /* Default smooth transition when mouse leaves */
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, border-color 0.4s ease-out !important;
}
.glass-card > * {
  /* Create popping depth for contents */
  transform: translateZ(30px);
}
.bg-beige .glass-card {
  border-color: rgba(29,18,35,0.1) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}
.bg-lavender .glass-card {
  border-color: rgba(29,18,35,0.1) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}
/* Focus shadow when tilted */
.glass-card:hover {
  border-color: var(--thrive-orange) !important;
  box-shadow: 0 20px 40px #7a51988c !important;
  z-index: 10;
}

/* 3D FLOATING ANIMATIONS */
@keyframes floatY {
  0% { transform: translateY(0px) translateZ(30px); }
  50% { transform: translateY(-10px) translateZ(30px); }
  100% { transform: translateY(0px) translateZ(30px); }
}
.floating {
  animation: floatY 4s ease-in-out infinite;
}


/* OTHER SPECIFICS */
.section-title { text-align: left !important; margin-bottom: 80px; }
.section-title h2 { font-size: 4rem; }
.tag {
  background: transparent;
  color: var(--thrive-orange);
  border: 1px solid var(--thrive-orange);
  margin-bottom: 20px;
  border-radius: 50px;
}
.portfolio-img {
  border-radius: 8px;
  border: none !important;
}
.icon-wrapper {
  background: transparent !important;
  color: var(--thrive-orange) !important;
  border: none !important;
  border-radius: 0 !important;
}
.footer-container {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 80px;
}

/* CINEMATIC REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.96) !important;
  filter: blur(8px) !important;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1) !important;
  filter: blur(0px) !important;
}

/* PARTNERS LOGOS */
.partners-logo-track {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 40px;
  width: 100%;
  padding: 20px 0;
}
.partners-logo-track h4, .partners-logo-track img {
  font-size: 2.5rem;
  color: var(--thrive-highlight) !important;
  height: 50px;
  object-fit: contain;
}

/* PREMIUM 3D CURSOR ORB */
.cursor-orb {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 92, 57, 0.4);
  pointer-events: none;
  z-index: 9999;
  filter: blur(20px);
  will-change: transform, width, height, background;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
  mix-blend-mode: screen;
}
.active-orb {
  width: 150px !important;
  height: 150px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  filter: blur(40px) !important;
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
  .nav-container {
    display: flex !important;
    justify-content: space-between !important;
    width: 100%;
  }
  .nav-container .header-btn-wrap { display: none; }
  .nav-container .logo { margin: 0; }
  
  .mobile-menu-btn { 
    display: flex !important; 
    z-index: 1001; 
  }
  
  .nav-links {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: var(--thrive-plum) !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1000 !important;
    gap: 40px !important;
  }
  .nav-links.open {
    display: flex !important;
  }
  .nav-links a {
    font-size: 2rem !important;
  }
  
  /* Layout Stacking Fixes for custom inline styles */
  .hero-container {
      flex-direction: column !important;
      text-align: center;
      gap: 50px;
  }
  .hero-content { max-width: 100% !important; }
  .hero h1 { font-size: 3.5rem; }
  .section-title h2 { font-size: 2.8rem; }
  .hero-actions { justify-content: center; }
  
  /* Fix 1fr 1fr grids on mobile */
  div[style*="grid-template-columns:1fr 1fr"], 
  div[style*="grid-template-columns: 1fr 1fr"] {
      grid-template-columns: 1fr !important;
  }
}

@media screen and (max-width: 768px) {
    /* Shrink huge paddings */
    .section {
        padding: 80px 5% !important;
    }
    .hero {
        padding-top: 100px;
    }
    
    /* Shrink Typography further */
    .hero h1 { font-size: 2.5rem !important; margin-bottom: 20px;}
    .section-title h2 { font-size: 2.2rem !important; text-align: center !important; margin-bottom: 30px;}
    .page-header h1 { font-size: 3rem !important; text-align: center !important;}
    h2 { font-size: 2.2rem !important; }
    
    /* Center things that look awkward left-aligned on small screens */
    .section-title p { text-align: center !important; }
    
    /* Optimize buttons for mobile spacing */
    .btn { padding: 12px 24px !important; font-size: 0.75rem !important;}
    
    /* Grid overrides */
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
}
