/* =============================================
   iOS Glassmorphism Theme Overrides
   ============================================= */

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

/* ---------- Base & Typography ---------- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Header ---------- */
.header {
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(30, 30, 60, 0.8)), url(../imgs/header.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.header .header-content .header-title {
  color: #fff;
  text-shadow: 0 2px 20px rgba(248, 92, 112, 0.3);
}

.header .header-content .header-mono {
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 3px;
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(15, 15, 26, 0.7) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hamburger toggler - white lines on dark bg */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}



.navbar .nav-link {
  color: rgba(255, 255, 255, 0.75) !important;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #F85C70 !important;
}

.navbar .brand .brand-txt .brand-title {
  color: #fff;
}

.navbar .brand .brand-txt .brand-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.navbar .brand .brand-img {
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ---------- Glass Card Mixin ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(248, 92, 112, 0.15);
  border-color: rgba(248, 92, 112, 0.2);
}

/* ---------- About Section ---------- */
.about-section {
  background: #0f0f1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-section .about-card {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: #e0e0e0;
}

.about-section .about-card:last-child {
  border-right: none;
}

.about-section .about-card h3 {
  color: #fff;
}

.about-section .about-card h5 {
  color: rgba(255, 255, 255, 0.85);
}

.about-section .about-card p {
  color: rgba(255, 255, 255, 0.6);
}

.about-section .about-card .info li {
  color: rgba(255, 255, 255, 0.7);
}

.about-section .about-card .info li span {
  color: #F85C70;
}

.about-section .about-card .subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.about-section .about-card h6 {
  color: rgba(255, 255, 255, 0.9);
}

.about-section .about-card .line {
  background: linear-gradient(90deg, #F85C70, #A16AE8);
}

/* ---------- Resume Section ---------- */
.section {
  background: #0f0f1a;
}

.section h2 {
  color: #fff;
}

#resume .card {
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#resume .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(248, 92, 112, 0.12);
}

#resume .card .card-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#resume .card .card-header h4 {
  color: #fff;
}

#resume .card .card-body {
  color: rgba(255, 255, 255, 0.7);
}

#resume .card .card-body h6 {
  color: rgba(255, 255, 255, 0.9);
}

#resume .card .card-body .subtitle {
  color: rgba(255, 255, 255, 0.5);
}

#resume .card .card-body P {
  color: rgba(255, 255, 255, 0.7);
}

#resume .card .card-body hr {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Progress Bars ---------- */
.progress {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.progress-bar.bg-danger {
  background: linear-gradient(90deg, #F85C70, #FC8BC0) !important;
  border-radius: 10px;
}

/* ---------- Stats Section (Dark) ---------- */
.bg-dark {
  background: rgba(20, 20, 40, 0.95) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.bg-dark .text-light,
.bg-dark .text-danger,
.bg-dark p {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ---------- Domain Expertise / Services Section ---------- */
#service {
  background: #0f0f1a;
}

#service h2 {
  color: #fff;
}

#service .card {
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#service .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(248, 92, 112, 0.15);
  border-color: rgba(248, 92, 112, 0.25);
}

#service .card .card-header.has-icon {
  background: transparent;
  border-bottom: none;
}

#service .card .card-header.has-icon i {
  font-size: 2.4rem;
  background: linear-gradient(135deg, #F85C70, #A16AE8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#service .card .card-body .card-title {
  color: #fff !important;
}

#service .card .card-body .subtitle {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- CTA Section ---------- */
.section.bg-dark.py-5 {
  background: linear-gradient(135deg, rgba(248, 92, 112, 0.15), rgba(161, 106, 232, 0.15)) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- Contact Section - Elegant Glass ---------- */
.contact {
  background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
  min-height: auto;
  padding: 80px 0;
}

.contact .map {
  display: none;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.04) !important;
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  padding: 50px 40px !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(248, 92, 112, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-info-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(161, 106, 232, 0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact .contact-title {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 35px;
}

.contact .contact-title::after {
  background: linear-gradient(90deg, #F85C70, #A16AE8);
  height: 3px;
  width: 40px;
  border-radius: 2px;
}

.contact h6 {
  color: rgba(255, 255, 255, 0.85);
}

.contact h6 .text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
}

.contact .ti-mobile,
.contact .ti-map-alt,
.contact .ti-envelope {
  color: #F85C70;
  font-size: 1.2rem;
}

.contact .row.mb-2 {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease;
  border-radius: 12px;
  margin-bottom: 4px !important;
  padding-left: 8px;
}

.contact .row.mb-2:last-of-type {
  border-bottom: none;
}

.contact .row.mb-2:hover {
  background: rgba(255, 255, 255, 0.03);
}

.contact .social-icons .social-link {
  color: rgba(255, 255, 255, 0.6) !important;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.contact .social-icons .social-link:hover {
  background: rgba(248, 92, 112, 0.15);
  border-color: rgba(248, 92, 112, 0.3);
  color: #F85C70 !important;
  transform: translateY(-2px);
}

/* ---------- Header Social Icons ---------- */
.header .social-icons .social-link {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.3s ease, transform 0.3s ease;
}

.header .social-icons .social-link:hover {
  color: #F85C70 !important;
  transform: translateY(-2px);
}

/* ---------- About Social Icons ---------- */
.about-section .social-icons .social-link {
  color: rgba(255, 255, 255, 0.5);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.about-section .social-icons .social-link:hover {
  background: rgba(248, 92, 112, 0.15);
  border-color: rgba(248, 92, 112, 0.3);
  color: #F85C70;
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  background: rgba(10, 10, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn.bg-primary {
  background: linear-gradient(135deg, #F85C70, #e0445a) !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 12px 32px !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(248, 92, 112, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn.bg-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(248, 92, 112, 0.4);
}

/* ---------- Line accent ---------- */
.line {
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #F85C70, #A16AE8);
  border-radius: 2px;
}

/* ---------- text-danger override for gradient accent ---------- */
.title.text-danger {
  background: linear-gradient(90deg, #F85C70, #FC8BC0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0f0f1a;
}

::-webkit-scrollbar-thumb {
  background: rgba(248, 92, 112, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(248, 92, 112, 0.5);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(248, 92, 112, 0.3);
  color: #fff;
}

/* ---------- Smooth scrolling ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- Responsive Adjustments ---------- */

/* Mobile brand — outside collapse, mimics desktop affix scroll effect */
.mobile-brand {
  display: none; /* hidden on desktop */
}

@media (max-width: 991.98px) {
  .about-section .about-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 30px;
  }

  .about-section .about-card:last-child {
    border-bottom: none;
  }

  .contact {
    padding: 60px 0;
  }

  .contact-info-card {
    padding: 35px 25px !important;
  }

  /* Mobile brand: hidden initially, fades in on scroll */
  .mobile-brand {
    display: block !important;
    text-align: center;
    flex: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
  }

  .mobile-brand .brand-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
  }

  .mobile-brand .brand-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
  }

  /* When user scrolls (affix class applied), fade in the name */
  .navbar.affix .mobile-brand {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Center nav items on mobile */
  .navbar .collapse.show .navbar-nav,
  .navbar .collapsing .navbar-nav {
    text-align: center;
  }

  .navbar .collapse.show .navbar-nav .nav-item,
  .navbar .collapsing .navbar-nav .nav-item {
    text-align: center;
  }

  .navbar .navbar-toggler {
    margin-left: auto;
  }
}

@media (max-width: 767.98px) {
  .contact .row.mb-2 {
    padding: 10px 0;
  }
}