/* ==========================================================================
   1. GLOBAL VARIABLES & CSS RESET
   ========================================================================== */

/* Core Dark Palette & Theme Variables */
:root {
  --bg-dark: #070c18;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(23, 32, 54, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(56, 189, 248, 0.3);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Default Cyan/Blue Scheme */
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --glow-cyan: rgba(56, 189, 248, 0.15);

  /* CODM Theme Colors */
  --codm-gold: #f59e0b;
  --codm-gold-dark: #d97706;
  --codm-gold-glow: rgba(245, 158, 11, 0.15);

  /* YouTube Theme Colors */
  --yt-red: #ff0000;
  --yt-red-dark: #cc0000;
  --yt-red-glow: rgba(255, 0, 0, 0.15);
}

/* Reset & Base HTML Elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 24px 16px;
}

/* ==========================================================================
   2. LAYOUT & BACKGROUND EFFECTS
   ========================================================================== */

/* Background Ambient Lighting FX */
.bg-glow-top {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(7, 12, 24, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-bottom {
  position: absolute;
  bottom: -150px;
  right: 0px;
  width: 100%;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(7, 12, 24, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Main Container Wrapper */
.site-container {
  width: 100%;
  max-width: 900px;
  flex-grow: 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
}


/* ==========================================================================
   3. HEADER / HERO SECTION (<header class="hero-section">)
   ========================================================================== */

.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  width: 100%;
}

/* Top Navigation Bar & Share Button */
.top-nav-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.top-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-nav-btn svg {
  stroke: var(--accent-cyan);
}

.top-nav-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--border-highlight);
  color: var(--text-main);
  transform: translateY(-1px);
}

.top-nav-btn:active {
  transform: translateY(0);
}

/* Brand Badge & Status Pill */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 99px;
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}

.brand-logo {
  border-radius: 6px;
}

.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Hero Titles & Creator Card */
.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.creator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.creator-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.creator-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.creator-link:hover {
  opacity: 0.8;
}


/* ==========================================================================
   4. SECTION DIVIDER (<div class="section-divider">)
   ========================================================================== */

.section-divider {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.section-divider h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.section-divider p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 2px;
}


/* ==========================================================================
   5. PROJECTS GRID & CARDS (<main class="projects-grid">)
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-cyan);
  background: var(--bg-card-hover);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon.cyan {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
}

.card-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.card-icon.red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.card-badge.pulse {
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Card Action Row & Buttons */
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.card-actions .card-btn {
  flex: 1;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  /* Default Cyan Action Button */
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
}

.card-btn:hover {
  filter: brightness(1.1);
}

.card-btn.codm-btn {
  background: linear-gradient(135deg, var(--codm-gold), var(--codm-gold-dark));
  color: #000;
}

.card-btn.yt-btn {
  background: linear-gradient(135deg, var(--yt-red), var(--yt-red-dark));
  color: #ffffff;
}

.card-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-share-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.card-share-btn:active {
  transform: translateY(0);
}


/* ==========================================================================
   6. FOOTER SECTION (<footer class="site-footer">)
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  padding-bottom: 24px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* MOB EXTRA Footer Brand Badge Styling */
.mob-extra-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mob-extra-badge:hover {
  border-color: rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

.mob-extra-logo {
  width: 42px;
  height: 42px;
  object-type: contain;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

.mob-extra-info {
  display: flex;
  flex-direction: column;
}

.mob-extra-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.mob-extra-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  font-family: var(--font-heading, sans-serif);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  border-radius: 6px;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.5;
}

/* Mobile Development Badge */
.mobile-fact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px dashed rgba(56, 189, 248, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 380px;
  margin-top: 6px;
}

.mobile-fact-badge svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.mobile-fact-badge strong {
  color: var(--text-main);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 20px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom strong {
  color: var(--text-muted);
}

.version-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}


/* ==========================================================================
   7. NOTIFICATIONS & TOASTS (<div id="toast">)
   ========================================================================== */

.toast {
  visibility: hidden;
  min-width: 240px;
  background-color: var(--accent-cyan);
  color: #070c18;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
  padding: 14px 20px;
  position: fixed;
  z-index: 100;
  top: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  font-size: 0.9rem;
  opacity: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   8. MEDIA QUERIES & RESPONSIVE DESIGN
   ========================================================================== */

@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
