/* ==========================================================================
   Yubraj Shrestha - Portfolio Website Stylesheet
   Theme: Modern, Elegant, Glassmorphism, Dark/Light Compatible
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Theme Configuration
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --secondary: #0EA5E9;
  --accent: #38BDF8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  
  /* Dark Mode Default Variables */
  --bg-color: #0F172A;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --bg-secondary: #1E293B;
  --nav-bg: rgba(15, 23, 42, 0.85);
  --text-color: #F8FAFC;
  --text-muted: #94A3B8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(56, 189, 248, 0.3);
  --glass-bg: rgba(30, 41, 59, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.35);

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Radius & Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-color: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #FFFFFF;
  --bg-secondary: #F1F5F9;
  --nav-bg: rgba(248, 250, 252, 0.88);
  --text-color: #0F172A;
  --text-muted: #64748B;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-highlight: rgba(37, 99, 235, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.08);
  --shadow-color: rgba(15, 23, 42, 0.08);
}

/* --------------------------------------------------------------------------
   2. Reset & Universal Styles
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.25;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selection Color */
::selection {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   3. Preloader
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

.preloader-text {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1.5px;
}

/* --------------------------------------------------------------------------
   4. Common Utility Components & Section Layouts
   -------------------------------------------------------------------------- */
section {
  padding: 100px 0;
  position: relative;
}

.section-title-wrap {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-subtitle {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

[data-theme="light"] .section-subtitle {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Glassmorphism Card Base */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--shadow-color);
}

/* Custom Buttons */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

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

.btn-outline-custom:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* --------------------------------------------------------------------------
   5. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  background: transparent;
  transition: padding var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar-custom.scrolled {
  padding: 12px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px var(--shadow-color);
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-color) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent) !important;
  background: rgba(56, 189, 248, 0.1);
}

[data-theme="light"] .nav-link:hover, 
[data-theme="light"] .nav-link.active {
  color: var(--primary) !important;
  background: rgba(37, 99, 235, 0.08);
}

/* Dark/Light Mode Toggle Button */
.theme-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  margin-left: 10px;
}

.theme-toggle-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: rotate(18deg);
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#particles-js,
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 18px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .hero-greeting {
  color: var(--primary);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.typed-text-wrap {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
  min-height: 2.2rem;
}

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

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-normal);
}

.social-icon:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* Profile Image Container */
.hero-image-wrap {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-image-inner {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  padding: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  animation: morphing 8s ease-in-out infinite;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
}

@keyframes morphing {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Hero Badge Overlay */
.hero-experience-badge {
  position: absolute;
  bottom: 10px;
  left: -20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-highlight);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px var(--shadow-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.badge-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.badge-text strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
}

.badge-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. About Section & Statistics
   -------------------------------------------------------------------------- */
.about-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-highlight);
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

[data-theme="light"] .stat-number {
  color: var(--primary);
}

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

/* --------------------------------------------------------------------------
   8. Skills Section
   -------------------------------------------------------------------------- */
.skill-box {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.skill-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-name i {
  color: var(--accent);
}

[data-theme="light"] .skill-name i {
  color: var(--primary);
}

.skill-bar-bg {
  width: 100%;
  height: 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.1, 0.42, 0.85, 1);
}

/* Professional Soft Skills Circle Cards */
.soft-skill-card {
  text-align: center;
  padding: 1.5rem;
}

.soft-skill-icon {
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

[data-theme="light"] .soft-skill-icon {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   9. Services Section
   -------------------------------------------------------------------------- */
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.2));
  border: 1px solid var(--border-highlight);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   10. Portfolio Section
   -------------------------------------------------------------------------- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.portfolio-item {
  transition: var(--transition-normal);
}

.portfolio-card {
  overflow: hidden;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

[data-theme="light"] .portfolio-category {
  color: var(--primary);
}

.portfolio-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.tech-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. Timelines (Experience & Education)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--border-highlight);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 40px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border: 4px solid var(--bg-color);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 15px var(--primary);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-date {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

[data-theme="light"] .timeline-date {
  color: var(--primary);
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

[data-theme="light"] .timeline-subtitle {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   12. Certifications Section
   -------------------------------------------------------------------------- */
.cert-card {
  text-align: center;
  height: 100%;
}

.cert-icon-wrap {
  width: 70px;
  height: 70px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--border-highlight);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem;
}

.cert-title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.cert-issuer {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.cert-year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   13. Testimonials Section
   -------------------------------------------------------------------------- */
.testimonial-card {
  text-align: center;
  padding: 2.5rem;
  max-width: 750px;
  margin: 0 auto;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--primary);
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.testimonial-role {
  color: var(--accent);
  font-size: 0.9rem;
}

[data-theme="light"] .testimonial-role {
  color: var(--primary);
}

.star-rating {
  color: #F59E0B;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   14. Blog Section
   -------------------------------------------------------------------------- */
.blog-card {
  padding: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-img-wrap img {
  transform: scale(1.08);
}

.blog-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   15. Contact Section & Map
   -------------------------------------------------------------------------- */
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--border-highlight);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

[data-theme="light"] .contact-icon {
  color: var(--primary);
}

.contact-details h5 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Form Styles */
.form-control-custom {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  transition: var(--transition-normal);
}

.form-control-custom:focus {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--text-color);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
  outline: none;
}

/* Map Wrap */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  height: 280px;
  margin-top: 1.5rem;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   16. Footer & Back To Top
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.copyright {
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
  padding-top: 25px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Back to Top Floating Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: var(--primary-hover);
  transform: translateY(-4px);
}
