/* ==========================================================================
   YASFA SHOLEHUDIN - DEVOPS & IT INFRASTRUCTURE PORTFOLIO STYLES
   ========================================================================== */

/* Custom Cyber Grid Background */
.cyber-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #090d16;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Cursor Blink Effect */
.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Glassmorphism effects */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

/* Architecture Cards Active State */
.arch-card.active {
  border-color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.1) !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

/* Terminal Styling */
#terminal-body {
  font-feature-settings: "liga" 0;
  scrollbar-width: thin;
}

#terminal-body::-webkit-scrollbar {
  width: 6px;
}

#terminal-body::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES - HIGH CONTRAST & MAXIMUM READABILITY
   ========================================================================== */

html:not(.dark) body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html:not(.dark) .cyber-grid {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

/* Top Announcement Bar in Light Mode */
html:not(.dark) .top-announcement-bar {
  background-color: #ffffff !important;
  border-bottom-color: #e2e8f0 !important;
  color: #334155 !important;
}

html:not(.dark) .top-announcement-bar span {
  color: #334155 !important;
}

html:not(.dark) .top-announcement-bar .text-emerald-400 {
  color: #047857 !important;
}

/* Header in Light Mode */
html:not(.dark) header {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* HERO NAME SPECIFIC OVERRIDE FOR LIGHT MODE */
html:not(.dark) .hero-name {
  background-image: linear-gradient(135deg, #065f46 0%, #047857 35%, #0f766e 70%, #0369a1 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
  font-weight: 900 !important;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Navbar Brand Name in Light Mode */
html:not(.dark) .navbar-brand-name {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html:not(.dark) .navbar-brand-sub {
  color: #64748b !important;
}

/* Typewriter Heading in Light Mode */
html:not(.dark) #typewriter {
  color: #047857 !important;
  font-weight: 700 !important;
}

/* Hero Status Pill in Light Mode */
html:not(.dark) .hero-status-pill {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15) !important;
}

/* Text Colors in Light Mode */
html:not(.dark) .text-white,
html:not(.dark) .text-slate-100,
html:not(.dark) .text-slate-50 {
  color: #0f172a !important;
}

html:not(.dark) .text-slate-200 {
  color: #1e293b !important;
}

html:not(.dark) .text-slate-300 {
  color: #334155 !important;
}

html:not(.dark) .text-slate-400 {
  color: #64748b !important;
}

html:not(.dark) .text-slate-500 {
  color: #64748b !important;
}

html:not(.dark) .text-emerald-400 {
  color: #059669 !important;
}

html:not(.dark) .text-emerald-300 {
  color: #047857 !important;
}

html:not(.dark) .text-cyan-400 {
  color: #0284c7 !important;
}

html:not(.dark) .text-teal-400 {
  color: #0f766e !important;
}

html:not(.dark) .text-purple-400 {
  color: #7c3aed !important;
}

html:not(.dark) .text-amber-400 {
  color: #d97706 !important;
}

/* Cards & Backgrounds in Light Mode */
html:not(.dark) .bg-slate-900,
html:not(.dark) .bg-slate-900\/95,
html:not(.dark) .bg-slate-900\/90,
html:not(.dark) .bg-slate-900\/80,
html:not(.dark) .bg-slate-900\/70,
html:not(.dark) .bg-slate-900\/60 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

html:not(.dark) .bg-slate-950,
html:not(.dark) .bg-slate-950\/90,
html:not(.dark) .bg-slate-950\/80,
html:not(.dark) .bg-slate-950\/60,
html:not(.dark) .bg-slate-950\/40 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html:not(.dark) .bg-slate-800,
html:not(.dark) .bg-slate-800\/80,
html:not(.dark) .bg-slate-800\/60,
html:not(.dark) .bg-slate-800\/50 {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Gradient Containers in Light Mode */
html:not(.dark) .bg-gradient-to-br.from-slate-900.to-slate-950 {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

html:not(.dark) .bg-gradient-to-r.from-emerald-950\/40.to-teal-950\/40 {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}

html:not(.dark) .bg-emerald-950\/20,
html:not(.dark) .bg-emerald-950\/40 {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
}

html:not(.dark) .border-slate-800,
html:not(.dark) .border-slate-800\/80,
html:not(.dark) .border-slate-700,
html:not(.dark) .border-slate-700\/80 {
  border-color: #e2e8f0 !important;
}

/* Form Controls in Light Mode */
html:not(.dark) input,
html:not(.dark) textarea,
html:not(.dark) select {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html:not(.dark) input:focus,
html:not(.dark) textarea:focus,
html:not(.dark) select:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

/* Hero Right Telemetry Card in Light Mode */
html:not(.dark) .hero-telemetry-panel {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}

html:not(.dark) .hero-telemetry-panel .bg-slate-950\/90 {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

html:not(.dark) .hero-telemetry-panel .bg-slate-950\/60 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html:not(.dark) .hero-telemetry-panel .text-slate-400 {
  color: #475569 !important;
}

html:not(.dark) .hero-telemetry-panel .text-slate-200 {
  color: #0f172a !important;
}

/* Terminal KEEPS AUTHENTIC DARK HACKER STYLING IN BOTH MODES */
html:not(.dark) #terminal {
  color-scheme: dark;
}

html:not(.dark) #terminal .bg-black {
  background-color: #0a0f1d !important;
}

html:not(.dark) #terminal .bg-slate-950 {
  background-color: #060913 !important;
  border-color: #1e293b !important;
}

html:not(.dark) #terminal .text-white,
html:not(.dark) #terminal .text-slate-200,
html:not(.dark) #terminal .text-slate-300 {
  color: #f8fafc !important;
}

html:not(.dark) #terminal .text-slate-400,
html:not(.dark) #terminal .text-slate-500 {
  color: #94a3b8 !important;
}

html:not(.dark) #terminal .text-emerald-400 {
  color: #34d399 !important;
}

html:not(.dark) #terminal .text-emerald-300 {
  color: #6ee7b7 !important;
}

html:not(.dark) #terminal .text-cyan-300,
html:not(.dark) #terminal .text-cyan-400 {
  color: #38bdf8 !important;
}

html:not(.dark) #terminal .text-teal-300 {
  color: #2dd4bf !important;
}

html:not(.dark) #terminal .text-purple-300,
html:not(.dark) #terminal .text-purple-400 {
  color: #c084fc !important;
}

html:not(.dark) #terminal .text-blue-300 {
  color: #93c5fd !important;
}

html:not(.dark) #terminal .text-amber-300 {
  color: #fcd34d !important;
}

html:not(.dark) #terminal .text-rose-400 {
  color: #fb7185 !important;
}

html:not(.dark) #terminal .border-slate-800,
html:not(.dark) #terminal .border-slate-700 {
  border-color: #1e293b !important;
}

html:not(.dark) #terminal .bg-slate-900 {
  background-color: #0f172a !important;
}

html:not(.dark) #terminal .bg-slate-800 {
  background-color: #1e293b !important;
}

html:not(.dark) #terminal input {
  background-color: transparent !important;
  color: #6ee7b7 !important;
}

/* Footer in Light Mode */
html:not(.dark) footer {
  background-color: #0f172a !important;
  border-top-color: #1e293b !important;
  color: #94a3b8 !important;
}

html:not(.dark) footer .text-slate-200,
html:not(.dark) footer .text-white {
  color: #f8fafc !important;
}

html:not(.dark) footer .text-slate-400 {
  color: #cbd5e1 !important;
}

html:not(.dark) footer .text-slate-500 {
  color: #64748b !important;
}

html:not(.dark) footer .text-slate-600 {
  color: #475569 !important;
}

html:not(.dark) footer a:hover {
  color: #34d399 !important;
}

/* Animations & Transitions */
.transition-smooth {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ring-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.ring-pulse {
  animation: ring-pulse 2s infinite ease-in-out;
}
