/* ==========================================================================
   CSS Variables for Theming (Light/Dark Mode)
   ========================================================================== */

:root {
  /* Light Theme Colors (Default Fallback) */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7; /* Apple's classic light gray */
  --bg-glass: rgba(255, 255, 255, 0.7);
  
  --text-primary: #1d1d1f;
  --text-secondary: #5c5c61;
  --text-inverse: #ffffff;
  
  --accent-primary: #ff6400; /* Sunset Orange */
  --accent-hover: #e05300;
  
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --grid-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --bg-primary: #000000;
  --bg-secondary: #1d1d1f;
  --bg-glass: rgba(29, 29, 31, 0.7);
  
  --text-primary: #f5f5f7;
  --text-secondary: #c1c1c6;
  --text-inverse: #000000;
  
  --accent-primary: #ff7b25; /* Light Orange */
  --accent-hover: #ff954f;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: none;
  --shadow-md: none;
  
  --grid-color: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Global Resets & Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 60px 0;
  position: relative;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px; /* Pill shape */
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-align: center;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--text-inverse);
  border: none;
}

.btn-primary:hover {
  background-color: var(--text-secondary);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 24px;
}

.btn-outline:hover {
  border-color: rgba(255, 172, 27, 0.5);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--bg-secondary);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.4s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.brand {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-block;
}

.brand:hover {
  background: linear-gradient(90deg, #ff6400 0%, #ffac1b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: scale(1.05) rotate(-1deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: linear-gradient(90deg, #ffac1b, #ff6b6b);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 5px rgba(255, 172, 27, 0.8), 0 0 15px rgba(255, 107, 107, 0.6);
}

.nav-links a:hover::after {
  width: 100%;
  box-shadow: 0 0 8px 1px rgba(255, 172, 27, 0.8), 0 0 16px 2px rgba(255, 107, 107, 0.6);
}

.toggle-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.toggle-button .bar {
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 10px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
   
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, #359aff, #c850c0);
  width: 0%;
  z-index: 99999;
  transform-origin: left;
  border-radius: 0 2px 2px 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px; /* Offset for nav */
  position: relative;
  overflow: hidden;
  /* Developer Grid Background */
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
}

.mouse-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(53, 154, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none; /* Allows clicking through the glow */
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.profile-pic-container {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  
  /* Modern Animated Gradient Text */
  background: linear-gradient(to right, #359aff, #c850c0, #359aff);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientText 3s linear infinite; /* Sped up so it's obvious */
}

@keyframes gradientText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.social-links-hero {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.social-icon {
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
  background-color: var(--bg-secondary);
}

.about-content {
  max-width: 1100px;
  margin: 0 auto;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: left;
  align-items: center;
}

@media (min-width: 992px) {
  .about-layout {
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
  }
}

.about-text {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */

.skills-section {
  background-color: var(--bg-primary);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.skill-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background-color: var(--bg-primary);
  border-radius: 99px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  gap: 0.75rem;
}

.skill-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: var(--text-primary);
}

.skill-card img {
  width: 22px;
  height: 22px;
  margin-bottom: 0;
  object-fit: contain;
}

.skill-card span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */

.projects-section {
  background-color: var(--bg-secondary);
}

.projects-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .project-card {
    flex-direction: row;
    min-height: 320px;
  }
  
  .project-card:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.project-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-visual {
  flex: 1;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.visual-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bg-primary);
  opacity: 0.5;
  letter-spacing: 0.2em;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
  background-color: var(--bg-primary);
}

.contact-card {
  padding: 4rem 2.5rem;
  border-radius: 24px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6400, #ffac1b);
}

.contact-card:hover {
  border-color: rgba(255, 100, 0, 0.35);
  box-shadow: 0 20px 45px rgba(255, 100, 0, 0.08);
}

.contact-desc {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--bg-secondary);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Responsive & Mobile Navigation
   ========================================================================== */

@media (max-width: 768px) {
  .toggle-button {
    display: flex;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary); /* Made solid to prevent overlap */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem 0;
    gap: 0.2rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-links li a {
    font-size: 1.1rem;
    padding: 0.4rem 0;
    display: block;
    text-align: center;
  }

  .nav-links li .icon-btn {
    margin: 0.4rem auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .project-links .btn {
    margin-left: 0 !important;
    margin-top: 10px;
  }
}
/* ==========================================================================
   Blog / Projects Grid
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Project/Blog Card Tags Styling */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-tags span {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-tags span:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

/* Glassmorphic Blog Card Tiles with Soft Edges */
.projects-grid .project-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px; /* Soft, rounder edges */
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Always column layout — never the row layout from base .project-card */
  flex-direction: column !important;
  height: auto !important;
  display: flex;
}

.projects-grid .project-card .project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.projects-grid .project-card .project-content p:not([style*="accent"]) {
  flex: 1;
}

.projects-grid .project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* Global Card Component Shadow Alignment */
/* Global Download Section Card with Accent Highlights */
.download-section {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-primary);
  box-shadow: var(--shadow-sm);
  margin: 4rem auto;
  max-width: 800px;
  position: relative;
  overflow: hidden;
}

.tech-card,
.challenge-card {
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Page Preloader / Custom Developer Loading Screen
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.6s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

/* Custom Dual-Orbiting Spinner with Code Center */
.custom-loader-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-primary);
  border-right-color: var(--accent-primary);
  animation: spinRing 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  box-shadow: 0 0 15px rgba(255, 100, 0, 0.2);
}

.custom-loader-ring-inner {
  position: absolute;
  width: 65%;
  height: 65%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: rgba(255, 100, 0, 0.5);
  border-left-color: rgba(255, 100, 0, 0.5);
  animation: spinRingReverse 0.9s linear infinite;
}

.custom-loader-center {
  font-family: monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-primary);
  animation: pulseCenter 1.5s ease-in-out infinite;
}

.preloader-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-family: 'Inter', sans-serif;
  margin-top: 0.5rem;
}

.preloader-subtext {
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  font-family: monospace;
  text-transform: uppercase;
  opacity: 0.7;
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinRingReverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes pulseCenter {
  0%, 100% { opacity: 0.7; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ==========================================================================
   Global Click-to-Enlarge Lightbox Modal
   ========================================================================== */
.lightbox-trigger,
.showcase-image img,
.project-visual img,
.screenshot-grid img,
.architecture-visual img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.lightbox-trigger:hover,
.showcase-image img:hover {
  transform: scale(1.015);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 94vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 100, 0, 0.3);
}

.lightbox-caption {
  margin-top: 1rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  background: rgba(24, 24, 27, 0.85);
  padding: 0.6rem 1.5rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 100, 0, 0.4);
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 100, 0, 0.2);
  border: 1px solid rgba(255, 100, 0, 0.5);
  color: #ff6400;
  font-size: 1.6rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lightbox-close-btn:hover {
  background: #ff6400;
  color: #ffffff;
  transform: scale(1.1);
}

/* ==========================================================================
   Changelog "Coming Soon" Modal Popup
   ========================================================================== */
.changelog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.changelog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.changelog-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 100, 0, 0.35);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.changelog-overlay.active .changelog-card {
  transform: scale(1);
}

.changelog-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 100, 0, 0.12);
  border: 1px solid rgba(255, 100, 0, 0.35);
  color: #ff6400;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.changelog-card h3 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.changelog-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.changelog-close-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

.changelog-close-x:hover {
  color: #ff6400;
}

.btn-changelog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-changelog:hover {
  background: rgba(255, 100, 0, 0.1);
  border-color: rgba(255, 100, 0, 0.4);
  color: #ff6400;
  transform: translateY(-2px);
}

/* Inverted Linux Tux Penguin Icon */
.linux-tux-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: invert(1);
  vertical-align: middle;
  display: inline-block;
}

/* Floating Hero Announcement Banner Popup */
.hero-announcement-popup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 100, 0, 0.12);
  border: 1px solid rgba(255, 100, 0, 0.4);
  color: #ff6400;
  padding: 0.55rem 1.2rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 25px rgba(255, 100, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
  visibility: hidden;
}

.hero-announcement-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-announcement-popup .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ff6400;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(255, 100, 0, 0.4);
  animation: pulseAmber 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseAmber {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 100, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 100, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 100, 0, 0);
  }
}

#notice-close-btn {
  background: none;
  border: none;
  color: #ff6400;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.2rem;
  margin-left: 0.4rem;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

#notice-close-btn:hover {
  opacity: 1;
}


