@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-color: #070b14;
  --text-main: #f1f5f9;
  --text-sub: #94a3b8;
  --card-bg: rgba(13, 21, 39, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --cyan-glow: #00f0ff;
  --comp-cyan: #38bdf8;
  --elec-amber: #fbbf24;
  --mech-emerald: #34d399;
  --mis-purple: #a855f7;
}

html.light {
  --bg-color: #f8fafc;
  --text-main: #0f172a;
  --text-sub: #475569;
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(226, 232, 240, 0.9);
  --cyan-glow: #0284c7;
  --comp-cyan: #0284c7;
  --elec-amber: #d97706;
  --mech-emerald: #059669;
  --mis-purple: #7c3aed;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

code, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #070b14;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

html.light ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
html.light ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Canvas background */
#network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Hero Section Gradients & Glows */
.hero-glow-blob-1 {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(7, 11, 20, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: pulseBlob 8s ease-in-out infinite alternate;
}

.hero-glow-blob-2 {
  position: absolute;
  top: 25%;
  right: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(7, 11, 20, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: pulseBlob 10s ease-in-out infinite alternate-reverse;
}

html.light .hero-glow-blob-1 {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(248, 250, 252, 0) 70%);
}

html.light .hero-glow-blob-2 {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
}

@keyframes pulseBlob {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.6; }
  100% { transform: scale(1.15) translate(25px, 20px); opacity: 1; }
}

/* Tech Text Gradients */
.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 10%, #38bdf8 55%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light .text-gradient-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 60%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Discipline Card Accents */
.card-comp {
  border-top: 3px solid #38bdf8;
}
.card-comp:hover {
  box-shadow: 0 15px 30px -10px rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
}

.card-elec {
  border-top: 3px solid #fbbf24;
}
.card-elec:hover {
  box-shadow: 0 15px 30px -10px rgba(251, 191, 36, 0.25);
  border-color: rgba(251, 191, 36, 0.5);
}

.card-mech {
  border-top: 3px solid #34d399;
}
.card-mech:hover {
  box-shadow: 0 15px 30px -10px rgba(52, 211, 153, 0.25);
  border-color: rgba(52, 211, 153, 0.5);
}

.card-mis {
  border-top: 3px solid #a855f7;
}
.card-mis:hover {
  box-shadow: 0 15px 30px -10px rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
}

/* Glowing CTA Buttons */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-glow:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Header & Navbar - Always Prominent & Crisp Glassmorphism */
#navbar {
  background-color: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.nav-link-item {
  position: relative;
  font-weight: 600;
  font-size: 0.875rem;
  color: #cbd5e1;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s ease;
}

.nav-link-item:hover {
  color: #38bdf8;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #38bdf8;
  border-radius: 9999px;
  transition: width 0.25s ease;
}

.nav-link-item:hover::after {
  width: 100%;
}

html.light .nav-link-item {
  color: #1e293b !important;
}

html.light .nav-link-item:hover {
  color: #0284c7 !important;
}

html.light .nav-link-item::after {
  background: #0284c7;
}

/* Logo Spotlight & Theme Switching (Instant CSS Rendering) */
.site-logo-dark {
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.16)) drop-shadow(0 0 25px rgba(52, 211, 153, 0.12));
  transition: all 0.25s ease;
}
.site-logo-light {
  display: none !important;
  transition: all 0.25s ease;
}

html.light .site-logo-dark {
  display: none !important;
}
html.light .site-logo-light {
  display: inline-block !important;
  filter: none;
}

/* Theme Switcher Segmented Control Styling */
.theme-switch-container {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.theme-choice-btn {
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
}

.theme-choice-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

/* Light Theme Switcher Container Override */
html.light .theme-switch-container {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

html.light .theme-choice-btn {
  color: #64748b;
}

html.light .theme-choice-btn:hover {
  color: #0f172a;
}

html.light .theme-choice-btn.active {
  background: #ffffff !important;
  color: #0369a1 !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

html.light .theme-divider {
  background-color: #cbd5e1 !important;
}

/* ========================================================
   LIGHT MODE OVERRIDES FOR HIGH-CONTRAST CRISP ELEGANCE
   ======================================================== */
html.light body {
  background-color: #f8fafc;
  color: #1e293b;
}

/* Header in light mode - Distinct & Solid */
html.light #navbar {
  background-color: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06) !important;
}

html.light #mobile-menu {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: #e2e8f0 !important;
}

html.light #mobile-menu a {
  color: #1e293b !important;
  border-color: #f1f5f9 !important;
}

html.light #mobile-menu a:hover {
  color: #0284c7 !important;
}

/* Headings in light mode */
html.light h1, 
html.light h2, 
html.light h3, 
html.light h4, 
html.light .text-white {
  color: #0f172a !important;
}

/* Slate texts in light mode - High Contrast */
html.light .text-slate-200 {
  color: #1e293b !important;
}
html.light .text-slate-300 {
  color: #334155 !important;
}
html.light .text-slate-400 {
  color: #475569 !important;
}
html.light .text-slate-500 {
  color: #64748b !important;
}

/* Cyan / Accent Colors in Light Mode - Deep Readable Ocean Blue */
html.light .text-cyan-200,
html.light .text-cyan-300 {
  color: #0369a1 !important;
}

html.light .text-cyan-400 {
  color: #0284c7 !important;
}

html.light .text-sky-300,
html.light .text-sky-400 {
  color: #0284c7 !important;
}

/* Badges and Tag Backgrounds in Light Mode */
html.light .bg-cyan-500\/10,
html.light .bg-cyan-500\/15,
html.light .bg-cyan-500\/20,
html.light .bg-sky-500\/10,
html.light .bg-sky-500\/15,
html.light .bg-sky-500\/20 {
  background-color: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  color: #0369a1 !important;
}

html.light .bg-amber-500\/10,
html.light .bg-amber-500\/15,
html.light .bg-amber-500\/20 {
  background-color: rgba(217, 119, 6, 0.1) !important;
  border-color: rgba(217, 119, 6, 0.3) !important;
  color: #b45309 !important;
}

html.light .text-amber-300,
html.light .text-amber-400 {
  color: #b45309 !important;
}

html.light .bg-emerald-500\/10,
html.light .bg-emerald-500\/15,
html.light .bg-emerald-500\/20 {
  background-color: rgba(5, 150, 105, 0.1) !important;
  border-color: rgba(5, 150, 105, 0.3) !important;
  color: #047857 !important;
}

html.light .text-emerald-300,
html.light .text-emerald-400 {
  color: #047857 !important;
}

html.light .bg-purple-500\/10,
html.light .bg-purple-500\/15,
html.light .bg-purple-500\/20 {
  background-color: rgba(147, 51, 234, 0.1) !important;
  border-color: rgba(147, 51, 234, 0.3) !important;
  color: #7e22ce !important;
}

html.light .text-purple-300,
html.light .text-purple-400 {
  color: #7e22ce !important;
}

/* Card backgrounds in light mode */
html.light .bg-slate-900\/40,
html.light .bg-slate-900\/50,
html.light .bg-slate-900\/60,
html.light .bg-slate-900\/70,
html.light .bg-slate-900\/80,
html.light .bg-slate-900 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

/* Subtle secondary pill cards and input wrappers */
html.light .bg-slate-950\/40,
html.light .bg-slate-950\/50,
html.light .bg-slate-950\/60,
html.light .bg-slate-950\/70,
html.light .bg-slate-950\/80,
html.light .bg-slate-950\/95,
html.light .bg-slate-950 {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

html.light .bg-slate-800\/80,
html.light .bg-slate-800\/90,
html.light .bg-slate-800 {
  background-color: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

/* Border overrides */
html.light .border-slate-800,
html.light .border-slate-800\/80,
html.light .border-slate-800\/70,
html.light .border-slate-800\/50,
html.light .border-slate-900,
html.light .border-slate-700 {
  border-color: #e2e8f0 !important;
}

/* Quote Box in Philosophy */
html.light .border-cyan-400 {
  border-color: #0284c7 !important;
}

/* Question conclusion banner in collaboration */
html.light .bg-cyan-950\/30 {
  background-color: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
  color: #0369a1 !important;
}

/* Inputs & Form in light mode */
html.light input,
html.light textarea,
html.light select {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light input:focus,
html.light textarea:focus,
html.light select:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

html.light input::placeholder,
html.light textarea::placeholder {
  color: #94a3b8 !important;
}

/* Modal in light mode */
html.light #project-modal {
  background-color: rgba(15, 23, 42, 0.6) !important;
}
html.light #project-modal > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

/* Footer in light mode */
html.light footer {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

/* Project Card & Hover in Light Mode */
html.light .project-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light .project-card:hover {
  border-color: rgba(2, 132, 199, 0.6) !important;
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.12) !important;
}

/* Button glow secondary buttons in light mode */
html.light .btn-glow {
  color: #ffffff !important;
}

/* Erciyes Teknopark Banner in Light Mode */
html.light .teknopark-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
  border-color: #bae6fd !important;
  box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.08) !important;
}

html.light .teknopark-banner h3 {
  color: #0f172a !important;
}

html.light .teknopark-text {
  color: #334155 !important;
}

/* Contact Address & Directions in Light Mode */
html.light .contact-address-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
}

html.light .contact-address-card:hover {
  background-color: #f8fafc !important;
  border-color: #0284c7 !important;
  box-shadow: 0 12px 30px -5px rgba(2, 132, 199, 0.15) !important;
}

html.light .contact-address-card h4 {
  color: #0f172a !important;
}

html.light .contact-address-card p {
  color: #475569 !important;
}

/* Back to Top Button in Light Mode */
html.light .back-to-top-btn {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

html.light .back-to-top-btn:hover {
  background-color: #ffffff !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}


