:root {
  --bg-color: #e6e7ee;
  --text-color: #31344b;
  --text-muted: #6d7081;
  --card-bg: #e6e7ee;
  --shadow-light: #ffffff;
  --shadow-dark: #c8c9d0;
  --accent: #ff6f91;
  --accent-2: #6c63ff;
  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.42);
  --nav-bg: rgba(230, 231, 238, 0.86);
  --nav-text: #31344b;
  --footer-bg: #e6e7ee;
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --bg-color: #181a20;
  --text-color: #f1f1f1;
  --text-muted: #b8b9c7;
  --card-bg: #181a20;
  --shadow-light: #22252b;
  --shadow-dark: #101116;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(24, 26, 32, 0.88);
  --nav-text: #f1f1f1;
  --footer-bg: #181a20;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  cursor: auto;
  transition: var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
}

section {
  padding: 96px 0;
  position: relative;
}

.section-kicker {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.section-title {
  margin: 8px 0 58px;
  color: var(--text-color);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  letter-spacing: 0;
}

.neu-card,
.neu-btn,
.theme-floating button,
.social-pill,
.contact-card,
.skill-card,
.project-card,
.qualification-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  transition: var(--transition);
}

.neu-card:hover,
.skill-card:hover,
.project-card:hover,
.qualification-card:hover,
.contact-card:hover {
  transform: translateY(-7px);
  box-shadow:
    12px 12px 24px var(--shadow-dark),
    -12px -12px 24px var(--shadow-light);
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.neu-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  color: var(--accent);
  font-weight: 500;
  cursor: auto;
}

.neu-btn:hover {
  color: var(--accent);
  transform: translateY(2px);
  box-shadow:
    inset 7px 7px 14px var(--shadow-dark),
    inset -7px -7px 14px var(--shadow-light);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 74px;
  background: var(--nav-bg);
  color: var(--nav-text);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: var(--transition);
}

.navbar-brand {
  color: var(--nav-text);
  font-size: 1.42rem;
  font-weight: 700;
}

.navbar-brand span,
.nav-link.active,
.nav-link:hover {
  color: var(--accent) !important;
}

.nav-link {
  color: var(--nav-text);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 4px;
  border-radius: 999px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 111, 145, 0.1);
}

.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}

.navbar-toggler span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--nav-text);
  border-radius: 999px;
}

.hero-section {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 500;
  animation: fadeUp 0.7s ease both;
}

.hero-title {
  margin: 12px 0 18px;
  font-size: clamp(2.7rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  animation: fadeUp 0.7s ease 0.1s both;
}

.typing-line {
  min-height: 42px;
  color: var(--text-muted);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  animation: fadeUp 0.7s ease 0.2s both;
}

.typing-text {
  color: var(--accent);
  font-weight: 600;
}

.typing-text::after {
  content: "|";
  animation: blink 1s infinite;
}

.hero-text {
  max-width: 650px;
  margin: 20px 0 34px;
  color: var(--text-muted);
  animation: fadeUp 0.7s ease 0.3s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeUp 0.7s ease 0.4s both;
}

.profile-wrapper {
  position: relative;
  width: min(420px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  animation: profileFloat 9s ease-in-out infinite;
}

.rotating-ring {
  position: absolute;
  width: 100%;
  height: 105%;
  border-radius: 50%;
  border: 2px dashed rgba(108, 99, 255, 0.4);
  animation: rotate 18s linear infinite;
}

.profile-img-container {
  position: relative;
  z-index: 20;
  width: 370px;
  height: 370px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.08);
  animation: morphing 8s ease-in-out infinite;
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /*border-radius: 50%;*/
  transition: var(--transition);
}

.profile-img-container:hover img {
  transform: scale(1.06);
}

.floating-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
  animation: floating 6s ease-in-out infinite;
}

.shape-circle {
  width: 170px;
  height: 170px;
  top: 120px;
  right: 8%;
  border: 18px solid rgba(255, 111, 145, 0.32);
  border-radius: 50%;
}

.shape-dots {
  width: 54px;
  height: 92px;
  left: 5%;
  bottom: 110px;
  background-image: radial-gradient(#ff9f1c 2px, transparent 2px);
  background-size: 13px 13px;
}

.about-frame {
  max-width: 430px;
  padding: 14px;
  margin: 0 auto;
  border-radius: 4px;
  background: var(--card-bg);
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
}

.about-frame-inner {
  padding: 10px;
  border-radius: 4px;
  background: var(--card-bg);
  box-shadow:
    inset 6px 6px 12px var(--shadow-dark),
    inset -6px -6px 12px var(--shadow-light);
}

.about-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 2px;
}

.about-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.social-pill {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: auto;
}

.social-pill:hover {
  color: var(--accent);
  transform: translateY(-4px);
}

.about-text h3 {
  margin-bottom: 18px;
  color: var(--text-color);
  font-size: 1.35rem;
  font-weight: 600;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1rem;
  text-align: justify;
  line-height: 1.8;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.skill-card {
  height: 100%;
  padding: 26px;
  border-radius: 24px;
}

.skill-card h3 {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 1.18rem;
  font-weight: 600;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--card-bg);
  box-shadow:
    inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
  transition: var(--transition);
}

.skill-list li:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.qualification-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 42px);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qualification-card h3,
.project-card h3 {
  color: var(--text-color);
  font-weight: 700;
}
.qualification-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.qualification-group .qualification-card {
  width: 100%;
  max-width: 100%;
  padding: 14px 20px;
  border-radius: 24px;
}

.qualification-group .qualification-card h3 {
  margin: 0 0 4px;
  line-height: 1.1;
}

.qualification-group .qualification-card p {
  margin: 0;
  line-height: 1.15;
}
.issuer {
  color: var(--accent);
  font-weight: 500;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.course-item {
  padding: 13px 14px;
  border-radius: 16px;
  color: var(--text-muted);
  background: var(--card-bg);
  box-shadow:
    inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
  font-size: 0.92rem;
}

.project-card {
  overflow: hidden;
  border-radius: 28px;
}

.project-preview {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 40px;
  background: linear-gradient(
    135deg,
    rgba(255, 111, 145, 0.16),
    rgba(108, 99, 255, 0.14)
  );
}

.project-icon {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--card-bg);
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  font-size: 4rem;
  animation: floating 4.5s ease-in-out infinite;
}

.project-body {
  padding: clamp(26px, 5vw, 40px);
}

.project-body p {
  color: var(--text-muted);
}

.contact-card {
  height: 100%;
  padding: 26px;
  border-radius: 24px;
}

.contact-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--card-bg);
  box-shadow:
    inset 5px 5px 10px var(--shadow-dark),
    inset -5px -5px 10px var(--shadow-light);
  font-size: 1.25rem;
}

.contact-card h3 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
  word-break: break-word;
}

.contact-form {
  padding: 30px;
  border-radius: 28px;
}

.form-control {
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  color: var(--text-color);
  background: var(--card-bg);
  box-shadow:
    inset 5px 5px 10px var(--shadow-dark),
    inset -5px -5px 10px var(--shadow-light);
}

.form-control:focus {
  color: var(--text-color);
  background: var(--card-bg);
  box-shadow:
    inset 3px 3px 8px var(--shadow-dark),
    inset -3px -3px 8px var(--shadow-light),
    0 0 0 3px rgba(255, 111, 145, 0.16);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.footer {
  padding: 42px 0;
  color: var(--text-muted);
  background: var(--footer-bg);
  border-top: 1px solid var(--glass-border);
  transition: var(--transition);
}

.footer strong,
.footer a:hover {
  color: var(--accent);
}

.theme-floating {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 1001;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
}

.theme-floating button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: var(--text-color);
  cursor: auto;
}

.theme-floating button:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.color-panel {
  position: fixed;
  right: 84px;
  top: 50%;
  z-index: 1001;
  width: 230px;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.92);
  transition: var(--transition);
}

.color-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.color-panel h4 {
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 14px;
}

.color-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-option {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: auto;
  box-shadow:
    4px 4px 8px var(--shadow-dark),
    -4px -4px 8px var(--shadow-light);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 1001;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: #ffa500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  cursor: auto;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-cursor,
.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.custom-cursor {
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent);
  transition:
    width 0.2s ease,
    height 0.2s ease,
    background 0.2s ease;
  will-change: left, top;
}

.custom-cursor.hover {
  width: 44px;
  height: 44px;
  background: rgba(255, 111, 145, 0.12);
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes profileFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 991px) {
  body {
    cursor: auto;
  }

  .navbar-collapse {
    margin-top: 12px;
    padding: 16px;
    border-radius: 22px;
    background: var(--card-bg);
    box-shadow:
      inset 5px 5px 10px var(--shadow-dark),
      inset -5px -5px 10px var(--shadow-light);
  }

  .hero-section {
    text-align: center;
  }

  .hero-actions,
  .about-actions {
    justify-content: center;
  }

  .profile-wrapper {
    margin-top: 48px;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .theme-floating {
    right: 14px;
  }

  .custom-cursor,
  .cursor-dot {
    display: none;
  }
}

@media (max-width: 767px) {
  section {
    padding: 76px 0;
  }

  .section-title {
    margin-bottom: 38px;
  }

  .hero-section {
    padding-top: 46px;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 22px;
  }

  .theme-floating {
    top: auto;
    right: 16px;
    bottom: 90px;
    transform: none;
  }

  .color-panel {
    right: 16px;
    top: auto;
    bottom: 208px;
    transform: scale(0.92);
  }

  .color-panel.show {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .neu-btn {
    width: 100%;
  }

  .about-frame {
    padding: 10px;
  }

  .project-preview {
    min-height: 220px;
  }
}

.profile-wrapper::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -2;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(108, 99, 255, 0.25),
    rgba(59, 130, 246, 0.18),
    rgba(6, 182, 212, 0.12)
  );
  filter: blur(20px);
  opacity: 0.45;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.5s ease;
}

.profile-wrapper:hover .profile-img {
  transform: scale(1.08);
}

.floating-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  animation: floatShape 6s ease-in-out infinite;
}

.shape-circle {
  width: 190px;
  height: 190px;
  top: -120px;
  left: 45%;
  border: 18px solid #ff7aa2;
  border-radius: 50%;
}

.shape-triangle {
  width: 0;
  height: 0;
  top: 240px;
  left: 28%;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 38px solid #19d3a6;
  transform: rotate(-18deg);
}

.shape-dots {
  width: 40px;
  height: 80px;
  left: 40px;
  bottom: 120px;
  background-image: radial-gradient(#ff9800 2px, transparent 2px);
  background-size: 12px 12px;
}

.shape-square {
  width: 28px;
  height: 28px;
  right: 110px;
  bottom: 70px;
  border: 5px solid #7b4dff;
  transform: rotate(45deg);
}

.shape-lines {
  width: 55px;
  height: 55px;
  right: 130px;
  top: 300px;
  border-radius: 50%;
  background: repeating-linear-gradient(
    45deg,
    #4fc3f7,
    #4fc3f7 2px,
    transparent 2px,
    transparent 7px
  );
}

.section-title {
  color: var(--text-color);
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 60px;
}

.about-content,
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.about-image img,
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.about-image {
  height: 460px;
  padding: 12px;
  border-radius: 24px;
  background: var(--glass-bg);
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
}

.about-text h3 {
  margin-bottom: 18px;
  color: var(--text-color);
  font-size: 1.8rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.stat-card {
  padding: 24px 18px;
  text-align: center;
}

.stat-card h4 {
  color: var(--accent);
  font-size: 2rem;
}

.stat-card p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.skill-card {
  position: relative;
  padding: 28px;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.skill-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: var(--accent);
  font-size: 1.5rem;
}

.skill-info h4 {
  color: var(--text-color);
  font-size: 1.1rem;
}

.skill-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 50px;
  background: var(--card-bg);
  box-shadow:
    inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transition: width 1.2s ease;
}

.skill-percentage {
  margin-top: 12px;
  color: var(--accent);
  text-align: right;
  font-weight: 700;
}

.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(var(--accent), transparent, var(--accent));
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 42px 40px;
  opacity: 0;
  transition: 0.8s ease;
}

.timeline-item:nth-child(odd) {
  left: 0;
  transform: translateX(-50px);
}

.timeline-item:nth-child(even) {
  left: 50%;
  transform: translateX(50px);
}

.timeline-item.show {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(108, 99, 255, 0.15);
}

.timeline-item:nth-child(odd)::before {
  right: -9px;
}

.timeline-item:nth-child(even)::before {
  left: -9px;
}

.timeline-content {
  padding: 28px;
}

.timeline-date {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-content h3 {
  color: var(--text-color);
  margin-bottom: 5px;
}

.timeline-content h4,
.timeline-content p {
  color: var(--text-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  overflow: hidden;
  opacity: 0;
  transition:
    transform 0.8s ease,
    opacity 0.8s ease,
    box-shadow 0.3s ease;
}

.project-card.slide-left {
  transform: translateX(-70px);
}

.project-card.slide-right {
  transform: translateX(70px);
}

.project-card.show {
  opacity: 1;
  transform: translateX(0);
}

.project-image {
  height: 220px;
  overflow: hidden;
}

.project-image img {
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-content {
  padding: 26px;
}

.project-content h3 {
  color: var(--text-color);
  margin-bottom: 12px;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  padding: 6px 12px;
  border-radius: 50px;
  color: var(--accent);
  background: rgba(108, 99, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-links .neu-btn {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.9rem;
}

.contact-info {
  display: grid;
  gap: 20px;
}

.contact-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  overflow: hidden;
}

.contact-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  color: var(--accent);
  background: var(--card-bg);

  box-shadow:
    inset 5px 5px 10px var(--shadow-dark),
    inset -5px -5px 10px var(--shadow-light);

  font-size: 1.25rem;

  flex-shrink: 0;
}

.contact-details {
  width: 100%;
  overflow: hidden;
}

.contact-details h4 {
  color: var(--text-color);
  margin-bottom: 4px;
}

.contact-details p {
  margin: 0;
  color: var(--text-muted);

  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-form {
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-color);
  font-weight: 600;
}

.form-control,
.newsletter-form input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 18px;
  color: var(--text-color);
  background: var(--card-bg);
  box-shadow:
    inset 5px 5px 10px var(--shadow-dark),
    inset -5px -5px 10px var(--shadow-light);
  transition: var(--transition);
}

.form-control {
  padding: 15px 18px;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-control:focus,
.newsletter-form input:focus {
  box-shadow:
    inset 3px 3px 8px var(--shadow-dark),
    inset -3px -3px 8px var(--shadow-light),
    0 0 0 3px rgba(108, 99, 255, 0.18);
}

.map-container {
  height: 360px;
  margin-top: 50px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(20%);
}

.footer {
  padding: 70px 0 24px;
  color: var(--footer-text);
  background: var(--footer-bg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 40px;
}

.footer h3,
.footer h4 {
  color: var(--footer-text);
  margin-bottom: 18px;
}

.footer h3 span,
.footer-bottom i {
  color: var(--accent);
}

.footer p,
.footer a {
  color: var(--footer-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.neu-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--card-bg);
  transition: var(--transition);
}

.neu-icon:hover,
.footer a:hover {
  color: var(--accent);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.newsletter-form {
  display: grid;
  gap: 12px;
}

.newsletter-form input {
  padding: 14px 16px;
  color: var(--text-color);
  background: var(--card-bg);
  box-shadow:
    inset 5px 5px 10px var(--shadow-dark),
    inset -5px -5px 10px var(--shadow-light);
}

.footer-bottom {
  padding-top: 28px;
  margin-top: 40px;
  border-top: 1px solid var(--footer-border);
  text-align: center;
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999999;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s ease,
    height 0.2s ease,
    background 0.2s ease,
    border 0.2s ease;
  will-change: left, top;
}

.custom-cursor.hover {
  width: 42px;
  height: 42px;
  background: rgba(108, 99, 255, 0.12);
}

.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000000;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.theme-settings {
  position: fixed;
  right: 30px;
  top: 50%;
  z-index: 1000;
  transform: translateY(-50%);
}

.settings-toggle {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  color: var(--accent);
  background: var(--card-bg);
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  cursor: pointer;
  transition: var(--transition);
}

.settings-toggle i {
  font-size: 1.5rem;
  animation: spin 3s linear infinite;
}

.theme-panel {
  position: absolute;
  right: 80px;
  top: 50%;
  width: 280px;
  padding: 30px;
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.9);
  transition: var(--transition);
}

.theme-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.theme-panel h4 {
  color: var(--text-color);
  margin-bottom: 20px;
}

.theme-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.color-option {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    4px 4px 8px var(--shadow-dark),
    -4px -4px 8px var(--shadow-light);
  transition: var(--transition);
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active {
  outline: 3px solid var(--text-color);
  outline-offset: 3px;
}

.mode-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-color);
}

.switch {
  position: relative;
  width: 60px;
  height: 30px;
}

.switch input {
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  cursor: pointer;
  background: var(--card-bg);
  box-shadow:
    inset 4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
  transition: var(--transition);
}

.slider::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  transition: var(--transition);
}

.switch input:checked + .slider::before {
  transform: translateX(30px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes morphing {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    padding: 20px 24px;
    flex-direction: column;
    background: var(--nav-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: var(--transition);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    justify-content: center;
  }

  .about-content,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .projects-grid,
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-item,
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    left: 0;
    width: 100%;
    padding-left: 48px;
    padding-right: 0;
  }

  .timeline-item:nth-child(even)::before,
  .timeline-item:nth-child(odd)::before {
    left: 3px;
    right: auto;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .home-content {
    text-align: center;
  }

  .home-buttons {
    justify-content: center;
  }

  .profile-wrapper {
    width: 320px;
    height: 320px;
  }

  .profile-img-container {
    width: 280px;
    height: 280px;
  }

  .about-stats,
  .skills-grid,
  .projects-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .theme-settings {
    right: 16px;
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .theme-panel {
    right: 0;
    top: auto;
    bottom: 78px;
    transform: scale(0.9);
  }

  .theme-panel.active {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .container,
  .home-container {
    padding: 0 18px;
  }

  .neu-btn {
    width: 100%;
  }

  .profile-wrapper {
    width: 250px;
    height: 250px;
  }

  .profile-img-container {
    width: 220px;
    height: 220px;
  }

  .contact-card {
    align-items: flex-start;
  }
}
/* Reveal Animation Fix */
.timeline-item,
.project-card,
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* animation র */
.timeline-item,
.project-card,
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.timeline-item.show,
.project-card.show,
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
/* Dark mode form fix */

[data-theme="dark"] .form-control,
[data-theme="dark"] input,
[data-theme="dark"] textarea {
  background: #1e1e1e;
  color: #ffffff;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #bdbdbd;
}

[data-theme="dark"] label {
  color: #ffffff;
}

/* Global smaller neumorphism shadow */

.neu-card,
.neu-btn,
.contact-card,
.skill-card,
.project-card,
.qualification-card,
.about-frame,
.project-icon,
.neu-icon,
.settings-toggle,
.theme-panel,
.contact-icon,
.form-control,
.newsletter-form input,
.slider,
.color-option,
.theme-floating button {
  box-shadow:
    3px 3px 8px var(--shadow-dark),
    -3px -3px 8px var(--shadow-light) !important;
}

/* Smaller inset shadow */

.skill-list li,
.contact-icon,
.form-control,
.newsletter-form input,
.progress-bar,
.slider {
  box-shadow:
    inset 2px 2px 5px var(--shadow-dark),
    inset -2px -2px 5px var(--shadow-light) !important;
}
/*element cursor override */
a,
button,
.project-links a,
.project-links .neu-btn,
.project-links .neu-btn * {
  cursor: pointer !important;
}
