/* ==========================================================================
   MUSTAFA SAİD KARAKAŞ - PORTFOLIO & CV DESIGN SYSTEM
   Modern, Dark-First, Glassmorphic, Print-Optimized
   ========================================================================== */

:root {
  /* Color Palette - Dark Theme Default */
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --grad-primary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.2);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(0, 0, 0, 0.02);
  
  --border-color: rgba(148, 163, 184, 0.25);
  --border-glow: rgba(2, 132, 199, 0.2);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.7) 100%);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
}

/* Base Reset & Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

/* Ambient Background Lights */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

.glow-top-left {
  top: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
}

.glow-top-right {
  top: 10%;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
}

.glow-bottom-center {
  bottom: 5%;
  left: 30%;
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  font-family: var(--font-sans);
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
}

.btn-block {
  width: 100%;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 12, 20, 0.8);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

[data-theme="light"] .navbar {
  background: rgba(248, 250, 252, 0.85);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}

.brand-bracket {
  color: var(--accent-cyan);
}

.brand-accent {
  color: var(--accent-purple);
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.25s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.action-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.action-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

.lang-text {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
}

.mobile-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 38px;
  padding: 10px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-toggle-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* HERO SECTION */
.hero-section {
  padding: 5rem 0 4rem;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.greeting {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.name-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.typewriter-box {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
  border-left: 3px solid var(--accent-cyan);
  padding: 0.5rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
}

.code-comment {
  color: var(--text-muted);
}

.typewriter-cursor {
  animation: blink 0.8s infinite;
  color: var(--accent-purple);
  margin-left: 2px;
}

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

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.hero-social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-icon:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.copy-email-btn {
  cursor: pointer;
  position: relative;
  font-family: inherit;
}

.copy-badge {
  font-size: 0.72rem;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* TERMINAL CARD */
.terminal-card {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(6, 182, 212, 0.1);
  overflow: hidden;
  font-family: var(--font-mono);
  position: relative;
}

[data-theme="light"] .terminal-card {
  background: #1e293b;
  color: #f8fafc;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.terminal-title {
  margin-left: 1rem;
  font-size: 0.82rem;
  color: #94a3b8;
  flex: 1;
}

.terminal-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border-radius: 4px;
}

.terminal-body {
  padding: 1.25rem 1.2rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.indent-1 { padding-left: 1.25rem; }
.indent-2 { padding-left: 2.5rem; }

.t-keyword { color: #f43f5e; font-weight: 600; }
.t-class { color: #38bdf8; font-weight: 600; }
.t-prop { color: #e2e8f0; }
.t-str { color: #34d399; }
.t-bool { color: #fbbf24; }
.t-func { color: #818cf8; }
.t-comment { color: #64748b; font-style: italic; }

.term-prompt {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.term-arrow { color: #06b6d4; font-weight: bold; margin-right: 0.4rem; }
.term-run { color: #f1f5f9; }

.term-output {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #10b981;
}

.output-check { margin-right: 0.3rem; }

/* SECTIONS COMMON */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.about-card, .quick-info-card, .architecture-focus-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition);
}

.about-card:hover, .quick-info-card:hover, .architecture-focus-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.card-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.about-heading {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.highlights-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.highlight-item {
  text-align: center;
}

.hl-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.hl-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quick-title {
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  color: var(--text-primary);
}

.quick-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quick-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color);
}

.q-label {
  color: var(--text-muted);
  font-weight: 500;
}

.q-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.badge-available {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.78rem;
}

.focus-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-pill {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

/* SKILLS SECTION */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-category-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.skill-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.cat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-backend { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.cat-arch { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.cat-hardware { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

.cat-name {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.cat-count {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
}

.skill-level {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.progress-bar-bg {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

[data-theme="light"] .progress-bar-bg {
  background: rgba(0, 0, 0, 0.06);
}

.progress-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

/* PROJECTS SECTION */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(6, 182, 212, 0.15);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.project-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
}

.badge-saas { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-iot { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-web { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }

.project-year {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.project-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-color);
}

.p-feature {
  display: flex;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.feature-bullet {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* INTERESTS SECTION */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.interest-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  text-align: center;
}

.interest-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-md);
}

.interest-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}

.interest-box:hover .interest-icon-wrap {
  transform: scale(1.1);
  background: var(--grad-primary);
  color: #fff;
}

.interest-title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.interest-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* EDUCATION SECTION */
.education-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  transition: var(--transition);
}

.education-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.edu-logo-badge {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edu-details {
  flex: 1;
}

.edu-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.edu-school {
  font-size: 1.45rem;
  margin-bottom: 0.2rem;
}

.edu-program {
  font-size: 1.05rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.edu-badge {
  font-size: 0.82rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.edu-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info-card, .contact-form-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.contact-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.contact-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-title {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.c-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

[data-theme="light"] .form-group input, [data-theme="light"] .form-group textarea {
  background: #ffffff;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  background: rgba(8, 12, 20, 0.6);
  position: relative;
  z-index: 1;
}

[data-theme="light"] .footer {
  background: #f1f5f9;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.3rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.back-to-top:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .skills-grid, .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.nav-open {
    transform: translateY(0);
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .cv-btn {
    display: none;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .skills-grid, .projects-grid, .interests-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .highlights-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .education-card {
    flex-direction: column;
    padding: 1.8rem;
  }

  .edu-top {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   PRINT STYLES FOR CV EXPORT (PDF & A4 OPTIMIZED)
   Triggered via window.print() or Ctrl+P
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 11pt !important;
  }

  .ambient-glow, .navbar, .nav-actions, .mobile-toggle-btn,
  .hero-cta-group, .hero-visual, .contact-form-card, .footer,
  .back-to-top, .cv-btn, #heroPrintCvBtn, .copy-badge, .typewriter-cursor {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .hero-section {
    padding: 1rem 0 1.5rem !important;
    min-height: auto !important;
  }

  .hero-container {
    display: block !important;
  }

  .hero-title {
    font-size: 24pt !important;
    color: #111827 !important;
  }

  .name-gradient {
    -webkit-text-fill-color: #111827 !important;
    color: #111827 !important;
  }

  .section {
    padding: 1.5rem 0 !important;
    page-break-inside: avoid;
  }

  .section-header {
    text-align: left !important;
    margin-bottom: 1rem !important;
  }

  .section-title {
    font-size: 16pt !important;
    border-bottom: 2px solid #0284c7 !important;
    padding-bottom: 0.3rem !important;
  }

  .section-tag {
    display: none !important;
  }

  .about-card, .quick-info-card, .skill-category-card, .project-card, .interest-box, .education-card, .contact-info-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    color: #111827 !important;
    padding: 1rem !important;
    page-break-inside: avoid;
  }

  .about-grid, .skills-grid, .projects-grid, .interests-grid, .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .about-text, .project-description, .edu-desc, .interest-text {
    color: #374151 !important;
  }

  .tag, .tech-pill {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
  }

  .progress-bar-bg {
    background: #e5e7eb !important;
  }

  .progress-bar-fill {
    background: #0284c7 !important;
  }
}
