:root {
  --navbar-bg: rgba(0, 0, 0, 0.85);
  --navbar-radius: 9999px;
  --max-width: 1100px;
  --page-pad: clamp(12px, 3.6vw, 32px);
  --section-radius: clamp(26px, 5.6vw, 50px);
  --padding: 1rem 2rem;
  --text-color: #eee;
  --accent-color: #888;
  --transition: all 0.3s ease;
  --z-navbar: 1000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
video,
svg {
  max-width: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #17181A;
  color: var(--text-color, #fff);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Prevent long strings from forcing horizontal scroll */
* {
  overflow-wrap: anywhere;
}

/* Dark scrollbars (removes the white scrollbar track on the right in many browsers) */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(0, 0, 0, 0.55);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.55);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.55);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  width: min(var(--max-width), calc(100% - (var(--page-pad) * 2)));
  min-width: 0;
  margin: 0;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(16px, 3vw, 36px);
  height: 70px;
  background: rgba(24, 24, 24, 0.32);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.2px solid rgba(255, 255, 255, 0.09);
  margin-top: var(--page-pad);
  margin-bottom: var(--page-pad);
}


.nav-logo {
  font-size: 1.4em;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  /* Changed from blue to white */
  text-decoration: none;
}

.logo-metallic {
  color: #94a3b8;
  /* Sleek Metallic Gray */
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2em;
}

.nav-links a {
  color: #bfc7d5;
  text-decoration: none;
  font-size: 1em;
  transition: color .18s;
  padding: 8px 5px;
  border-radius: 4px;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: #fff;
  background: #323946;
}

.nav-links a.active {
  color: #94a3b8;
  /* Matching the deeper metallic gray */
  font-weight: 600;
}

.nav-links a.nav-cta {
  background: #fff;
  /* Pure white for high contrast */
  color: #000;
  /* Dark text */
  padding: 8px 22px;
  margin-left: 8px;
  border: none;
  border-radius: 24px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus {
  background: #e2e8f0;
  /* Soft metallic gray on hover */
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 34px;
  height: 34px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  height: 4px;
  width: 27px;
  background: #bfc7d5;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
  display: block;
}

@media (max-width: 1100px) {
  .hero {
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .maincontainerhero {
    flex-direction: column-reverse;
    align-items: center;
    gap: 50px;
    text-align: center;
    width: 100%;
  }

  .text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-right: 0;
  }

  .tungtungtungtungtungsahur {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
  }

  .trallalero-tralllala {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .about-button-container {
    display: flex;
    justify-content: center;
    width: auto;
    margin: 0;
    padding-top: 0;
  }

  .ballerina-capuchina {
    text-align: center;
    max-width: 90%;
    margin: 0 auto 30px;
    line-height: 1.6;
  }

  .buttonsahurballerina {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  .buttonsahur1,
  .buttonsahur2 {
    width: 280px !important;
    text-align: center;
    margin: 0 !important;
  }

  .hero-text1,
  .hero-text2 {
    font-size: 3.5rem;
    line-height: 1.1;
  }

  /* Increase padding for other sections */
  .section-bg,
  .process,
  .faq-section-modern {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  /* Tablet: keep the arrow button inline with the name */
  .trallalero-tralllala {
    flex-wrap: nowrap;
  }
}

/* Responsive styles for smaller screens */
@media (max-width: 1100px) {
  nav {
    width: 100%;
    margin: 0;
    border-radius: 0;
    height: 60px;
    padding: 0 24px;
    top: 0;
    margin-top: 0;
    min-width: 0;
  }

  .nav-links {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80vw;
    max-width: 320px;
    background: #23272F;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 0 28px;
    gap: 2em;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.77, .2, .05, 1.0);
    box-shadow: 2px 0 8px rgba(0, 0, 0, .17);
    z-index: 2000;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }
}

/* Optional overlay styles when menu is open (handled with JS) */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  z-index: 1500;
  display: none;
}

.overlay.active {
  display: block;
}


.hero {
  position: relative;
  height: auto;
  width: 100%;
  padding-top: 100px;
  /* Keeps negative z-index children from disappearing behind the page background */
  isolation: isolate;
}

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  /* Visible but still subtle behind the UI */
  filter: blur(3px) brightness(18%);
  transform: translateZ(0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: block;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.07) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-family: sans-serif;
}

.hero-text1 {
  font-size: 4rem;
  color: white;
  margin: 0;
  min-width: 0;
  flex: 0 1 auto;
}

.hero-text2 {
  font-size: 4rem;
  color: rgb(137, 137, 137);
}

.badge {
  display: inline-flex;
  align-items: center;
  background-color: #1a1a1a;
  color: white;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.badge-icon {
  margin-right: 8px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

.bw-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex: 0 0 auto;
}

.tcontainer {
  width: min(var(--max-width), calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
  padding-top: 100px;
  align-items: center;
}

.trallalero-tralllala {
  padding-top: 25px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
}

/* Tablet + phone: center the name + arrow row */
@media (max-width: 1100px) {
  .trallalero-tralllala {
    justify-content: center;
    text-align: center;
  }
}


.ballerina-capuchina {
  font-size: 1.01rem;
  color: rgb(137, 137, 137);
  padding-top: 20px;
  padding-bottom: 20px;
}

.buttonsahur1 {
  background: linear-gradient(to top, black 50%, rgba(255, 255, 255, 0.1) 95%);
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  width: fit-content;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.buttonsahur1:hover {
  opacity: 0.7;
}

.buttonsahur2 {
  background: linear-gradient(to top, white 95%, rgba(0, 0, 0, 0.1) 50%);
  color: black;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 1009px;
  width: fit-content;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* Ensure the hero "Contact Now" anchor looks identical and text stays visible */
a.buttonsahur2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111 !important;
  text-decoration: none;
}

.buttonsahurballerina {
  display: flex;
  gap: 10px;
}

.buttonsahur2:hover {
  opacity: 0.7;
}

.about-button-container {
  padding-top: 0;
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.about-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  color: white;
  font-size: 20px;
  overflow: visible;
}

.about-button:hover {
  transform: scale(1.1);
}

.about-button .label {
  position: absolute;
  top: 20%;
  left: 100%;
  transform: translate(10%, -30%) rotateZ(-45deg) scale(0.5);
  transform-origin: bottom left;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 5px 10px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.about-button:hover .label {
  transform: translate(10%, -30%) rotateZ(0deg) scale(1);
  opacity: 1;
}

.maincontainerhero {
  display: flex;
  justify-content: center;
}

.section-bg {
  background-color: #0e0e0e;
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-radius: 2.5rem;
  position: relative;
  overflow: hidden;
}

.section-bg::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  z-index: 0;
  filter: blur(60px);
}

.section-content {
  position: relative;
  z-index: 1;
  color: #dcdcdc;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: auto;
  margin: 80px var(--page-pad) 0 var(--page-pad);
}

.project-tile1{
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  height: 25rem;
  margin-bottom: 30px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.project-tile2 {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  height: 22rem;
  margin-bottom: 30px;
  display: block;
  transition: transform 1s ease-in-out;
}

.project-tile1 img,
.project-tile2 img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 24px;
  padding: 20px;
  transition: all 0.5s ease;
}

.project-info-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  padding: 40px 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.project-tile1:hover .project-info-overlay,
.project-tile2:hover .project-info-overlay {
  opacity: 1;
}

.project-tile1:hover img,
.project-tile2:hover img{
  transform: scale(1.02);
}

.project-tile1:hover,
.project-tile2:hover{
  transform: scale(1.02);
}

.project-info-overlay h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.project-tile1:hover .project-info-overlay h3,
.project-tile2:hover .project-info-overlay h3 {
  transform: translateY(0);
}

.project-skills-preview {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.project-tile1:hover .project-skills-preview,
.project-tile2:hover .project-skills-preview {
  transform: translateY(0);
}

.project-rating-preview {
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.05s;
  justify-content: flex-end;
}

.project-tile1:hover .project-rating-preview,
.project-tile2:hover .project-rating-preview {
  transform: translateY(0);
}

.arrow-diag {
  display: inline-block;
  transform: rotate(-45deg);
  margin-left: 6px;
  font-size: 16px;
}

.about-button1 {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  color: white;
  font-size: 20px;
  overflow: visible;
}

.about-button1:hover {
  transform: scale(1.1);
}

.project-tile1,
.project-tile2 {
  position: relative;
}

.project-tile1 .arrow-icon,
.project-tile2 .arrow-icon {
  position: absolute;
  bottom: 20px;
  left: 20px;
  opacity: 1;
  z-index: 3;
}

.arrow-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.arrow-icon {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: auto;
  height: auto;
  overflow: hidden;
}

.arrow-in,
.arrow-out {
  position: absolute;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.7s ease;
  transform: translate(0%, -30%) rotateZ(-45deg) scale(0.5);
  opacity: 0;
  font-size: 18px;
}

.arrow-in {
  transform: translateY(150%);
  opacity: 0;
}

.arrow-out {
  transform: translateY(0);
  transform: translate(0%, 0%) rotateZ(-45deg) scale(1);
  opacity: 1;
}

.project-tile1:hover .arrow-in,
.project-tile2:hover .arrow-in {
  transform: translateY(0);
  transform: translate(0%, 0%) rotateZ(-45deg) scale(1);
  opacity: 1;
}

.project-tile1:hover .arrow-out,
.project-tile2:hover .arrow-out {
  transform: translateY(-150%);
  opacity: 0;
}

.circle {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: white;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 8px 2px rgba(255, 255, 255, 0.7),
    0 0 15px 6px rgba(255, 255, 255, 0.4),
    0 0 20px 10px rgba(255, 255, 255, 0.2);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border 0.3s ease;
}

.circle.expand {
  width: 100px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition:
    width 0.25s ease,
    height 0.25s ease,
    border 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  color: white;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.circle.expand .circle-text {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.imgholder {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.imgholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.imgholder:hover {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.3s ease;
}


.thebestprojects {
  position: relative;
  background: transparent;
  overflow: hidden;
}

.thebestprojects::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 60%;
  width: 100%;
  background-color: #000;
  z-index: -1;
}

.aboutcontainer {
  width: 100%;
  height: auto;
  display: block;
}

.aboutcontainerr {
  width: 100%;
  display: flex;
  justify-content: center;
}

.herotext11 {
  font-size: 3rem;
  color: white;
}

.herotext21 {
  font-size: 3rem;
  color: rgb(137, 137, 137);
}

.containerinsideacontainer {
  display: flex;
  width: 100%;
  justify-content: center;
}

.headingovr {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badgecont {
  width: 100%;
  display: flex;
  justify-content: center;
}

.type-cursor {
  display: inline-block;
  animation: blink 0.7s steps(1) infinite;
  color: rgb(137, 137, 137);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ===== ABOUT SECTION (Responsive From Scratch) ===== */
.hicontainer {
  width: min(var(--max-width), calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(16px, 2.6vw, 30px);
  padding-top: clamp(36px, 6vw, 60px);
  padding-bottom: clamp(22px, 4vw, 30px);
}

.hi1,
.hi2 {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  height: auto;
  width: auto;
}

.hi1 {
  flex: 1 1 380px;
  max-width: 520px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hi2 {
  flex: 1 1 560px;
  max-width: 760px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-photo {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.myself {
  width: 100%;
  display: block;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.about-photo .availability-badge {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.name-heading {
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  margin-top: 18px;
  margin-bottom: 8px;
}

.name-subheading {
  font-size: 1rem;
  color: #cbd5e1;
  margin: 0;
}

.dot {
  position: relative;
  width: 6px;
  height: 6px;
  background-color: #00ff4c;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 255, 76, 0.6);
}

.dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: #00ff4c;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 1.5s infinite ease-in-out;
  opacity: 0.4;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(5.2);
    opacity: 0;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.dot.unavailable {
  background-color: #ff3c3c;
  box-shadow: 0 0 10px rgba(255, 60, 60, 0.6);
}

.dot.unavailable::before {
  background-color: #ff3c3c;
  animation: pulse-red 1.5s infinite ease-in-out;
  opacity: 0.4;
}

@keyframes pulse-red {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(5.2);
    opacity: 0;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 1.25rem 0 0;
}

.social-btn {
  text-decoration: none;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 18px;
  color: #fff;
  transition: background .25s ease, transform .25s ease, box-shadow .25s;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.allcontainer {
  width: 100%;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.contact-cta {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 1.4rem;
  width: 100%;
  align-items: center;
}

.contact-cta .divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.connect-btn {
  align-self: center;
  width: min(100%, 320px);
  display: inline-flex;
  justify-content: center;
  padding: .9rem 2.5rem;
  border-radius: 40px;
  background: linear-gradient(to bottom, #111 0%, #050505 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, .35) inset,
    0 6px 14px rgba(0, 0, 0, .45);
  transition: opacity .25s ease, transform .25s ease;
}

.connect-btn:hover {
  opacity: .82;
  transform: translateY(-2px);
}

.content1 {
  width: 100%;
  height: auto;
}

.paratext {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #cbd5e1;
  margin: 0;
}

.text-container {
  padding-right: clamp(0px, 6vw, 100px);
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
  padding-left: 0;
  justify-content: center;
}

.skill-tag {
  background-color: #111;
  color: #fff;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: default;
  transition: background 0.3s ease;
}

.skill-tag:hover {
  background-color: #1a1a1a;
}

.section-divider {
  width: 100%;
  height: 1px;
  background-color: #2a2a2a;
  margin: 24px 0;
  opacity: 0.3;
}

.accordion {
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

.accordion-item {
  cursor: pointer;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.accordion-header {
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: #ddd;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.header-emoji {
  display: inline-block;
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-right: 12px;
  filter: grayscale(1);
}

.accordion-item.active .header-emoji {
  opacity: 1;
  transform: scale(1.2) rotate(0deg);
  filter: grayscale(0);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  color: #aaa;
  padding-top: 0.5rem;
}

.accordion-item.active .accordion-content {
  max-height: 800px;
  opacity: 1;
}

.accordion-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  margin: 0.5rem 0;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.568);
  transition: width 6s linear;
}

.item_squares {
  background-color: transparent;
  color: #fff;
  padding: 8px 16px;
  font-size: 18px;
  font-weight: 500;
  cursor: default;
  transition: background 0.3s ease;
  height: auto;
  padding: 10px;
  transition: transform 0.3s ease;
}

.item_squares:hover {
  transform: scale(1.08);
}

.skillcont {
  height: 100%;
  width: 100%;
  padding-top: 15px;
  gap: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.skill-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  /* Don't filter the container: it would invert Font Awesome icons too. */
  filter: none;
}

.skill-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* Invert only SVG images so they read on dark backgrounds. */
  filter: invert(1);
}

.skill-logo i {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #fff;
  filter: none;
}

.skill-logo i.fa-node-js,
.skill-logo i.fa-github {
  font-size: 42px;
}

.text {
  font-size: 12px;
  color: #eee;
  font-weight: 500;
  padding-top: 10px;
}

.txtcontainer {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hi2 .divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  opacity: 0.8;
}

@media (max-width: 680px) {
  .hi1,
  .hi2 {
    padding: 16px;
  }

  .myself {
    aspect-ratio: 1 / 1.12;
  }

  .hi2 {
    text-align: center;
  }

  .hi2 .accordion-header {
    justify-content: center;
  }
}

/* ===== FEATURED PROJECTS SECTION ===== */
.featured-projects-section {
  padding: 80px var(--page-pad) 60px;
}

.featured-projects-header {
  text-align: center;
  margin-bottom: 20px;
}

.featured-projects-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-top: 16px;
  margin-bottom: 12px;
}

.text-muted-project {
  color: #666;
  font-weight: 500;
}

.featured-projects-desc {
  color: #888;
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* CTA Button */
.featured-projects-cta {
  text-align: center;
  margin-top: 50px;
}

.view-all-projects-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.view-all-projects-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, #f0f0f0 0%, #cbd5e1 100%);
}

.view-all-projects-btn .btn-arrow {
  display: inline-block;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

.view-all-projects-btn:hover .btn-arrow {
  transform: rotate(0deg);
}

/* Responsive */
@media (max-width: 768px) {
  .featured-projects-title {
    font-size: 2.2rem;
  }

  .featured-projects-section {
    padding: 60px var(--page-pad) 40px;
  }
}

/* ===== SERVICES SECTION ===== */
.services-section {
  margin: var(--page-pad);
  padding: 90px var(--page-pad) 80px;
  border-radius: var(--section-radius);
  background: #101012;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 110px;
}

.services-section::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  filter: blur(20px);
  opacity: 0.9;
  pointer-events: none;
}

.services-header {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 46px;
}

.services-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-top: 16px;
  margin-bottom: 12px;
}

.services-desc {
  color: #888;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto;
}

.services-grid {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 22px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover .service-icon i {
  transform: rotate(-8deg) scale(1.08);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
  color: #000;
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.service-icon i {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 2px 0 8px;
}

.service-desc {
  color: #9aa0a6;
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0 0 14px;
}

.service-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-points li {
  font-size: 0.85rem;
  color: #c7c7c7;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.services-actions {
  position: relative;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.services-actions .btn-primary,
.services-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 70px 5% 60px;
    border-radius: 40px;
  }

  .services-title {
    font-size: 2.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-points li {
    width: 100%;
    border-radius: 14px;
  }

  .services-actions {
    width: 100%;
  }

  .services-actions .btn-primary,
  .services-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* ===== WHY CHOOSE ME (Original) ===== */
.why-section {
  margin: var(--page-pad);
  padding: 92px var(--page-pad) 84px;
  border-radius: var(--section-radius);
  background: radial-gradient(1200px 500px at 20% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(900px 600px at 85% 55%, rgba(255, 255, 255, 0.05), transparent 60%),
    #0d0e10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.why2-shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.why2-left {
  position: sticky;
  top: calc(78px + var(--page-pad));
  align-self: start;
}

.why2-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 16px 0 12px;
}

.why2-desc {
  color: rgba(255, 255, 255, 0.70);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 0 18px;
}

.why2-points {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}

.why2-points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(255, 255, 255, 0.78);
}

.why2-points i {
  color: #22c55e;
  margin-top: 3px;
}

.why2-progress {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.why2-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.why2-fill {
  display: block;
  height: 100%;
  width: calc(var(--why2-progress, 0) * 100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.35));
  border-radius: 999px;
  transition: width 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.why2-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.why2-step {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.70);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.why2-step:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.why2-step.is-active {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.why2-right {
  display: grid;
  gap: 16px;
}

.why2-card {
  position: relative;
  border-radius: 22px;
  padding: 22px 22px 20px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.44);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.why2-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), transparent 55%);
  opacity: 0.0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.why2-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.55);
}

.why2-card.is-active {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.why2-card.is-active::before {
  opacity: 0.9;
}

.why2-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.why2-chip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.90);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}

.why2-card-title {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

.why2-card-desc {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 66ch;
}

.why2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.why2-tag {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
  .why2-shell {
    grid-template-columns: 1fr;
  }

  .why2-left {
    position: relative;
    top: auto;
    max-width: 820px;
    margin: 0 auto 10px;
    text-align: center;
  }

  .why2-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .why2-points {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .why2-progress {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .why2-right {
    max-width: 900px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .why-section {
    padding: 72px var(--page-pad) 64px;
  }

  .why2-step {
    width: 100%;
    justify-content: center;
  }
}

/* ===== CONTACT (Final) ===== */
.contact-final {
  margin: var(--page-pad);
  padding: 92px var(--page-pad) 84px;
  border-radius: var(--section-radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(1100px 420px at 15% 20%, rgba(255, 255, 255, 0.10), transparent 55%),
    radial-gradient(900px 560px at 85% 55%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.25)),
    #0b0c0e;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 120px;
}

.contact-final::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    conic-gradient(from 180deg at 50% 50%,
      rgba(255, 255, 255, 0.00),
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.00) 60%);
  opacity: 0.55;
  filter: blur(22px);
  pointer-events: none;
  animation: contactGlow 9s linear infinite;
}

@keyframes contactGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.contact-final-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.contact-final-left {
  position: relative;
}

.contact-final-title {
  font-size: clamp(2.1rem, 4.1vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 16px 0 12px;
}

.contact-final-desc {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  font-size: 1.05rem;
  margin: 0 0 18px;
  max-width: 56ch;
}

.contact-final-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.contact-mini-item {
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

.contact-mini-k {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}

.contact-mini-v {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.90);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.contact-final-card {
  position: relative;
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.58);
  overflow: hidden;
  padding: 30px;
}

.contact-final-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.contact-card-top {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.contact-card-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
}

.contact-card-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.6;
}

.contact-card-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 70px 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.contact-final-direct {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.contact-card-row-compact {
  padding: 12px 12px;
}

.contact-direct-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-input {
  width: 100%;
  border-radius: 16px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  font-size: 1rem;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

/* Prevent white-on-white text in native select dropdowns on some browsers/OS themes */
select.contact-input {
  color-scheme: dark;
}

select.contact-input option,
select.contact-input optgroup {
  background-color: #17181A;
  color: rgba(255, 255, 255, 0.92);
}

select.contact-input option:disabled {
  color: rgba(255, 255, 255, 0.65);
}

.contact-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-input:focus {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.contact-form-actions {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.contact-submit {
  width: 100%;
}

.contact-note {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

.contact-note a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-card-label {
  color: rgba(255, 255, 255, 0.60);
  font-size: 0.95rem;
}

.contact-card-value {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-copy {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.contact-copy:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.contact-card-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.contact-card-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-card-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  margin: 18px 0 14px;
  background: rgba(255, 255, 255, 0.10);
}

.contact-card-social {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.contact-social-label {
  color: rgba(255, 255, 255, 0.60);
  font-size: 0.95rem;
}

.contact-social-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-toast {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.contact-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .contact-final-inner {
    grid-template-columns: 1fr;
  }

  .contact-final-left {
    text-align: center;
  }

  .contact-final-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-final-mini {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-final-card {
    max-width: 900px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .contact-final {
    padding: 74px var(--page-pad) 66px;
  }

  .contact-final-mini {
    grid-template-columns: 1fr;
  }

  .contact-card-row {
    grid-template-columns: 60px 1fr 44px;
  }

  .contact-card-actions {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-direct-actions {
    grid-template-columns: 1fr;
  }

  .contact-form-actions {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  margin: var(--page-pad);
  margin-bottom: 0;
  padding: 44px var(--page-pad);
  border-radius: calc(var(--section-radius) - 10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(900px 240px at 18% 10%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.26)),
    rgba(0, 0, 0, 0.40);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  margin: 0;
  max-width: 48ch;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.footer-title {
  color: rgba(255, 255, 255, 0.90);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-link:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer-social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-meta {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-social-row {
    justify-content: center;
  }
}

.process {
  background-color: #000;
  border-radius: var(--section-radius);
  margin: var(--page-pad);
  overflow: hidden;
}

.process-modern {
  background: #000000;
  color: #f0f0f0;
  margin-top: 0;
  width: 100%;
  font-family: 'Inter', sans-serif;
  text-align: center;
  border-radius: var(--section-radius);
  padding-top: 75px;
  padding-bottom: 75px;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.section-tag {
  font-size: 0.9rem;
  color: #888;
  background: #1c1c1c;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-heading {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-heading span {
  color: #fff;
  font-weight: 800;
}

.section-desc {
  color: #999;
  font-size: 1rem;
  max-width: 600px;
  margin: auto auto 3rem;
}

.timeline {
  display: flex;
  position: relative;
  width: 100%;
  justify-content: center;
  padding-left: 70px;
  padding-right: 70px;
}

.timeline-block {
  display: flex;
  justify-content: center;
  position: relative;
}

.timeline-content {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  text-align: left;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.03);
  transition: 0.3s ease all;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.06);
}

.timeline-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #fefefe;
}

.timeline-content p {
  font-size: 0.95rem;
  color: #aaa;
}

.step-num {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid #333;
  border-radius: 999px;
  color: #aaa;
  background: #121212;
}



/* --- RESPONSIVENESS INJECTIONS (Base sizes remain unchanged) --- */

@media (max-width: 1024px) {
  nav {
    width: 100%;
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 20px;
    margin: 70px 12px 0 12px;
  }

  .timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 40px;
  }

  .timeline-content {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-text1,
  .hero-text2 {
    font-size: 2.8rem;
  }

  .tcontainer {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 30px;
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
    box-sizing: border-box;
  }

  .maincontainerhero {
    width: 100%;
    align-items: center;
  }

  /* Section padding for smaller mobile */
  .section-bg,
  .process,
  .faq-section-modern {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .trallalero-tralllala {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .imgholder {
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
  }

  .herotext11,
  .herotext21 {
    font-size: 2.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    padding: 0 12px;
    margin: 60px 12px 0 12px;
  }

  .projectgrp {
    width: 100% !important;
  }

  .project-tile1,
  .project-tile2 {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
  }

  .timeline {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .buttonsahurballerina {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
  }

  .buttonsahur1,
  .buttonsahur2 {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

@media (max-width: 480px) {


  .hero-text1,
  .hero-text2 {
    font-size: 2.22rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }


}

/* --- Reveal & Transition System --- */
/* Using 'translate' property instead of 'transform' to avoid position conflicts */

.reveal-load,
.reveal {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    translate 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: blur(10px);
}

.reveal-load {
  translate: 0 30px;
}

.reveal-up {
  translate: 0 50px;
}

.reveal-down {
  translate: 0 -50px;
}

.reveal-left {
  translate: -50px 0;
}

.reveal-right {
  translate: 50px 0;
}

/* Active State */
.reveal-load.reveal-visible,
.reveal.reveal-visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  filter: blur(0);
}

/* Keep About cards "in-bounds": disable reveal translations inside them (fade/blur remains). */
.hi1 .reveal-up,
.hi1 .reveal-down,
.hi1 .reveal-left,
.hi1 .reveal-right,
.hi1 .reveal-load,
.hi2 .reveal-up,
.hi2 .reveal-down,
.hi2 .reveal-left,
.hi2 .reveal-right,
.hi2 .reveal-load {
  translate: 0 0 !important;
}

/* Staggered Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }
.delay-800 { transition-delay: 800ms; }

/* Optimize for performance */
@media (prefers-reduced-motion: reduce) {

  .reveal-load,
  .reveal {
    transition: opacity 0.3s ease !important;
    translate: 0 0 !important;
    filter: none !important;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 1024px) {
  /* Cursor-follow dot is a desktop affordance; hide on touch and smaller screens. */
  .circle {
    display: none !important;
  }

  /* Project tiles: show hover UI by default on touch/smaller screens. */
  .project-info-overlay {
    opacity: 1 !important;
  }

  .project-info-overlay h3,
  .project-skills-preview,
  .project-rating-preview {
    transform: translateY(0) !important;
  }

  .project-tile1:hover img,
  .project-tile2:hover img {
    transform: none !important;
  }

  .arrow-in {
    transform: translate(0%, 0%) rotateZ(-45deg) scale(1) !important;
    opacity: 1 !important;
  }

  .arrow-out {
    transform: translateY(-150%) !important;
    opacity: 0 !important;
  }
}
