/* ==========================================================================
   PGfy - Global / Shared Stylesheet (global.css)
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: #99a8ff;
  --secondary: #ff6b35;
  --secondary-dark: #e85a2a;
  --secondary-light: #ffaa8a;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
  background-color: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 600;
}

p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary) 0%, #6979f8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.gradient-text-secondary {
  background: linear-gradient(90deg, var(--secondary) 0%, #ff9a6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Section styling */
section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.badge-wrapper {
  margin-bottom: 16px;
  display: inline-block;
  padding: 3px;
  background: linear-gradient(
    90deg,
    rgba(67, 97, 238, 0.2) 0%,
    rgba(105, 121, 248, 0.2) 100%
  );
  border-radius: 100px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: white;
  color: var(--primary);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(67, 97, 238, 0.1);
}

.section-badge.light {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

/* Navbar Component */
.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.main-navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.main-navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-navbar-brand {
  display: flex;
  align-items: center;
}

.main-navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  width: 40px;
  height: auto;
  border-radius: 50%;
}

.main-navbar-highlight {
  color: var(--primary);
}

.main-navbar-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-navbar-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

.main-navbar-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.main-navbar-link:hover {
  color: var(--primary);
}

.main-navbar-link:hover::after {
  width: 100%;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-login {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-login:hover {
  background: rgba(67, 97, 238, 0.1);
}

.main-navbar-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.main-navbar-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.main-navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.main-navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Footer Component */
.footer {
  background: var(--bg-dark);
  color: white;
  position: relative;
}

.footer-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.footer-waves svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.footer-top {
  padding: 120px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo h3 {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.footer-logo .highlight {
  color: var(--primary-light);
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 340px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.footer-links-group h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 24px;
  font-weight: 600;
}

.footer-links-group ul {
  list-style: none;
}

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

.footer-links-group a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-links-group a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: var(--primary-light);
  transition: all 0.3s ease;
  opacity: 0;
}

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

.footer-links-group a:hover::before {
  width: 4px;
  height: 4px;
  border-radius: 4px;
  opacity: 1;
  background-color: #f8fafc;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-content p a {
  text-decoration: none;
  color: #1e40af;
}

.footer-bottom-content p a:hover {
  text-decoration: underline;
}

.footer-bottom p {
  color: #94a3b8;
  margin: 0;
  font-size: 14px;
}

.footer-credits {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 2px;
}

.footer-credits p {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-credits p span {
  font-weight: 500;
  color: #e2e8f0;
}

.footer-credits a:hover {
  color: white;
}

/* Global Media Breakpoints */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 992px) {
  section {
    padding: 100px 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
  }

  .main-navbar-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .main-navbar-menu.active {
    display: flex;
  }

  .nav-buttons {
    flex-direction: column;
    width: 100%;
  }

  .main-navbar-toggle {
    display: flex;
  }

  .main-navbar-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .main-navbar-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .main-navbar-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .container {
    padding: 0 20px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

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

  .footer-brand {
    grid-column: span 2;
  }
}
