/* public/rise-collective/css/style.css */
:root {
  --black: #050505;
  --white: #FFFFFF;
  --gold: #c99c45;
  --light-gold: #fcfaf5;
  --font-sans: 'Livvic', sans-serif;
  --font-script: 'Themysion', cursive;
}

[data-theme="dark"] {
  --black: #FFFFFF;
  --white: #050505;
  --gold: #e0b865;
  --light-gold: #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
  font-family: var(--font-sans); 
  background-color: var(--white); 
  color: var(--black); 
  line-height: 1.6; 
  font-size: 1rem;
  font-weight: 400;
  overflow-x: hidden; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Grain Overlay for Premium Texture */
.noise {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9999; opacity: 0.03;
  background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

@font-face {
  font-family: 'Themysion';
  src: url('../assets/fonts/Themysion.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.01em; }
p { margin-bottom: 1.5rem; color: rgba(5, 5, 5, 0.75); font-size: 1.125rem; }
[data-theme="dark"] p { color: rgba(255, 255, 255, 0.75); }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }

.content-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: rgba(5, 5, 5, 0.75);
  font-size: 1.125rem;
}
[data-theme="dark"] .content-list {
  color: rgba(255, 255, 255, 0.75);
}

.text-gold { color: var(--gold); }
.font-script { font-family: var(--font-script); font-weight: normal; letter-spacing: 0; }
.text-center { text-align: center; }

/* Clean, readable headings */
.title-massive { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; letter-spacing: -0.02em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.title-large { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.title-medium { font-size: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.subtitle { font-size: clamp(1.125rem, 2vw, 1.25rem); opacity: 0.8; max-width: 600px; margin-bottom: 2rem; font-weight: 400; }

/* Layout */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 8rem 0; position: relative; }
.section-alt { background-color: var(--light-gold); }

/* Buttons */
.btn { 
  display: inline-flex; align-items: center; justify-content: center; 
  padding: 1rem 2.5rem; border-radius: 100px; font-weight: 500; 
  font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; border: 1px solid transparent; 
  position: relative; overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.btn-gold { background-color: var(--gold); color: var(--white); }
.btn-gold:hover { background-color: #b88a35; }
.btn-outline { border-color: rgba(5, 5, 5, 0.2); color: var(--black); background: transparent; }
[data-theme="dark"] .btn-outline { 
  background-color: var(--gold); 
  color: var(--white); 
  border-color: transparent; 
}
[data-theme="dark"] .btn-outline:hover {
  background-color: #b88a35;
  border-color: transparent;
}
.btn-outline:hover { border-color: var(--black); }

/* Header */
.header { 
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100; 
  background: transparent; transition: background 0.4s ease, padding 0.4s ease; 
  padding: 1rem 0;
}
.header.scrolled { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }

[data-theme="dark"] .header.scrolled {
  background: rgba(5, 5, 5, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo img { height: 48px; width: auto; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.05); }

.nav-links { display: flex; gap: 3rem; align-items: center; }
.nav-link { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; position: relative; overflow: hidden; display: inline-flex; align-items: center; height: 24px; }
.nav-link::before {
  content: attr(data-text); position: absolute; top: 100%; left: 0; color: var(--gold);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); height: 100%; display: flex; align-items: center;
}
.nav-link span { display: inline-flex; align-items: center; height: 100%; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.nav-link:hover span, .nav-link.active span { transform: translateY(-100%); }
.nav-link:hover::before, .nav-link.active::before { transform: translateY(-100%); }

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--black);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
}
.theme-toggle:hover {
  color: var(--gold);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile Menu */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 101; }
.mobile-menu-btn span { display: block; width: 28px; height: 2px; background-color: var(--black); margin-bottom: 6px; transition: all 0.4s ease; }
@media (max-width: 767px) {
  .nav-links { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; 
    background: var(--white); flex-direction: column; justify-content: center; 
    padding: 2rem; transform: translateY(-100%); opacity: 0; pointer-events: none; 
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); 
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu-btn { display: block; }
}

/* Unified, Clean Animations */
.reveal-fade-up { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.reveal-fade-up.active { opacity: 1; transform: translateY(0); }

.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.reveal-scale.active { opacity: 1; transform: scale(1); }

.reveal-slide-left { opacity: 0; transform: translateX(-40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.reveal-slide-left.active { opacity: 1; transform: translateX(0); }

.reveal-slide-right { opacity: 0; transform: translateX(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.reveal-slide-right.active { opacity: 1; transform: translateX(0); }

.reveal-skew { opacity: 0; transform: translateY(40px) skewY(3deg); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.reveal-skew.active { opacity: 1; transform: translateY(0) skewY(0); }

.reveal-clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-clip.active { clip-path: inset(0 0 0 0); }

.reveal-img {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-img.active {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Make sure images are visible by default */
img {
  opacity: 1 !important;
  visibility: visible !important;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Hero Section */
.hero { 
  min-height: 100vh; display: flex; align-items: center; 
  padding-top: 100px; position: relative; 
}
.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: end;
  width: 100%;
}
.hero-meta { max-width: 350px; padding-bottom: 1rem; }
.hero-actions { margin-top: 2rem; }

/* Rotating Badge */
.hero-badge-wrapper {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 140px;
  height: 140px;
  z-index: 10;
  will-change: transform;
}
.rotating-badge {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 20s linear infinite;
}
.rotating-badge svg { width: 100%; height: 100%; }
.badge-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* Removed spin-reverse to allow clockwise rotation with parent */
}
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }

@media (max-width: 767px) {
  .hero { min-height: auto; padding-bottom: 0; }
  .section { padding-top: 0; }
  .hero-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .hero-badge-wrapper { 
    position: relative;
    top: auto; 
    bottom: auto; 
    right: auto;
    left: auto;
    width: 150px; 
    height: 150px;
    margin: 5rem auto;
  }
  .rotating-badge { display: flex; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero { min-height: auto; padding-bottom: 2rem; }
  .hero-wrapper { 
    grid-template-columns: 1fr; 
    padding-right: 160px; 
    gap: 2rem;
  }
  .hero-badge-wrapper {
    width: 130px;
    height: 130px;
    top: 50%;
    margin-top: -65px;
    right: 2rem;
  }
  .rotating-badge { display: flex; }
  .nav-links { gap: 1.5rem; }
}

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 3rem; }

.card-editorial {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 1.5rem;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .card-editorial {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.card-editorial::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-editorial:hover::before { width: 100%; }
.card-editorial:hover { transform: translateY(-8px); }

.icon-editorial { 
  margin-bottom: 1.5rem; 
  color: var(--gold); 
  display: inline-block; 
  animation: organicFloat 6s ease-in-out infinite;
}
@keyframes organicFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.icon-editorial svg { 
  width: 36px; height: 36px; stroke-width: 1.5; 
  overflow: visible;
}
.icon-editorial svg path, 
.icon-editorial svg circle, 
.icon-editorial svg polyline, 
.icon-editorial svg polygon {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: drawIcon 4s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
.card-editorial:nth-child(1) .icon-editorial svg * { animation-delay: 0s; }
.card-editorial:nth-child(2) .icon-editorial svg * { animation-delay: 0.5s; }
.card-editorial:nth-child(3) .icon-editorial svg * { animation-delay: 1s; }
.card-editorial:nth-child(4) .icon-editorial svg * { animation-delay: 1.5s; }

@keyframes drawIcon {
  0% { stroke-dashoffset: 150; opacity: 0.4; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Split Layout */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.split-text { max-width: 550px; }
@media (max-width: 992px) {
  .split-layout { grid-template-columns: 1fr; gap: 4rem; }
  .founder-two-image { order: 1; }
  .founder-two-content { order: 2; }
}

/* Images */
.img-wrapper { overflow: hidden; position: relative; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1); }
.img-wrapper:hover img { transform: scale(1.05); }

/* Form */
.form-group { margin-bottom: 2.5rem; position: relative; }
.form-control { 
  width: 100%; padding: 1rem 0; border: none; border-bottom: 1px solid rgba(0, 0, 0, 0.2); 
  border-radius: 0; font-family: var(--font-sans); font-size: 1.125rem; 
  background: transparent; color: #050505; transition: border-color 0.4s ease;
}
[data-theme="dark"] .form-control {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.form-control:focus { outline: none; border-bottom-color: var(--gold); }
.form-label { 
  position: absolute; top: 1rem; left: 0; font-size: 0.75rem; font-weight: 600; 
  text-transform: uppercase; letter-spacing: 0.1em; color: #050505;
  pointer-events: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .form-label { color: rgba(255, 255, 255, 0.75); }
.form-control:focus + .form-label, .form-control:not(:placeholder-shown) + .form-label {
  transform: translateY(-20px); font-size: 0.65rem; color: var(--gold);
}
textarea.form-control { min-height: 72px; resize: none; }

/* Instagram Button */
.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-instagram::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, #bc1888 0%, #cc2366 25%, #dc2743 50%, #e6683c 75%, #f09433 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.btn-instagram:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(220, 39, 67, 0.5);
}

.btn-instagram:hover::before {
  opacity: 1;
}

.btn-instagram svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 3rem; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo-img { height: 72px; width: auto; margin-bottom: 0.25rem; }
.footer-tagline { font-family: var(--font-script); font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--gold); line-height: 1.2; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: row; gap: 2.5rem; align-items: center; flex-wrap: wrap; }

@media (max-width: 767px) {
  .footer-flex { flex-direction: column; align-items: center; text-align: center; gap: 2rem; }
  .footer-brand { align-items: center; }
  .footer-links { justify-content: center; gap: 1.5rem; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .footer-flex { gap: 1.5rem; }
  .footer-links { gap: 1rem; }
  .nav-link { font-size: 0.8rem; }
}

/* Blur Reveal Animation for Hero (No JS required) */
.anim-blur { opacity: 0; filter: blur(15px); transform: translateY(30px); animation: blurFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes blurFadeIn { to { opacity: 1; filter: blur(0); transform: translateY(0); } }

/* Scale & Fade Reveal for Hero */
.anim-scale-fade { opacity: 0; transform: scale(0.92) translateY(25px); animation: scaleFadeIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes scaleFadeIn { to { opacity: 1; transform: scale(1) translateY(0); } }

.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.3s; }
.anim-delay-3 { animation-delay: 0.45s; }
.anim-delay-4 { animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-fade-up, .reveal-scale, .reveal-slide-left, .reveal-slide-right, .reveal-skew, .reveal-clip, .reveal-img, .anim-blur, .anim-scale-fade { transition: none; opacity: 1; transform: none; clip-path: none; filter: blur(0); animation: none; }
}
