/* ===================================================
   MODERN.CSS — Portfolio Visual Upgrade
   Layered on top of style.css — overrides only
   =================================================== */

/* ---------------------------------------------- /*
 * CSS Variables / Design Tokens
/* ---------------------------------------------- */

:root {
  --accent: #E7746F;
  --accent-dark: #c95a55;
  --accent-light: #f0a09c;
  --dark: #1a1a2e;
  --dark-mid: #222;
  --text: #444;
  --text-light: #777;
  --bg-gray: #f8f9fa;
  --white: #fff;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.13);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.18);
  --radius: 10px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------------------------------------------- /*
 * Typography
/* ---------------------------------------------- */

body {
  font-family: 'Inter', 'Raleway', sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', 'Raleway', sans-serif;
  letter-spacing: 2px;
}

h2 {
  font-size: 28px;
  letter-spacing: 4px;
}

h3.timeline-title {
  font-size: 14px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #333;
}

a {
  color: var(--accent);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

/* ---------------------------------------------- /*
 * Navigation
/* ---------------------------------------------- */

.header {
  border-bottom: none;
  box-shadow: var(--shadow-sm);
}

.navbar-custom {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 4px 0;
}

.navbar-custom .navbar-brand {
  font-family: 'Poppins', cursive;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark) !important;
  letter-spacing: 1px;
}

.navbar-custom .navbar-brand:hover {
  color: var(--accent) !important;
}

.navbar-custom .navbar-nav>li>a {
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 600;
  padding: 20px 14px;
  color: #444 !important;
  position: relative;
}

.navbar-custom .navbar-nav>li>a::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.navbar-custom .navbar-nav>li>a:hover::after,
.navbar-custom .navbar-nav>li.active>a::after {
  transform: scaleX(1);
}

.navbar-custom .nav li a:hover,
.navbar-custom .nav li.active a {
  color: var(--accent) !important;
  background: none;
}

/* ---------------------------------------------- /*
 * Hero Section
/* ---------------------------------------------- */

.home-overlay {
  background: linear-gradient(160deg,
      rgba(20, 20, 40, 0.75) 0%,
      rgba(231, 116, 111, 0.25) 100%);
  background-image: none;
}

.intro h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 8px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 18px;
}

.start {
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8), 0 2px 20px rgba(0, 0, 0, 0.5);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.9;
  font-weight: 500;
}

.scroll-down {
  border-color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.scroll-down:hover {
  border-color: var(--accent);
  background: rgba(231, 116, 111, 0.15);
}

/* ---------------------------------------------- /*
 * Section Headers & Divider
/* ---------------------------------------------- */

.pfblock {
  padding: 70px 0;
}

.pfblock-gray {
  background: var(--bg-gray);
}

.pfblock-header {
  margin: 0 0 50px;
}

.pfblock-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #1a1a2e;
}

.pfblock-line {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  width: 60px;
  height: 3px;
  border-radius: 3px;
  margin: 20px auto 0;
}

.pfblock-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.9;
}

/* ---------------------------------------------- /*
 * Education Icon Boxes
/* ---------------------------------------------- */

.iconbox {
  background: var(--white);
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 36px 24px;
  transition: var(--transition);
}

.iconbox:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--accent);
}

.iconbox-icon {
  color: var(--accent);
  font-size: 36px;
  margin-bottom: 16px;
}

.iconbox-title {
  color: #222;
  font-family: 'Poppins', sans-serif;
}

/* ---------------------------------------------- /*
 * Timeline
/* ---------------------------------------------- */

.timeline:before {
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  width: 2px;
}

.timeline>li>.timeline-panel {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.timeline>li>.timeline-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--accent);
}

.timeline>li.timeline-inverted>.timeline-panel {
  border-left: none;
  border-right: 3px solid transparent;
}

.timeline>li.timeline-inverted>.timeline-panel:hover {
  border-right-color: var(--accent);
  border-left-color: transparent;
}

/* cleaner arrow connectors */
.timeline>li>.timeline-panel:before {
  border-left-color: #e8e8e8;
}

.timeline>li>.timeline-panel:after {
  border-left-color: var(--white);
}

.timeline>li.timeline-inverted>.timeline-panel:before {
  border-right-color: #e8e8e8;
}

.timeline>li.timeline-inverted>.timeline-panel:after {
  border-right-color: var(--white);
}

.timeline-heading .text-muted {
  font-size: 12px;
  letter-spacing: 0.5px;
  margin: 3px 0;
}

.timeline>li>.timeline-badge {
  width: 46px;
  height: 46px;
  line-height: 46px;
  font-size: 1.1em;
  box-shadow: 0 0 0 4px rgba(231, 116, 111, 0.15);
  transition: var(--transition);
}

.timeline>li>.timeline-badge:hover {
  box-shadow: 0 0 0 6px rgba(231, 116, 111, 0.3);
  transform: scale(1.1);
}

.timeline-badge.success {
  background-color: #2ecc71 !important;
}

.timeline-badge.warning {
  background-color: var(--accent) !important;
}

.timeline-badge.danger {
  background-color: #e74c3c !important;
}

.timeline-badge.info {
  background-color: #3498db !important;
}

/* ---------------------------------------------- /*
 * Skills — Pill badges
/* ---------------------------------------------- */

.skills ul {
  list-style: none;
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills ul li {
  background: var(--white);
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.skills ul li:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 116, 111, 0.35);
}

/* ---------------------------------------------- /*
 * Portfolio Grid
/* ---------------------------------------------- */

figure.effect-bubba {
  background: var(--dark);
  border-radius: var(--radius);
  overflow: hidden;
}

figure.effect-bubba img {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

figure.effect-bubba:hover img {
  opacity: 0.3;
  transform: scale(1.05);
}

/* ---------------------------------------------- /*
 * Timeline images
/* ---------------------------------------------- */

.timeline-body img.img-rounded {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 10px 0;
  transition: var(--transition);
}

.timeline-body img.img-rounded:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.01);
}

/* ---------------------------------------------- /*
 * Footer
/* ---------------------------------------------- */

#footer {
  background: linear-gradient(160deg, #1a1a2e 0%, #2d1b2e 100%);
  padding: 60px 0 40px;
  border-top: 3px solid var(--accent);
}

#footer .pfblock-title {
  color: var(--white);
  letter-spacing: 4px;
}

#footer .pfblock-line {
  margin: 20px auto;
}

#footer .pfblock-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 2;
}

#footer .pfblock-subtitle a {
  color: var(--accent-light);
}

#footer .pfblock-subtitle a:hover {
  color: var(--white);
}

.heart {
  font-size: 18px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.5);
}

.copyright {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  letter-spacing: 1px;
}

/* ---------------------------------------------- /*
 * Scroll Up Button
/* ---------------------------------------------- */

.scroll-up a {
  background: var(--accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 36px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  font-size: 18px;
}

.scroll-up a:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------------------------------------------- /*
 * Preloader
/* ---------------------------------------------- */

#preloader {
  background: var(--dark);
}

/* ---------------------------------------------- /*
 * Responsive tweaks
/* ---------------------------------------------- */

@media (max-width: 767px) {
  .intro h1 {
    font-size: 34px;
    letter-spacing: 4px;
  }

  .skills ul {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .intro h1 {
    font-size: 26px;
    letter-spacing: 3px;
  }
}