/* ==========================================================================
   IBNU KHAIRUL AZMI - PORTFOLIO STYLESHEET
   Design: Modern, Clean, Minimalist with Dark/Light Mode & Glassmorphism
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & THEME DEFINITIONS
   -------------------------------------------------------------------------- */
:root {
  /* Fonts */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Backgrounds (gelap → terang) */
  --bg-surface: #000000;
  --bg-body: #05070b;
  --bg-card: rgba(12, 18, 29, 0.7);
  --bg-card-hover: rgba(18, 27, 43, 0.9);
  --bg-surface-elevated: #111a2b;

  /* Border */
  --border-color: rgba(143, 176, 242, 0.1);
  --border-color-hover: rgba(30, 185, 185, 0.4);

  /* Text */
  --text-primary: #edf3f9;
  --text-secondary: #a3afbf;
  --text-muted: #6d7a8c;
  --text-inverse: #041010;

  /* Brand (sama dengan light) */
  --primary: #1eb9b9;
  --primary-hover: #3cc9c9;
  --primary-light: rgba(30, 185, 185, 0.14);
  --secondary: #104b63;
  --secondary-light: rgba(95, 211, 208, 0.1);
  --accent: #5fd3d0;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #1eb9b9 0%, #5fd3d0 100%);
  --grad-accent: linear-gradient(135deg, #10304a 0%, #16898a 100%);
  --grad-surface: linear-gradient(180deg, rgba(143, 176, 242, 0.04) 0%, rgba(143, 176, 242, 0) 100%);
  --grad-glow-1: radial-gradient(circle, rgba(30, 185, 185, 0.14) 0%, rgba(30, 185, 185, 0) 70%);
  --grad-glow-2: radial-gradient(circle, rgba(79, 132, 232, 0.08) 0%, rgba(79, 132, 232, 0) 70%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 30px rgba(30, 185, 185, 0.22);

  /* Layout & Spacing */
  --nav-height: 76px;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-body: #f0fafa;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #dff3f3;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --border-color: rgba(9, 20, 19, 0.08);
  --border-color-hover: rgba(30, 185, 185, 0.35);

  --text-primary: #171717;
  --text-secondary: #525252;
  --text-muted: #737373;
  --text-inverse: #ffffff;

  --primary: rgb(30, 185, 185);
  --primary-hover: #17a0a0;
  --primary-light: rgba(30, 185, 185, 0.1);
  --secondary: #5fd3d0;
  --secondary-light: rgba(95, 211, 208, 0.12);
  --accent: #5fd3d0;

  --grad-primary: linear-gradient(135deg, #1eb9b9 0%, #5fd3d0 100%);
  --grad-accent: linear-gradient(135deg, #5fd3d0 0%, #b9f2ef 100%);
  --grad-surface: linear-gradient(180deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0) 100%);
  --grad-glow-1: radial-gradient(circle, rgba(30, 185, 185, 0.1) 0%, rgba(30, 185, 185, 0) 70%);
  --grad-glow-2: radial-gradient(circle, rgba(185, 242, 239, 0.35) 0%, rgba(185, 242, 239, 0) 70%);

  --shadow-sm: 0 2px 8px rgba(9, 20, 19, 0.05);
  --shadow-md: 0 8px 24px rgba(9, 20, 19, 0.08);
  --shadow-lg: 0 16px 40px rgba(9, 20, 19, 0.12);
  --shadow-glow: 0 0 30px rgba(30, 185, 185, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

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

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

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

/* Ambient Glow Blobs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  transition: opacity var(--transition-smooth);
}

/* Gradient Text Effect */
.gradient-text {
  background: rgb(30, 185, 185);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-accent {
  color: var(--primary);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-line {
  width: 60px;
  height: 4px;
  background: var(--grad-primary);
  margin: 0 auto 1.25rem auto;
  border-radius: 2px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   3. BUTTONS & UI CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}

[data-theme="light"] .btn-primary {
  background: rgb(30, 185, 185);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgb(30, 185, 185, 0.5);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:#000000;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="light"] .btn-icon {
  background: #ffffff;
}

.btn-icon:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: flex;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-normal);
}

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

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  height: 70px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background:var(--primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  box-shadow: 0 2px 10px rgba(66, 67, 167, 0.35);
}

[data-theme="light"] .logo-box {
  background: rgb(30, 185, 185);
}

/* Menu Items */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background:var(--primary);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

[data-theme="light"] .nav-link::after {
  background: rgb(30, 185, 185);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

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

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Switcher Sun/Moon visibility */
[data-theme="dark"] .sun-icon {
  display: block;
}
[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: none;
}
[data-theme="light"] .moon-icon {
  display: block;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

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

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.hero-role {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-role .separator {
  color: var(--primary);
}

.hero-role .highlight-role {
  color: var(--secondary);
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 580px;
  text-align: justify;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.social-link:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Hero profile & Visual Elements */
.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-card {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
}

.profile-glow {
  position: absolute;
  inset: -15px;
  background: rgb(30, 185, 185);
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0.35;
  animation: pulseGlow 4s infinite ease-in-out alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.25; }
  100% { transform: scale(1.05); opacity: 0.45; }
}

.profile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.profile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.profile:hover {
  transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   6. ABOUT ME SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.about-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.about-body {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.about-personal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.about-cards-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.highlight-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.card-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

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

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

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

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.mobile-cat { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.backend-cat { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.db-cat { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tools-cat { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.category-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.category-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.skill-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* --------------------------------------------------------------------------
   8. THESIS SPOTLIGHT & PROJECTS
   -------------------------------------------------------------------------- */
.thesis-spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.thesis-spotlight-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.thesis-spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
}

.thesis-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.thesis-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.thesis-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
}

.thesis-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
}

.thesis-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.thesis-institution {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

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

.thesis-features {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.feature-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feature-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.feature-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

/* Interactive Thesis Preview Mockup */
.preview-mockup {
  height: 350px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mockup-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-color);
  gap: 0.5rem;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.mockup-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mockup-qr-scanner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  padding-top: 1.5rem;
  width: 100%;
}

.qr-target-box {
  position: relative;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mockup-qr-svg {
  color: rgba(0, 0, 0, 0.7);
  opacity: 0.85;
}

.qr-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(0, 0, 0, 0.3);
  border-style: solid;
}
.qr-corner.top-left { top: 8px; left: 8px; border-width: 3px 0 0 3px; }
.qr-corner.top-right { top: 8px; right: 8px; border-width: 3px 3px 0 0; }
.qr-corner.bottom-left { bottom: 8px; left: 8px; border-width: 0 0 3px 3px; }
.qr-corner.bottom-right { bottom: 8px; right: 8px; border-width: 0 3px 3px 0; }

.scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  box-shadow: 0 0 12px var(--secondary);
  animation: scanLaser 3s infinite ease-in-out;
}

@keyframes scanLaser {
  0%, 100% { top: 10%; opacity: 0.8; }
  50% { top: 85%; opacity: 1; }
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

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

.project-folder-icon {
  color: var(--primary);
}

.project-type-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  background: var(--secondary-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.project-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.project-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   9. EDUCATION SECTION
   -------------------------------------------------------------------------- */
.education-timeline-container {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-card {
  display: flex;
  position: relative;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  flex-grow: 1;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.timeline-content:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.university-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.degree-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.timeline-period {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  background: var(--secondary-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.timeline-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.coursework-box {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.coursework-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.coursework-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.c-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   10. CONTACT SECTION & FORM
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

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

.contact-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-socials-box {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.socials-box-title {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  position: relative;
}

.form-group {
  margin-bottom: 1.4rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.form-label .required {
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--secondary);
  background: var(--bg-surface);
}

.form-control.error {
  border-color: var(--error);
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.35rem;
}

.form-error.visible {
  display: block;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  position: relative;
  z-index: 1;
}

.footer-container {
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  padding-right: 2rem;
  border-bottom: 1px solid var(--border-color);
  max-width: 1150px;
}

.footer-left {
  max-width: 320px;
  margin-right: 90px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

.footer-nav {
  display: grid;
  align-items: center;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  row-gap: 0.5rem;
  column-gap: 3rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--primary);
}


.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-role {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

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

  .thesis-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition-normal);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

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

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

  .profile-card {
    width: 280px;
    height: 280px;
  }

  .profile-wrapper {
    width: 220px;
    height: 220px;
  }

  .floating-badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }

  .badge-laravel { right: -15px; top: 20px; }
  .badge-mysql { left: -5px; bottom: 15px; }
  .badge-thesis { right: -10px; bottom: 0; }
  .badge-flutter { right: -10px; bottom: 10px; }

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

  .footer-container {
    display: flex;
    text-align: left;
  }

  .footer-left {
    max-width: 100%;
  }

  .footer-logo {
    justify-content: left;
  }

  .footer-nav {
    justify-content: left;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .thesis-spotlight-card {
    padding: 1.5rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem;
  }
}
