/* ============================================================
   FOLIOFLOW PORTFOLIO — Custom Styles
   Bootstrap 4.6 · Poppins · Blue/White Design
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary:       #2563EB;
  --primary-dark:  #1d4ed8;
  --primary-light: #eff6ff;
  --secondary:     #64748b;
  --dark:          #1e293b;
  --light:         #f8fafc;
  --white:         #ffffff;
  --border:        #e2e8f0;
  --transition:    all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  overflow-x: hidden;
  background: var(--white);
}

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

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

.font-weight-600 { font-weight: 600 !important; }
.font-weight-700 { font-weight: 700 !important; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ---------- Section Commons ---------- */
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.section-divider {
  height: 4px;
  width: 56px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
#mainNav.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09) !important;
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark) !important;
  letter-spacing: -0.5px;
}
.brand-accent { color: var(--primary); }

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark) !important;
  padding: 0.5rem 0.85rem !important;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  transition: left 0.3s, right 0.3s;
  border-radius: 1px;
}
.nav-link:hover { color: var(--primary) !important; }
.nav-link:hover::after,
.nav-link.active-link::after { left: 0.85rem; right: 0.85rem; }
.nav-link.active-link { color: var(--primary) !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  min-height: 100vh;
  padding-top: 80px;
  background: linear-gradient(135deg, #f0f5ff 0%, #fafcff 60%, #eef3ff 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-blob-1 {
  width: 560px; height: 560px;
  top: -160px; right: -160px;
  background: rgba(37, 99, 235, 0.07);
}
.hero-blob-2 {
  width: 320px; height: 320px;
  bottom: -80px; left: -60px;
  background: rgba(37, 99, 235, 0.05);
}

.hero-greeting {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.hero-name {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.hero-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--secondary);
  max-width: 460px;
  margin-bottom: 2rem;
}
.hero-btns .btn {
  border-radius: 30px;
  padding: 0.7rem 2rem;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Hero photo */
.hero-photo-wrapper {
  position: relative;
  display: inline-block;
  max-width: 420px;
}
.hero-photo {
  width: 380px;
  max-width: 100%;
  height: 440px;
  /* object-fit: cover; */
   background-size: 100% 100%;  /* Forces the image to stretch and fit the container exactly */
    background-position: center; /* Centers the image content */
    background-repeat: no-repeat;
  object-position: top;
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(37, 99, 235, 0.22);
  position: relative;
  z-index: 1;
}
.hero-photo-wrapper::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 38px;
  border: 3px dashed rgba(37, 99, 235, 0.25);
  z-index: 0;
}

/* Floating badge */
.hero-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: var(--white);
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.badge-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.badge-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.3;
}

/* Social icons */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white) !important;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
  background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
}
.about-section .section-divider { background: rgba(255,255,255,0.5); }

.text-white-75 { color: rgba(255,255,255,0.82); }

.about-photo-frame {
  position: relative;
  display: inline-block;
}
.about-photo {
  width: 340px;
  max-width: 100%;
  height: 400px;
  /* object-fit: cover; */
  background-size: 100% 100%;  /* Forces the image to stretch and fit the container exactly */
    background-position: center; /* Centers the image content */
    background-repeat: no-repeat;
  object-position: top;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.about-photo-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  border: 3px solid rgba(255,255,255,0.25);
}

.info-item {
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}
.info-item i { color: rgba(255,255,255,0.6); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { background: var(--white); }

.service-card {
  background: var(--light);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.13);
  border-color: var(--primary);
  background: var(--white);
}
.service-icon {
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}
.service-card h5 { margin-top: 0.5rem; font-weight: 700; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-section { background: var(--light); }

/* Filter */
.filter-btn {
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  background: var(--white);
  transition: var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Cards */
.portfolio-card {
  position: relative;
  background: var(--dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}
.portfolio-card:hover {
  box-shadow: 0 16px 40px rgba(37,99,235,0.18);
}
.portfolio-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, opacity 0.3s;
}
.portfolio-card:hover img {
  transform: scale(1.07);
  opacity: 0.5;
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(37,99,235,0.92), rgba(37,99,235,0.55));
  opacity: 0;
  transition: opacity 0.35s;
  padding: 1.5rem;
  text-align: center;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.pf-category {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* ============================================================
   RESUME
   ============================================================ */
.resume-section { background: var(--white); }

.resume-col-title {
  font-size: 1.35rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary);
  z-index: 1;
}
.timeline-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 12px;
  border-radius: 20px;
}
.timeline-content h5 { font-size: 1rem; margin-bottom: 0; }
.timeline-content p { font-size: 0.88rem; margin-bottom: 0; }

/* Skill bars */
.skill-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
}
.skill-bar .progress-bar {
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  border-radius: 4px;
  transition: width 1.2s ease;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--dark); }

.contact-icon {
  width: 50px; height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: var(--transition);
}
.contact-info-item:hover .contact-icon {
  background: var(--primary);
  color: var(--white);
}

.contact-icon-2 {
  height: 50px;
  padding: 0 10px;
  min-width: 50px;
  border-radius: 5%;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: var(--transition);
}
.contact-info-item:hover .contact-icon-2 {
  background: var(--primary);
  color: var(--white);
}
.marquee {
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.form-control {
  border-radius: 10px;
  border: 1.5px solid var(--border);
  padding: 0.75rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  color: var(--primary-light);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}
textarea.form-control { resize: vertical; }

#submitBtn {
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
}
#submitBtn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.25); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-section { background: var(--dark); border-top: 1px solid var(--light);}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .hero-section { margin-top:30px;}
  .hero-name  { font-size: 2.6rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-photo { width: 300px; height: 360px; }
}

@media (max-width: 767px) {
  .hero-section { margin-top:30px;}
  .hero-name  { font-size: 2rem; }
  .hero-title { font-size: 1.25rem; }
  .section-title { font-size: 1.8rem; }
  .hero-badge { left: 0; bottom: 16px; }
}

@media (max-width: 575px) {
  .hero-section { margin-top:30px;}
  .hero-name  { font-size: 1.75rem; }
  .hero-title { font-size: 1.1rem; }
  .hero-btns .btn { display: block; width: 100%; margin-right: 0 !important; margin-bottom: 0.75rem; }
  .hero-desc  { font-size: 0.9rem; }
  .social-links { justify-content: center; }
  .section-title { font-size: 1.6rem; }
  .portfolio-card img { height: 200px; }
  .about-photo { height: 300px; }
}

/* ============================================================
   REVEAL ON SCROLL (lightweight fade-up)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
  .cv-card {
      background: linear-gradient(135deg, var(--primary-dark), var(--primary));
      border-radius: 8px;
      padding: 2rem; color: #fff;
      box-shadow: var(--shadow-2);
      display: flex; align-items: center; gap: 1.5rem;
      flex-wrap: wrap;
    }
    .cv-card-icon { font-size: 3rem; opacity: .8; flex-shrink: 0; }
    .cv-card-text h5 { font-weight: 700; margin-bottom: .25rem; }
    .cv-card-text p { margin: 0; opacity: .8; font-size: .9rem; }