/* global Variable */

:root {
  --brand: #00c6ff;
  /* Primary accent color */
  --brand2: #0072ff;
  /* Secondary accent color */
  --nav: rgba(73, 146, 112, 0.75);
  /* Navbar background (semi-transparent) */
  --text: #111;
  /* Default text color */
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", sans-serif;
  scroll-behavior: smooth;
  color: var(--text);
}

img {
  max-width: 100%;
}

.section-padding {
  padding: 75px 0;
}

/* Navbar */
.glass-nav {
  background: var(--nav);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.navbar .nav-link {
  position: relative;
  font-weight: 500;
  opacity: 0.95;
}

.navbar .nav-link.active {
  color: #fff !important;
  font-weight: 600;
}

.navbar .nav-link:hover {
  opacity: 1;
}

.navbar .nav-link:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.3rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.25s;
}

.navbar .nav-link:not(.btn):hover::after {
  transform: scaleX(1);
}

.btn-main {
  background: var(--brand);
  color: #fff;
  padding: 10px 26px;
  border-radius: 999px;
  border: 0;
  transition: 0.25s;
}

.btn-main:hover {
  background: var(--brand2);
  transform: translateY(-2px);
  color: #fff;
}

.btn-round {
  border-radius: 999px;
  padding: 10px 22px;
}

/* =====  Hero Section =================== */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding-top: 80px;
  position: relative;

  /* Animated gradient background */
  background: linear-gradient(-45deg, #1f4037, #99f2c8, #0f2027, #2c5364);
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
}

.hero-overlay {
  z-index: -1;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-kicker {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
}

/* Hero subtitle */
.hero-subtitle {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Big hero name line-height */
.hero-title {
  line-height: 1.05;
}

/* Hero tech chips container */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 650px;
}

/* Tech chip style */
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* Social links under hero buttons */

.social-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  transition: 0.3s;
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  color: #fff;
}

/* Right-side hero glass card */
.hero-card {
  border-radius: 24px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

/* Top row inside hero card */
.hero-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Big avatar circle*/
.avatar-lg {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Stats grid inside hero card */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Each stat block */
.stat {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

/* Stat title*/
.stat-num {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
}

/* Stat label*/
.stat-label {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
}

/* Bottom note inside hero card */
.hero-card-bottom {
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* “Scroll ↓” text under hero */
.scroll-indicator {
  opacity: 0.9;
  font-size: 14px;
  bottom: 1px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;

 -webkit-animation: slider-popup-animation 0.8s linear infinite alternate;
  -moz-animation: slider-popup-animation 0.8s linear infinite alternate;
  -o-animation: slider-popup-animation 0.8s linear infinite alternate;
  animation: slider-popup-animation 0.8s linear infinite alternate;
}

@keyframes slider-popup-animation {
  0% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* ================= About  Section Titles ================= */

.section-title {
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
}

.section-subtitle {
  color: #6c757d;
  margin-bottom: -15px;
  margin-top: 10px;
}

/* ================= About Badge ================= */
.about-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #eaf7f8;
  color: #0b7c86;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 30px;
}

.about-badge i {
  font-size: 14px;
}

/* ================= About Section ================= */

.about-section {
  position: relative;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

/* Profile Card */

.about-profile {
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(
    135deg,
    rgba(15, 32, 39, 0.95),
    rgba(44, 83, 100, 0.85)
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: 0.25s;
}

.about-profile:hover {
  transform: translateY(-6px);
}

.about-profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.about-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.about-meta {
  display: grid;
  gap: 10px;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.meta-label {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 13px;
}

.meta-value {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 13px;
  text-align: right;
}

/* Badges */

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip-dark {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  font-weight: 700;
  font-size: 13px;
}

/* Right Card */

.about-card-advanced {
  border-radius: 24px;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: 0.25s;
}

.about-card-advanced:hover {
  transform: translateY(-4px);
}

/* Mini cards */

.mini-card {
  border-radius: 18px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: 0.2s;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Title row */

.mini-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

/* Icons */

.mini-title i {
  font-size: 16px;
}

.icon-mobile {
  color: #0d6efd;
}

.icon-backend {
  color: #198754;
}

.icon-db {
  color: #6f42c1;
}

.icon-cloud {
  color: #0dcaf0;
}

/* ============== Skills Section ==================*/

.skills-section {
  background: linear-gradient(180deg, #f7f8ff 0%, #eef0ff 100%);
}

/* Card */

.skill-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: 0.25s;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Card title */

.skill-card-title {
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-card-title i {
  color: #0072ff;
}

/* Chips */

.skill-chip {
  display: inline-block;
  padding: 8px 14px;
  background: #f2f4f6;
  border-radius: 999px;
  font-size: 16px;
  margin-right: 10px;
  border: 1px solid #e3e3e3;
  white-space: nowrap;
}

/* Marquee container */

.skills-marquee {
  overflow: hidden;
  white-space: nowrap;
}

/* Track */

.skills-track {
  display: inline-flex;
  gap: 10px;
  animation: scrollSkills 25s linear infinite;
}

/* Animation */

@keyframes scrollSkills {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ================= Education Section ================= */

.education-section {
  background: linear-gradient(180deg, #f7fbfb 0%, #eef6f6 100%);
}

/* Timeline */

.edu-timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}

/* vertical line */

.edu-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  width: 2px;
  height: 100%;
  background: #dfe6e9;
}

/* Item */

.edu-item {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
}

/* Icon */

.edu-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  z-index: 1;
}

/* Card */

.edu-card {
  background: #fff;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex: 1;
  transition: 0.25s;
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Header */

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.edu-header h5 {
  margin: 0;
  font-weight: 700;
}

/* Status */

.edu-status {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.edu-status.completed {
  background: #e9f9f1;
  color: #198754;
}

.edu-status.running {
  background: #fff3cd;
  color: #856404;
}

/* Institute */

.edu-institute {
  color: #6c757d;
  margin-top: 6px;
  margin-bottom: 8px;
}

/* Description */

.edu-desc {
  color: #555;
  font-size: 14px;
}

/* ================= Contact Section ================= */

.contact-section {
  background: #fafcf8;
}

/* Contact info container */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Each contact item */

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Icon circle */

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

/* Icon colors */

.contact-icon.address {
  background: #ff6b6b;
}

.contact-icon.email {
  background: #20c997;
}

.contact-icon.phone {
  background: #6f42c1;
}

/* Text */

.contact-item h6 {
  margin-bottom: 3px;
  font-weight: 700;
}

.contact-item p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

/* ================= Contact Form ================= */

.contact-form .form-control {
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid #dfe6e9;
  font-size: 14px;
}

.contact-form .form-control:focus {
  box-shadow: none;
  border-color: #00c6ff;
}

/* Submit button */

.btn-submit {
  background: #ff5722;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.25s;
}

.btn-submit:hover {
  background: #e64a19;
  transform: translateY(-2px);
}

.contact-form textarea {
  resize: none;
}

/* ================= Footer ================= */

.footer {
  background: #0f2027;
  color: #aaa;
  padding: 20px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-social a {
  color: #aaa;
  font-size: 18px;
  margin-left: 15px;
  transition: 0.2s;
}

.footer-social a:hover {
  color: #fff;
}

/* ================= Projects Section ================= */

.projects {
  --accent: var(--brand);
  --accent2: var(--brand2);
  --border: rgba(0, 0, 0, 0.08);
  --text: #0f172a;
  --muted: #64748b;

  padding: 75px 0;
  background: linear-gradient(180deg, #f7fbfb 0%, #eef6f6 100%);
  color: var(--text);
}

.projects-head {
  max-width: 900px;
  margin: 0 auto 40px;
}

.p-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transition: 0.25s;
}

.p-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 45px rgba(0, 0, 0, 0.1);
}

.p-media {
  padding: 16px;
  background: #f6fafb;
}

.p-carousel {
  border-radius: 14px;
  overflow: hidden;
}

.todaylive-poster-showcase {
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #eaf1f3;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.todaylive-poster-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 575.98px) {
  .todaylive-poster-showcase { height: 190px; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .todaylive-poster-showcase { height: 205px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .todaylive-poster-showcase { height: 215px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .todaylive-poster-showcase { height: 230px; }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .todaylive-poster-showcase { height: 240px; }
}

@media (min-width: 1400px) {
  .todaylive-poster-showcase { height: 250px; }
}


/* Today Live uses a static mobile-app showcase instead of page scrolling. */
.todaylive-showcase {
  position: relative;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(180deg, #d7d7d7 0%, #c3c3c3 28%, #9c9c9c 64%, #777 100%);
  isolation: isolate;
}

.todaylive-showcase::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 7px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  filter: blur(16px);
  z-index: 0;
}

.todaylive-device {
  position: absolute;
  bottom: 10px;
  width: 29%;
  max-width: 126px;
  padding: 5px;
  border-radius: 24px;
  overflow: hidden;
  background: #0a1019;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  z-index: 1;
}

.todaylive-device-img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  object-position: center;
  border-radius: 19px;
  background: #0d1117;
}

.todaylive-device-left {
  left: 6%;
  transform: translateY(8px) rotate(-6deg) scale(0.94);
}

.todaylive-device-center {
  left: 50%;
  width: 31%;
  max-width: 134px;
  transform: translateX(-50%);
  z-index: 3;
}

.todaylive-device-center .todaylive-device-img {
  height: 200px;
}

.todaylive-device-right {
  right: 6%;
  transform: translateY(8px) rotate(6deg) scale(0.94);
}

@media (max-width: 575.98px) {
  .todaylive-showcase {
    height: 190px;
  }

  .todaylive-device {
    width: 30%;
    padding: 4px;
    border-radius: 20px;
  }

  .todaylive-device-img {
    height: 162px;
    border-radius: 16px;
  }

  .todaylive-device-center .todaylive-device-img {
    height: 170px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .todaylive-showcase { height: 205px; }
  .todaylive-device-img { height: 176px; }
  .todaylive-device-center .todaylive-device-img { height: 185px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .todaylive-showcase { height: 215px; }
  .todaylive-device-img { height: 185px; }
  .todaylive-device-center .todaylive-device-img { height: 194px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .todaylive-showcase { height: 230px; }
  .todaylive-device-img { height: 198px; }
  .todaylive-device-center .todaylive-device-img { height: 208px; }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .todaylive-showcase { height: 240px; }
  .todaylive-device-img { height: 207px; }
  .todaylive-device-center .todaylive-device-img { height: 217px; }
}

@media (min-width: 1400px) {
  .todaylive-showcase { height: 250px; }
  .todaylive-device-img { height: 216px; }
  .todaylive-device-center .todaylive-device-img { height: 226px; }
}

/* Full-page project preview window. Tall screenshots scroll inside this fixed frame. */
.p-carousel .carousel-inner,
.p-carousel .carousel-item {
  height: 220px;
}

.p-carousel .carousel-item {
  overflow: hidden;
  background: #eaf2f3;
}

.p-carousel .project-scroll-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transform: translate3d(0, 0, 0);
  transition: transform 3.2s ease-in-out;
  will-change: transform;
}

.p-carousel .project-scroll-img.is-scrollable {
  height: auto;
  min-height: 100%;
  object-fit: initial;
}

/* Desktop/laptop: hover smoothly reveals the complete long screenshot. */
@media (hover: hover) and (pointer: fine) {
  .p-carousel:hover
    .carousel-item.active
    .project-scroll-img.is-scrollable {
    transform: translate3d(0, var(--project-scroll-distance, 0), 0);
    transition-duration: 3.2s;
    transition-timing-function: ease-in-out;
  }
}

/* Touch devices: a light tap toggles the same preview motion. */
.p-carousel.is-touch-scrolling
  .carousel-item.active
  .project-scroll-img.is-scrollable {
  transform: translate3d(0, var(--project-scroll-distance, 0), 0);
  transition-duration: 3.2s;
  transition-timing-function: ease-in-out;
}

/* Phones automatically reveal long screenshots while the project is active.
   No tap hint is required; the motion starts naturally when the card is shown. */
@media (max-width: 767.98px) and (hover: none),
  (max-width: 767.98px) and (pointer: coarse) {
  .p-carousel.is-mobile-auto-scrolling
    .carousel-item.active
    .project-scroll-img.is-scrollable {
    transform: translate3d(0, var(--project-scroll-distance, 0), 0);
    transition-duration: var(--mobile-preview-duration, 3.4s);
    transition-timing-function: cubic-bezier(0.42, 0, 0.18, 1);
  }

  .p-carousel.is-mobile-resetting .project-scroll-img {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-carousel .project-scroll-img {
    transition-duration: 0.01ms !important;
  }
}

.p-cbtn {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  opacity: 0;
  transition: 0.2s;
}

.p-carousel:hover .p-cbtn {
  opacity: 1;
}

.p-cbtn i {
  color: #fff;
  font-size: 18px;
}

.p-dots {
  margin: 0;
  bottom: 10px;
}

.p-dots [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
  border: 0;
}

.p-dots .active {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.p-body {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.p-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.p-name {
  margin: 0;
  min-width: 0;
  font-weight: 700;
  font-size: 1.45rem;
}

.p-type {
  font-size: 0.78rem;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 198, 255, 0.12);
  border: 1px solid rgba(0, 198, 255, 0.25);
  color: #0b7c86;
  font-weight: 600;
}

.p-desc {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

.p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.p-pill {
  font-size: 0.85rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: #f2f6ff;
  border: 1px solid rgba(0, 114, 255, 0.18);
  color: #1e293b;
  font-weight: 600;
}

/* links */
.p-links {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.p-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #112a0f;
  transition: 0.2s;
}

.p-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.p-link i {
  color: var(--accent2);
}


/* Project card slider: keeps one clean row and preserves the existing card design. */
.project-slider-wrap {
  position: relative;
}

.projects-slider {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 8px;
  padding-bottom: 8px;
}

.projects-slider::-webkit-scrollbar {
  display: none;
}

.projects-slider > [class*="col-"] {
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.project-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.project-slider-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.11);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.project-slider-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.13);
}

.project-slider-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

/* On wide desktops the navigation sits beside the cards, keeping the
   presentation clean while leaving swipe + dots as the mobile pattern. */
@media (min-width: 1400px) {
  .project-slider-controls {
    min-height: 18px;
    margin-top: 18px;
  }

  .project-slider-btn {
    position: absolute;
    top: 46%;
    z-index: 5;
  }

  .project-slider-prev {
    left: -58px;
  }

  .project-slider-next {
    right: -58px;
  }

  .project-slider-prev:hover:not(:disabled),
  .project-slider-next:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.04);
  }
}

.project-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 34px;
}

.project-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  transition: width 0.2s ease, background 0.2s ease;
}

.project-slider-dot.active {
  width: 22px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

@media (prefers-reduced-motion: reduce) {
  .projects-slider {
    scroll-behavior: auto;
  }
}
