/* ============================================================
   global.css — Reset, base elements, typography, utilities
   Semua style yang berlaku di seluruh halaman
   ============================================================ */

/* ── Reset & Base ────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #001f3f;
  background-color: #f5fbff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}

p {
  margin: 0 0 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input[type="submit"] {
  cursor: pointer;
}

input,
textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}

button {
  background-color: #0074d9;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #005fa3;
}

strong {
  color: #0074d9;
}

em {
  color: #2ecc40;
  font-style: italic;
}

/* ── Layout Utility ──────────────────────────────────────── */
.section {
  padding: 100px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  color: #001f3f;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.section-header {
  margin-bottom: 2rem;
}

/* ── Text Utilities ──────────────────────────────────────── */
.text-center { text-align: center; }

.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

/* ── Typing Animation ────────────────────────────────────── */
.typing-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #001f3f;
  white-space: nowrap;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
}

.cursor {
  display: inline-block;
  margin-left: 5px;
  font-weight: bold;
  color: #0074d9;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Navbar ──────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.3rem 0.5rem 0.8rem;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 31, 63, 0.1);
  z-index: 100;
  transition: 0.5s;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  font-weight: bold;
  font-size: 1.4rem;
  color: #001f3f;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #001f3f;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #0074d9;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #001f3f;
  margin: 3px 0;
  border-radius: 2px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #0f1117;
  color: #d1d5db;
  padding: 40px 0 30px;
  font-family: sans-serif;
  margin-top: 100px;
}

.footer .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer .row {
  display: grid;
  grid-template-columns: 3fr 1.5fr 1.5fr 4fr;
  gap: 20px;
}

/* Brand */
.footer-brand h5.gradient-text {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-description {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.6;
  margin-top: -25px;
}

/* Google login box */
.login-footer-cta .p-3 {
  background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
  border: 1px solid rgba(102,126,234,0.2);
  border-radius: 10px;
  padding: 12px;
}

.login-footer-cta p {
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 8px;
}

.login-footer-cta .btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #667eea;
  border-radius: 8px;
  background: transparent;
  color: #667eea;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.login-footer-cta .btn-outline-primary:hover {
  background: rgba(102,126,234,0.1);
}

/* Nav columns */
.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #f3f4f6;
}

/* ===== SOCIAL BUTTONS — pill layout, 3 per row ===== */
.social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #1e2130;
  border: 1px solid #2d3148;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.social-link i {
  font-size: 14px;
}

.social-link span {
  font-size: 0.78rem;
}

.social-link:hover {
  color: #fff;
}

.social-link.youtube:hover  { background: rgba(255,0,0,0.15);   border-color: #ff0000; color: #ff4444; }
.social-link.instagram:hover{ background: rgba(225,48,108,0.15); border-color: #e1306c; color: #e1306c; }
.social-link.tiktok:hover   { background: rgba(105,201,208,0.15);border-color: #69c9d0; color: #69c9d0; }
.social-link.github:hover   { background: rgba(255,255,255,0.1); border-color: #ccc;    color: #fff; }
.social-link.discord:hover  { background: rgba(114,137,218,0.15);border-color: #7289da; color: #7289da; }
.social-link.telegram:hover { background: rgba(0,136,204,0.15);  border-color: #0088cc; color: #0088cc; }

/* Contact info */
.contact-info {
  margin-top: -15px;
  display: flex;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px;
}

.contact-item i {
  margin-top: 3px;
  color: #667eea;
  font-size: 1.125rem;
}

.contact-item small {
  color: #6b7280;
  font-size: 0.75rem;
}

.contact-item a,
.contact-item span {
  font-size: 1.125rem;
  color: #d1d5db;
  text-decoration: none;
  position: relative;
  left: -25px; /* Menggeser 8px ke kiri dari posisi aslinya */
}

.contact-item a:hover {
  color: #fff;
}

/* Divider & bottom */
.footer-divider {
  border: none;
  border-top: 1px solid #1e2130;
  margin: -90px 0 16px;
}

.footer-bottom .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  grid-template-columns: unset;
}

.copyright {
  font-size: 0.8rem;
  color: #6b7280;
}

.copyright strong.gradient-text {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-item {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.scroll-to-top:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .footer .row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer .row {
    grid-template-columns: 1fr;
  }

  .social-links {
    grid-template-columns: repeat(3, 1fr);
  }
}