/* ============================================
   LOKSEWA SOLUTION — Global Shared Styles
   style.css
   ============================================ */

/* ---------- CSS Variables (Light Mode) ---------- */
:root {
  --primary: #001c5d;
  --primary-light: #16327d;
  --secondary: #006d37;
  --secondary-bright: #6bfe9c;
  --accent: #f4a261;
  --bg: #faf8ff;
  --bg-card: #ffffff;
  --bg-section: #f2f3ff;
  --text: #09193e;
  --text-muted: #444651;
  --border: #c5c5d3;
  --nav-bg: rgba(250, 248, 255, 0.88);
  --shadow: rgba(0, 28, 93, 0.10);
  --badge-bg: rgba(107, 254, 156, 0.18);
  --badge-text: #006d37;
  --footer-bg: #001c5d;
  --footer-text: rgba(255,255,255,0.75);
  --toggle-bg: #dae1ff;
  --toggle-thumb: #001c5d;
}

/* ---------- Dark Mode Variables ---------- */
.dark {
  --primary: #b5c4ff;
  --primary-light: #dce1ff;
  --secondary: #4ae183;
  --secondary-bright: #4ae183;
  --accent: #f4a261;
  --bg: #09193e;
  --bg-card: #122146;
  --bg-section: #0d1b2a;
  --text: #eef0ff;
  --text-muted: #a0aec0;
  --border: #2d3748;
  --nav-bg: rgba(9, 25, 62, 0.92);
  --shadow: rgba(0,0,0,0.35);
  --badge-bg: rgba(74, 225, 131, 0.12);
  --badge-text: #4ae183;
  --footer-bg: #060e22;
  --footer-text: rgba(255,255,255,0.6);
  --toggle-bg: #1e3a5f;
  --toggle-thumb: #b5c4ff;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-section); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============ NAV ============ */
.glass-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  width: 50px; height: 26px;
  background: var(--toggle-bg);
  border: none;
  border-radius: 13px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: var(--toggle-thumb);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}

.dark .theme-toggle::after {
  transform: translateX(24px);
}

.theme-toggle-icon {
  position: absolute;
  font-size: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
}
.theme-toggle-icon.sun { right: 6px; }
.theme-toggle-icon.moon { left: 6px; }

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-outline:hover {
  background: var(--bg-section);
  border-color: var(--primary);
}

/* ============ RIPPLE EFFECT ============ */
.ripple-container { position: relative; overflow: hidden; }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

.dark .ripple { background: rgba(181, 196, 255, 0.2); }

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 2rem 2rem;
  transition: background 0.3s;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.8rem;
}

.footer-tagline {
  font-size: 0.88rem;
  opacity: 0.65;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 1rem;
}

.footer-social a:hover { background: var(--secondary); }

.footer-col h4 {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }

.footer-col ul li a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--secondary-bright); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  color: var(--footer-text);
}

.footer-contact-item .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--secondary-bright);
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  opacity: 0.5;
}

/* ============ HAMBURGER (Mobile) ============ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 1rem 2rem;
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--primary); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 1rem; }
}

/* ============ THEME VIEW TRANSITIONS ============ */
::view-transition-group(root) {
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 99999;
}