@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700;800&family=Roboto+Slab:wght@500;700;800&family=Orbitron:wght@700;800;900&display=swap');

:root {
  --bg-color: #000000;
  --surface-color: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --accent-primary: #10b981;
  --accent-secondary: #34d399;
  --accent-joyful: #06b6d4; /* Joyful Cyan */
  --accent-gold: #c5a059;
  --accent-gold-light: #e6c991;
  --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --gradient-joyful: linear-gradient(135deg, var(--accent-primary), var(--accent-joyful));
  --gradient-gold: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Typography Helpers */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

/* ── Top Info Bar: above the navbar ── */
.header-info-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
  z-index: 1100; /* above navbar */
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(52, 211, 153, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@keyframes ticker-slide {
  0%   { transform: translateX(100vw);  opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(-100%);  opacity: 0; }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 32px; /* offset by the info bar height */
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Roboto Slab', serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #d4af37;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.logo-icon {
  height: 4.5rem;
  width: auto;
  border-radius: 50%;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
  transition: all 0.3s ease;
  object-fit: contain;
}

/* Mobile responsive logo size */
@media (max-width: 768px) {
  .logo-icon {
    height: 3rem;
  }
  .nav-logo {
    font-size: 1.8rem;
    gap: 10px;
  }
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

/* Modern Navbar Header */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.search-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: opacity 0.3s;
  padding: 5px;
}

.search-btn:hover {
  opacity: 0.7;
}

.search-container {
  display: flex;
  align-items: center;
  position: relative;
}

#searchInput {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  width: 0;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-right: 10px;
  pointer-events: none;
}

#searchInput.active {
  width: 200px;
  opacity: 1;
  pointer-events: auto;
  border-color: var(--accent-gold);
  outline: none;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
}

@media (max-width: 480px) {
  #searchInput.active {
    width: 140px;
  }
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 2001; /* Above overlay */
}

.menu-toggle .line {
  width: 30px;
  height: 3px;
  background-color: white;
  margin: 6px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Side Menu Overlay */
/* Side Menu Overlay Redesign */
.overlay {
  height: 100vh;
  width: 100%;
  position: fixed;
  z-index: 2000;
  top: 0;
  right: -100%; /* Start off-screen */
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 40%),
              radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.1), transparent 40%),
              rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--glass-border);
  overflow: hidden;
}

.overlay.is-active {
  right: 0;
}

@media (min-width: 769px) {
  .overlay {
    width: 25%; /* Slightly wider for desktop for premium feel */
  }
}

.overlay-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  width: 80%;
  padding-left: 2rem;
}

.overlay-content a {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: -1px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateX(50px);
  position: relative;
  width: fit-content;
}

.overlay.is-active .overlay-content a {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered Entrance Animation */
.overlay.is-active .overlay-content a:nth-child(1) { transition-delay: 0.2s; }
.overlay.is-active .overlay-content a:nth-child(2) { transition-delay: 0.3s; }
.overlay.is-active .overlay-content a:nth-child(3) { transition-delay: 0.4s; }
.overlay.is-active .overlay-content a:nth-child(4) { transition-delay: 0.5s; }
.overlay.is-active .overlay-content a:nth-child(5) { transition-delay: 0.6s; }
.overlay.is-active .overlay-content a:nth-child(6) { transition-delay: 0.7s; }
.overlay.is-active .overlay-content a:nth-child(7) { transition-delay: 0.8s; }

.overlay-content a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gradient-joyful);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.overlay-content a:hover {
  color: var(--accent-secondary);
  transform: scale(1.05) translateX(10px);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.overlay-content a:hover::after {
  width: 100%;
}

/* Ripple Effect Class */
.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding-bottom: 8vh;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero_bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: -1;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease-out;
}

.hero-slogan {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.4), 2px 2px 10px rgba(0, 0, 0, 0.9);
  animation: fadeUp 1s ease-out;
}

/* "Ibnu Law Firm." — same Orbitron, gradient, visually connected but distinct */
.hero-firm-name {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.05em;
  letter-spacing: 2px;
  text-align: center;
  background: linear-gradient(90deg, #10b981 0%, #e6c991 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-top: 0.05em; /* almost touching — very tight */
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  animation: fadeUp 1s ease-out 0.2s backwards;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
  background: var(--surface-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeUp 1s ease-out 0.4s backwards;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
  background: var(--surface-hover);
  transform: translateY(-5px);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Activities */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.activity-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.activity-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.activity-desc {
  color: var(--text-secondary);
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.event-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.event-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-date {
  color: var(--accent-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.event-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Track Record - Project Showcase */
.track-record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: #0a0a0a; /* Deep Black */
  border: 1px solid rgba(197, 160, 89, 0.3); /* Gold Tint */
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 1), 0 0 15px rgba(197, 160, 89, 0.1);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  color: var(--accent-gold-light);
  margin-bottom: 1rem;
}

.project-summary {
  font-size: 1rem;
  color: #a0aec0;
  line-height: 1.7;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.btn-details {
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-details:hover {
  background: var(--accent-gold);
  color: #000;
}

/* Legal News Specifics */

/* Legal News Specifics */
.news-card {
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.news-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.1);
}

.news-badge {
  background: var(--gradient-gold);
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1rem;
}

.btn-gold {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.5);
}

.text-gold {
  color: var(--accent-gold);
}

/* Board Members (board.html) */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.board-card {
  text-align: center;
  padding: 3rem 2rem;
}

.board-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
              var(--gradient-primary) border-box;
}

.board-name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.board-role {
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.board-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  background: rgba(0, 0, 0, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

/* Contact Info Highlight */
.contact-link {
  color: var(--accent-primary);
  font-weight: 500;
}

.contact-link:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    padding: 2rem;
    flex-direction: column;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .about-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-right: 15px;
  letter-spacing: 1px;
}

.lang-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 2px 6px;
  border-radius: 4px;
}

.lang-btn:hover {
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.1);
}

.lang-btn.active {
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.15);
}

.lang-divider {
  opacity: 0.3;
  font-weight: 300;
}

/* Vanilla Floating Widgets */
.v-widgets {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.wa-float, .ai-float {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  background: white;
  padding: 0;
  overflow: hidden;
}

.wa-float {
  background: #25d366;
  border-color: rgba(37, 211, 102, 0.3);
}

.ai-float {
  background: var(--gradient-primary);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.wa-float:hover, .ai-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.wa-float img, .ai-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-float i {
  font-size: 1.8rem;
  color: white;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.v-widgets {
  animation: float 4s ease-in-out infinite;
}
/* Testimonial Banner */
.testimonial-banner {
  overflow: hidden;
  background: var(--surface-color);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0;
  margin: 4rem 0;
  position: relative;
}

.testimonial-banner::before,
.testimonial-banner::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.testimonial-banner::before {
  left: 0;
  background: linear-gradient(to right, #000, transparent);
}

.testimonial-banner::after {
  right: 0;
  background: linear-gradient(to left, #000, transparent);
}

.slide-track {
  display: flex;
  width: max-content;
  animation: scroll-banner 40s linear infinite;
  gap: 40px;
}

.slide-track:hover {
  animation-play-state: paused;
}

.slide {
  width: 400px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-primary);
  font-style: italic;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.slide .author {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 0.9rem;
}

@keyframes scroll-banner {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .slide {
    width: 300px;
  }
}
