/* ==========================================================================
   Kyle Cesar D. Sobrevega - Personal Portfolio Stylesheet
   Modern Dark Developer Aesthetic | BS Information Systems Student
   ========================================================================== */

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

/* --- CSS Variables & Theme Design Tokens --- */
:root {
  --bg-dark: #080c14;
  --bg-card: #0f172a;
  --bg-card-hover: #162036;
  --bg-glass: rgba(15, 23, 42, 0.75);
  --bg-glass-card: rgba(255, 255, 255, 0.03);
  
  --accent-cyan: #00d2ff;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-teal: #14b8a6;
  --accent-glow: rgba(0, 210, 255, 0.25);
  --accent-glow-strong: rgba(0, 210, 255, 0.45);

  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;

  --border-light: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(0, 210, 255, 0.4);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 210, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(139, 92, 246, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-cyan {
  color: var(--accent-cyan) !important;
}

/* --- High Contrast Text Overrides for Dark Mode --- */
.text-muted {
  color: #cbd5e1 !important; /* High contrast silver-slate for paragraphs and descriptions */
}

.text-dim {
  color: #94a3b8 !important; /* Light slate gray */
}

.text-main {
  color: #ffffff !important;
}

p, .section-description, .hero-description, .project-description, .service-description {
  color: #cbd5e1 !important;
}

.form-label {
  color: var(--accent-cyan) !important;
  font-weight: 600 !important;
  font-size: 0.88rem;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-control-custom {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid var(--border-accent) !important;
  color: #ffffff !important;
  font-weight: 500;
}

.form-control-custom::placeholder {
  color: #94a3b8 !important; /* Bright visible placeholder */
  opacity: 1 !important;
}

.form-text {
  color: #cbd5e1 !important;
}

.terminal-title {
  color: #e2e8f0 !important;
}

.social-btn {
  color: var(--accent-cyan) !important;
  border-color: rgba(0, 210, 255, 0.4) !important;
  background: rgba(0, 210, 255, 0.08) !important;
}

.social-btn:hover {
  background: var(--accent-cyan) !important;
  color: #040810 !important;
  box-shadow: 0 0 15px var(--accent-glow) !important;
}

footer, footer p, footer .text-muted {
  color: #cbd5e1 !important;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 50%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.font-mono {
  font-family: var(--font-mono);
}

/* --- Scroll Progress Bar --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* --- Section Layout & Spacing --- */
section {
  padding: 100px 0;
  position: relative;
}

.section-title-wrapper {
  margin-bottom: 50px;
}

.section-subtitle {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.section-description {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Navigation Bar --- */
.navbar-custom {
  background-color: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
  transition: all var(--transition-normal);
  z-index: 1030;
}

.navbar-custom.scrolled {
  padding: 12px 0;
  background-color: rgba(8, 12, 20, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  transition: all var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan);
}

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

.navbar-toggler {
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 6px 12px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem var(--accent-glow);
}

/* --- Buttons & Action Elements --- */
.btn-glow-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #040810;
  font-weight: 600;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px var(--accent-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-glow-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--accent-glow-strong);
  color: #000000;
}

.btn-glow-outline {
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  border: 1px solid var(--border-accent);
  padding: 12px 28px;
  border-radius: 8px;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-glow-outline:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  padding-top: 130px;
  display: flex;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 210, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 580px;
}

/* Hero Visual Box */
.hero-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: transform var(--transition-normal);
}

.hero-visual-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
}

.terminal-header {
  background: #0b111e;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

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

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

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-badge {
  position: absolute;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-accent);
  padding: 10px 16px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-main);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: float 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.badge-top-left {
  top: 20px;
  left: -15px;
  animation-delay: 0s;
}

.badge-bottom-right {
  bottom: 20px;
  right: -15px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- About Me Section --- */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.interest-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.interest-tag {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.interest-tag:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.05);
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all var(--transition-normal);
  height: 100%;
}

.stat-box:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 210, 255, 0.1);
}

.stat-icon {
  font-size: 2rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

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

/* --- Skills Section --- */
.filter-tabs-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover, .filter-tab.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(59, 130, 246, 0.15));
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  transition: all var(--transition-normal);
}

.skill-category-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.skill-category-header i {
  font-size: 1.5rem;
  color: var(--accent-cyan);
}

.skill-category-header h4 {
  font-size: 1.2rem;
  margin: 0;
}

.skill-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-badge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all var(--transition-fast);
}

.skill-badge:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-accent);
}

.skill-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-info i {
  font-size: 1.1rem;
  color: var(--accent-blue);
}

.skill-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
}

.proficiency-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.proficiency-intermediate {
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.proficiency-familiar {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.proficiency-learning {
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* --- Projects Section --- */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: 0 15px 35px rgba(0, 210, 255, 0.12);
}

.project-img-box {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #0b111e;
}

.project-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-box img {
  transform: scale(1.06);
}

.project-category-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-accent);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-description {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
}

.btn-details {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--border-accent);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-details:hover {
  background: var(--accent-cyan);
  color: #040810;
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* --- Project Modal Customization --- */
.modal-custom .modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  color: var(--text-main);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-custom .modal-header {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 28px;
}

.modal-custom .modal-body {
  padding: 28px;
}

.modal-custom .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-project-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
  max-height: 380px;
  object-fit: cover;
}

.modal-section-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

/* --- Education Section --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 21px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 30px;
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  border-color: var(--border-accent);
  transform: translateX(5px);
}

.timeline-badge {
  display: inline-block;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* --- What I Do Section --- */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 32px;
  height: 100%;
  transition: all var(--transition-normal);
}

.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* --- Development Journey Section --- */
.journey-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  position: relative;
}

.journey-step {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  position: relative;
  transition: all var(--transition-fast);
}

.journey-step:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}

.journey-step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  display: block;
}

.journey-step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

/* --- Contact Section --- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.form-control-custom {
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-main);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control-custom:focus {
  background: rgba(8, 12, 20, 0.9);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px var(--accent-glow);
  outline: none;
}

.form-control-custom::placeholder {
  color: var(--text-dim);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

.social-placeholder-grid {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.08);
  transform: translateY(-3px);
}

/* Toast styling */
.toast-custom {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--accent-cyan) !important;
  color: var(--text-main) !important;
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3) !important;
}

/* --- Footer --- */
footer {
  background: #04070d;
  border-top: 1px solid var(--border-light);
  padding: 30px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Back to top float button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 990;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background: var(--accent-cyan);
  color: #040810;
  transform: translateY(-4px);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-section {
    padding-top: 100px;
  }
  .hero-visual-card {
    margin-top: 40px;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    padding-left: 55px;
  }
  .timeline-dot {
    left: 11px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .hero-tag {
    font-size: 0.78rem;
  }
  .floating-badge {
    display: none;
  }
  .about-card, .contact-card {
    padding: 24px;
  }
}
