/* Gerold Portfolio — custom styles (plain CSS, mostly Bootstrap utilities do the rest) */

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0d0716;
  color: #a99bc4;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

::selection {
  background: #8b3dff;
  color: #ffffff;
}

.text-gradient {
  background: linear-gradient(135deg, #8b3dff 0%, #d946ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-pad { padding: 90px 0; }
@media (max-width: 767.98px) { .section-pad { padding: 56px 0; } }

.section-tag {
  display: inline-block;
  color: #d946ef;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.section-title { font-size: 2.1rem; margin-bottom: .75rem; }
.section-sub { color: #7a6b95; max-width: 560px; }

.btn-gradient {
  background: linear-gradient(135deg, #8b3dff 0%, #d946ef 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: .8rem 1.9rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px -8px rgba(139, 61, 255, .6);
}
.btn-gradient:hover, .btn-gradient:focus {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(139, 61, 255, .75);
}

.btn-outline-brand {
  border: 1px solid rgba(255, 255, 255, .08);
  color: #ffffff;
  border-radius: 50px;
  padding: .8rem 1.9rem;
  font-weight: 600;
}
.btn-outline-brand:hover {
  background: #241938;
  color: #ffffff;
  border-color: #8b3dff;
}

.icon-circle {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #241938;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .08);
  transition: all .2s ease;
}
.icon-circle:hover {
  background: linear-gradient(135deg, #8b3dff 0%, #d946ef 100%);
  border-color: transparent;
}

/* Navbar */
.navbar-portfolio {
  padding: 18px 0;
  background: rgba(13, 7, 22, .7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, padding .3s ease;
}
.navbar-portfolio.is-scrolled {
  background: rgba(13, 7, 22, .92);
  border-bottom-color: rgba(255, 255, 255, .08);
  padding: 10px 0;
}
.navbar-portfolio .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.05rem;
}
.navbar-portfolio .navbar-brand img { width: 38px; height: 38px; }
.navbar-portfolio .nav-link { color: #a99bc4; font-weight: 500; padding: .5rem 1rem; }
.navbar-portfolio .nav-link:hover, .navbar-portfolio .nav-link.active { color: #ffffff; }

/* Hero */
.hero {
  padding-top: 160px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(139, 61, 255, .35) 0%, transparent 70%);
  pointer-events: none;
}
.hero .hero-eyebrow { color: #a99bc4; font-size: 1.1rem; }
.hero .hero-title { font-size: 3rem; line-height: 1.15; font-weight: 700; }
@media (max-width: 575.98px) { .hero .hero-title { font-size: 2.1rem; } }
.hero .hero-desc { max-width: 480px; }
.hero .hero-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  max-width: 460px;
  margin-left: auto;
}
.hero .hero-photo img { width: 100%; display: block; }
.hero .social-stack { display: flex; gap: 12px; }

/* Stats */
.stats-bar {
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.stats-bar .stat-item { text-align: center; padding: 34px 10px; }
.stats-bar .stat-item .stat-number { font-size: 2.25rem; font-weight: 700; color: #ffffff; }
.stats-bar .stat-item .stat-label { color: #7a6b95; font-size: .9rem; }

/* Services accordion */
.service-accordion .accordion-item {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px !important;
  margin-bottom: 16px;
  overflow: hidden;
}
.service-accordion .accordion-button {
  background: #1b1130;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: none;
}
.service-accordion .accordion-button::after { filter: invert(1) grayscale(1) brightness(2); }
.service-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #8b3dff 0%, #d946ef 100%);
  color: #ffffff;
}
.service-accordion .accordion-button .service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  margin-right: 14px;
  font-size: .85rem;
}
.service-accordion .accordion-body { background: #1b1130; color: #a99bc4; }

/* Recent works */
.work-filters .btn {
  border-radius: 50px;
  color: #a99bc4;
  border: 1px solid rgba(255, 255, 255, .08);
  padding: .45rem 1.2rem;
  font-weight: 500;
  margin: 0 6px 10px 0;
}
.work-filters .btn.active, .work-filters .btn:hover {
  background: linear-gradient(135deg, #8b3dff 0%, #d946ef 100%);
  color: #ffffff;
  border-color: transparent;
}
.work-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  margin-bottom: 24px;
}
.work-card img { width: 100%; height: 260px; object-fit: cover; transition: transform .4s ease; }
.work-card .work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s ease;
}
.work-card .work-title { color: #ffffff; font-weight: 600; margin-bottom: 2px; }
.work-card .work-cat { color: #d946ef; font-size: .85rem; }
.work-card:hover img { transform: scale(1.06); }
.work-card:hover .work-overlay { opacity: 1; }

/* Experience / education timeline */
.timeline-card {
  background: #1b1130;
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid #8b3dff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.timeline-card .timeline-period { color: #d946ef; font-size: .8rem; font-weight: 600; letter-spacing: .5px; }
.timeline-card .timeline-title { color: #ffffff; font-weight: 600; margin: 4px 0 2px; }
.timeline-card .timeline-place { color: #7a6b95; font-size: .9rem; }

/* Skills */
.skill-item { text-align: center; }
.skill-item .skill-ring {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #1b1130;
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: #d946ef;
  position: relative;
}
.skill-item .skill-percent {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: linear-gradient(135deg, #8b3dff 0%, #d946ef 100%);
  color: #ffffff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 50px;
}
.skill-item .skill-name { color: #ffffff; font-weight: 500; font-size: .95rem; }

/* Testimonials */
.testimonial-card {
  background: #1b1130;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 30px;
  height: 100%;
}
.testimonial-card .quote-icon { color: #8b3dff; font-size: 1.6rem; }
.testimonial-card .testimonial-text { color: #a99bc4; margin: 14px 0 20px; }
.testimonial-card .testimonial-person { display: flex; align-items: center; gap: 14px; }
.testimonial-card .testimonial-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-card .testimonial-person .name { color: #ffffff; font-weight: 600; }
.testimonial-card .testimonial-person .role { color: #7a6b95; font-size: .85rem; }

/* Blog */
.blog-card {
  background: #1b1130;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
}
.blog-card img { width: 100%; height: 190px; object-fit: cover; }
.blog-card .blog-body { padding: 20px; }
.blog-card .blog-meta { color: #7a6b95; font-size: .8rem; }
.blog-card .blog-title { color: #ffffff; font-weight: 600; margin: 8px 0; }
.blog-card .blog-link { color: #d946ef; font-weight: 600; font-size: .9rem; }

/* Contact */
.contact-panel {
  background: linear-gradient(135deg, #8b3dff 0%, #d946ef 100%);
  border-radius: 20px;
  padding: 50px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 767.98px) { .contact-panel { padding: 30px 22px; } }
.contact-panel .contact-title { color: #ffffff; font-weight: 700; font-size: 1.8rem; }
.contact-panel .contact-info-item { display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .9); margin-bottom: 16px; }
.contact-panel .contact-info-item .icon-circle { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .25); }
.contact-panel .form-control {
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #ffffff;
  border-radius: 10px;
  padding: .8rem 1rem;
}
.contact-panel .form-control::placeholder { color: rgba(255, 255, 255, .65); }
.contact-panel .form-control:focus { background: rgba(0, 0, 0, .25); border-color: #ffffff; color: #ffffff; box-shadow: none; }
.contact-panel .btn-send { background: #0d0716; color: #ffffff; border-radius: 50px; font-weight: 600; padding: .8rem 2.2rem; border: none; }
.contact-panel .btn-send:hover { background: #241938; }

#formStatus.text-success { color: #b7f5c9 !important; }
#formStatus.text-danger { color: #ffc9d1 !important; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 26px 0; color: #7a6b95; font-size: .9rem; }
.site-footer a { color: #a99bc4; }
.site-footer a:hover { color: #ffffff; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b3dff 0%, #d946ef 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 1000;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
