/* ==========================================================================
   Sizy - Landing Page Stylesheet
   Design System, Premium Dark Mode, Glassmorphic UI & Red Accent Animations
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & SYSTEM DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette (Sizy Official Red & Charcoal Space Theme) */
  --bg-space: #070709;
  --bg-card: rgba(18, 18, 22, 0.45);
  --border-card: rgba(255, 255, 255, 0.05);
  --border-card-hover: rgba(216, 0, 0, 0.3);
  
  --primary-glow: #d80000; /* Sizy Official Red */
  --secondary-glow: #ff3333;
  --accent-dark-red: #3a0004;
  
  --text-primary: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dark: #64748b;
  
  /* Gradients */
  --grad-text: linear-gradient(135deg, #f8fafc 30%, #94a3b8 100%);
  --grad-brand: linear-gradient(135deg, #d80000 0%, #990000 100%);
  --grad-brand-hover: linear-gradient(135deg, #ff1a1a 0%, #b80000 100%);
  --grad-dark-red: linear-gradient(135deg, #3a0004 0%, #150002 100%);
  
  /* Fonts */
  --font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Shadows & Blurs */
  --card-shadow: 0 30px 100px -10px rgba(0, 0, 0, 0.8);
  --card-glow-shadow: 0 0 60px -15px rgba(216, 0, 0, 0.15);
  --blur-glass: 24px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE LAYOUT
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

/* Background Grid Overlay */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   3. BACKGROUND AMBIENT GLOWS
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 650px;
  max-height: 650px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}

#ambient-glow-1 {
  background: var(--primary-glow);
  top: -15%;
  left: -10%;
  animation: floatOrb1 25s infinite alternate ease-in-out;
}

#ambient-glow-2 {
  background: var(--accent-dark-red);
  bottom: -15%;
  right: -10%;
  animation: floatOrb2 30s infinite alternate ease-in-out;
}

/* Mouse Interactive Aura Glow */
.interactive-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 0, 0, 0.1) 0%, rgba(216, 0, 0, 0.02) 50%, transparent 70%);
  filter: blur(50px);
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

body:hover .interactive-glow {
  opacity: 1;
}

/* Orb Animations */
@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12%, 8%) scale(1.08); }
  100% { transform: translate(-8%, 15%) scale(0.92); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(-15%, -12%) scale(1.05); }
  100% { transform: translate(8%, -6%) scale(1); }
}

/* --------------------------------------------------------------------------
   4. LAYOUT CONTAINERS & SITE HEADER
   -------------------------------------------------------------------------- */
.site-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.site-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.logo-img-header {
  height: 32px;
  width: auto;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.05));
  opacity: 0.85;
}

.logo-container:hover .logo-img-header {
  transform: scale(1.04);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.25));
  opacity: 1;
}

/* --------------------------------------------------------------------------
   5. GLASSMORPHIC MAIN CARD
   -------------------------------------------------------------------------- */
.main-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.glass-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--border-card);
  border-radius: 28px;
  padding: 3.5rem 3rem;
  text-align: center;
  box-shadow: var(--card-shadow), var(--card-glow-shadow);
  transition: border-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
  overflow: hidden;
  animation: cardFloating 8s infinite alternate ease-in-out;
}

.glass-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--card-shadow), 0 0 70px -10px rgba(216, 0, 0, 0.25);
}

/* Ambient inner card reflection */
.card-glow {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

@keyframes cardFloating {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Badge System */
.badge-wrapper {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.legacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 0.35rem 0.95rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary-glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
  animation: pulseDot 2s infinite alternate ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 1; box-shadow: 0 0 14px 2px var(--primary-glow); }
}

/* Card Brand Logo */
.card-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.25rem;
  position: relative;
}

.logo-img-card {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 10px 25px rgba(216, 0, 0, 0.25));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover .logo-img-card {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 15px 30px rgba(216, 0, 0, 0.4));
}

/* Screen Reader Only Utility for A11y */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.card-lead {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Divider Line */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.divider-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 50%, transparent);
}

.divider-icon {
  display: flex;
  align-items: center;
  opacity: 0.5;
}

/* Premium Tech Notice Banner */
.notice-banner {
  background: rgba(216, 0, 0, 0.035);
  border: 1px solid rgba(216, 0, 0, 0.15);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  text-align: left;
  margin-bottom: 2rem;
  box-shadow: inset 0 2px 8px rgba(216, 0, 0, 0.02);
  position: relative;
}

.notice-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--grad-brand);
  border-radius: 16px 0 0 16px;
}

.notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: alertPulse 3s infinite ease-in-out;
}

.notice-text {
  font-size: 0.96rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.notice-text strong {
  color: var(--secondary-glow);
  font-weight: 600;
}

@keyframes alertPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; filter: drop-shadow(0 0 6px rgba(216, 0, 0, 0.5)); }
}

.card-body {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.card-footer-text {
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

/* --------------------------------------------------------------------------
   6. PREMIUM LINKEDIN BUTTON (CTA)
   -------------------------------------------------------------------------- */
.cta-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-linkedin {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 320px;
  text-decoration: none;
  border-radius: 14px;
  background: var(--grad-brand);
  padding: 1px; /* Creates glowing border */
  box-shadow: 0 12px 30px -5px rgba(216, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.btn-linkedin:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px -5px rgba(216, 0, 0, 0.5), 0 0 20px rgba(216, 0, 0, 0.25);
}

.btn-linkedin:active {
  transform: translateY(-1px);
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  background: #090a0f;
  border-radius: 13px;
  padding: 1rem 1.75rem;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-linkedin:hover .btn-content {
  background: rgba(9, 10, 15, 0.3); /* Let the gradient show through more */
}

.icon-linkedin {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-linkedin:hover .icon-linkedin {
  transform: rotate(-10deg) scale(1.15);
}

/* Light sweep shine animation on hover */
.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12) 30%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.12) 70%,
    transparent
  );
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
}

.btn-linkedin:hover .btn-shine {
  animation: shineSweep 1.6s ease-in-out infinite;
}

@keyframes shineSweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* --------------------------------------------------------------------------
   7. SITE FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.copyright {
  font-size: 0.88rem;
  color: var(--text-dark);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.15rem;
}

.footer-dot {
  color: var(--primary-glow);
  font-size: 0.75rem;
}

.footer-note {
  font-size: 0.82rem;
  color: var(--text-dark);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   8. MICRO-REVEAL PAGE LOAD ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   9. MEDIA QUERIES FOR FULL RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .site-wrapper {
    padding: 2rem 1rem;
    gap: 2rem;
  }
  
  .glass-card {
    padding: 2.5rem 1.75rem;
    border-radius: 20px;
  }
  
  .logo-img-header {
    height: 28px;
  }
  
  .logo-img-card {
    height: 40px;
  }
  
  .card-lead {
    font-size: 1.02rem;
  }
  
  .notice-banner {
    padding: 1rem 1.15rem;
    gap: 0.75rem;
  }
  
  .notice-text {
    font-size: 0.88rem;
  }
  
  .btn-content {
    padding: 0.88rem 1.5rem;
    font-size: 0.98rem;
  }
}

@media (max-height: 700px) {
  body {
    align-items: flex-start;
  }
  
  .site-wrapper {
    min-height: auto;
    gap: 2rem;
  }
}
