:root {
  /* DARK THEME VARIABLES (Default) */
  --primary: #00f0ff;
  --secondary: #ff0055;
  --tertiary: #cc00ff;
  --bg: #050505;
  --bg-secondary: #0d0d12;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(30, 30, 35, 0.6);
  --text: #ffffff;
  --text-muted: #9aa0a6;
  --glass-border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.3);
  
  --font-main: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="light"] {
  /* LIGHT THEME VARIABLES */
  --primary: #0066ff;
  --secondary: #ff0055;
  --tertiary: #8800ff;
  --bg: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.05);
  --text: #1a1a1a;
  --text-muted: #666666;
  --glass-border: rgba(0, 0, 0, 0.1);
  --border-glow: rgba(0, 102, 255, 0.2);
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  cursor: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.5s ease;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--tertiary), var(--secondary));
  z-index: 9999999;
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.1s ease;
}

.hidden { display: none !important; }

/* KONAMI CODE MATRIX MODE */
body.matrix-mode {
  --primary: #0f0;
  --tertiary: #0f0;
  --secondary: #0f0;
  --bg: #000;
  --bg-secondary: #050505;
  --text: #0f0;
  --text-muted: #0a0;
  --border-glow: rgba(0,255,0,0.5);
  --glass-border: rgba(0,255,0,0.2);
  font-family: var(--font-mono);
}
body.matrix-mode .bg-ambient { display: none; }
body.matrix-mode .btn-resume, body.matrix-mode .btn-submit { background: transparent; border: 1px solid #0f0; color: #0f0; box-shadow: 0 0 10px rgba(0,255,0,0.3) inset; }
body.matrix-mode .hero-image img { filter: grayscale(1) sepia(1) hue-rotate(60deg) saturate(5); opacity: 0.8; }
body.matrix-mode .gradient-text { background: #0f0; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Custom Cursor */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999999;
  box-shadow: 0 0 15px var(--primary);
  transition: transform 0.1s ease;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999998;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2) inset;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), left 0.1s ease, top 0.1s ease, border-color 0.2s;
}

/* PERCENTAGE PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s ease;
}

.preloader-text {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.counter {
  font-size: 8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 30px;
}

.preloader-line {
  width: 300px;
  height: 2px;
  background: var(--glass-border);
  position: relative;
  overflow: hidden;
}

.preloader-progress {
  position: absolute;
  top: 0; left: 0; height: 100%;
  width: 0%;
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
}

/* Ambient Background */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(204, 0, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 0, 85, 0.06) 0%, transparent 50%);
  animation: bgShift 15s ease-in-out infinite alternate;
  transition: background 0.5s ease;
}

[data-theme="light"] .bg-ambient {
  background: 
    radial-gradient(circle at 15% 50%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(136, 0, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 0, 85, 0.06) 0%, transparent 50%);
}

@keyframes bgShift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-20px, 20px); }
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 1;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.5);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

[data-theme="light"] header { background: rgba(255, 255, 255, 0.6); }

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
  display: flex;
  align-items: center;
}

.logo span { 
  color: var(--primary); 
  text-shadow: 0 0 10px var(--primary);
}

nav ul { display: flex; gap: 35px; list-style: none; }
nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--tertiary));
  transition: width 0.3s ease;
}

nav a:hover, nav a.active { color: var(--text); }
nav a.active::after, nav a:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 20px; }

/* THEME TOGGLE BUTTON */
.theme-btn {
  background: transparent;
  border: none;
  color: var(--text);
  width: 40px; height: 40px;
  display: flex; justify-content: center; align-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}
.theme-btn:hover { background: var(--bg-card); transform: rotate(15deg) scale(1.1); color: var(--primary); }
.theme-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; z-index: 1001; padding: 10px; }
.menu-btn span { display: block; width: 25px; height: 2px; background: var(--text); transition: var(--transition); border-radius: 2px; }
.menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


.btn-resume {
  padding: 12px 28px;
  background: linear-gradient(45deg, var(--primary), var(--tertiary));
  color: #fff;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

.btn-resume:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.4);
  background: linear-gradient(45deg, var(--tertiary), var(--primary));
}

/* Sections Global */
section { padding: 80px 8%; max-width: 1500px; margin: 0 auto; overflow: hidden; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; gap: 60px; position: relative; padding-top: 100px; }
.hero-content { flex: 1; }

.hero-tag {
  color: var(--primary); font-family: var(--font-mono); font-size: 0.95rem; margin-bottom: 25px;
  display: inline-block; padding: 8px 16px; background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2); border-radius: 100px; text-transform: uppercase; letter-spacing: 2px;
}

[data-theme="light"] .hero-tag { background: rgba(0,102,255,0.1); border-color: rgba(0,102,255,0.2); }

.hero-content h1 { font-size: 5.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 25px; letter-spacing: -2px; }

.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--tertiary), var(--secondary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-text 5s linear infinite;
  display: inline-block;
}

@keyframes gradient-text { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

.hero-content p { color: var(--text-muted); font-size: 1.25rem; max-width: 550px; margin-bottom: 45px; line-height: 1.7; }

.hero-btns { display: flex; align-items: center; gap: 30px; }

.social-link {
  color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 600;
  transition: var(--transition); opacity: 0.8;
}
.social-link:hover { opacity: 1; color: var(--primary); transform: translateY(-2px); }

[data-theme="light"] .mode-invert { filter: invert(0) !important; }
[data-theme="dark"] .mode-invert { filter: invert(1) !important; }
.icon-size { width: 24px; transition: filter 0.5s ease; }

.hero-image { flex: 1; display: flex; justify-content: flex-end; position: relative; }

.hero-image img {
  width: 100%; max-width: 380px; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255,255,255,0.1); position: relative; z-index: 2; transition: var(--transition);
}

[data-theme="light"] .hero-image img { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15); border: 1px solid rgba(0,0,0,0.1); }

.hero-image::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; height: 80%;
  background: linear-gradient(45deg, var(--primary), var(--tertiary)); filter: blur(80px); opacity: 0.5; z-index: 1; border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow { 0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); } 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); } }

/* Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(280px, auto); gap: 30px; }

.module {
  background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
  border-radius: 40px; padding: 40px; transition: var(--transition); position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%;
}

.module:hover {
  transform: translateY(-5px); background: var(--bg-card-hover); border-color: var(--border-glow); box-shadow: 0 20px 40px rgba(0, 240, 255, 0.05);
}

.bento-about { grid-column: span 2; grid-row: span 2; }
.bento-skills { grid-column: span 1; grid-row: span 2; }
.bento-exp { grid-column: span 2; }
.bento-certs { grid-column: span 1; }
.bento-edu { grid-column: span 3; height: auto; min-height: unset; }

.module h3 { font-size: 2.2rem; margin-bottom: 25px; font-weight: 700; display: flex; align-items: center; gap: 15px; }

.module h3::before { content: ''; width: 12px; height: 12px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); }

.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 30px; }

.skill-pill {
  padding: 18px; background: rgba(150, 150, 150, 0.05); border: 1px solid var(--glass-border);
  border-radius: 20px; display: flex; align-items: center; gap: 15px; font-size: 0.95rem; font-weight: 500; transition: var(--transition);
}

.skill-pill img { width: 28px; transition: var(--transition); }
.skill-pill:hover { background: rgba(0, 240, 255, 0.1); border-color: var(--border-glow); transform: scale(1.05); }

/* Projects */
.section-title { margin-bottom: 60px; text-align: center; }
.section-title h2 { font-size: 4rem; letter-spacing: -2px; }

.projects-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.project-card {
  border-radius: 40px; overflow: hidden; background: var(--bg-card); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); transition: var(--transition); position: relative; display: flex; flex-direction: column; cursor: none;
}

.project-card:hover { transform: translateY(-15px); border-color: var(--tertiary); box-shadow: 0 20px 50px rgba(204, 0, 255, 0.15); }

.project-img { height: 280px; overflow: hidden; position: relative; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.project-card:hover .project-img img { transform: scale(1.1) rotate(1deg); }

.project-body { padding: 40px; flex-grow: 1; display: flex; flex-direction: column; }
.project-body h3 { font-size: 1.8rem; margin-bottom: 15px; }
.project-body p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; flex-grow: 1; }

.tech-tags { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tech-tags span { font-size: 0.75rem; color: var(--primary); padding: 6px 14px; background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.2); border-radius: 50px; font-weight: 600; }
[data-theme="light"] .tech-tags span { background: rgba(0,102,255,0.1); border-color: rgba(0,102,255,0.2); }

.project-link { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; font-size: 1.1rem; transition: var(--transition); pointer-events: none; }
.project-card:hover .project-link { color: var(--primary); }

/* INTERACTIVE MODAL */
.modal {
  position: fixed; inset: 0; z-index: 999999; display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s;
}

.modal.active { opacity: 1; visibility: visible; }

.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); }
[data-theme="light"] .modal-overlay { background: rgba(255,255,255,0.6); }

.modal-content {
  position: relative; width: 90%; max-width: 900px; max-height: 90vh; background: var(--bg-secondary);
  border: 1px solid var(--border-glow); border-radius: 40px; padding: 40px; overflow-y: auto;
  transform: translateY(50px) scale(0.95); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 100px rgba(0,0,0,0.5);
}

.modal.active .modal-content { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 30px; right: 30px; background: transparent; border: none; color: var(--text);
  font-size: 2.5rem; line-height: 1; transition: var(--transition);
}
.modal-close:hover { color: var(--secondary); transform: rotate(90deg) scale(1.2); }

.modal-slider { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.modal-slider button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; border: 1px solid var(--primary); width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; transition: var(--transition); z-index: 10; cursor: pointer; }
#slider-prev { left: 10px; }
#slider-next { right: 10px; }
.modal-slider button:hover { background: var(--bg-card); transform: translateY(-50%) scale(1.1); }
[data-theme="light"] .modal-slider button { background: rgba(255,255,255,0.8); color: #000; }

.modal-header h2 { font-size: 3rem; margin-bottom: 20px; }
.modal-body { display: flex; flex-direction: column; gap: 30px; margin-top: 30px; }
.modal-body img { width: 100%; border-radius: 20px; object-fit: cover; border: 1px solid var(--glass-border); transition: opacity 0.3s ease; }

.modal-info p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; }

/* Contact Section & TOAST */
.contact-section {
  background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: 60px; margin: 40px 5%;
  padding: 80px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; position: relative; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.contact-info h2 { font-size: 4.5rem; margin-bottom: 25px; line-height: 1.1; letter-spacing: -2px; }

.email-copy-container { display: flex; align-items: center; gap: 15px; cursor: pointer; transition: var(--transition); font-size: 1.8rem; }
.email-copy-container:hover { transform: translateX(10px); }
.email-copy-container:hover a { color: var(--primary) !important; }
.copy-icon { opacity: 0; transition: var(--transition); font-size: 1.4rem; padding-bottom: 5px; }
.email-copy-container:hover .copy-icon { opacity: 1; text-shadow: 0 0 10px var(--primary); }

.contact-form { display: flex; flex-direction: column; gap: 25px; z-index: 1; }

.contact-form input, .contact-form textarea {
  width: 100%; padding: 22px 30px; background: var(--bg); border: 1px solid var(--glass-border); border-radius: 25px;
  color: var(--text); outline: none; font-size: 1.1rem; font-family: var(--font-main); transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 20px rgba(0, 240, 255, 0.1); }

.btn-submit {
  padding: 22px; background: linear-gradient(45deg, var(--primary), var(--tertiary)); color: white; border: none;
  border-radius: 25px; font-weight: 700; font-size: 1.2rem; transition: var(--transition); position: relative; display: flex; justify-content: center; align-items: center;
}

.btn-submit:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 240, 255, 0.3); }

.spinner {
  width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.3); border-top: 3px solid #fff; border-radius: 50%;
  animation: spin 1s linear infinite; position: absolute;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.toast {
  position: fixed; bottom: -100px; right: 40px; background: var(--bg-secondary); border: 1px solid var(--primary);
  border-radius: 20px; padding: 20px 25px; display: flex; align-items: center; gap: 15px; box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  z-index: 999999; transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s; opacity: 0; pointer-events: none;
}
.toast.show { bottom: 40px; opacity: 1; }
.toast-content strong { color: var(--text); display: block; font-size: 1.1rem; }
.toast-content p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* EASTER EGG TERMINAL */
.terminal-trigger {
  position: fixed; bottom: 30px; left: 30px; background: rgba(0, 240, 255, 0.1); 
  border: 1px solid var(--border-glow); padding: 10px 20px; border-radius: 10px;
  color: var(--primary); font-family: var(--font-mono); font-weight: bold;
  z-index: 9999; cursor: pointer !important; transition: var(--transition);
  backdrop-filter: blur(10px);
}
.terminal-trigger:hover { background: rgba(0, 240, 255, 0.2); transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,240,255,0.3); }

.terminal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
  z-index: 100000; display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: 0.4s ease;
}
.terminal-overlay.active { opacity: 1; visibility: visible; }

.terminal-window {
  width: 90%; max-width: 800px; height: 70vh; background: #0a0a0c; border-radius: 15px;
  border: 1px solid #333; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 50px rgba(0,0,0,0.8); transform: translateY(50px) scale(0.95); transition: 0.4s ease;
}
.terminal-overlay.active .terminal-window { transform: translateY(0) scale(1); }

.terminal-header {
  background: #1e1e1e; padding: 10px 20px; display: flex; justify-content: space-between;
  align-items: center; font-family: var(--font-main); font-size: 0.9rem; color: #a0a0a0;
  border-bottom: 1px solid #333;
}
#close-terminal { background: transparent; border: none; color: #ff5f56; font-size: 1.5rem; }

.terminal-body {
  padding: 20px; flex-grow: 1; overflow-y: auto; font-family: var(--font-mono); font-size: 1rem;
  color: #0f0; display: flex; flex-direction: column; gap: 8px;
}
.terminal-input-line {
  padding: 0 20px 20px 20px; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); color: #0f0;
}
#terminal-input {
  background: transparent; border: none; outline: none; color: #0f0; flex-grow: 1;
  font-family: var(--font-mono); font-size: 1rem;
}

/* SPLINE HERO CONTAINER FIX */
spline-viewer { width: 100%; height: 100%; min-height: 500px; }
[data-theme="light"] .terminal-trigger { background: rgba(0, 102, 255, 0.1); border-color: rgba(0, 102, 255, 0.3); color: #0066ff; }

footer { padding: 0; text-align: center; color: var(--text-muted); font-weight: 500; border-top: 1px solid var(--glass-border); margin-top: 100px; }

.footer-inner { 
  padding: 60px 40px 40px; 
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}

.footer-logo {
  font-size: 2rem; font-weight: 800; letter-spacing: 1px; color: var(--text);
}
.footer-logo span { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

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

.footer-links { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: var(--transition); position: relative;
}
.footer-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 1px;
  background: var(--primary); transition: width 0.3s ease;
}
.footer-links a:hover { color: var(--primary); }
.footer-links a:hover::after { width: 100%; }

.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  border-top: 1px solid var(--glass-border); padding-top: 20px; width: 100%;
}

.live-badge {
  background: rgba(0,240,255,0.07); border: 1px solid var(--border-glow);
  padding: 8px 18px; border-radius: 50px; font-family: var(--font-mono);
  font-size: 0.82rem; color: var(--primary); display: inline-flex; align-items: center; gap: 8px;
}
.live-dot {
  width: 8px; height: 8px; background: #ff0055; border-radius: 50%;
  box-shadow: 0 0 10px #ff0055; animation: pulse-glow 1.5s infinite;
}

/* SCROLL TO TOP */
.scroll-top-btn {
  position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
  background: linear-gradient(45deg, var(--primary), var(--tertiary));
  border: none; border-radius: 50%; color: #fff; display: flex;
  align-items: center; justify-content: center;
  z-index: 9999; cursor: pointer !important; opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,240,255,0.3);
  pointer-events: none;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top-btn:hover { box-shadow: 0 10px 30px rgba(0,240,255,0.5); transform: translateY(-4px); }
.scroll-top-btn svg { width: 22px; height: 22px; }

/* STATUS DOT */
.status-dot {
  width: 8px; height: 8px; background: #00ff88; border-radius: 50%;
  display: inline-block; margin-right: 6px;
  box-shadow: 0 0 8px #00ff88; animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #00ff88; }
  50% { opacity: 0.5; box-shadow: 0 0 15px #00ff88; }
}

/* STATS ROW */
.stats-row { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.stat-num {
  font-size: 2.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label {
  color: var(--primary); font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 1.5px; margin-top: 4px;
}

/* EDUCATION TIMELINE */
.edu-timeline { 
  display: flex; flex-direction: row; gap: 0; margin-top: 25px; position: relative; 
  align-items: stretch;
}

.edu-item { 
  display: flex; gap: 20px; padding: 0 40px 0 0; position: relative; flex: 1;
}
.edu-item:not(:last-child) {
  border-right: 1px solid var(--glass-border);
  margin-right: 40px;
}
.edu-item:last-child { padding-right: 0; }

.edu-dot {
  flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%;
  border: 2px solid var(--glass-border); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 1; margin-top: 3px;
}
.edu-dot span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--glass-border); transition: var(--transition);
}
.edu-item.active .edu-dot { border-color: var(--primary); }
.edu-item.active .edu-dot span { background: var(--primary); box-shadow: 0 0 8px var(--primary); }

.edu-content {}
.edu-year { 
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--primary); 
  letter-spacing: 1px; display: block; margin-bottom: 6px;
}
.edu-item:not(.active) .edu-year { color: var(--text-muted); }
.edu-content h4 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.edu-item:not(.active) .edu-content h4 { color: var(--text-muted); }
.edu-content p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 8px; }

.edu-badge {
  display: inline-block; padding: 3px 12px; border-radius: 50px; font-size: 0.75rem;
  font-weight: 600; font-family: var(--font-mono);
  background: rgba(0,240,255,0.1); color: var(--primary); border: 1px solid rgba(0,240,255,0.3);
}
.edu-badge.completed {
  background: rgba(255,255,255,0.05); color: var(--text-muted);
  border-color: var(--glass-border);
}

/* WORK EXPERIENCE LIST */
.exp-list { display: flex; flex-direction: column; gap: 20px; margin-top: 10px; width: 100%; }
.exp-item { border-left: 2px solid var(--glass-border); padding-left: 20px; transition: var(--transition); width: 100%; overflow: hidden; }
.exp-item:hover { border-color: var(--primary); padding-left: 30px; }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; flex-wrap: wrap; gap: 10px; }
.exp-company h4 { font-size: 1.3rem; color: var(--text); }
.exp-role { display: block; font-size: 0.85rem; color: var(--primary); font-family: var(--font-mono); font-weight: 600; margin-top: 2px; }
.exp-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); padding: 4px 10px; background: rgba(255,255,255,0.03); border-radius: 6px; }
.exp-item p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* CERTIFICATIONS CARD */
.cert-link-wrapper { text-decoration: none; color: inherit; display: block; }
.cert-card { 
  display: flex; align-items: center; gap: 20px; padding: 25px; 
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--glass-border); 
  border-radius: 20px; transition: var(--transition);
  position: relative;
}
.cert-card:hover { transform: scale(1.02); border-color: var(--primary); background: rgba(0, 240, 255, 0.03); }
.cert-icon { font-size: 2.5rem; filter: drop-shadow(0 0 10px var(--primary)); }
.cert-info h4 { font-size: 1.1rem; margin-bottom: 4px; }
.cert-info p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.cert-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary); font-weight: 600; }
.cert-download-icon {
  margin-left: auto; width: 35px; height: 35px; background: rgba(0, 240, 255, 0.1);
  color: var(--primary); border-radius: 50%; display: flex; align-items: center; 
  justify-content: center; font-weight: 800; font-size: 1.2rem;
  transition: var(--transition); border: 1px solid rgba(0, 240, 255, 0.2);
}
.cert-card:hover .cert-download-icon { background: var(--primary); color: #fff; transform: translateY(3px); }

/* CONTACT SOCIALS */
.contact-socials { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
.contact-social-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 50px;
  border: 1px solid var(--glass-border); background: var(--bg-card);
  color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: var(--transition); backdrop-filter: blur(10px);
}
.contact-social-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact-social-link:hover {
  color: var(--primary); border-color: var(--border-glow);
  background: rgba(0,240,255,0.08); transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,240,255,0.15);
}

/* SECTION HEADING ACCENT */
.section-title h2::after {
  content: ''; display: block; width: 60px; height: 4px; margin: 15px auto 0;
  background: linear-gradient(90deg, var(--primary), var(--tertiary));
  border-radius: 50px;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; justify-content: center; padding-top: 150px; }
  .hero-content h1 { font-size: 3.5rem; }
  .hero-btns { justify-content: center; }
  .hero-image { justify-content: center; margin-top: 40px; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-about, .bento-skills, .bento-edu, .bento-exp, .bento-certs { grid-column: span 1; grid-row: span 1; height: auto; }
  .contact-section { grid-template-columns: 1fr; padding: 60px 40px; border-radius: 40px; text-align: center; margin-top: 50px; gap: 40px; }
  header { padding: 20px 40px; }
  .menu-btn { display: flex; }
  #nav-list {
    position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: var(--bg-secondary);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1); backdrop-filter: blur(20px); border-left: 1px solid var(--glass-border);
    z-index: 1000;
  }
  #nav-list.active { right: 0; }
  #nav-list a { font-size: 1.5rem; }
  #project-modal .modal-header h2 { font-size: 2rem; }
  .contact-socials { justify-content: center; }
  .stats-row { justify-content: center; }
  .edu-timeline { flex-direction: column; gap: 25px; }
  .edu-item { padding: 0 0 0 0; flex: unset; }
  .edu-item:not(:last-child) { border-right: none; margin-right: 0; border-bottom: 1px solid var(--glass-border); padding-bottom: 25px; }
}

@media (max-width: 768px) {
  section { padding: 80px 5%; }
  .hero-content h1 { font-size: 2.8rem; }
  .hero-content p { font-size: 1.1rem; }
  .hero-btns { flex-direction: column; gap: 15px; width: 100%; }
  .hero-btns .btn-resume { width: 100%; text-align: center; }
  .hero-image img { max-width: 100%; width: 280px; height: auto; aspect-ratio: 4/5; }
  .logo { font-size: 1.4rem; }
  .module h3 { font-size: 1.8rem; }
  .module { padding: 25px 15px; border-radius: 25px; }
  .skills-grid { grid-template-columns: 1fr; }
  
  .projects-container { grid-template-columns: 1fr; gap: 30px; }
  .project-img { height: 200px; }
  .project-body { padding: 25px 20px; }
  .project-card h3 { font-size: 1.5rem; }
  
  .contact-info h2 { font-size: 2.2rem; }
  .contact-info a { font-size: 1.1rem !important; word-break: break-all; }
  .contact-section { padding: 30px 15px; margin: 30px 0; border-radius: 20px; gap: 30px; overflow: hidden; width: 100%; }
  .contact-form { width: 100%; }
  .contact-form input, .contact-form textarea { padding: 15px 15px; width: 100%; max-width: 100%; font-size: 1rem; border-radius: 15px; }
  .btn-submit { padding: 15px; font-size: 1rem; border-radius: 15px; }
  
  .terminal-window { width: 95%; height: 80vh; max-height: 500px; }
  .toast { right: 20px; left: 20px; bottom: -120px; justify-content: center; }
  .toast.show { bottom: 20px; }
  .header-right .btn-resume { display: none; }
  .scroll-top-btn { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content p { font-size: 1rem; }
  header { padding: 15px 20px; }
  .section-title h2 { font-size: 2.2rem; }
  .module h3 { font-size: 1.4rem; }
  .stat-num { font-size: 1.8rem; }
  .stats-row { gap: 15px; }
  .edu-content h4 { font-size: 0.95rem; }
  .exp-company h4 { font-size: 1.1rem; }
  .exp-header { flex-direction: column; align-items: flex-start; }
  .exp-date { align-self: flex-start; margin-top: 5px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-pill { padding: 12px; font-size: 0.85rem; }
  section { padding: 60px 4%; }
}

/* TOUCH DEVICES CURSOR FIX */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
  .cursor, .cursor-follower { display: none !important; opacity: 0 !important; visibility: hidden !important; }
  * { cursor: auto !important; }
}