/* about.css - final version (centered, split-title, responsive) */

/* Variables */
:root{
  --bg: #000000;
  --text: #eaeaea;
  --muted: #a3a3a3;
  --accent1: #36363741;
  --accent2: #5a5a5a17;
  --accent3: #1717174f;
  --card-bg: rgba(41, 40, 40, 0.274);
  --border: #1f1f1f;
  --maxw: 1200px;
}

/* Reset / base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

/* Page wrapper - center everything */
.page {
  min-height: 100vh;
  padding-top: 120px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  padding: 36px 16px;
}

/* Container (content width) */
.container{
  width: min(var(--maxw), 92%);
  margin-inline: auto;
}

/* helpers & spacing */
.section{ padding: 56px 0; }
.center{ text-align:center; }
.mt-16{ margin-top: 4rem; }
.mb-6{ margin-bottom: 1.5rem; }
.mb-8{ margin-bottom: 2rem; }
.mb-16{ margin-bottom: 4rem; }

/* -----------------------------
   Split reveal title (ABOUT)
   ----------------------------- */
.title-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* split-title base */
.split-title {
  margin: 0;
  padding: 0;
  position: relative;
  display: inline-block;
  font-size: clamp(2.8rem, 9vw, 6rem); /* responsive scale */
  line-height: 0.95;
  color: transparent; /* hide base text */
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: default;
  user-select: none;
  margin-top: 60px;
  -webkit-user-select: none;
}

/* top visible half */
.split-title span:nth-child(1) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: #fff;
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  overflow: hidden;
  will-change: transform;
}

/* bottom visible half */
.split-title span:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: #fff;
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
  overflow: hidden;
  will-change: transform;
}

/* middle reveal bar (SOUNDABODE) */
.split-title span:nth-child(3) {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) scaleY(0);
  width: 100%;
  color: #ffffff; /* text color inside the bar */
  background: linear-gradient(90deg, rgba(56, 55, 56, 0.31), rgba(0, 0, 0, 0.106));
  font-size: 0.22em; /* small compared to main heading */
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.28em;
  padding: 6px 0;
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
  transform-origin: center;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(124,58,237,0.12);
  will-change: transform, opacity;
}

/* Hover / interaction: reveal */
.split-title:hover span:nth-child(1) { transform: translateY(-20px); } /* top up */
.split-title:hover span:nth-child(2) { transform: translateY(20px); }  /* bottom down */
.split-title:hover span:nth-child(3) { transform: translateY(-50%) scaleY(1); }

/* Make it accessible on focus as well */
.split-title:focus-within span:nth-child(1),
.split-title:focus span:nth-child(1) { transform: translateY(-20px); }
.split-title:focus-within span:nth-child(2),
.split-title:focus span:nth-child(2) { transform: translateY(20px); }
.split-title:focus-within span:nth-child(3),
.split-title:focus span:nth-child(3) { transform: translateY(-50%) scaleY(1); }

/* Optional small pulse on the middle bar for life (subtle) */
@keyframes barPulse {
  0% { transform: translateY(-50%) scaleY(0.98); opacity: 0.96; }
  50% { transform: translateY(-50%) scaleY(1.02); opacity: 1; }
  100% { transform: translateY(-50%) scaleY(0.98); opacity: 0.96; }
}
.split-title:hover span:nth-child(3) { animation: barPulse 3s ease-in-out infinite; }

/* -----------------------------
   Typography
   ----------------------------- */
.h3{
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #f3f4f6;
  margin: 0;
}
.p-xl{ font-size: clamp(1rem, 2.2vw, 1.125rem); color:#d1d5db; line-height:1.7; margin:0 0 8px 0; }
.p-lg{ font-size: 1.05rem; color:#a1a1aa; line-height:1.75; margin:0 0 8px 0; }

/* -----------------------------
   Grid layout (two columns)
   ----------------------------- */
.grid-two{
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  justify-content: center;
}

/* swap for alternating layout */
.grid-swap { direction: rtl; }
.grid-swap > * { direction: ltr; }

/* Make text block more readable on large screens */
.intro-text { text-align: left; max-width: 720px; margin: 0 auto; }

/* Responsive fallback */
@media (max-width: 1024px){
  .grid-two { grid-template-columns: 1fr; }
  .intro-text { text-align: center; }
}

/* Image card */
.img-card{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(44,43,48,0.35);
  border: 1px solid rgba(255,255,255,0.02);
}
.img-card img{ width:100%; height:100%; object-fit:cover; display:block; }
.img-gradient{ position:absolute; inset:0; background: linear-gradient(to top, rgba(1,1,1,0.5), transparent); pointer-events:none; }

/* -----------------------------
   Divider
   ----------------------------- */
.divider{
  height:1px;
  width: min(720px, 90%);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, #bdb9c6, transparent);
  transform-origin: left;
  transform: scaleX(0);
  animation: grow 1s ease forwards .25s;
}
@keyframes grow { to { transform: scaleX(1); } }

/* -----------------------------
   Achievements grid / cards
   ----------------------------- */
.achievements-grid{
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 640px){
  .achievements-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px){
  .achievements-grid{ grid-template-columns: repeat(3, 1fr); }
}

.card{
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  transform: translateY(18px);
  opacity: 0;
  animation: rise .6s ease forwards;
  animation-delay: var(--delay, 0s);
}
.card:hover{
  transform: translateY(-6px);
  border-color: rgba(204,199,217,0.45);
  box-shadow: 0 14px 40px rgba(13,12,20,0.6);
}
@keyframes rise{ to{ opacity: 1; transform: none; } }

.card-img { position: relative; height: 180px; overflow:hidden; }
.card-img img { width:100%; height:100%; object-fit:cover; display:block; }
.card-overlay { position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,0.45), transparent); }
.card-body{ padding: 16px; }
.card-title{ margin: 0 0 6px 0; color:#e6e6e6; font-size: 1.05rem; font-weight:700; }
.card-text{ margin:0; color: var(--muted); font-size: .95rem; }

/* -----------------------------
   Bullet list
   ----------------------------- */
.bullet-list{ list-style:none; margin:0; padding:0; color:var(--muted); font-size: 1.05rem; }
.bullet{ color: var(--accent2); margin-right: .5rem; }

/* -----------------------------
   CTA button
   ----------------------------- */
.cta-btn{
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent1), var(--accent3));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(12,10,35,0.6);
  transition: transform .15s ease, filter .15s ease;
}
.cta-btn:hover { transform: translateY(-3px); }

.whatsapp-float {
  width: clamp(48px, 10vw, 55px);
  height: clamp(48px, 10vw, 55px);
  bottom: clamp(15px, 2vw, 20px);
  right: clamp(15px, 2vw, 20px);
  }

  .whatsapp-icon {
  width: clamp(22px, 5vw, 28px);
  height: clamp(22px, 5vw, 28px);
  }
  .whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
  }
  
  .whatsapp-icon {
    width: clamp(24px, 6vw, 30px);
    height: clamp(24px, 6vw, 30px);
    filter: brightness(0) invert(1);
  }
  .whatsapp-float {
    position: fixed;
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    bottom: clamp(15px, 3vw, 25px);
    right: clamp(15px, 3vw, 25px);
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  
  .whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
  }
  
  .whatsapp-icon {
    width: clamp(24px, 6vw, 30px);
    height: clamp(24px, 6vw, 30px);
    filter: brightness(0) invert(1);
  }
  
/* -----------------------------
   Footer
   ----------------------------- *//* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
  background-color: #000;
  font-family: 'Roboto Mono', monospace;
  color: #fff;
  padding: clamp(20px, 4vw, 30px) clamp(15px, 5vw, 50px);
  border-top: 1px solid #2222222e;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(15px, 3vw, 30px);
  flex-wrap: wrap;
  box-sizing: border-box;
}

.footer-columns {
  display: flex;
  gap: clamp(40px, 8vw, 100px);
  flex-wrap: wrap;
}

.footer-column h4 {
  color: #888;
  font-size: clamp(0.65rem, 1.3vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 0;
  margin-bottom: clamp(8px, 1vw, 12px);
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: clamp(8px, 1vw, 11px);
}

.footer-column a,
.footer-column p {
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.6rem, 1.2vw, 0.7rem);
  line-height: 1.6;
  margin: 0;
  transition: opacity 0.3s;
}

.footer-column a:hover {
  opacity: 0.7;
}

.footer-copyright p {
  margin: 0;
  color: #888;
  font-size: clamp(0.55rem, 1.1vw, 0.6rem);
}
/* -----------------------------
   Reveal animations (intersection observer toggles .revealed)
   ----------------------------- */
.fade-in-left, .fade-in-right, .fade-in-up { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.fade-in-left { transform: translateX(-18px); }
.fade-in-right { transform: translateX(18px); }
.revealed { opacity: 1 !important; transform: none !important; }

/* -----------------------------
   Responsive tweaks
   ----------------------------- */
@media (max-width: 720px){
  .split-title { font-size: clamp(2rem, 12vw, 4rem); }
  .grid-two { gap: 20px; }
  .card-img { height: 140px; }
  .container { width: 96%; }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .fade-in-left, .fade-in-right, .fade-in-up, .divider, .card { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
  .split-title span:nth-child(3) { animation: none !important; }
}

/* -----------------------------
   Mobile nav / hamburger (kept as earlier)
   ----------------------------- */
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 0; z-index: 101; }
.hamburger-menu .bar { display:block; width: 25px; height: 2px; background-color: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-menu {
  position: fixed; top:0; left:0; width:100%; height:100vh; background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:40px; transform: translateX(100%);
  transition: transform .4s cubic-bezier(.76,0,.24,1); z-index:99;
}
.nav-menu.is-active { transform: translateX(0); }
.nav-menu a { color:#fff; font-size: clamp(1.2rem,4vw,1.5rem); font-weight:300; }
.hamburger-menu.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-menu.is-active .bar:nth-child(2) { opacity:0; }
.hamburger-menu.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* NAVBAR */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px clamp(12px, 5vw, 50px);
  height: clamp(48px, 12vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background-color: rgba(10,10,10,0.097);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar a {
  color: #fff;
  font-weight: 200;
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  position: relative;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: clamp(20px, 5vw, 40px);
  flex: 1;
  justify-content: center;
}

.nav-actions {
  display: flex;
  gap: clamp(8px, 2vw, 15px);
  align-items: center;
}

.action-btn {
  width: clamp(32px, 8vw, 40px);
  height: clamp(32px, 8vw, 40px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24,24,24,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all .3s ease;
  padding: 0;
  cursor: pointer;
  color: #fff;
}

.action-btn:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,0.2);
}

.call-btn:hover {
  background: rgba(0,194,255,0.2);
  border-color: #00c3ff95;
}

.logo-img {
  height: clamp(20px, 5vw, 40px);
  width: auto;
  object-fit: contain;
}

/* MOBILE MENU / hamburger */
.hamburger-menu {
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
  z-index:101;
}

.hamburger-menu .bar {
  display:block;
  width:25px;
  height:2px;
  background-color:#fff;
  margin:5px 0;
  transition: transform .3s, opacity .3s;
}

.nav-menu {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:40px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.76,0,.24,1);
  z-index:99;
}

.nav-menu.is-active {
  transform: translateX(0);
}

.nav-menu a {
  color:#fff;
  font-size: clamp(1.2rem,4vw,1.5rem);
  font-weight:300;
}

.hamburger-menu.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.is-active .bar:nth-child(2) {
  opacity:0;
}

.hamburger-menu.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* RESPONSIVE: Show hamburger on mobile */
@media (max-width:768px) {
  .hamburger-menu { display:block; }
  .nav-links { display:none; }
}
