/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  --primary: #2c4c7e;
  --light-blue: #98c1db;
  --very-light-blue: #d1dce7;
  --grayish-blue: #a4c2d8;
  --white-blue: #e1e7ec;

  --accent-cyan: #009eb5;
  --accent-orange: #e57b25;
  --accent-yellow: #f3b811;

  --bg-color: #f8fafd;
  --surface: #ffffff;
  --text-main: #1a202c;
  --text-muted: #4a5568;
  --border-color: #e2e8f0;

  --nav-height: 80px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 30px 40px -10px rgba(44, 76, 126, 0.2);
  --shadow-hover: 0 25px 30px -5px rgba(44, 76, 126, 0.15), 0 15px 15px -5px rgba(44, 76, 126, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
}

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

ul {
  list-style: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -1px;
}

.brand .osis {
  color: var(--accent-cyan);
}

.brand .smak {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  align-self: flex-end;
  margin-bottom: 5px;
  margin-left: -2px;
}

.brand .ipto {
  color: var(--primary);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin-left: auto;
  margin-right: 2.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-cyan);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-width: 450px; /* Made wider for 2 columns */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0.5rem;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.5);
  max-height: 60vh;
  overflow-y: auto;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  color: var(--text-main);
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  display: block;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background: rgba(0, 158, 181, 0.1);
  color: var(--accent-cyan);
  transform: translateX(5px);
}

.dropdown .fa-chevron-down {
  transition: transform 0.3s ease;
}

.dropdown:hover .fa-chevron-down {
  transform: rotate(180deg);
}

.btn-contact {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  color: white;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 158, 181, 0.3);
  transition: all 0.3s ease;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 158, 181, 0.4);
  color: white;
}

.section {
  padding: 6rem 5%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 90% 10%, rgba(152, 193, 219, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(229, 123, 37, 0.05) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 500px;
}

.btn-group {
  display: flex;
  gap: 1.5rem;
}

.btn {
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(44, 76, 126, 0.2);
}

.btn-primary:hover {
  background: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 158, 181, 0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(44, 76, 126, 0.2);
}

.btn-outline:hover {
  background: white;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.features {
  background: white;
  position: relative;
  z-index: 10;
}

.section-title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--bg-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  background: white;
}
.hover-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hover-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  background: white;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(44, 76, 126, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

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

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

footer {
  background: var(--primary);
  color: white;
  padding: 5rem 5% 2rem;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229, 123, 37, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 2;
}

.footer-brand h2 {
  font-family: 'Poppins';
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-brand h2 span {
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}

.footer-brand p {
  color: var(--light-blue);
  max-width: 400px;
  font-size: 1.05rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-links a:hover {
  background: var(--accent-orange);
  transform: translateY(-5px);
  color: white;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: 3px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a,
.footer-links li {
  color: var(--light-blue);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
}

/* ===== HAMBURGER MENU BUTTON ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1100;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== MOBILE OVERLAY ===== */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.mobile-overlay.active {
  opacity: 1;
}

/* ===== MOBILE NAV DRAWER ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85vw, 380px);
  height: 100vh;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 1050;
  flex-direction: column;
  padding: calc(var(--nav-height) + 1rem) 1.5rem 2rem;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-cyan);
}

.mobile-nav-link .fa-chevron-down {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.mobile-nav-link.expanded .fa-chevron-down {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  margin-bottom: 0.25rem;
}

.mobile-dropdown.open {
  max-height: 800px;
}

.mobile-dropdown a {
  display: block;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-dropdown a:hover {
  background: rgba(0, 158, 181, 0.08);
  color: var(--accent-cyan);
  padding-left: 1.5rem;
}

.mobile-nav .mobile-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 158, 181, 0.3);
  transition: all 0.3s ease;
  text-align: center;
}

.mobile-nav .mobile-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 158, 181, 0.4);
}

/* ===== TABLET BREAKPOINT (991px) ===== */
@media (max-width: 991px) {
  .hamburger {
    display: flex;
  }

  .mobile-nav,
  .mobile-overlay {
    display: flex;
  }

  .nav-links {
    display: none !important;
  }

  .btn-contact {
    display: none !important;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content p {
    margin: 0 auto 2.5rem;
  }

  .btn-group {
    justify-content: center;
  }

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

  .footer-brand {
    text-align: center;
  }

  .footer-brand h2 {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .section {
    padding: 4rem 5%;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }

  /* About us page - inline grid fix */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* Dropdown content on tablet */
  .dropdown-content {
    min-width: 300px;
    grid-template-columns: 1fr;
  }
}

/* ===== PHONE BREAKPOINT (768px) ===== */
@media (max-width: 768px) {
  :root {
    --nav-height: 65px;
  }

  .brand img,
  .brand [style*="height: 50px"] {
    height: 40px !important;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .section {
    padding: 3rem 5%;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .card {
    border-radius: 16px;
    padding: 2rem;
  }

  /* Footer responsive */
  footer {
    padding: 3rem 5% 1.5rem;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer-brand h2 {
    font-size: 2rem;
  }

  .footer-links h4 {
    font-size: 1.05rem;
  }

  /* Hero image area */
  .hero-image {
    display: none;
  }

  /* Members grid on anggota page */
  .members-grid {
    gap: 1.2rem;
  }

  .members-grid .member-card {
    flex: 1 1 140px;
    max-width: 100%;
  }

  /* Inline style overrides for common page patterns */
  /* Hero headings that use inline font-size */
  h1[style*="font-size: 4rem"],
  h1[style*="font-size: 4.5rem"],
  h1[style*="font-size: 5rem"] {
    font-size: 2.2rem !important;
  }

  h2[style*="font-size: 3rem"],
  h2[style*="font-size: 2.5rem"] {
    font-size: 1.75rem !important;
  }

  h2[style*="font-size: 4rem"] {
    font-size: 2.5rem !important;
  }

  /* Stats section numbers */
  h2[style*="font-size: 4rem"][style*="color: var(--accent-yellow)"] {
    font-size: 2.5rem !important;
  }

  /* Paskah hero */
  section[style*="height: 60vh"] {
    height: 45vh !important;
    min-height: 350px !important;
  }

  /* Schedule items on Paskah page */
  .hover-card[style*="display: flex"][style*="border-left: 6px"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem;
  }

  .hover-card[style*="display: flex"][style*="border-left: 6px"] div[style*="width: 2px"] {
    width: 100% !important;
    height: 1px !important;
    margin: 0 !important;
  }

  .hover-card[style*="display: flex"][style*="border-left: 6px"] div[style*="min-width: 120px"] {
    min-width: auto !important;
    font-size: 1.2rem !important;
  }

  /* Event details floating card */
  div[style*="display: flex"][style*="justify-content: space-around"][style*="flex-wrap: wrap"] {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  /* Kegiatan page grid */
  .kegiatan-grid {
    grid-template-columns: 1fr !important;
  }

  /* Photo grid */
  div[style*="grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  /* Komunitas page header */
  h1[style*="font-size: 4.5rem"] {
    font-size: 2.2rem !important;
  }

  /* Padding overrides */
  section[style*="padding: 8rem 5% 4rem"] {
    padding: 5rem 5% 2.5rem !important;
  }

  /* Contact page social icons row */
  div[style*="display: flex"][style*="gap: 1rem"]:not(.btn-group):not(.social-links):not(.footer-grid) {
    flex-wrap: wrap;
  }
}

/* ===== SMALL PHONE BREAKPOINT (480px) ===== */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  h1[style*="font-size: 4rem"],
  h1[style*="font-size: 4.5rem"],
  h1[style*="font-size: 5rem"] {
    font-size: 1.8rem !important;
  }

  h2[style*="font-size: 3rem"],
  h2[style*="font-size: 2.5rem"] {
    font-size: 1.5rem !important;
  }

  h2[style*="font-size: 4rem"][style*="color: var(--accent-yellow)"] {
    font-size: 2rem !important;
  }

  .card {
    padding: 1.5rem;
  }

  .card h3 {
    font-size: 1.25rem;
  }

  footer {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  .members-grid .member-card {
    flex: 1 1 100%;
  }

  /* CTA section padding */
  div[style*="border-radius: 40px"][style*="padding: 4rem 2rem"] {
    padding: 2.5rem 1.5rem !important;
    border-radius: 24px !important;
  }

  /* Paskah floating card */
  div[style*="border-radius: 24px"][style*="padding: 3rem"] {
    padding: 1.5rem !important;
  }

  /* Club page specific */
  .club-page .club-title {
    font-size: 2rem !important;
  }

  .club-cta {
    padding: 2.5rem 1.5rem !important;
    border-radius: 16px !important;
  }

  .club-cta h3 {
    font-size: 1.4rem !important;
  }
}

/* ===== PREVENT BODY SCROLL WHEN MENU OPEN ===== */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}