/* ═══════════════════════════════════════════════════════
   6IXPHASE — GLOBAL STYLESHEET (LIGHT THEME)
   Version 3.0 | 2026
═══════════════════════════════════════════════════════ */

:root {
  --cyan:     #00AACF;
  --purple:   #6B3FEE;
  --pink:     #E8307A;
  --grad:     linear-gradient(135deg, #00AACF, #6B3FEE, #E8307A);
  --grad-h:   linear-gradient(90deg,  #00AACF, #6B3FEE, #E8307A);

  --bg:       #F4F3EF;
  --bg2:      #EDECEA;
  --bg3:      #E5E3DF;
  --bg-card:  #FAFAF8;
  --bg-glass: rgba(255,255,255,0.80);

  --ink:      #0F0F18;
  --ink2:     #2A2A3A;
  --ink3:     #54546A;
  --ink4:     #8888A8;

  --border:   rgba(15,15,24,0.09);
  --border2:  rgba(15,15,24,0.15);
  --b-accent: rgba(107,63,238,0.22);

  --sh-sm:  0 2px 12px rgba(15,15,24,0.07);
  --sh-md:  0 8px 32px rgba(15,15,24,0.10);
  --sh-lg:  0 20px 64px rgba(15,15,24,0.13);
  --sh-xl:  0 32px 96px rgba(15,15,24,0.16);

  --f-display: 'Space Grotesk', sans-serif;
  --f-body:    'Inter', sans-serif;
  --f-impact:  'Bebas Neue', sans-serif;

  --r-card: 20px;
  --r-sm:   12px;
  --sec-pad: 110px 5%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink2);
  overflow-x: hidden;
  font-size: 17px;
  line-height: 1.72;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--grad); border-radius: 2px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4,h5 { font-family: var(--f-display); color: var(--ink); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── NAV ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s ease;
}
#nav.scrolled {
  background: rgba(244,243,239,0.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  padding: 13px 5%;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; max-width: 160px; object-fit: contain; display: block; flex-shrink: 0; }
.nav-logo-text {
  font-family: var(--f-display); font-weight: 700; font-size: 1.35rem;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--ink3); font-size: 0.94rem; font-weight: 500;
  font-family: var(--f-display); letter-spacing: 0.01em;
  transition: color 0.25s; position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1.5px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }

.nav-cta {
  padding: 11px 24px !important;
  background: var(--grad) !important;
  border-radius: 50px !important;
  color: #fff !important; font-weight: 600 !important;
  box-shadow: 0 4px 20px rgba(107,63,238,0.28) !important;
  transition: all 0.25s !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(107,63,238,0.45) !important; }
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-ham {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none; z-index: 1002;
}
.nav-ham span {
  display: block; width: 26px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all 0.35s;
}
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav-panel {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(244,243,239,0.99);
  backdrop-filter: blur(24px);
  z-index: 1001;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 0; padding: 100px 40px 40px;
  overflow-y: auto;
}
.mobile-nav-panel.open { display: flex !important; }
.mobile-nav-panel .nav-links {
  display: flex; flex-direction: column; gap: 0; width: 100%;
}
.mobile-nav-panel .nav-links li { width: 100%; }
.mobile-nav-panel .nav-links a {
  font-size: 1.6rem; font-weight: 700; color: var(--ink);
  padding: 18px 0; border-bottom: 1px solid var(--border);
  display: block; width: 100%;
}
.mobile-nav-panel .nav-links a::after { display: none; }
.mobile-nav-panel .nav-links a:last-child { border: none; }
.mobile-nav-panel .nav-cta {
  margin-top: 28px; width: 100%; text-align: center;
  display: block; padding: 18px 24px !important;
  font-size: 1.1rem !important;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 38px; background: var(--grad);
  border: none; border-radius: 50px;
  color: #fff; font-family: var(--f-display); font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none; letter-spacing: 0.01em;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 24px rgba(107,63,238,0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(107,63,238,0.4); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 38px; background: transparent;
  border: 1.5px solid rgba(107,63,238,0.3); border-radius: 50px;
  color: var(--purple); font-family: var(--f-display); font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all 0.25s;
}
.btn-outline:hover { background: rgba(107,63,238,0.07); border-color: var(--purple); transform: translateY(-3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: rgba(107,63,238,0.08);
  border: 1px solid rgba(107,63,238,0.18); border-radius: var(--r-sm);
  color: var(--purple); font-family: var(--f-display); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all 0.25s;
}
.btn-ghost:hover { background: rgba(107,63,238,0.14); transform: translateY(-2px); }

/* ─── SECTION COMMONS ─── */
section { position: relative; overflow: hidden; }
.sec-inner { max-width: 1240px; margin: 0 auto; }

.sec-tag {
  font-family: var(--f-display); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--purple);
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.sec-tag::before {
  content: ''; display: inline-block; width: 30px; height: 1.5px; background: var(--grad);
}
.sec-tag.center { justify-content: center; }
.sec-tag.center::before { display: none; }
.sec-tag.center::after { content: ''; display: inline-block; width: 30px; height: 1.5px; background: var(--grad); }

.sec-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700; line-height: 1.1;
  margin-bottom: 20px; color: var(--ink);
}
.sec-sub {
  font-size: 1.1rem; color: var(--ink3); max-width: 580px; line-height: 1.8;
}

/* ─── REVEAL ANIMATIONS ─── */
.has-gsap .reveal       { opacity: 0; transform: translateY(44px); }
.has-gsap .reveal-left  { opacity: 0; transform: translateX(-44px); }
.has-gsap .reveal-right { opacity: 0; transform: translateX(44px); }
.has-gsap .reveal-scale { opacity: 0; transform: scale(0.93); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 160px 5% 90px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px);
}
.page-hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(107,63,238,0.1) 0%, transparent 70%);
  top: -150px; right: -100px;
}
.page-hero-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(0,170,207,0.08) 0%, transparent 70%);
  bottom: -80px; left: -60px;
}
.page-hero-inner { max-width: 1240px; margin: 0 auto; position: relative; z-index: 2; }
.page-hero-breadcrumb {
  display: flex; align-items: center; gap: 8px; margin-bottom: 24px;
  font-size: 0.85rem; color: var(--ink4); font-family: var(--f-display);
}
.page-hero-breadcrumb a { color: var(--purple); }
.page-hero-breadcrumb span { color: var(--ink4); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 22px; max-width: 800px; }
.page-hero p { font-size: 1.15rem; color: var(--ink3); max-width: 620px; line-height: 1.8; }

/* ─── CARDS ─── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--sh-sm);
  transition: all 0.35s;
}
.card:hover { border-color: var(--b-accent); box-shadow: var(--sh-lg); transform: translateY(-5px); }

/* ─── FOOTER ─── */
footer {
  background: var(--ink); padding: 72px 5% 32px;
  border-top: 3px solid transparent;
  border-image: var(--grad-h) 1;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-logo img { height: 40px; width: auto; max-width: 160px; object-fit: contain; display: block; flex-shrink: 0; }
.footer-logo-text {
  font-family: var(--f-display); font-weight: 700; font-size: 1.3rem;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.9rem; line-height: 1.75; margin-bottom: 24px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 42px; height: 42px;
  background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(107,63,238,0.16));
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); text-decoration: none; font-size: 1rem;
  transition: all 0.25s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 28px rgba(0,0,0,.18);
}
.social-btn:hover {
  background: var(--grad); border-color: rgba(255,255,255,0.28); color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 34px rgba(107,63,238,0.32);
}
.c-icon,
.cd-icon,
.svc-icon2,
.val-icon {
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(0,170,207,.14) 42%, rgba(107,63,238,.16));
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 12px 32px rgba(107,63,238,.13);
}
.val-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-col h4 {
  font-family: var(--f-display); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255,255,255,0.42); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col span { color: rgba(255,255,255,0.38); font-size: 0.9rem; }
.footer-bottom {
  max-width: 1240px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.82rem; }
.footer-bottom a { color: rgba(0,212,255,0.7); }

/* ─── FLOATING WA ─── */
.float-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,0.35); text-decoration: none;
  transition: all 0.3s; animation: wa-pulse 3s ease-in-out infinite;
}
.float-wa:hover { transform: scale(1.12) translateY(-3px); }
.float-wa svg { width: 26px; height: 26px; }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 8px 28px rgba(37,211,102,0.35); }
  50%      { box-shadow: 0 8px 44px rgba(37,211,102,0.65); }
}

/* ─── MOBILE STICKY BAR ─── */
.mobile-cta-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 850;
  background: rgba(244,243,239,0.97); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border); box-shadow: 0 -4px 24px rgba(15,15,24,0.08);
  padding: 10px 14px; gap: 8px;
}
.mobile-cta-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 12px 8px; border-radius: 10px;
  font-family: var(--f-display); font-size: 0.84rem; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
}
.m-wa   { background: #25D366; color: #fff; }
.m-call { background: rgba(107,63,238,0.09); border: 1.5px solid rgba(107,63,238,0.22); color: var(--purple); }
.m-cta  { background: var(--grad); color: #fff; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 9999; padding: 15px 28px;
  background: var(--ink); border: 1px solid rgba(107,63,238,0.3);
  border-radius: 14px; color: #fff;
  font-family: var(--f-display); font-size: 0.95rem;
  box-shadow: var(--sh-xl); opacity: 0;
  transition: all 0.4s cubic-bezier(0.25,0.8,0.25,1); white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.form-error {
  margin-top: 14px; padding: 13px 15px;
  border-radius: 12px; background: rgba(232,48,122,.08);
  border: 1px solid rgba(232,48,122,.22); color: var(--pink);
  font-size: .9rem; line-height: 1.55; text-align: center;
}
.form-error a { color: var(--purple); font-weight: 700; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-family: var(--f-display); font-size: 0.78rem; font-weight: 700;
  color: var(--ink3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 18px;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); color: var(--ink);
  font-family: var(--f-body); font-size: 0.97rem;
  transition: border-color 0.2s, background 0.2s; outline: none; resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink4); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: rgba(107,63,238,0.45); background: var(--bg-card);
}
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea {
  border-color: var(--pink);
  background: rgba(232,48,122,0.06);
  box-shadow: 0 0 0 3px rgba(232,48,122,0.12);
}
.form-group.has-error label { color: var(--pink); }
.field-error {
  display: block;
  margin-top: 7px;
  color: var(--pink);
  font-family: var(--f-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.form-group select option { background: var(--bg-card); color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%; padding: 17px; background: var(--grad); border: none; border-radius: var(--r-sm);
  color: #fff; font-family: var(--f-display); font-size: 1.05rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(107,63,238,0.28);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(107,63,238,0.45); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.bento-item[data-initial] {
  background-size: cover;
  background-position: center;
}
.bento-item[data-initial]::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-impact);
  font-size: clamp(5rem, 14vw, 11rem);
  color: rgba(255,255,255,0.18);
  letter-spacing: 0;
  pointer-events: none;
}
.bento-item[data-initial]::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  pointer-events: none;
}
.bento-item[data-initial] .bento-overlay,
.bento-item[data-initial] .bento-ov {
  z-index: 1;
}

.project-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  text-align: center;
  background: var(--grad);
  color: #fff;
}
.project-visual::before {
  content: attr(data-initial);
  font-family: var(--f-impact);
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 0.9;
  color: rgba(255,255,255,0.22);
}
.project-visual span {
  font-family: var(--f-display);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.gallery-item .project-visual {
  padding: 20px;
}
.gallery-item .project-visual::before {
  font-size: clamp(3rem, 8vw, 5rem);
}
.gallery-item .project-visual span {
  font-size: 0.95rem;
}

.about-card-icon,
.val-icon,
.c-icon,
.cd-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--grad) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 10px 28px rgba(107,63,238,0.24) !important;
  font-family: var(--f-display) !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}
.about-card-icon,
.val-icon {
  margin-bottom: 16px !important;
}

/* ─── BREADCRUMB ─── */
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink4); font-family: var(--f-display); }
.breadcrumb a { color: var(--purple); }
.breadcrumb-sep { color: var(--ink4); }

/* ─── CURSOR GLOW (desktop) ─── */
@media (pointer: fine) {
  .cursor-glow {
    position: fixed; width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(107,63,238,0.05) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: 0;
    transform: translate(-50%,-50%); transition: transform 0.1s linear;
    top: 0; left: 0;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  :root { --sec-pad: 80px 5%; }
  .nav-links { display: none; }
  .nav-ham { display: flex; }
  .mobile-nav-panel .nav-links { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .float-wa { bottom: 80px; right: 16px; width: 50px; height: 50px; }
  .mobile-cta-bar { display: flex; }
}
@media (max-width: 600px) {
  :root { --sec-pad: 64px 5%; }
  body { font-size: 16px; }
  #nav { padding: 14px 5%; }
  #nav.scrolled { padding: 10px 5%; }
  .nav-logo img,
  .footer-logo img { max-width: 132px; height: 34px; }
  .mobile-nav-panel { padding: 88px 24px 30px; align-items: stretch; }
  .mobile-nav-panel .nav-links a { font-size: 1.28rem; padding: 15px 0; }
  .page-hero { padding: 128px 5% 70px; }
  .page-hero h1 { font-size: clamp(2.05rem, 12vw, 3rem); }
  .page-hero p { font-size: 1rem; }
  .sec-title { font-size: clamp(1.85rem, 10vw, 2.55rem); }
  .sec-sub { font-size: 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; padding: 15px 24px; }
  .toast { width: calc(100vw - 32px); white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
