/*--------------------------------------------------------------
# Portfolio — Tristan Bringuier
# Palette : bleu nuit / gris / accent slate-blue
# Fonts  : Inter (body), JetBrains Mono (accents code)
--------------------------------------------------------------*/

/* ---- Variables ---- */
:root {
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Inter", sans-serif;
  --mono-font: "JetBrains Mono", "Fira Code", monospace;
  --nav-font: "Inter", sans-serif;

  /* Couleurs globales */
  --background-color: #f8f9fb;
  --default-color: #2c3e50;
  --heading-color: #0f172a;
  --accent-color: #3b82f6;
  --accent-color-dark: #2563eb;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --muted-color: #64748b;
  --border-color: #e2e8f0;

  /* Sidebar */
  --sidebar-bg: #0f172a;
  --sidebar-color: #94a3b8;
  --sidebar-hover: #e2e8f0;
  --sidebar-width: 280px;

  /* Nav */
  --nav-color: #94a3b8;
  --nav-hover-color: #f1f5f9;
  --nav-mobile-background-color: #0f172a;

  scroll-behavior: smooth;
}

.light-background {
  --background-color: #f1f5f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #0f172a;
  --default-color: #e2e8f0;
  --heading-color: #f8fafc;
  --surface-color: #1e293b;
  --contrast-color: #ffffff;
}

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

body {
  margin: 0;
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

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

/*--------------------------------------------------------------
# Sidebar / Header
--------------------------------------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  padding: 0 20px;
  overflow-y: auto;
  z-index: 997;
  transition: left 0.3s ease;
  border-right: 1px solid rgba(148, 163, 184, 0.1);
}

.header .profile-img img {
  display: block;
  margin: 24px auto 12px;
  width: 110px;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.2);
  transition: border-color 0.3s;
}

.header .profile-img img:hover {
  border-color: var(--accent-color);
}

.header .logo {
  line-height: 1;
  margin-bottom: 12px;
}

.header .logo h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.header .social-links {
  margin: 0 0 20px;
}

.header .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--sidebar-color);
  font-size: 15px;
  margin: 0 3px;
  transition: all 0.2s ease;
}

.header .social-links a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-1px);
}

/* Desktop : push main content */
@media (min-width: 1200px) {
  .header ~ main,
  .header ~ #footer {
    margin-left: var(--sidebar-width);
  }
}

/* Mobile : hidden by default */
@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

/* Toggle button */
.header .header-toggle {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.header .header-toggle:hover {
  background: var(--accent-color-dark);
  transform: scale(1.05);
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 11px 12px;
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  border-radius: 8px;
  margin-bottom: 2px;
  transition: all 0.2s ease;
}

.navmenu a .navicon {
  font-size: 18px;
  margin-right: 10px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
  background: rgba(148, 163, 184, 0.08);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon {
  color: var(--accent-color);
  opacity: 1;
}

/*--------------------------------------------------------------
# Scroll Top
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 16px;
  bottom: -15px;
  z-index: 99999;
  background: var(--accent-color);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.25);
}

.scroll-top i {
  font-size: 22px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background: var(--accent-color-dark);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 16px;
}

/*--------------------------------------------------------------
# Disable AOS delay on mobile
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 48px;
  position: relative;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 16px;
  position: relative;
  letter-spacing: -0.02em;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
  border-radius: 2px;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted-color);
  font-size: 15px;
  line-height: 1.6;
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero::before {
  content: "";
  background: rgba(15, 23, 42, 0.75);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 8px 0 0;
  font-size: 22px;
  color: #cbd5e1;
}

.hero p span {
  color: #f8fafc;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 2px;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }
  .hero p {
    font-size: 17px;
  }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 22px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.about .content ul strong {
  margin-right: 8px;
  color: var(--heading-color);
  min-width: 110px;
}

.about .content ul i {
  font-size: 14px;
  margin-right: 6px;
  color: var(--accent-color);
}

.about .content p.py-3 {
  color: var(--muted-color);
  line-height: 1.8;
}

.about .img-fluid {
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skills .skill-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skills .skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.skills .skill-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--heading-color);
  display: flex;
  align-items: center;
}

.skills .skill-card h4 i {
  color: var(--accent-color);
  font-size: 20px;
}

.skills .skill-card .list-group-item {
  border: none;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted-color);
  background: transparent;
  border-bottom: 1px solid var(--border-color);
}

.skills .skill-card .list-group-item:last-child {
  border-bottom: none;
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 20px;
  color: var(--heading-color);
  display: flex;
  align-items: center;
}

.resume .resume-title i {
  color: var(--accent-color);
}

.resume .resume-item {
  padding: 0 0 20px 24px;
  margin-top: -2px;
  border-left: 2px solid var(--border-color);
  position: relative;
}

.resume .resume-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 4px;
  line-height: 1.4;
}

.resume .resume-item h5 {
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-color);
  border-radius: 6px;
  margin-bottom: 8px;
  font-family: var(--mono-font);
}

.resume .resume-item .resume-location {
  font-size: 14px;
  color: var(--muted-color);
  margin-bottom: 8px;
}

.resume .resume-item ul {
  padding-left: 18px;
  margin: 0;
}

.resume .resume-item ul li {
  padding-bottom: 6px;
  font-size: 14px;
  color: var(--muted-color);
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  left: -7px;
  top: 4px;
  background: var(--background-color);
  border: 2px solid var(--accent-color);
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/

/* Filter buttons */
.portfolio-filters {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-filters li {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-color);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.portfolio-filters li i {
  font-size: 15px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.portfolio-filters li:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: rgba(59, 130, 246, 0.04);
}

.portfolio-filters li:hover i {
  opacity: 1;
}

.portfolio-filters li.filter-active {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.portfolio-filters li.filter-active i {
  opacity: 1;
  color: var(--contrast-color);
}

@media (max-width: 575px) {
  .portfolio-filters {
    gap: 6px;
  }

  .portfolio-filters li {
    padding: 6px 14px;
    font-size: 13px;
  }

  .portfolio-filters li i {
    font-size: 13px;
  }
}

/* Cards */
.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
}

.portfolio .portfolio-content img {
  transition: transform 0.4s ease;
  width: 100%;
}

.portfolio .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all 0.3s ease;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 8px;
}

.portfolio .portfolio-content .portfolio-info p {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 16px;
  max-width: 240px;
}

.portfolio .portfolio-content .portfolio-info .details-link {
  color: #f8fafc;
  font-size: 24px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.2);
}

.portfolio .portfolio-content .portfolio-info .details-link:hover {
  background: var(--accent-color);
  color: #fff;
}

.portfolio .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

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

/* Modals */
.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.15);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
}

.modal-header .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
}

.modal-body {
  padding: 24px;
  line-height: 1.8;
  color: var(--muted-color);
  font-size: 14px;
}

.modal-body strong {
  color: var(--heading-color);
  font-weight: 600;
}

/*--------------------------------------------------------------
# Certifications
--------------------------------------------------------------*/
.certifications .certification-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certifications .certification-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.certifications .certification-card i {
  color: var(--accent-color);
  font-size: 22px;
  flex-shrink: 0;
}

.certifications .certification-card span {
  font-size: 14px;
  font-weight: 500;
  color: var(--heading-color);
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .testimonial-item {
  box-sizing: content-box;
  text-align: center;
  min-height: 280px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 80px;
  border-radius: 50%;
  margin: 0 auto;
  border: 3px solid var(--border-color);
}

.testimonials .testimonial-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 12px 0 4px;
}

.testimonials .testimonial-item h4 {
  font-size: 13px;
  color: var(--muted-color);
  margin: 0;
  font-weight: 500;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: rgba(59, 130, 246, 0.3);
  font-size: 24px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  position: relative;
  left: -4px;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  position: relative;
  right: -4px;
  top: 8px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 28px;
  padding: 20px 24px;
  background: var(--surface-color);
  position: relative;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  max-width: 640px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted-color);
}

.testimonials .testimonial-item p::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 16px solid var(--surface-color);
  border-right: 16px solid transparent;
  border-left: 16px solid transparent;
  position: absolute;
  bottom: -16px;
  left: calc(50% - 16px);
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 32px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--border-color);
  opacity: 1;
  border-radius: 50%;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-wrap {
  background: var(--surface-color);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.contact .info-item {
  margin-bottom: 28px;
}

.contact .info-item:last-child {
  margin-bottom: 0;
}

.contact .info-item i {
  font-size: 18px;
  color: var(--accent-color);
  background: rgba(59, 130, 246, 0.08);
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  transition: all 0.2s ease;
  margin-right: 14px;
  flex-shrink: 0;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .info-item h3 {
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--muted-color);
}

.contact .cta-box .border {
  border-color: var(--border-color) !important;
  border-radius: 12px !important;
  background: var(--surface-color);
}

.contact .cta-box h3 {
  font-size: 18px;
  font-weight: 700;
}

.contact .cta-box p {
  color: var(--muted-color);
  font-size: 14px;
}

/* Buttons */
.btn-primary {
  background: var(--accent-color);
  border-color: var(--accent-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-color-dark);
  border-color: var(--accent-color-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-outline-secondary {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-color: var(--border-color);
  color: var(--heading-color);
  transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
  background: var(--heading-color);
  border-color: var(--heading-color);
  color: var(--contrast-color);
  transform: translateY(-1px);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  color: var(--muted-color);
  background: var(--background-color);
  font-size: 13px;
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
}

/*--------------------------------------------------------------
# Responsive Fine-Tuning
--------------------------------------------------------------*/

/* Tablets */
@media (max-width: 991px) {
  .section-title h2 {
    font-size: 24px;
  }

  section,
  .section {
    padding: 48px 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .section-title {
    padding-bottom: 32px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .about .content ul li {
    flex-direction: column;
    align-items: flex-start;
  }

  .about .content ul strong {
    min-width: auto;
    margin-bottom: 2px;
  }

  .resume .resume-item h4 {
    font-size: 15px;
  }

  .resume .resume-item h5 {
    font-size: 12px;
  }

  .contact .cta-box .d-flex {
    flex-direction: column;
  }

  .contact .cta-box .btn {
    width: 100%;
    text-align: center;
  }

  .stats-row .stat-number {
    font-size: 28px;
  }

  .stats-row .stat-card {
    padding: 16px 10px;
  }

  .stats-row .stat-card p {
    font-size: 12px;
  }

  .hero-scroll-btn {
    bottom: 20px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .certifications .certification-card {
    padding: 14px 16px;
    gap: 10px;
  }

  .certifications .certification-card span {
    font-size: 13px;
    line-height: 1.4;
  }

  .testimonials .testimonial-item p {
    padding: 16px 18px;
    font-size: 13px;
    max-width: 100%;
  }
}

/* Small mobile */
@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }

  .skills .skill-card {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Touch / Mobile — Portfolio always visible
--------------------------------------------------------------*/
@media (hover: none), (max-width: 768px) {
  .portfolio .portfolio-content .portfolio-info {
    opacity: 1;
    position: relative;
    inset: auto;
    background: var(--surface-color);
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
  }

  .portfolio .portfolio-content .portfolio-info h4 {
    color: var(--heading-color);
    font-size: 15px;
  }

  .portfolio .portfolio-content .portfolio-info p {
    color: var(--muted-color);
    font-size: 13px;
    max-width: none;
  }

  .portfolio .portfolio-content .portfolio-info .details-link {
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.08);
    font-size: 20px;
    width: 38px;
    height: 38px;
  }

  .portfolio .portfolio-content {
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--border-color);
  }

  .portfolio .portfolio-content:hover img {
    transform: none;
  }
}

/*--------------------------------------------------------------
# Touch / Mobile — Click hints always visible
--------------------------------------------------------------*/
@media (hover: none), (max-width: 768px) {
  .personality .personality-card .click-hint {
    opacity: 1;
  }

  .skill-card.clickable-card .click-hint {
    opacity: 1;
  }

  .resume-item.clickable-card .click-hint {
    opacity: 1;
  }

  .certification-card .cert-arrow {
    opacity: 0.6;
  }

  .stats-row .stat-card .click-hint {
    opacity: 0.6;
  }
}

/*--------------------------------------------------------------
# Very small screens (< 375px)
--------------------------------------------------------------*/
@media (max-width: 374px) {
  .hero h2 {
    font-size: 26px;
  }

  .hero p {
    font-size: 15px;
  }

  .stats-row .stat-number {
    font-size: 24px;
  }

  .about .content h2 {
    font-size: 18px;
  }

  .modal-header .modal-title {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Hero Scroll Button
--------------------------------------------------------------*/
.hero-scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #f8fafc;
  font-size: 24px;
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: heroScrollBounce 2s infinite;
  transition: all 0.3s ease;
}

.hero-scroll-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(59, 130, 246, 0.1);
}

@keyframes heroScrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/*--------------------------------------------------------------
# Stats Row
--------------------------------------------------------------*/
.stats-row .stat-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 24px 16px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

.stats-row .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: var(--accent-color);
}

.stats-row .stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-color);
  font-family: var(--mono-font);
  line-height: 1.2;
}

.stats-row .stat-card p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted-color);
  font-weight: 500;
}

.stats-row .stat-card .click-hint {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 12px;
  color: var(--muted-color);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.stats-row .stat-card:hover .click-hint {
  opacity: 0.6;
}

/*--------------------------------------------------------------
# Personality Section
--------------------------------------------------------------*/
.personality .personality-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 28px 24px;
  height: 100%;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.personality .personality-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  border-color: var(--accent-color);
}

.personality .personality-card .personality-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  margin-bottom: 16px;
  transition: background 0.3s ease;
}

.personality .personality-card:hover .personality-icon {
  background: var(--accent-color);
}

.personality .personality-card .personality-icon i {
  font-size: 22px;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.personality .personality-card:hover .personality-icon i {
  color: #fff;
}

.personality .personality-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.personality .personality-card p {
  font-size: 14px;
  color: var(--muted-color);
  line-height: 1.7;
  margin-bottom: 12px;
}

.personality .personality-card .click-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-color);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.personality .personality-card:hover .click-hint {
  opacity: 1;
}

/*--------------------------------------------------------------
# Clickable Card Indicator
--------------------------------------------------------------*/
.clickable-card {
  cursor: pointer;
  position: relative;
}

.skill-card.clickable-card .click-hint {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-color);
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.skill-card.clickable-card:hover .click-hint {
  opacity: 1;
}

.skill-card.clickable-card:hover {
  border-color: var(--accent-color);
}

.skill-card .skill-desc {
  font-size: 13px;
  color: var(--muted-color);
  line-height: 1.6;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.resume-item.clickable-card .click-hint {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-color);
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.resume-item.clickable-card:hover .click-hint {
  opacity: 1;
}

.resume-item.clickable-card:hover {
  background: rgba(59, 130, 246, 0.03);
  border-radius: 8px;
}

.certification-card.clickable-card {
  cursor: pointer;
  position: relative;
}

.certification-card .cert-arrow {
  font-size: 14px;
  color: var(--muted-color);
  opacity: 0;
  transition: opacity 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.certification-card.clickable-card:hover .cert-arrow {
  opacity: 0.6;
}

.certification-card.clickable-card:hover {
  border-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Modal Tags
--------------------------------------------------------------*/
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.modal-tags .badge {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-color);
  font-weight: 500;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--mono-font);
}

.modal-body h6 {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading-color);
  margin-top: 16px;
  margin-bottom: 10px;
}

.modal-body ul {
  padding-left: 18px;
  margin-bottom: 12px;
}

.modal-body ul li {
  padding-bottom: 6px;
  font-size: 14px;
  color: var(--muted-color);
  line-height: 1.7;
}

/*--------------------------------------------------------------
# Selection Color
--------------------------------------------------------------*/
::selection {
  background: rgba(59, 130, 246, 0.15);
  color: var(--heading-color);
}

/*--------------------------------------------------------------
# Focus States (accessibility)
--------------------------------------------------------------*/
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
