/* =============================================
   CONFLUEX — Main Stylesheet
   ============================================= */

/* === VARIABLES (Dark Theme — Default) === */
:root {
  --black: #0A0A0A;
  --bone: #E8E4DF;
  --lime: #C8FF00;
  --lime-dark: #9ECC00;
  --night: #1A1A2E;
  --graphite: #8A8A8A;
  --surface: #111114;
  --nav-bg: rgba(10,10,10,0.92);
  --nav-border: rgba(200,255,0,0.06);
  --card-border: rgba(255,255,255,0.04);
  --card-hover-border: rgba(200,255,0,0.1);
  --glow-lime: rgba(200,255,0,0.04);
  --glow-night: rgba(26,26,46,0.4);
  --grid-line: rgba(200,255,0,0.3);
  --divider-color: rgba(200,255,0,0.12);
  --step-hover: rgba(200,255,0,0.03);
  --step-num: rgba(200,255,0,0.15);
  --cta-glow: rgba(200,255,0,0.05);
  --footer-border: rgba(255,255,255,0.04);
  --overlay-bg: rgba(0,0,0,0.6);
  --shadow-card: rgba(0,0,0,0.5);
  --cta-btn-shadow: rgba(200,255,0,0.2);
}

/* === VARIABLES (Light Theme) === */
[data-theme="light"] {
  --black: #F5F3F0;
  --bone: #1A1A1A;
  --lime: #7AB800;
  --lime-dark: #5E9200;
  --night: #E8E4DF;
  --graphite: #6B6B6B;
  --surface: #EDEAE6;
  --nav-bg: rgba(245,243,240,0.92);
  --nav-border: rgba(122,184,0,0.1);
  --card-border: rgba(0,0,0,0.06);
  --card-hover-border: rgba(122,184,0,0.2);
  --glow-lime: rgba(122,184,0,0.06);
  --glow-night: rgba(237,234,230,0.4);
  --grid-line: rgba(122,184,0,0.15);
  --divider-color: rgba(122,184,0,0.15);
  --step-hover: rgba(122,184,0,0.05);
  --step-num: rgba(122,184,0,0.25);
  --cta-glow: rgba(122,184,0,0.08);
  --footer-border: rgba(0,0,0,0.06);
  --overlay-bg: rgba(0,0,0,0.3);
  --shadow-card: rgba(0,0,0,0.1);
  --cta-btn-shadow: rgba(122,184,0,0.3);
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--bone);
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

/* === NAV === */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, padding 0.4s;
}
nav.scrolled {
  background: var(--nav-bg); backdrop-filter: blur(20px);
  padding: 16px 48px; border-bottom: 1px solid var(--nav-border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 28px; }
.nav-logo span { font-family: 'Outfit'; font-weight: 600; font-size: 1rem; color: var(--bone); letter-spacing: -0.3px; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-right a { color: var(--graphite); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.3s; }
.nav-right a:hover { color: var(--lime); }
.nav-dot { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; animation: pulse 2s infinite; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--bone); transition: 0.3s; }
.theme-toggle {
  background: none; border: 1px solid var(--card-border); border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--bone); font-size: 1rem; transition: border-color 0.3s, color 0.3s;
}
.theme-toggle:hover { border-color: var(--lime); color: var(--lime); }
.theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

/* === HERO === */
.hero {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 30% 20%, var(--glow-lime) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, var(--glow-night) 0%, transparent 50%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.03;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero__content { position: relative; z-index: 2; max-width: 900px; padding: 0 32px; }
.hero__symbol { width: 80px; height: 80px; margin: 0 auto 40px; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero h1 {
  font-family: 'Outfit'; font-size: clamp(3rem, 7vw, 6rem); font-weight: 300;
  line-height: 1.05; letter-spacing: -3px; margin-bottom: 28px;
}
.hero h1 strong { font-weight: 800; color: var(--lime); }
.hero__sub {
  font-size: 1.1rem; color: var(--graphite); max-width: 480px;
  margin: 0 auto 48px; line-height: 1.7;
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Outfit'; font-size: 0.9rem; font-weight: 600;
  color: var(--lime); text-decoration: none; letter-spacing: 2px; text-transform: uppercase;
  transition: gap 0.3s;
}
.hero__cta:hover { gap: 20px; }
.hero__cta .arrow { font-size: 1.4rem; transition: transform 0.3s; }
.hero__cta:hover .arrow { transform: translateX(4px); }
.hero__scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll span {
  font-family: 'JetBrains Mono'; font-size: 0.65rem; color: var(--graphite);
  text-transform: uppercase; letter-spacing: 3px;
}
.hero__scroll-line {
  width: 1px; height: 40px; background: linear-gradient(to bottom, var(--lime), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { opacity: 0; transform: scaleY(0); } 50% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(0); } }

/* === DIVIDER === */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--divider-color), transparent); }

/* === SERVICES === */
.services { padding: 140px 0; }
.services__header {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: flex; justify-content: space-between; align-items: end; margin-bottom: 64px;
}
.services__header h2 {
  font-family: 'Outfit'; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.05;
}
.services__header h2 span { color: var(--lime); }
.services__header p { color: var(--graphite); font-size: 0.9rem; max-width: 300px; text-align: right; }
.services__cards {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.s-card {
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: 24px; padding: 48px 36px; transition: all 0.5s; position: relative; overflow: hidden;
}
.s-card:hover { background: var(--night); border-color: var(--card-hover-border); transform: translateY(-4px); }
.s-card__num {
  font-family: 'JetBrains Mono'; font-size: 0.7rem; color: var(--lime);
  letter-spacing: 2px; margin-bottom: 32px; opacity: 0.6;
}
.s-card h3 { font-family: 'Outfit'; font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px; }
.s-card p { color: var(--graphite); font-size: 0.9rem; line-height: 1.7; margin-bottom: 32px; }
.s-card__line { height: 2px; width: 40px; background: var(--lime); opacity: 0.4; transition: width 0.4s, opacity 0.4s; }
.s-card__portfolio-link {
  display: inline-block; font-family: 'JetBrains Mono'; font-size: 0.72rem;
  color: var(--lime); text-decoration: none; opacity: 0.5; margin-bottom: 24px;
  letter-spacing: 1px; transition: opacity 0.3s;
}
.s-card__portfolio-link:hover { opacity: 1; }
.s-card:hover .s-card__line { width: 80px; opacity: 1; }

/* === PROCESS === */
.process { padding: 140px 0; background: var(--surface); }
.process__inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.process__header { margin-bottom: 64px; }
.process__label {
  font-family: 'JetBrains Mono'; font-size: 0.7rem; color: var(--lime);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; opacity: 0.6;
}
.process__header h2 {
  font-family: 'Outfit'; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -1px;
}
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.step {
  padding: 36px 28px; background: var(--black); border-radius: 16px; position: relative;
  transition: all 0.4s;
}
.step:hover { background: var(--step-hover); }
.step__num {
  font-family: 'Outfit'; font-size: 3rem; font-weight: 800;
  color: var(--step-num); line-height: 1; margin-bottom: 20px;
}
.step h4 { font-family: 'Outfit'; font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--graphite); font-size: 0.82rem; line-height: 1.6; }

/* === PORTFOLIO === */
.portfolio { padding: 140px 0; }
.portfolio__inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.portfolio__header { margin-bottom: 64px; }
.portfolio__label {
  font-family: 'JetBrains Mono'; font-size: 0.7rem; color: var(--lime);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; opacity: 0.6;
}
.portfolio__header h2 {
  font-family: 'Outfit'; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -1px;
}
.portfolio__header h2 strong { color: var(--lime); }
.portfolio__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.p-card {
  background: var(--surface); border: 1px solid var(--card-border);
  border-radius: 24px; overflow: hidden; transition: all 0.5s; position: relative;
}
.p-card:hover { border-color: var(--card-hover-border); transform: translateY(-4px); }
.p-card__thumb {
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; position: relative; overflow: hidden;
}
.p-card__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 24px 24px 0 0;
}
.p-card__thumb--cafe { background: linear-gradient(135deg, #3E2723, #6D4C41); }
.p-card__thumb--restaurant { background: linear-gradient(135deg, #BF360C, #E65100); }
.p-card__thumb--salon { background: linear-gradient(135deg, #4A148C, #7B1FA2); }
.p-card__thumb--dental { background: linear-gradient(135deg, #00695C, #00897B); }
.p-card__thumb--gym { background: linear-gradient(135deg, #1565C0, #1976D2); }
.p-card__thumb--vet { background: linear-gradient(135deg, #2E7D32, #43A047); }
.p-card__body { padding: 24px; }
.p-card__tag {
  display: inline-block; font-family: 'JetBrains Mono'; font-size: 0.65rem;
  background: rgba(200,255,0,0.08); color: var(--lime); padding: 4px 10px;
  border-radius: 20px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px;
}
[data-theme="light"] .p-card__tag { background: rgba(122,184,0,0.1); }
.p-card__name {
  font-family: 'Outfit'; font-size: 1.15rem; font-weight: 700; margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.p-card__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-family: 'Outfit'; font-size: 0.8rem; font-weight: 600;
  color: var(--lime); text-decoration: none; letter-spacing: 1px; text-transform: uppercase;
  transition: gap 0.3s;
}
.p-card__link:hover { gap: 12px; }
.p-card__link--soon {
  color: var(--graphite); pointer-events: none; cursor: default;
}

/* === PORTFOLIO HOVER EFFECTS === */
.p-card__thumb::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(200,255,0,0); transition: background 0.5s;
}
.p-card:hover .p-card__thumb::after { background: rgba(200,255,0,0.05); }
.p-card:hover .p-card__thumb { transform: scale(1.05); transition: transform 0.5s; }
.p-card:hover { box-shadow: 0 8px 32px rgba(200,255,0,0.06); }
[data-theme="light"] .p-card__thumb::after { background: rgba(122,184,0,0); }
[data-theme="light"] .p-card:hover .p-card__thumb::after { background: rgba(122,184,0,0.07); }
[data-theme="light"] .p-card:hover { box-shadow: 0 8px 32px rgba(122,184,0,0.08); }

/* === FOUNDERS === */
.founders { padding: 140px 0; background: var(--surface); }
.founders__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.founders__text h2 {
  font-family: 'Outfit'; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800;
  letter-spacing: -1px; margin-bottom: 24px; line-height: 1.1;
}
.founders__text h2 em { font-weight: 300; font-style: normal; }
.founders__text p { color: var(--graphite); line-height: 1.8; margin-bottom: 16px; }
.founders__flags { display: flex; gap: 16px; margin-top: 28px; }
.flag {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono'; font-size: 0.75rem; color: var(--graphite);
  letter-spacing: 1px;
}
.flag span { font-size: 1.2rem; }
.founders__tagline {
  font-family: 'JetBrains Mono'; font-size: 0.8rem; color: var(--lime);
  letter-spacing: 2px; text-transform: uppercase; margin-top: 32px; opacity: 0.7;
}
.founders__visual { display: flex; gap: 20px; justify-content: center; align-items: flex-start; }
.founder-card {
  border-radius: 20px; overflow: hidden; width: 220px;
  box-shadow: 0 20px 60px var(--shadow-card); transition: transform 0.4s;
  display: flex; font-size: 0; line-height: 0; padding: 0;
}
.founder-card:nth-child(2) { margin-top: 40px; }
.founder-card:hover { transform: translateY(-8px); }
.founder-card img { width: 100%; height: auto; display: block; }

/* === CTA === */
.cta { padding: 160px 0; text-align: center; position: relative; }
.cta::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--cta-glow), transparent 70%);
  pointer-events: none;
}
.cta__content { position: relative; z-index: 2; }
.cta h2 {
  font-family: 'Outfit'; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300;
  letter-spacing: -2px; margin-bottom: 24px;
}
.cta h2 strong { font-weight: 800; color: var(--lime); }
.cta p { color: var(--graphite); font-size: 1rem; margin-bottom: 48px; }
.cta__btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--lime); color: var(--black); padding: 18px 40px;
  border-radius: 14px; text-decoration: none; font-family: 'Outfit';
  font-weight: 700; font-size: 1rem; transition: all 0.3s;
}
.cta__btn:hover { background: var(--lime-dark); transform: translateY(-3px); box-shadow: 0 12px 40px var(--cta-btn-shadow); }
.cta__email {
  display: block; margin-top: 20px;
  font-family: 'JetBrains Mono'; font-size: 0.85rem; color: var(--graphite);
  text-decoration: none; transition: color 0.3s;
}
.cta__wa {
  display: inline-block; margin-top: 16px;
  font-family: 'Outfit'; font-size: 0.9rem; font-weight: 600;
  color: var(--lime); text-decoration: none; letter-spacing: 1px;
  transition: gap 0.3s, opacity 0.3s; opacity: 0.7;
}
.cta__wa:hover { opacity: 1; }
.cta__email:hover { color: var(--lime); }

/* === CONTACT FORM === */
.contact-form {
  max-width: 560px; margin: 0 auto; text-align: left;
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-grid .form-group { margin-bottom: 0; }
.form-group label {
  display: block; font-family: 'JetBrains Mono'; font-size: 0.7rem;
  color: var(--graphite); letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 18px; background: var(--surface);
  border: 1px solid var(--card-border); border-radius: 12px;
  color: var(--bone); font-family: 'DM Sans'; font-size: 0.9rem;
  transition: border-color 0.3s, background 0.3s; outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--graphite); opacity: 0.6;
}
.form-group select { cursor: pointer; appearance: none; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--lime); background: var(--black);
}
.contact-form .cta__btn {
  width: 100%; justify-content: center; border: none; cursor: pointer;
  font-size: 0.95rem; margin-top: 8px;
}
.contact-form .cta__btn:hover { background: var(--lime-dark); transform: translateY(-3px); box-shadow: 0 12px 40px var(--cta-btn-shadow); }
.cta__alt {
  margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cta__alt span { font-size: 0.8rem; color: var(--graphite); }
.cta__links { display: flex; gap: 24px; align-items: center; }
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* === FOOTER === */
footer { border-top: 1px solid var(--footer-border); padding: 32px 48px; }
.footer__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { height: 20px; }
.footer__brand span { font-family: 'Outfit'; font-weight: 600; font-size: 0.85rem; color: var(--bone); }
footer p { color: var(--graphite); font-size: 0.75rem; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--graphite); text-decoration: none; font-size: 0.75rem; transition: color 0.3s; }
.footer__links a:hover { color: var(--lime); }

/* === SKIP TO CONTENT === */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 999;
  background: var(--lime); color: var(--black); padding: 12px 24px;
  border-radius: 8px; font-family: 'Outfit'; font-weight: 700;
  font-size: 0.9rem; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* === FOCUS VISIBLE === */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 4px;
}

/* === ANIMATIONS === */
.fade { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade.show { opacity: 1; transform: translateY(0); }
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }

/* === MOBILE MENU (hidden on desktop) === */
.mobile-menu { display: none; }
.overlay { display: none; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .services__cards { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-right a { display: none; }
  .nav-right .nav-dot { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu {
    position: fixed; top: 0; right: -100%; width: 75%; height: 100vh;
    background: var(--surface); z-index: 200; padding: 80px 32px;
    display: flex; flex-direction: column; gap: 24px;
    transition: right 0.35s ease; border-left: 1px solid var(--nav-border);
  }
  .mobile-menu.open { right: 0; }
  .mobile-menu a {
    color: var(--bone); text-decoration: none; font-family: 'Outfit';
    font-size: 1.3rem; font-weight: 600; transition: color 0.3s;
  }
  .mobile-menu a:hover { color: var(--lime); }
  .overlay { position: fixed; inset: 0; background: var(--overlay-bg); z-index: 150; display: none; }
  .overlay.open { display: block; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero__grid { display: none; }
  .services__header { flex-direction: column; align-items: start; padding: 0 24px; gap: 16px; }
  .services__header p { text-align: left; }
  .services__cards { grid-template-columns: 1fr; padding: 0 24px; }
  .process__inner { padding: 0 24px; }
  .process__steps { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio__inner { padding: 0 24px; }
  .founders__inner { grid-template-columns: 1fr; padding: 0 24px; gap: 48px; }
  .founders__visual { order: -1; }
  .founder-card { width: 160px; }
  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer__links { justify-content: center; }
}
