/* ============================================================
   NEELAM ROY — PREMIUM CINEMATIC PORTFOLIO
   Theme System — Dark & Light (White) Modes with Red Accent
   ============================================================ */

/* ── Theme Transition ── */
body.theme-transitioning,
body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
  transition-duration: 0.5s !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ── Theme: Dark ── */
[data-theme="dark"] {
  --color-bg: #090909;
  --color-bg-secondary: #121212;
  --color-gold: #E50914;           /* Bright Red accent */
  --color-gold-light: #FF3B47;     /* Vibrant Light Red */
  --color-gold-dark: #B70914;      /* Deep Crimson Red */
  --color-purple: #8B5CF6;
  --color-purple-light: #A78BFA;
  --color-accent: #E50914;
  --color-accent-light: #FF3B47;
  --color-accent-rgb: 229, 9, 20;
  --color-card-bg: rgba(20, 20, 20, 0.9);
  --color-glass: rgba(255, 255, 255, 0.08);
  --color-glass-border: rgba(255, 255, 255, 0.15);
  --color-glass-hover: rgba(255, 255, 255, 0.18);
  --color-overlay: rgba(9, 9, 9, 0.75);
  --color-text-primary: #FFFFFF;    /* Pure Bright White */
  --color-text-secondary: #E2E8F0;  /* High Contrast Light Gray */
  --color-text-muted: #A0AEC0;      /* Clear Muted Text */
}

/* Dark theme specific readability enhancements */
[data-theme="dark"] .hero__name {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 50%, #FF3B47 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="dark"] .hero__title,
[data-theme="dark"] .hero__description,
[data-theme="dark"] .about__description,
[data-theme="dark"] .timeline__desc,
[data-theme="dark"] .achievement-card__desc,
[data-theme="dark"] .quote-section__text {
  color: #E2E8F0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .section-header__title,
[data-theme="dark"] .about__title,
[data-theme="dark"] .timeline__title,
[data-theme="dark"] .award-card__number,
[data-theme="dark"] .achievement-card__title,
[data-theme="dark"] .contact-card__title,
[data-theme="dark"] .contact-form__title {
  color: #FFFFFF;
}

[data-theme="dark"] .award-card__label,
[data-theme="dark"] .about__stat-label,
[data-theme="dark"] .contact-card__item-label,
[data-theme="dark"] .contact-card__item-value {
  color: #E2E8F0;
}

[data-theme="dark"] .side-nav {
  background: rgba(9, 9, 9, 0.98);
  border-right-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .side-nav__link,
[data-theme="dark"] .theme-switcher__toggle {
  color: #CBD5E1;
}

[data-theme="dark"] .side-nav__link:hover,
[data-theme="dark"] .side-nav__link.active,
[data-theme="dark"] .theme-switcher__toggle:hover {
  color: #FFFFFF;
  background: rgba(229, 9, 20, 0.2);
}

[data-theme="dark"] .theme-switcher__panel {
  background: #18181B;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .theme-switcher__title {
  color: #94A3B8;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-switcher__option {
  color: #F1F5F9;
}

[data-theme="dark"] .theme-switcher__option:hover {
  background: rgba(229, 9, 20, 0.15);
  color: #FFFFFF;
}

[data-theme="dark"] .theme-switcher__option.active {
  background: rgba(229, 9, 20, 0.25);
  color: #FF3B47;
}

/* Dark Theme — Blog & Article Reader */
[data-theme="dark"] .blog-hero,
[data-theme="dark"] .article-header {
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .blog-hero__tag,
[data-theme="dark"] .blog-card__category,
[data-theme="dark"] .blog-card__read-link,
[data-theme="dark"] .article-header__breadcrumb a,
[data-theme="dark"] .article-callout__title,
[data-theme="dark"] .article-toc__title {
  color: #FF3B47;
}

[data-theme="dark"] .blog-hero__title,
[data-theme="dark"] .blog-card__title,
[data-theme="dark"] .article-header__title,
[data-theme="dark"] .article-body,
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3,
[data-theme="dark"] .faq-question {
  color: #FFFFFF;
}

[data-theme="dark"] .blog-card:hover .blog-card__title,
[data-theme="dark"] .article-toc a:hover {
  color: #FF3B47;
}

[data-theme="dark"] .blog-hero__subtitle,
[data-theme="dark"] .blog-card__meta,
[data-theme="dark"] .blog-card__excerpt,
[data-theme="dark"] .article-header__breadcrumb,
[data-theme="dark"] .article-meta-bar,
[data-theme="dark"] .article-body p,
[data-theme="dark"] .article-toc a,
[data-theme="dark"] .faq-answer {
  color: #CBD5E1;
}

[data-theme="dark"] .blog-card,
[data-theme="dark"] .article-toc,
[data-theme="dark"] .faq-item {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .blog-card:hover {
  border-color: #E50914;
  box-shadow: 0 12px 35px rgba(229, 9, 20, 0.25);
}

[data-theme="dark"] .article-callout {
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.4);
}

[data-theme="dark"] .article-body h2 {
  border-left: 4px solid #E50914;
}


/* ── Theme: Light (White - Default) ── */
[data-theme="light"] {
  --color-bg: #FFFDF6;             /* Soft Warm Cream Ivory */
  --color-bg-secondary: #FFFFFF;
  --color-gold: #E50914;           /* Bright Red accent */
  --color-gold-light: #FF2D55;     /* Vibrant Light Red */
  --color-gold-dark: #B70914;      /* Deep Crimson Red */
  --color-purple: #6C3BFF;
  --color-purple-light: #8B66FF;
  --color-accent: #E50914;
  --color-accent-light: #FF2D55;
  --color-accent-rgb: 229, 9, 20;
  --color-card-bg: rgba(255, 255, 255, 0.95);
  --color-glass: rgba(255, 249, 230, 0.4);
  --color-glass-border: rgba(229, 9, 20, 0.3);
  --color-glass-hover: rgba(229, 9, 20, 0.08);
  --color-overlay: rgba(255, 253, 246, 0.85);
  --color-text-primary: #111111;
  --color-text-secondary: #2D3748;
  --color-text-muted: #4A5568;
}

/* Light Theme Animations for Animated Red Border & Glow */
@keyframes lightRedBorderPulse {
  0%, 100% {
    border-color: rgba(229, 9, 20, 0.35);
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.08);
  }
  50% {
    border-color: rgba(229, 9, 20, 0.85);
    box-shadow: 0 6px 28px rgba(229, 9, 20, 0.22);
  }
}

@keyframes lightRedLineGlow {
  0%, 100% { opacity: 0.6; transform: scaleX(0.96); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* Light theme top portion yellow gradient */
[data-theme="light"] .hero__overlay {
  background: linear-gradient(
    135deg,
    rgba(255, 248, 220, 0.95) 0%,   /* Luxurious soft champagne light yellow */
    rgba(255, 243, 204, 0.85) 35%,   /* Soft golden light yellow */
    rgba(255, 252, 240, 0.6) 70%,
    rgba(255, 253, 246, 0.3) 100%
  );
}

[data-theme="light"] .hero__overlay::after {
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
}

[data-theme="light"] .gallery-hero__overlay,
[data-theme="light"] .contact-hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(255, 245, 214, 0.9) 0%,
    rgba(255, 248, 224, 0.7) 50%,
    var(--color-bg) 100%
  );
}

[data-theme="light"] .side-nav {
  background: rgba(255, 255, 255, 0.98);
  border-right: 2px solid rgba(229, 9, 20, 0.35);
  box-shadow: 3px 0 18px rgba(229, 9, 20, 0.08);
}

[data-theme="light"] .side-nav__link,
[data-theme="light"] .theme-switcher__toggle {
  color: #1E293B;
}

[data-theme="light"] .side-nav__link:hover,
[data-theme="light"] .side-nav__link.active,
[data-theme="light"] .theme-switcher__toggle:hover {
  color: #E50914;
  background: rgba(229, 9, 20, 0.08);
}

[data-theme="light"] .loader {
  background: var(--color-bg);
}

[data-theme="light"] .hero__name {
  background: linear-gradient(135deg, #111111 0%, #E50914 60%, #B70914 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .gallery-hero__title,
[data-theme="light"] .contact-hero__title {
  background: linear-gradient(135deg, #111111 0%, #E50914 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .mobile-menu-toggle {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(229, 9, 20, 0.5);
}

[data-theme="light"] html::-webkit-scrollbar-track {
  background: var(--color-bg);
}

[data-theme="light"] .btn--primary {
  color: #FFFFFF;
  background: linear-gradient(135deg, #E50914, #FF2D55);
}

[data-theme="light"] .cursor-main {
  background: var(--color-gold);
}

[data-theme="light"] .awards {
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(255, 245, 214, 0.5) 50%, var(--color-bg) 100%);
}

[data-theme="light"] .quote-section__bg {
  background: linear-gradient(135deg, rgba(255, 243, 204, 0.4), rgba(229, 9, 20, 0.04));
}

/* Light Theme Animated Thin Red Line Borders for Cards & Containers */
[data-theme="light"] .about__stat,
[data-theme="light"] .award-card,
[data-theme="light"] .achievement-card,
[data-theme="light"] .contact-card,
[data-theme="light"] .contact-form,
[data-theme="light"] .hero__image-frame {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(229, 9, 20, 0.4);
  animation: lightRedBorderPulse 3.5s ease-in-out infinite;
}

[data-theme="light"] .about__stat:hover,
[data-theme="light"] .award-card:hover,
[data-theme="light"] .achievement-card:hover {
  border-color: rgba(229, 9, 20, 0.9);
  box-shadow: 0 8px 32px rgba(229, 9, 20, 0.25);
}

[data-theme="light"] .section-header__line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #E50914, #FF2D55, #E50914, transparent);
  animation: lightRedLineGlow 2.5s ease-in-out infinite;
}

[data-theme="light"] .theme-switcher__panel {
  background: #FFFFFF;
  border: 1px solid rgba(229, 9, 20, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 15px rgba(229, 9, 20, 0.1);
}

[data-theme="light"] .theme-switcher__title {
  color: #64748B;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .theme-switcher__option {
  color: #1E293B;
}

[data-theme="light"] .theme-switcher__option:hover {
  background: rgba(229, 9, 20, 0.08);
  color: #E50914;
}

[data-theme="light"] .theme-switcher__option.active {
  background: rgba(229, 9, 20, 0.12);
  color: #E50914;
}



/* Light Theme — Blog & Article Reader */
[data-theme="light"] .blog-hero,
[data-theme="light"] .article-header {
  background: #FFFDF6;
  border-bottom: 1px solid rgba(229, 9, 20, 0.2);
}

[data-theme="light"] .blog-hero__tag,
[data-theme="light"] .blog-card__category,
[data-theme="light"] .blog-card__read-link,
[data-theme="light"] .article-header__breadcrumb a,
[data-theme="light"] .article-callout__title,
[data-theme="light"] .article-toc__title {
  color: #E50914;
}

[data-theme="light"] .blog-hero__title,
[data-theme="light"] .blog-card__title,
[data-theme="light"] .article-header__title,
[data-theme="light"] .article-body h2,
[data-theme="light"] .article-body h3,
[data-theme="light"] .faq-question {
  color: #111111;
}

[data-theme="light"] .blog-card:hover .blog-card__title,
[data-theme="light"] .article-toc a:hover {
  color: #E50914;
}

[data-theme="light"] .blog-hero__subtitle,
[data-theme="light"] .blog-card__meta,
[data-theme="light"] .blog-card__excerpt,
[data-theme="light"] .article-header__breadcrumb,
[data-theme="light"] .article-meta-bar,
[data-theme="light"] .article-body p,
[data-theme="light"] .article-toc a,
[data-theme="light"] .faq-answer {
  color: #4A5568;
}

[data-theme="light"] .blog-card,
[data-theme="light"] .article-toc,
[data-theme="light"] .faq-item {
  background: #FFFFFF;
  border: 1px solid rgba(229, 9, 20, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .blog-card:hover {
  border-color: #E50914;
  box-shadow: 0 12px 35px rgba(229, 9, 20, 0.2);
}

[data-theme="light"] .article-callout {
  background: rgba(229, 9, 20, 0.04);
  border: 1px solid rgba(229, 9, 20, 0.3);
}

[data-theme="light"] .article-body h2 {
  border-left: 4px solid #E50914;
}

/* ── Theme Switcher UI Base ── */
.theme-switcher {
  position: relative;
  width: 100%;
}

.theme-switcher__toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.theme-switcher__toggle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.theme-switcher__toggle-name {
  font-family: var(--font-montserrat);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.theme-switcher__panel {
  position: fixed;
  left: calc(var(--sidebar-width) + 8px);
  bottom: 80px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px) scale(0.95);
  transition: all var(--transition-base);
  z-index: calc(var(--z-nav) + 10);
}

.theme-switcher__panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.theme-switcher__title {
  font-family: var(--font-montserrat);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: var(--border-thin);
}

.theme-switcher__options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-switcher__option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-montserrat);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: all var(--transition-base);
  position: relative;
}

.theme-switcher__option.active::after {
  content: '✓';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--color-accent);
}

.theme-switcher__color {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-round);
  border: 2px solid rgba(128, 128, 128, 0.2);
  flex-shrink: 0;
}

.theme-switcher__color--dark {
  background: linear-gradient(135deg, #090909, #E50914);
}

.theme-switcher__color--light {
  background: linear-gradient(135deg, #FFF5D6, #E50914);
  border-color: rgba(0, 0, 0, 0.15);
}

/* WhatsApp Card Theme Overrides */
[data-theme="dark"] .whatsapp-card {
  background: rgba(17, 17, 17, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .whatsapp-card__info {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .whatsapp-card {
  background: #FFFFFF;
  border-color: rgba(229, 9, 20, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .whatsapp-card__info {
  background: rgba(229, 9, 20, 0.04);
  border-color: rgba(229, 9, 20, 0.15);
}
