/* MODERN PAGE LOADER */

.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--primary-color) 5%, transparent), transparent 35%),var(--bg-darkest);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s ease;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  width: min(360px, 80vw);
  text-align: center;
  animation: loader-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* CENTER MARK */

.loader-mark {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  opacity: 0.7;
}

.loader-ring-1 {
  animation: loader-spin 2.5s linear infinite;
}

.loader-ring-1::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color), 0 0 25px var(--primary-glow);
}

.loader-ring-2 {
  inset: 11px;
  border-color: color-mix(in srgb, var(--primary-color) 35%, transparent);
  animation: loader-spin-reverse 1.8s linear infinite;
}

.loader-core {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 12px var(--primary-color), 0 0 35px var(--primary-glow);
  animation: loader-pulse 1.6s ease-in-out infinite;
}

/* TEXT */
.loader-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  font-family: var(--font-heading);
}

.loader-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
}

.loader-percent {
  min-width: 38px;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--primary-color);
}

/* PROGRESS LINE */
.loader-line {
  position: relative;
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: var(--border-color);
}

.loader-line-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--primary-color);
  box-shadow:0 0 8px var(--primary-color), 0 0 18px var(--primary-glow);
  animation: loader-progress 2.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* STATUS*/
.loader-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
  animation: status-pulse 1.2s ease-in-out infinite;
}

/* ANIMATIONS */

@keyframes loader-enter {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loader-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes loader-spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes loader-pulse {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.65;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes status-pulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loader-progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* MOBILE */
@media (max-width: 480px) {
  .loader-inner {
    width: min(300px, 75vw);
  }
  .loader-mark {
    width: 70px;
    height: 70px;

    margin-bottom: 2rem;
  }
  .loader-core {
    width: 20px;
    height: 20px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .loader,
  .loader-inner,
  .loader-ring,
  .loader-core,
  .loader-line-fill,
  .status-dot {
    animation: none !important;
    transition: none !important;
  }

  .loader-line-fill {
    width: 100%;
  }
}

*{
  -webkit-tap-highlight-color: transparent;
}


body {
  background: var(--bg-darkest);
  color: var(--text-body);
  font-family: var(--font-body);
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-bright);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.5px;
}

.logo-text .cursor {
  color: var(--primary-color);
  animation: blink 1s step-end infinite;
}

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

.links ul {
  display: flex;
  gap: 2.5rem;
}

.links ul li a {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  transition: color 0.25s ease;
}

.links ul li a:hover {
  color: var(--primary-color);
}

@media (min-width: 769px) {
  .links ul li a {
    position: relative;
    padding-bottom: 6px;
  }

  .links ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-dim);
    transition: width 0.25s ease;
  }

  .links ul li a:hover::after {
    width: 100%;
  }

  .links ul li a.active {
    color: var(--primary-color);
  }

  .links ul li a.active::after {
    width: 100%;
    background: var(--primary-color);
  }
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.menu-label svg {
  width: 26px;
  height: 26px;
  transition: color 0.2s ease;
}

.menu-label:hover svg {
  color: var(--primary-dim);
}

/* hamburger hidden on desktop */
.menu-toggle,
.menu-label {
  display: none;
}

/* theme toggle */
.theme-toggle {
  display: none;
}

.theme-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--primary-color);
  transition: transform 0.2s ease, color 0.2s ease;
}

.theme-label:hover {
  color: var(--primary-dim);
  transform: scale(1.08);
}

.icon-moon,
.icon-sun {
  width: 22px;
  height: 22px;
}

/* dark mode (default): show moon, hide sun */
.icon-sun {
  display: none;
}

/* light mode (checked): show sun, hide moon */
.theme-toggle:checked~.theme-label .icon-sun {
  display: block;
}

.theme-toggle:checked~.theme-label .icon-moon {
  display: none;
}

/* mobile nav */
@media (max-width: 768px) {
  .menu-label {
    display: block;
    cursor: pointer;
    color: var(--primary-color);
  }

  .links ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-elevated);
    padding: 0 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
  }

  nav:has(.menu-toggle:checked) .links ul {
    max-height: 400px;
    opacity: 1;
    padding: 1.5rem 2rem;
  }
}

/*HERO SECTION*/
.hero {
  min-height: 100vh;
  /*max-width: 1300px;*/
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6rem;
  padding: 120px 6% 80px;
}

/*LEFT SIDE*/
.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-up {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}


.hero-text h1 {
  font-size: 3.9rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-role {
  font-size: 1.25rem;
  color: var(--text-body);
  font-family: var(--font-heading);
  margin-bottom: 1.8rem;
}

.hero-desc {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

/*BUTTONS*/
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: .3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--bg-darkest);
  box-shadow: 0 12px 30px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px var(--primary-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

/*SOCIAL LINKS*/
.hero-socials {
  display: flex;
  gap: 1rem;
}

.hero-socials a {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  transition: .3s ease;
}

.hero-socials a:hover {
  background: var(--primary-color);
  color: var(--bg-darkest);
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--primary-glow);
}

.hero-socials svg {
  width: 22px;
  height: 22px;
}

/*IMAGE*/
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  /*Any absolutely positioned children should use me as their reference (::before and ::after)*/
}

/* glowing background */
.hero-image::before {
  /*creates an imaginary element.*/
  content: "";
  position: absolute;
  width: 340px;
  /*its the same of image size*/
  height: 340px;
  background: var(--primary-glow);
  border-radius: 50%;
  filter: blur(70px);
  z-index: -2;
  /*wara limage bsir fi mtl circle light(glow)*/
}

/* decorative frame */
.hero-image::after {
  content: "";
  position: absolute;
  width: 340px;
  /*its the same of image size*/
  height: 340px;
  border: 2px solid var(--primary-color);
  border-radius: 22px;
  opacity: .2;
  transform: rotate(-6deg);
  z-index: -1;
}

.hero-image img {
  width: 340px;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: .4s ease;
}

.hero-image img:hover {
  transform: translateY(-8px);
}

/*ABOUT SECTION*/
.about-preview {
  display: flex;
  gap: 3rem;
  padding: 5rem 6%;
  background: var(--bg-dark);
}

.about-me {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-up {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.about-me h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-me p {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.about-me .btn-primary {
  align-self: flex-start;
}

.traits {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.trait-card {
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trait-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.trait-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--primary-color);
}

.trait-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/*projects part*/
.projects {
  padding: 5rem 6%;
  background: var(--bg-darkest);
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

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

.project-card {
  background: var(--bg-elevated);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px var(--primary-glow);
}

/*project image*/
.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-info {
  padding: 1.2rem;
}

.project-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  cursor: pointer;
}

.tech-stack span {
  background: var(--bg-dark);
  color: var(--primary-dim);
  font-size: 0.75rem;
  font-family: var(--font-heading);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.project-date {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
}

.project-buttons {
  display: flex;
  gap: 0.8rem;
}

.project-buttons .btn-primary,
.project-buttons .btn-secondary {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/*skills section*/
.skills {
  padding: 100px 8%;
  background: var(--bg-dark);
}

.skills h2 {
  text-align: center;
  font-size: 2.5rem;
  margin: 10px 0 50px;
  color: var(--text-bright);
}

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

.skill-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: all .35s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-dim);
  box-shadow: 0 15px 35px var(--primary-glow);
}

.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-card li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  transition: all .3s ease;
}

.skill-card li:hover {
  background: var(--primary-glow);
  transform: translateX(6px);
}

.skill-card img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: transform .3s ease;
}

.skill-card li:hover img {
  transform: scale(1.15) rotate(8deg);
}

.skill-card span {
  color: var(--text-body);
  font-size: 1rem;
  font-weight: 500;
}

/*for updates*/
.updates {
  padding: 5rem 6%;
  background: var(--bg-darkest);
}

.updates h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.update-card {
  background: var(--bg-elevated);
  border-left: 3px solid var(--primary-color);
  border-radius: 6px;
  padding: 1.5rem;
}

.update-label {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.update-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.update-card p {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.6;
}

/*for footer*/
/* =========================
   FOOTER
========================= */

.site-footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}

.footer-content {
  max-width: 1300px;
  margin: auto;
  padding: 70px 8% 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .logo-text {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-body);
  line-height: 1.7;
  max-width: 320px;
}

.footer-links h4,
.footer-socials h4 {
  color: var(--text-bright);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

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

.footer-links li:not(:last-child) {
  margin-bottom: .9rem;
}

.footer-links a {
  color: var(--text-body);
  transition: .3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 6px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);

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

  color: var(--text-body);

  transition: .3s ease;
}

.social-icons a:hover {
  background: var(--primary-color);
  color: var(--bg-darkest);
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--primary-glow);
}

.social-icons svg {
  width: 22px;
  height: 22px;
}

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

.footer-bottom p {
  color: var(--text-muted);
  font-size: .9rem;
}

@media (max-width: 900px) {

  /*for projects*/
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /*for skills*/
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/*RESPONSIVE*/
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 100px;
    gap: 2rem;
  }

  .hero-text {
    max-width: 100%;
  }

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

  .hero-socials {
    justify-content: center;
  }

  .hero-image img {
    width: 220px;
    height: 220px;
  }

  .hero-image img,
  .hero-image::before,
  .hero-image::after {
    width: 240px;
    height: 240px;
  }

  /*for about*/
  .about-preview {
    flex-direction: column;
    padding: 3.5rem 6%;
  }

  .about-me .btn-primary {
    align-self: center;
  }

  .about-me {
    text-align: center;
    align-items: center;
  }

  /*for skills*/
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /*for updates*/
  .updates-grid {
    grid-template-columns: 1fr;
  }

  /*for footer*/
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: 320px;
  }

  .footer-links ul {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    align-items: center;
  }

  .footer-links a:hover {
    padding-left: 0;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    padding: 18px;
  }
}

/*ABOUT PAGE*/

/*hero*/
.about-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 120px 6% 80px;
}

.terminal {
  width: min(900px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(57, 255, 136, .08);
}

.terminal-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #101614;
  border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ff5f57;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #28c840;
}

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  font-size: .9rem;
}

.terminal-body {
  padding: 35px 40px;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body p {
  margin-bottom: .9rem;
  color: var(--text-body);
}

.prompt {
  color: var(--primary-color);
  font-weight: 700;
}

.label {
  display: inline-block;
  width: 90px;
  color: var(--text-bright);
}

.quote {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-style: italic;
  line-height: 1.7;
}

.cursor-line {
  margin-top: 2rem;
}

.cursor2 {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--primary-color);
  animation: blinks 1s infinite;
  vertical-align: middle;
}

@keyframes blinks {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/*About-me*/
.about-story {
  max-width: 100%;
  margin: 0 auto;
  padding: 100px 6%;
  background: var(--bg-dark);
}

.about-story h2 {
  margin-bottom: 3rem;
}

/* Main layout */
.about-content {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Paragraphs div*/
.about-text {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.9;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/*Aside Card*/
.about-highlight {
  position: relative;
  padding: 2.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-highlight:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 20px var(--primary-glow);
}

/*green glow */
.about-highlight::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  background: var(--primary-glow);
  border-radius: 50%;
  filter: blur(50px);
}

/* > symbol */
.highlight-symbol {
  position: relative;
  display: block;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 700;
}

/* CODE. LEARN. SECURE. */
.about-highlight h3 {
  position: relative;
  margin: 0 0 1.5rem;
  color: var(--text-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  line-height: 1.3;
  letter-spacing: 1px;
}

/* Description */
.about-highlight p {
  position: relative;
  margin: 0;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Divider */
.highlight-line {
  position: relative;
  width: 100%;
  height: 1px;
  margin: 2rem 0;
  background: var(--border-color);
}

/* Label */
.highlight-label {
  position: relative;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* Current direction */
.about-highlight strong {
  position: relative;
  display: block;
  color: var(--primary-color);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.5;
}

/*About page responsive*/
@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-highlight {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .about-story {
    padding: 80px 5%;
  }

  .about-text {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .about-highlight {
    padding: 2rem;
  }

  .about-highlight h3 {
    font-size: 1.7rem;
  }
}

/*education section*/

.education {
  max-width: 100%;
  margin: 0 auto;
  padding: 100px 6%;
}

.education>h2 {
  margin-bottom: 3rem;
}


/*degree card*/
.education-degree {
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.education-degree:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

/* icon */
.education-icon {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-glow);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1.8rem;
}

.education-info {
  flex: 1;
}

.education-status {
  display: inline-block;
  margin-bottom: .7rem;
  color: var(--primary-color);
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.education-info h3 {
  margin-bottom: .5rem;
  color: var(--text-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.4rem;
}

.education-info h4 {
  margin-bottom: .3rem;
  color: var(--primary-color);
  font-size: 1rem;
}

.education-location {
  margin-bottom: .3rem;
  color: var(--text-body);
}

.education-date {
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: .85rem;
}


/*coursework*/
.coursework {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.coursework-title {
  display: block;
  margin-bottom: 1rem;
  color: var(--text-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: .85rem;
}

.coursework-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.coursework-list span {
  padding: .45rem .8rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-body);
  font-size: .8rem;
  transition: color .2s ease, border-color .2s ease;
}

.coursework-list span:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/*learning cards*/
.learning-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.learning-card {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.learning-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
}

.learning-icon {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
  font-weight: 700;
}

.learning-card h3 {
  margin-bottom: .8rem;
  color: var(--text-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.2rem;
}

.learning-card p {
  margin-bottom: 1.5rem;
  color: var(--text-body);
  font-size: .9rem;
  line-height: 1.7;
}

/* Tags */
.learning-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.learning-tags span {
  padding: .4rem .7rem;
  color: var(--primary-color);
  background: var(--primary-glow);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem;
}

/*RESPONSIVE*/
@media (max-width: 700px) {
  .education {
    padding: 80px 5%;
  }

  .education-degree {
    flex-direction: column;
    padding: 2rem;
  }

  .education-icon {
    width: 55px;
    height: 55px;
  }

  .education-info h3 {
    font-size: 1.15rem;
  }

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

/*expertise*/
.expertise {
  padding: 5rem 6%;
  background: var(--bg-dark);
}

.expertise h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 3rem;
}

.soft-skills h3 {
  font-size: 1.05rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.soft-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.soft-skills-tags span {
  background: var(--bg-elevated);
  color: var(--text-body);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: 0.3s ease;
}

.soft-skills-tags span:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 12px var(--primary-glow);
}

@media (max-width: 900px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

/*intrests*/
.interests {
  padding: 5rem 6%;
  background: var(--bg-darkest);
}

.interests h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.interest-card {
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 1.8rem 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.interest-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.7rem;
}

.interest-card h3 {
  font-size: 0.95rem;
  color: var(--text-body);
}

.interests-note {
  max-width: 700px;
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--text-body);
  line-height: 1.8;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .interests-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 420px) {
  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
    ;
  }
}

/*PORTFOLIO PAGE*/
.portfolio-page {
  padding: 5rem 6%;
  background: var(--bg-darkest);
}

.portfolio-page h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.filter-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-label {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-label:hover {
  border-color: var(--primary-dim);
  color: var(--primary-dim);
}

.filter-radio:checked+.filter-label {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--bg-darkest);
  font-weight: 600;
}

/* Grid reuses project-card styling from homepage */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-category {
  display: inline-block;
  color: var(--primary-dim);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}

.project-status {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 0.8rem;
}

/* Filter show/hide logic */
.portfolio-grid .project-card {
  display: none;
}

.portfolio-page:has(#filter-all:checked) .project-card {
  display: block;
}

.portfolio-page:has(#filter-web:checked) .project-card[data-category="web"],
.portfolio-page:has(#filter-mobile:checked) .project-card[data-category="mobile"],
.portfolio-page:has(#filter-game:checked) .project-card[data-category="game"] {
  display: block;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/*SERVICES PAGE*/

.services-page {
  overflow: hidden;
}

.services-page h1,
.services-page h2,
.services-page h3 {
  font-family: var(--font-heading);
  color: var(--text-bright);
}

.services-page p {
  color: var(--text-body);
}

.section-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* shared section padding */
.services-hero,
.services-offerings,
.services-process,
.services-values,
.services-cta {
  padding: 7rem 8%;
}

/* shared buttons */
.services-hero-btn,
.services-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.3rem;
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  background: var(--primary-color);
  color: var(--bg-darkest);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.services-hero-btn:hover,
.services-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--primary-glow);
  background: transparent;
  color: var(--primary-color);
}

.services-hero-btn span,
.services-cta-btn span {
  font-size: 1.1rem;
}

/* shared accent-colored heading spans */
.services-hero h1 span,
.services-section-heading.centered h2 span,
.values-intro h2 span,
.cta-content h2 span {
  color: var(--primary-color);
}

/* shared glow background */
.services-hero,
.services-cta {
  background: radial-gradient(circle at 80% 50%, var(--primary-glow), transparent 35%), var(--bg-darkest);
}

/* HERO */
.services-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 5rem;
  border-bottom: 1px solid var(--border-color);
}

.services-hero-content {
  max-width: 680px;
}

.services-hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.services-hero p {
  max-width: 580px;
  margin-bottom: 2.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* code window decoration */
.services-hero-decoration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-window {
  width: min(100%, 470px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 60px var(--primary-glow);
  transform: rotate(2deg);
}

.code-window-bar {
  display: flex;
  gap: 7px;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.code-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
}

.code-content {
  padding: 2.2rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  line-height: 2;
}

.code-muted {
  color: var(--text-muted);
}

.code-tag {
  color: var(--primary-color);
}

/*services*/
/* SHARED SECTION HEADINGS */
.services-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.services-section-heading h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.services-section-heading>p {
  max-width: 420px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

.services-section-heading.centered {
  display: block;
  max-width: 720px;
  margin: 0 auto 5rem;
  text-align: center;
}

.services-section-heading.centered h2 {
  margin-bottom: 1.5rem;
}

.services-section-heading.centered>p {
  max-width: 560px;
  margin: 0 auto;
}

/* OFFERINGS */
.services-offerings {
  background: var(--bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
}

.service-card {
  position: relative;
  min-height: 360px;
  padding: 2.5rem;
  background: var(--bg-elevated);
  transition: background 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  background: var(--bg-darkest);
}

.service-card-featured {
  background: linear-gradient(135deg, var(--primary-glow), transparent 60%), var(--bg-elevated);
}

.service-number {
  position: absolute;
  top: 2rem;
  right: 2.2rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-darkest);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.service-card h3 {
  max-width: 360px;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  max-width: 500px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  line-height: 1.8;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tags span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* process part */
.services-process {
  background: var(--bg-darkest);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}

.process-step {
  padding: 1rem;
}

.process-step>span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 0.75rem;
}

.process-step h3 {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.process-step p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.7;
}

.process-line {
  width: 70px;
  height: 1px;
  background: var(--border-color);
}

/* My approuch */
.services-values {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 7rem;
  background: var(--bg-dark);
}

.values-intro {
  align-self: start;
  position: sticky;
  top: 120px;
}

.values-intro h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.values-intro p {
  max-width: 500px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.values-list {
  border-top: 1px solid var(--border-color);
}

.value-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.value-item>span {
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 0.75rem;
}

.value-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.value-item p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.7;
}

/* CTA */
.services-cta {
  position: relative;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.cta-content {
  max-width: 750px;
  margin: auto;
}

.cta-content h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.cta-content p {
  max-width: 550px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* LIGHT THEME OVERRIDE (only the box-shadow tone differs) */
body:has(#theme-toggle:checked) .code-window {
  box-shadow: 0 20px 60px rgba(100, 40, 60, 0.1), 0 0 50px var(--primary-glow);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .services-hero {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .services-hero-decoration {
    justify-content: flex-start;
  }

  .services-section-heading {
    display: block;
  }

  .services-section-heading>p {
    margin-top: 1.5rem;
  }

  .services-values {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .values-intro {
    position: static;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-line {
    width: 100%;
  }
}

@media (max-width: 650px) {

  .services-hero,
  .services-offerings,
  .services-process,
  .services-values,
  .services-cta {
    padding-left: 6%;
    padding-right: 6%;
  }

  .services-hero h1 {
    font-size: 3rem;
  }

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

  .service-card {
    min-height: auto;
  }

  .code-window {
    transform: none;
  }

  .code-content {
    padding: 1.5rem;
    font-size: 0.75rem;
  }

  .cta-content h2 {
    font-size: 2.5rem;
  }
}


/* CONTACT PAGE */

.contact-page {
  padding: 6rem 8%;
  background: var(--bg-darkest);
  color: var(--text-bright);
  overflow: hidden;
}

.contact-page h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 0.8rem;
}

.contact-intro {
  max-width: 650px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 4rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 5rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

/* shared "// LABEL" eyebrow used by the form + sidebar */
.contact-form::before,
.contact-info::before {
  content: "// PROJECT INQUIRY";
  display: block;
  margin-bottom: 2.5rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-info::before {
  content: "// CONTACT";
}


/* FORM */

.contact-form {
  position: relative;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--primary-glow), transparent 25%), var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  position: relative;
  margin-bottom: 1.7rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: var(--bg-dark);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-elevated);
  color: var(--text-bright);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-darkest);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 0 18px var(--primary-glow);
}

/* validation */
.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--danger);
}

.error-message {
  display: none;
  margin-top: 0.4rem;
  color: var(--danger);
  font-size: 0.75rem;
  line-height: 1.4;
}

.form-group input:invalid:not(:focus):not(:placeholder-shown)+.error-message,
.form-group textarea:invalid:not(:focus):not(:placeholder-shown)+.error-message {
  display: block;
}

/* submit button */
.contact-form .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  background: var(--primary-color);
  color: var(--bg-darkest);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.contact-form .btn-primary:hover {
  transform: translateY(-3px);
  background: transparent;
  color: var(--primary-color);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.contact-form .btn-primary:active {
  transform: translateY(-1px);
}


/* CONTACT INFO SIDEBAR */

.contact-info {
  position: sticky;
  top: 110px;
  padding: 2rem 0 2rem 2.5rem;
  border-left: 1px solid var(--border-color);
}

.contact-info h3 {
  margin: 0 0 1.2rem;
  color: var(--text-bright);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.3;
}

.contact-info h3:not(:first-of-type) {
  margin-top: 3rem;
}

.contact-info ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-color);
}

.contact-info li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-body);
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-info li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* social icons + whatsapp button share the same "pill button" look */
.social-icons {
  display: flex;
  gap: 0.7rem;
}

.social-icons a,
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-body);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-icons a {
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
}

.social-icons a:hover,
.whatsapp-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  background: var(--primary-glow);
  color: var(--primary-color);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.social-icons svg,
.whatsapp-btn svg {
  width: 19px;
  height: 19px;
}

.whatsapp-btn {
  width: 100%;
  box-sizing: border-box;
  gap: 0.7rem;
  margin-top: 2rem;
  padding: 0.9rem 1rem;
  border-color: var(--primary-dim);
  background: transparent;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}


/* FORM SUCCESS / ERROR MODAL */
.form-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 14, 12, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.form-modal-overlay.active {
  display: flex;
}

.form-modal {
  position: relative;
  width: min(420px, 100%);
  box-sizing: border-box;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--primary-glow), transparent 30%), var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow), 0 0 40px rgba(57, 255, 136, 0.08);
  animation: form-modal-in 0.25s ease-out;
}

/* small technical label */
.form-modal::before {
  content: "// FORM STATUS";
  display: block;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* status indicator (checkmark / exclamation circle) */
.form-modal::after {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 1.3rem;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--primary-glow);
}

.form-modal.error::after {
  content: "!";
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(255, 92, 92, 0.08);
}

.form-modal-message {
  margin: 0 0 1.5rem;
  color: var(--text-bright);
  font-size: 0.9rem;
  line-height: 1.7;
}

.form-modal-close {
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  background: var(--primary-color);
  color: var(--bg-darkest);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.form-modal-close:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--primary-color);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.form-modal.error .form-modal-close {
  border-color: var(--danger);
  background: var(--danger);
  color: var(--bg-darkest);
}

.form-modal.error .form-modal-close:hover {
  background: transparent;
  color: var(--danger);
  box-shadow: 0 6px 20px rgba(255, 92, 92, 0.15);
}

@keyframes form-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/*LIGHT THEME*/
body:has(#theme-toggle:checked) .contact-form {
  box-shadow: 0 8px 30px rgba(80, 30, 50, 0.06);
}

body:has(#theme-toggle:checked) .form-group input:focus,
body:has(#theme-toggle:checked) .form-group textarea:focus,
body:has(#theme-toggle:checked) .form-group select:focus {
  background: var(--bg-dark);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

body:has(#theme-toggle:checked) .form-modal-overlay {
  background: rgba(43, 15, 26, 0.35);
}

body:has(#theme-toggle:checked) .form-modal {
  box-shadow: 0 12px 40px rgba(80, 30, 50, 0.12), 0 0 30px rgba(224, 40, 111, 0.08);
}


/*RESPONSIVE*/
@media (max-width: 1000px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .contact-info {
    position: static;
    padding: 2.5rem 0 0;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}

@media (max-width: 700px) {
  .contact-page {
    padding: 4rem 6%;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-group {
    margin-bottom: 1.3rem;
  }
}

@media (max-width: 500px) {
  .contact-page {
    padding: 5rem 5%;
  }

  .contact-form {
    padding: 1.2rem;
  }

  .contact-info {
    padding-top: 2rem;
  }

  .social-icons a {
    width: 42px;
    height: 42px;
  }

  .form-modal {
    padding: 2rem 1.3rem;
  }
}