/* ==========================================================================
   YUZ V4 - MAIN STYLESHEET
   ========================================================================== */

/* 1. IMPORTS
   ========================================================================== */
@import url('components/header.css');
@import url('components/anime.css');
@import url('components/forms.css');
@import url('components/loader.css');

/* 2. VARIABLES (:ROOT)
   ========================================================================== */
:root {
  /* Colors - Brand */
  --primary-color: #7b1fa2;
  --primary-dark: #512da8;
  --secondary-color: #ff9966;
  /* Peach */
  --accent-color: #ff5e62;
  /* Red/Pink */

  /* Colors - Gradients */
  --gradient-main: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  --gradient-peach: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  --gradient-cta: linear-gradient(135deg, #2a2a2a 0%, #000000 100%);
  --gradient-cta-hover: linear-gradient(135deg, #333 0%, #111 100%);
  --gradient-error: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);

  /* Colors - Backgrounds & Glass */
  --bg-gradient: linear-gradient(-45deg, #c6b3f1, #dfc9af, #ffccbc, #d1c4e9);
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-bg-strong: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: 10px;

  /* Colors - Text */
  --text-main: #0e0f0f;
  --text-dark: #1e293b;
  --text-medium: #555;
  --text-light: #fff;
  --text-white: #ffffff;

  /* Colors - Status */
  --success-color: #48c774;
  --error-color: #f14668;
  --info-color: #3298dc;

  /* Typography */
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Poppins', sans-serif;

  /* Spacing & Sizing */
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-pill: 50px;
  --container-max-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 3. RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: var(--bg-gradient);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-main);
  display: flex;
  flex-direction: column;
  position: relative;
}

main {
  flex: 1;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

/* 4. TYPOGRAPHY UTILITIES
   ========================================================================== */
.resource-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-top: 15px;
  display: block;
  text-align: center;
  letter-spacing: 1px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.resource-title:hover {
  transform: scale(1.05);
}

.highlight-peach {
  color: var(--secondary-color);
  font-weight: 700;
}

/* 5. LAYOUT UTILITIES
   ========================================================================== */
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
}

.limcentre {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.align-both-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50vh;
  flex-direction: row;
  gap: 1rem;
  padding: 2rem 1rem;
}

/* Image Bases */
.image-base1 {
  /* Assumed generic container for hero based on usage */
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

.image-base2 {
  background: linear-gradient(rgba(255, 133, 214, 0.3), rgba(255, 38, 128, 0.3)), url('../images/banner3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 140vh;
  box-shadow: inset 0 0 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 6. COMPONENTS
   ========================================================================== */

/* --- Navigation --- */
.desktop-menu a {
  position: relative;
  padding-bottom: 5px;
}

.desktop-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--gradient-main);
  transition: width 0.3s ease-out;
}

.desktop-menu a:hover::after {
  width: 100%;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ab47bc 100%);
  color: var(--text-white);
  border: none;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(123, 31, 162, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  z-index: 1;
}

.btn-primary::after {
  /* Standard Gradient Overlay */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-peach);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(123, 31, 162, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 94, 98, 0.4);
}

.btn-primary:hover::after {
  opacity: 1;
}

/* Hero CTA Button */
.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  background: var(--gradient-cta);
  border-radius: var(--border-radius-pill);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-hero-cta i {
  transition: transform 0.3s ease;
}

.btn-hero-cta::after {
  /* Pulse Effect */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
  animation: pulse-black 2s infinite;
  z-index: -1;
}

.btn-hero-cta:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  background: var(--gradient-cta-hover);
}

.btn-hero-cta:hover i {
  transform: translateX(5px);
}

/* --- Hero Section --- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  margin-top: -160px;
  animation-delay: 0.8s !important;
}

.hero-lateral-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 60px;
  width: 100%;
}

.hero-stat-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 250px;
}

.hero-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 10px rgba(123, 31, 162, 0.2));
  letter-spacing: -2px;
  line-height: 1;
}

.hero-label-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  color: var(--text-medium);
  background: rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

.hero-label-container i {
  color: var(--primary-color);
}

.hero-label {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-action-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 500px;
}

.hero-description {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #4a4a4a;
  line-height: 1.6;
  font-weight: 500;
  background: var(--glass-bg);
  padding: 15px 25px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  margin-bottom: 25px;
  text-align: left;
}

.hero-welcome-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  animation-delay: 1.75s !important;
}

/* --- Showcase / Bento Grid --- */
.showcase-section {
  padding: 40px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}

.showcase-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.showcase-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d1b4e;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.showcase-subtitle {
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: var(--text-medium);
  font-weight: 500;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 20px;
}

/* Grid Layouts */
.video-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.video-card.medium {
  grid-column: span 1;
  grid-row: span 1;
}

.video-card.wide {
  grid-column: span 2;
  grid-row: span 1;
}

.video-card.small {
  grid-column: span 1;
  grid-row: span 1;
}

.video-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  background: #000;
}

.video-card img,
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.9;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.5rem;
  border: 1px solid var(--glass-border);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 3;
}

.editor-tag {
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 5px;
}

.product-tag {
  color: var(--secondary-color);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 153, 102, 0.3);
}

.video-card:hover img,
.video-card:hover video {
  transform: scale(1.05);
  opacity: 1;
}

.video-card:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-card:hover .card-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* --- Video Modal --- */
.video-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.3s ease;
}

.video-modal-content {
  position: relative;
  width: auto;
  max-width: 90vw;
  max-height: 90vh;
  background: black;
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-modal-content video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  display: block;
}

.close-modal {
  position: absolute;
  top: -10px;
  right: 15px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.3s;
  line-height: 1;
}

.close-modal:hover {
  color: var(--secondary-color);
}

/* --- Footer --- */
footer {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--text-dark) !important;
  padding: 60px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: auto;
  width: 100%;
  position: relative;
  z-index: 100;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.brand-col .footer-logo {
  width: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.brand-col .footer-slogan {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #475569;
  line-height: 1.5;
  font-weight: 500;
}

.brand-col .copyright {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 20px;
  font-weight: 500;
}

.footer-col h4 {
  color: #0f172a;
  margin-bottom: 25px;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.links-col ul li {
  margin-bottom: 12px;
}

.links-col ul li a {
  color: #334155;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
}

.links-col ul li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Social Buttons */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  padding: 12px 20px;
  border-radius: var(--border-radius-md);
  color: #334155;
  border: 1px solid var(--glass-border);
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.discord:hover {
  background: #5865F2;
  border-color: #5865F2;
}

.tiktok:hover {
  background: #000000;
  border-color: #000000;
}

.youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
}

/* --- Account Page --- */
.account-container {
  max-width: 380px;
  margin: 60px auto 0 auto;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--border-radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.account-title {
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 28px;
  text-align: center;
  color: #222;
  letter-spacing: 0.01em;
}

.account-info {
  margin-bottom: 32px;
}

.account-field {
  margin-bottom: 18px;
}

.account-label {
  color: #888;
  font-size: 0.97rem;
  display: block;
  margin-bottom: 2px;
}

.account-value {
  font-size: 1.08rem;
  color: #222;
  font-family: inherit;
}

.account-logout-btn {
  width: 100%;
  padding: 12px 0;
  background: #e53935;
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.account-logout-btn:hover {
  background: #b71c1c;
}

/* --- Resources Folders --- */
.resource-folders {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 3rem auto;
  padding: 2rem;
  max-width: 1400px;
}

.resource-folder {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  color: inherit;
}

.resource-folder:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.folder-cover {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.folder-info {
  padding: 1.5rem;
}

.folder-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-family: var(--font-main);
}

.folder-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.folder-count {
  font-size: 0.85rem;
  color: #E99F4C;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Folder Themes */
.folder-overlays .folder-cover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.folder-fonts .folder-cover {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.folder-images .folder-cover {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.folder-3d .folder-cover {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* --- Free Stuffs Section --- */
.free-stuffs-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  padding: 1rem;
  max-width: 1800px;
}

.free-stuffs-section div {
  flex: 0 1 calc(25% - 1rem);
  max-width: 430px;
  min-width: 300px;
}

.free-stuffs-section div img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.free-stuffs-section div img:hover {
  transform: scale(1.05);
}

/* --- Forms (Anime) --- */
.anime-form .form_group {
  margin-bottom: 16px;
}

.anime-form .form_style {
  width: 100%;
  padding: 10px;
  border-radius: var(--border-radius-sm);
  border: 1px solid #d1c4e9;
  background: #fff;
  font-size: 1rem;
}

.anime-form .btn {
  width: 100%;
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 12px 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.anime-form .btn:hover {
  background: var(--primary-dark);
}

.success,
.error {
  padding: 8px 12px;
  border-radius: 5px;
  margin-bottom: 12px;
  text-align: center;
}

.success {
  color: #388e3c;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
}

.error {
  color: #c62828;
  background: #ffebee;
  border: 1px solid #ffcdd2;
}


.logo-index-position {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  height: 100vh !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.logo-index-position main {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: auto !important;
  height: auto !important;
  flex: none !important;
}

.logo-index {
  max-width: 250px;
  width: 25vw;
  height: auto;
  opacity: 0.75;
  transition: transform 0.4s ease, opacity 0.3s ease;
  display: block;
  margin: 0;
  transform-origin: center center;
}

.logo-index:hover {
  opacity: 1;
}

.zoom-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: zoomIn 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.zoom-slide-index {
  position: fixed;
  /* Fix to viewport */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  pointer-events: none;
  /* Let clicks pass through container */
  display: flex;
  justify-content: center;
  align-items: center;
  animation: zoomIn 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.zoom-slide-index a {
  /* Removed absolute positioning to rely on flexbox centering from parent */
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  pointer-events: auto;
  /* Re-enable clicks on the logo */
}

/* Error Page */
.error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  text-align: center;
}

.error-container {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(15px);
  padding: 60px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 90%;
  animation: fadeIn 0.8s ease-out;
}

.error-code {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-error);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  opacity: 0.8;
  letter-spacing: -5px;
}

.error-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #333;
  margin: 10px 0 20px;
  font-weight: 700;
}

.error-message {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

.btn-error {
  display: inline-block;
  padding: 15px 40px;
  background: var(--gradient-error);
  color: white;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 5px 15px rgba(123, 31, 162, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-error:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(123, 31, 162, 0.4);
}

/* 8. UI UTILITIES
   ========================================================================== */
/* Toasts */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: none;
}

.toast-notification {
  background: #fff9f5;
  color: #2d1b4e;
  min-width: 300px;
  max-width: 400px;
  padding: 16px 24px;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(223, 201, 175, 0.4);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(50px);
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toast-notification:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.toast-notification.hide {
  animation: fadeOut 0.4s forwards;
}

.toast-success {
  border-left: 4px solid var(--success-color);
}

.toast-success .toast-icon {
  color: var(--success-color);
  background: rgba(72, 199, 116, 0.1);
}

.toast-error {
  border-left: 4px solid var(--error-color);
}

.toast-error .toast-icon {
  color: var(--error-color);
  background: rgba(241, 70, 104, 0.1);
}

.toast-info {
  border-left: 4px solid var(--info-color);
}

.toast-info .toast-icon {
  color: var(--info-color);
  background: rgba(50, 152, 220, 0.1);
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.input-error {
  border-color: var(--error-color) !important;
  background-color: rgba(241, 70, 104, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(241, 70, 104, 0.1) !important;
}

/* Scroll To Top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(123, 31, 162, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 94, 98, 0.5);
}

.scroll-to-top:active {
  transform: scale(0.9);
}

/* Ambient Blobs */
#background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  filter: blur(100px);
  opacity: 0.5;
  animation: floatBlobs 14s infinite alternate ease-in-out;
  width: 800px;
  height: 800px;
}

/* 9. ANIMATIONS
   ========================================================================== */
@keyframes gradientBG {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInBottom {
  from {
    opacity: 0;
    transform: translateY(95px);
  }

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

@keyframes zoomIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse-black {

  0%,
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
  }
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

@keyframes floatBlobs {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  33% {
    transform: translate(200px, -150px) scale(1.1);
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
  }

  66% {
    transform: translate(-150px, 100px) scale(0.9);
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
  }

  100% {
    transform: translate(0, 0) scale(1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {

  /* Generic fadeIn used in Error */
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Utility Animations Classes */
.fade-in-left {
  opacity: 0;
  text-align: center;
  animation: fadeInLeft 1s cubic-bezier(.48, 0, .2, .97) forwards;
  animation-delay: 1s;
}

.fade-in-bottom {
  opacity: 0;
  animation: fadeInBottom 2s cubic-bezier(.48, 0, .2, .97) forwards;
  animation-delay: 1.75s;
}

/* 10. MEDIA QUERIES
   ========================================================================== */
/* Tablet & Small Desktop (Max 1200px) */
@media (max-width: 1200px) {
  .free-stuffs-section div {
    flex: 0 1 calc(50% - 1rem);
  }
}

/* Tablet (Max 900px) */
@media (max-width: 900px) {
  .hero-lateral-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .hero-action-side {
    align-items: center;
  }

  .hero-action-side .hero-description {
    text-align: center;
  }

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

  .video-card.large,
  .video-card.wide {
    grid-column: span 2;
  }
}

/* Mobile (Max 768px) */
@media (max-width: 768px) {
  .free-stuffs-section div {
    flex: 0 1 100%;
    max-width: 100%;
  }

  .resource-folders {
    gap: 1.5rem;
    padding: 1rem;
  }

  .resource-folder {
    width: 280px;
  }

  .align-both-item {
    flex-direction: column;
    min-height: auto;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .logo-index {
    width: 80vw;
  }

  .hero-number {
    font-size: 3.5rem;
  }

  .btn-hero-cta {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .social-links {
    align-items: center;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .video-modal-content {
    width: 95%;
  }
}

/* Small Mobile (Max 600px - 480px) */
@media (max-width: 600px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
  }

  .video-card {
    height: 250px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .resource-folder {
    width: 100%;
    max-width: 350px;
  }

  .align-both-item {
    padding: 1rem;
    gap: 1rem;
  }
}