/* ================================================================
   AJAY PORTFOLIO — styles.css (UPDATED)
   Changes: Projects section, slider fix, separators, footer, scroll animations
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  min-height: 100vh;
  background: #ffffff;
  overflow-x: hidden;
}

section {
  padding: 80px 20px;
}

@media (min-width: 768px) {
  section {
    padding: 100px;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 100px 200px;
  }
}

/* ================================================================
   HEADER & NAVIGATION
   ================================================================ */
header {
  z-index: 999;
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  top: 15px;
  left: 20px;
  width: calc(100% - 40px);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.5s ease;
  border-radius: 50px;
}

.header-logo {
  width: 90px;
  height: auto;
  display: block;
}

@media (min-width: 1024px) {
  header {
    padding: 10px 40px;
    left: 40px;
    width: calc(100% - 80px);
  }

  header.sticky {
    padding: 10px 40px;
  }
}

header.sticky {
  background: #3a6cf4;
  padding: 10px 20px;
}

header .brand {
  color: #fff;
  font-size: 1.8em;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

header .navigation {
  position: relative;
}

header .navigation a {
  color: #fff;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  margin-left: 30px;
}

header .navigation a:hover {
  color: #3a6cf4;
}

header.sticky .navigation a:hover {
  color: #000;
}

.menu-btn {
  position: absolute;
  background: url(https://static.thenounproject.com/png/604152-200.png) no-repeat;
  background-size: 30px;
  background-position: center;
  width: 40px;
  height: 40px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: 0.3s ease;
  display: block;
  z-index: 1000;
}

@media (min-width: 1040px) {
  .menu-btn {
    display: none;
  }
}

.menu-btn.active {
  z-index: 1001;
  background: url(https://www.freeiconspng.com/uploads/close-button-png-25.png) no-repeat;
  background-size: 25px;
  background-position: center;
  filter: invert(1);
}

header .navigation {
  display: none;
}

header .navigation.active {
  z-index: 999;
  position: fixed;
  background-color: #2355ded1;
  top: 20px;
  /* added spacing from top */
  right: 10px;
  /* added spacing from right */
  width: 80%;
  max-width: 300px;
  height: calc(100vh - 40px);
  /* adjusted height to maintain spacing */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease;
  padding: 50px 0;
  overflow-y: auto;
  border-radius: 20px;
  /* rounded corners */
}

@media (min-width: 1040px) {
  header .navigation {
    display: flex;
    position: relative;
    background-color: transparent;
    width: auto;
    height: auto;
    box-shadow: none;
    flex-direction: row;
    padding: 0;
  }
}

header .navigation a {
  color: #fff;
  font-size: 1.2em;
  margin: 15px 0;
  padding: 8px 20px;
  border-radius: 20px;
  width: 80%;
  text-align: center;
  transition: 0.3s ease;
}

@media (min-width: 1040px) {
  header .navigation a {
    margin: 0 10px;
    width: auto;
  }
}

header .navigation.active a {
  color: #fff;
  display: block;
}

header .navigation a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

header .navigation.active a:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #fff;
}

header {
  z-index: 998;
}

/* ================================================================
   MAIN / HERO
   ================================================================ */
.main {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: left;
  overflow: hidden;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .main {
    padding: 0 100px;
  }
}

#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.main .content {
  max-width: 100%;
  z-index: 1;
}

@media (min-width: 768px) {
  .main .content {
    max-width: 720px;
  }
}

.main .content h2 {
  color: #fff;
  font-size: 1.5em;
  font-weight: 500;
}

@media (min-width: 768px) {
  .main .content h2 {
    font-size: 2em;
  }
}

.main .content h2 span {
  font-size: 1.5em;
  font-weight: 600;
}

@media (min-width: 768px) {
  .main .content h2 span {
    font-size: 1.8em;
  }
}

.animated-text {
  position: relative;
  height: 70px;
  overflow: hidden;
}

.animated-text h3 {
  color: #4e9eff;
  font-size: 2em;
  font-weight: 700;
  line-height: 70px;
  letter-spacing: 1px;
  margin: 0;
}

@media (min-width: 768px) {
  .animated-text h3 {
    font-size: 3em;
  }
}

.animated-text h3:nth-child(1) {
  animation: text-move 15s infinite;
}

@keyframes text-move {
  0% {
    margin-top: 0;
  }

  20% {
    margin-top: -70px;
  }

  40% {
    margin-top: -140px;
  }

  60% {
    margin-top: -210px;
  }

  80% {
    margin-top: -280px;
  }

  100% {
    margin-top: 0;
  }
}

.btn {
  color: #fff;
  background: #3a6cf4;
  font-size: 1em;
  font-weight: 600;
  display: inline-block;
  padding: 10px 20px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  border-radius: 2px;
  margin-top: 30px;
  transition: 0.5s ease;
}

.btn:hover {
  background: #0d1f52;
}

.media-icons {
  margin-top: 50px;
}

.media-icons a {
  color: #3bebff;
  font-size: 25px;
  margin-right: 30px;
}

/* Social icons */
.example-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(95, 95, 95, 0.19);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  list-style: none;
}

@media (min-width: 768px) {
  .example-2 {
    flex-direction: row;
  }
}

.example-2 .icon-content {
  margin: 5px;
  position: relative;
}

@media (min-width: 768px) {
  .example-2 .icon-content {
    margin: 0 10px;
  }
}

.example-2 .icon-content .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}

.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: #313131;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgba(0, 0, 0, 0.12);
  color: white;
}

.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
}

.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover .filled {
  height: 100%;
}

.example-2 .icon-content a[data-social="linkedin"] .filled,
.example-2 .icon-content a[data-social="linkedin"]~.tooltip {
  background-color: #0274b3;
}

.example-2 .icon-content a[data-social="github"] .filled,
.example-2 .icon-content a[data-social="github"]~.tooltip {
  background-color: #24262a;
}

.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"]~.tooltip {
  background: linear-gradient(45deg, #405de6, #5b51db, #b33ab4, #c135b4, #e1306c, #fd1f1f);
}

/* ================================================================
   SECTION TITLES
   ================================================================ */
.title {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.section-title {
  position: relative;
  color: #3a6cf4;
  font-size: 1.8em;
  font-weight: 800;
  margin-bottom: 60px;
  text-align: center;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.2em;
  }
}

.section-title:before {
  content: '';
  position: absolute;
  top: 56px;
  left: 50%;
  width: 140px;
  height: 4px;
  background: #3a6cf4;
  transform: translateX(-50%);
}

.section-title:after {
  content: '';
  position: absolute;
  top: 50px;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #3a6cf4;
  transform: translateX(-50%);
}

.title p {
  font-size: 1em;
  width: 80%;
  text-align: center;
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about {
  background: rgb(222, 225, 227);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* Gradient blur above the white background */
/* .about::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(58, 108, 244, 0.57) 0%, rgba(20, 216, 255, 0.438) 40%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
} */


/* Ensure parent is positioned */
.about {
  position: relative;
  overflow: hidden;
}

/* 🌌 TOP RIGHT AURORA GLOW */
.about::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
      #3a6cf4,
      /* aurora green */
      rgba(0, 150, 255, 0.4) 40%,
      /* blue */
      transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

/* 🌌 BOTTOM LEFT AURORA GLOW */
.about::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
      rgba(19, 234, 141, 0.522) 0%,
      /* blue */
      rgba(24, 124, 255, 0.442) 40%,
      /* aurora green */
      transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

.about .content {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .about .content {
    flex-direction: row;
  }
}

.about .content .col-left {
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .about .content .col-left {
    width: 45%;
  }
}

.about .content .col-right {
  position: relative;
  width: 100%;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .about .content .col-right {
    width: 50%;
    margin-top: 0;
  }
}

.about .content .col-left .img-card {
  position: relative;
  width: 100%;
  min-height: 300px;
}

@media (min-width: 768px) {
  .about .content .col-left .img-card {
    min-height: 450px;
  }
}

.about .content .col-left .img-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Stats Slide Animation Setup */
.about-stats {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-top: 25px;
  gap: 15px;
  width: 100%;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  padding: 15px 5px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.249);
  border: 1px solid rgba(0, 212, 255, 0.1);
  flex: 1;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #3b82f6;
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3b82f6;
}

.stat-item p {
  font-size: 0.8rem;

  color: #555;
  margin-top: 5px;
  font-weight: 600;
}

/* ================================================================
   SKILLS SECTION
   ================================================================ */
.skills {
  background: #000016;
}

.skills-down-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #3a6cf4;
  color: #3a6cf4;
  margin-top: 30px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  animation: floatDown 2s infinite ease-in-out;
}

.skills-down-btn:hover {
  background: #3a6cf4;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(58, 108, 244, 0.4);
  animation-play-state: paused;
}

@keyframes floatDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

.skills .content {
  position: relative;
  width: 100%;
  display: flex;
  line-height: 1.5;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .skills .content {
    flex-direction: row;
  }
}

.skills .content .col-left {
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .skills .content .col-left {
    width: 46%;
  }
}

.skills .content .col-left .content-title {
  margin-bottom: 20px;
}

.content-title {
  font-weight: 800;
  /* or 900 for extra bold */
}

.skills .content .col-right {
  position: relative;
  width: 100%;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .skills .content .col-right {
    width: 46%;
    margin-top: 0;
  }
}

.skills .content .col-right .bar {
  margin-bottom: 15px;
  padding: 10px;
}

.skills .content .col-right .bar .info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.skills .content .col-right .bar .info span {
  font-size: 18px;
  font-weight: 500;
}

.skills .content .col-right .bar .line {
  position: relative;
  width: 100%;
  height: 15px;
  background: #ccc;
  border-radius: 2px;
  overflow: hidden;
}

.skills .content .col-right .bar .line:before {
  content: '';
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 2px;
  width: 0;
  transition: width 3s ease-in-out;
}

.skills .content .col-right .bar .html:before {
  background: #e45126;
}

.skills .content .col-right .bar .css:before {
  background: #0c73b8;
}

.skills .content .col-right .bar .javascript:before {
  background: #e3a324;
}

.skills .content .col-right .bar .jquery:before {
  background: #30dd6d;
}

.skills .content .col-right .bar .php:before {
  background: #6d7eb8;
}

@keyframes grow {
  from {
    width: 0;
  }

  to {
    width: var(--target-width);
  }
}

.skills .content .col-right .bar .line:before {
  animation: grow 2s ease-in-out forwards;
  animation-play-state: paused;
}

.skills:hover .content .col-right .bar .line:before,
.skills.active .content .col-right .bar .line:before {
  animation-play-state: running;
}

.skills .content .col-right .bar .html:before {
  --target-width: 95%;
}

.skills .content .col-right .bar .css:before {
  --target-width: 90%;
}

.skills .content .col-right .bar .javascript:before {
  --target-width: 83%;
}

.skills .content .col-right .bar .jquery:before {
  --target-width: 78%;
}

.skills .content .col-right .bar .php:before {
  --target-width: 69%;
}

/* ================================================================
   CHANGE 3: TOOLS SLIDER — GPU-Accelerated, smooth, no lag
   ================================================================ */
.section-title {
  margin-top: 5px;
}

/* Keyframe now uses translate3d for GPU compositing layer */
@keyframes scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(calc(-220px * 18), 0, 0);
  }
}

.slider {
  background: rgb(255, 255, 255);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
  height: 200px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1280px;
  border-radius: 20px;
}

.slider::before,
.slider::after {
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 200px;
  position: absolute;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slider::before {
  left: 0;
  top: 0;
}

/* will-change promotes to a GPU compositing layer */
.slide-track {
  display: flex;
  width: calc(220px * 36);
  animation: scroll 38s linear infinite;
  align-items: center;
  will-change: transform;
  /* GPU acceleration */
  backface-visibility: hidden;
  /* prevent flicker */
}

/* Pause on hover for accessibility */
.slider:hover .slide-track {
  animation-play-state: paused;
}

.slide {
  height: 200px;
  width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  /* consistent 20px gap */
  flex-shrink: 0;
}

.slide img {
  max-height: 90px;
  max-width: 90px;
  object-fit: contain;
}

/* ================================================================
   CHANGE 4: FUTURISTIC SECTION SEPARATORS
   ================================================================ */

/* ================================================================
   CHANGE 4: SMOOTH GRADIENT BLUR SECTION SEPARATORS
   ================================================================ */

/* ================================================================
   PROJECTS CAROUSEL SECTION
   ================================================================ */
.projects {
  background: #000016;
  /* Same as My Skills section background */
  padding: 80px 20px 60px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .projects {
    padding: 100px 60px 80px;
  }
}

@media (min-width: 1024px) {
  .projects {
    padding: 100px 120px 80px;
  }
}

.projects .section-title {
  color: #3a6cf4;
}

.projects .section-title:before,
.projects .section-title:after {
  background: #3a6cf4;
}

.projects .title p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 50px;
}

/* ── Carousel shell ── */
.proj-carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 550px;
  /* Force static outer box height */
  border-radius: 20px;
  overflow: hidden;
  background: var(--proj-base-bg, #000);
}

/* Accent radial wash behind current slide */
.proj-bg-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: background 0.7s ease;
}

/* ── Inner two-column layout ── */
.proj-inner {
  display: flex;
  flex-direction: column-reverse;
  position: relative;
  z-index: 2;
  min-height: 500px;
  /* Lock internal content container height */
}

@media (min-width: 768px) {
  .proj-inner {
    flex-direction: row;
    min-height: 480px;
  }
}

.proj-content {
  flex: 1;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 900px) {
  .proj-content {
    padding: 50px 40px;
    max-width: 50%;
  }
}

.proj-content-inner {
  position: relative;
  padding-bottom: 70px;
  /* Leave space for bottom arrows */
  min-height: 280px;
  /* Minimum height to prevent vertical shrinking/growing jumping */
  display: flex;
  flex-direction: column;
}

/* Counter */
.proj-counter {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.05s, transform 0.5s ease 0.05s;
}

.proj-counter.visible {
  opacity: 1;
  transform: translateY(0);
}

.proj-counter-line {
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.proj-counter-text {
  font-size: 0.78em;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.837);
  font-weight: 500;
}

/* Domain badge */
.proj-domain {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--proj-accent, #00c9a7);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.proj-domain.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Title */
.proj-title {
  font-size: clamp(1.1em, 2.5vw, 1.65em);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.3px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.proj-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Description */
.proj-desc {
  font-size: 0.9em;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.956);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.proj-desc.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tags */
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}

.proj-tags.visible {
  opacity: 1;
  transform: translateY(0);
}

.proj-tags span {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  transition: border-color 0.3s;
}

.proj-tags span:hover {
  border-color: var(--proj-accent, #00c9a7);
  color: var(--proj-accent, #00c9a7);
}

/* External Link Button */
.proj-ext-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--proj-accent, #00c9a7);
  color: var(--proj-accent, #00c9a7);
  margin-top: 25px;
  opacity: 0;
  transform: translateY(10px);
  text-decoration: none;
}

.proj-ext-link.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.28s, transform 0.5s ease 0.28s, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.proj-ext-link.visible:hover {
  transform: scale(1.1);
  background: var(--proj-accent, #00c9a7);
  color: #000;
  box-shadow: 0 0 15px var(--proj-accent, #00c9a7);
  transition: all 0.2s ease;
}

.proj-ext-link svg {
  transition: transform 0.3s ease;
}

.proj-ext-link.visible:hover svg {
  transform: translate(2px, -2px);
}

/* Nav arrows */
.proj-nav-arrows {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.proj-nav-arrows.visible {
  opacity: 1;
  transform: translateY(0);
}

.proj-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.proj-arrow:hover {
  background: var(--proj-accent, #00c9a7);
  border-color: var(--proj-accent, #00c9a7);
  color: #000;
  transform: scale(1.08);
}

/* ── RIGHT: image panel ── */
.proj-image-panel {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 280px;
}

@media (min-width: 768px) {
  .proj-image-panel {
    width: 48%;
    height: auto;
    min-height: 480px;
  }
}

.proj-image-frame {
  position: absolute;
  inset: 20px;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96) translateX(16px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.proj-image-frame.visible {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.proj-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.proj-image-frame:hover .proj-image {
  transform: scale(1.04);
}

.proj-image-overlay {
  position: absolute;
  inset: 0;
  transition: background 0.6s ease;
}

/* Decorative corner brackets */
.proj-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--proj-accent, #00c9a7);
  border-style: solid;
  transition: border-color 0.5s;
  z-index: 0;
}

.proj-corner--tl {
  top: 0px;
  left: 0px;
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}

.proj-corner--br {
  bottom: 0px;
  right: 0px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

/* ── Progress bar ── */
.proj-progress-bar {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto;
  scrollbar-width: none;
}

.proj-progress-bar::-webkit-scrollbar {
  display: none;
}

.proj-progress-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.25s;
  min-width: 80px;
}

.proj-progress-item:last-child {
  border-right: none;
}

.proj-progress-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.proj-progress-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.proj-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--proj-accent, #00c9a7);
  border-radius: 2px;
  transition: width 0.1s linear, background 0.4s ease;
}

.proj-progress-item.active .proj-progress-fill {
  background: var(--proj-accent, #00c9a7);
}

.proj-progress-label {
  font-size: 0.65em;
  letter-spacing: 0.8px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  transition: color 0.3s;
}

.proj-progress-item.active .proj-progress-label,
.proj-progress-item:hover .proj-progress-label {
  color: rgba(255, 255, 255, 0.85);
}



@media (min-width: 768px) {
  .projects {
    padding: 100px;
  }
}

@media (min-width: 1024px) {
  .projects {
    padding: 100px 200px;
  }
}

.projects .section-title {
  color: #3a6cf4;
}

.projects .section-title:before {
  background: #3a6cf4;
}

.projects .section-title:after {
  background: #3a6cf4;
}

.projects .title p {
  color: rgba(255, 255, 255, 0.7);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* CHANGE 7: Scroll animation initial state for project cards */
.project-card {
  background: rgba(0, 212, 255, 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  padding: 32px;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    opacity 0.65s ease;
  position: relative;
  overflow: hidden;

  /* Initial scroll-animation state */
  opacity: 0;
  transform: translateY(45px);

  /* Will be overridden by JS for tilt, needs transition for mouseleave */
  transition:
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    opacity 0.65s ease;
  transform-style: preserve-3d;
}

/* Subtle top-left corner accent */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3a6cf4, #00d5fff3);
  border-radius: 0 0 3px 0;
  transition: width 0.4s ease;
}

.project-card:hover::before {
  width: 100%;
}

.project-card:hover {
  /* Scaling is handled in JS during tilt, but keep box-shadow */
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(0, 212, 255, 0.15);
}

/* Visible state after scroll trigger */
.project-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 
   Hover Image Preview (Cursor Follower)
*/
#cursor-image-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(58, 108, 244, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

#cursor-image-preview.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.project-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(58, 108, 244, 0.15);
  border: 1px solid rgba(58, 108, 244, 0.362);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-icon {
  color: #3a6cf4;
  font-size: 1.4em;
}

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

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.82em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.github-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.github-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

.demo-btn {
  background: linear-gradient(135deg, #3a6cf4, #00d4ff);
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(58, 108, 244, 0.35);
}

.demo-btn:hover {
  box-shadow: 0 8px 25px rgba(58, 108, 244, 0.55);
  transform: translateY(-2px);
}

.project-title {
  color: #ffffff;
  font-size: 1.15em;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.project-description {
  color: rgba(255, 255, 255, 0.956);
  font-size: 0.9em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-stack span {
  background: rgba(74, 122, 252, 0.193);
  color: #00d4ff;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 500;
  border: 1px solid rgba(0, 213, 255, 0.301);
  transition: all 0.3s ease;
}

.project-card:hover .project-stack span {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
}

/* ================================================================
   WORK / EXPERIENCE SECTION  (with scroll-in animations)
   ================================================================ */
.work {
  background: #000016;
}

.work-cards-container {
  background: #000016;
}

.portfolio {
  margin-bottom: 140px;
  padding: 40px 20px;
  background: #0a0e1a;
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* CHANGE 8: Experience cards have scroll-reveal animation (left/right alternating) */
.portfolio-card {
  background: rgba(0, 255, 255, 0.06);
  backdrop-filter: blur(25px);
  border: 2px solid rgba(0, 255, 255, 0.2);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(0, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: 100%;

  /* Base transition handles both scroll-in and hover */
  transition:
    transform 0.65s ease,
    opacity 0.65s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* Alternating initial positions (set via JS classes) */
.exp-card-left {
  opacity: 0;
  transform: translateX(-60px);
}

.exp-card-right {
  opacity: 0;
  transform: translateX(60px);
}

.exp-card-left.card-visible,
.exp-card-right.card-visible {
  opacity: 1;
  transform: translateX(0);
}

.exp-card-left.card-visible:hover,
.exp-card-right.card-visible:hover {
  transform: translateY(-15px);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(0, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.portfolio-image {
  height: 320px;
  overflow: hidden;
  position: relative;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.view-btn {
  background: rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border: 2px solid #00ffff;
  color: #00ffff;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}

.view-btn:hover {
  background: #00ffff;
  color: #0a0e1a;
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.6);
}

.portfolio-content {
  padding: 36px;
}

.portfolio-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ffffff;
}

.portfolio-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 24px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-stack span {
  background: rgba(0, 255, 255, 0.12);
  color: #00ffff;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

/* ================================================================
   MY WORK CARDS
   ================================================================ */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  display: grid;
  place-items: center;
  margin-inline: 1rem;
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .container {
    margin-inline: 1.5rem;
    padding-block: 5rem;
  }
}

.card__container {
  display: grid;
  row-gap: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .card__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
    row-gap: 3.5rem;
  }
}

@media (min-width: 1120px) {
  .card__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card__article {
  position: relative;
  overflow: hidden;
}

.card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 5/4;
  border-radius: 1.5rem;
  object-fit: cover;
}

@media (min-width: 768px) {
  .card__img {
    height: 300px;
  }
}

@media (min-width: 1120px) {
  .card__img {
    width: 348px;
  }
}

.card__data {
  width: 90%;
  max-width: 280px;
  background-color: rgba(255, 255, 255, 0.882);
  padding: 1.5rem;
  box-shadow: 0 8px 24px hsla(0, 0%, 100%, 0.437);
  border-radius: 1rem;
  position: absolute;
  bottom: -9rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 0;
  transition: opacity 1s 1s;
}

@media (min-width: 1120px) {
  .card__data {
    width: 316px;
    padding-inline: 2.5rem;
  }
}

.card__description {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.card__title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.75rem;
}

.card__button {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3a6cf4;
}

.card__button:hover {
  text-decoration: underline;
}

.card__article:hover .card__data {
  animation: show-data 1s forwards;
  opacity: 1;
  transition: opacity 0.3s;
}

.card__article:hover {
  animation: remove-overflow 2s forwards;
}

.card__article:not(:hover) {
  animation: show-overflow 2s forwards;
}

.card__article:not(:hover) .card__data {
  animation: remove-data 1s forwards;
}

@keyframes show-data {
  50% {
    transform: translateY(-10rem);
  }

  100% {
    transform: translateY(-7rem);
  }
}

@keyframes remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes remove-data {
  0% {
    transform: translateY(-7rem);
  }

  50% {
    transform: translateY(-10rem);
  }

  100% {
    transform: translateY(0.5rem);
  }
}

@keyframes show-overflow {
  0% {
    overflow: initial;
    pointer-events: none;
  }

  50% {
    overflow: hidden;
  }
}

/* ================================================================
   CERTIFICATIONS SCROLL SECTION
   ================================================================ */
.certifications {
  position: relative;
  background-color: #f7f9fa;
  padding: 80px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

@keyframes scrollCerts {
  0% {
    transform: translate3d(0, 0, 0);
  }

  /* (350px width + 30px gap) * 23 items */
  100% {
    transform: translate3d(calc(-380px * 23), 0, 0);
  }
}

.cert-slider {
  position: relative;
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  overflow: hidden;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
}

.cert-track {
  display: flex;
  width: calc(380px * 46);
  /* Double the total number of items */
  animation: scrollCerts 50s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.cert-slider:hover .cert-track {
  animation-play-state: paused;
}

.cert-slide {
  width: 350px;
  height: 250px;
  margin-right: 30px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cert-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Forces uniform size and aspect ratio */
  display: block;
}

@media (max-width: 768px) {
  .cert-slide {
    width: 280px;
    height: 200px;
    margin-right: 20px;
  }

  @keyframes scrollCerts {
    0% {
      transform: translate3d(0, 0, 0);
    }

    100% {
      transform: translate3d(calc(-300px * 23), 0, 0);
    }
  }

  .cert-track {
    width: calc(300px * 46);
  }
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */
.contact {
  padding: 10px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.contact .title {
  text-align: center;
  margin-bottom: 5px;
}

.contact .content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
  margin-top: 1px;
}

.contact .content .row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 20px;
}

.contact .content .row .card {
  background: rgba(255, 255, 255, 0.95);
  width: 260px;
  margin: 10px;
  padding: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.385);
  border-radius: 15px;
  transition: all 0.6s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.27);
  opacity: 0;
  transform: translateY(50px);
}

.contact .content .row .card.animate {
  opacity: 1;
  transform: translateY(0);
}

.contact .content .row .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.405);
}

.contact .content .row .card .contact-icon {
  color: #3a6cf4;
  font-size: 3.5em;
  text-align: center;
  transition: all 0.5s ease;
  margin-bottom: 20px;
}

.contact .content .row .card .contact-icon a {
  color: #3a6cf4;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact .content .row .card .contact-icon a:hover {
  color: #562389;
  transform: scale(1.1);
}

.contact .content .row .card:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact .content .row .card .info {
  text-align: center;
}

.contact .content .row .card .info h3 {
  color: #111;
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact .content .row .card .info span {
  color: #666;
  font-weight: 500;
  font-size: 1em;
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.95);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.473);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
  .contact-form {
    padding: 50px;
  }
}

.contact-form h3 {
  color: #111;
  font-size: 2em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.contact-form h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #3a6cf4, #764ba2);
  border-radius: 3px;
}

.contact-form .input-box {
  position: relative;
  width: 100%;
  margin-bottom: 25px;
}

.contact-form .input-box input,
.contact-form .input-box textarea {
  color: #111;
  width: 100%;
  padding: 15px;
  font-size: 1em;
  font-weight: 400;
  outline: none;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  resize: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.contact-form .input-box input:focus,
.contact-form .input-box textarea:focus {
  border-color: #3a6cf4;
  box-shadow: 0 0 10px rgba(58, 108, 244, 0.2);
  transform: translateY(-2px);
}

.contact-form .input-box .send-btn {
  color: #fff;
  background: linear-gradient(45deg, #3a6cf4, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.1em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 15px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.contact-form .input-box .send-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.contact-form .input-box .send-btn:hover::before {
  left: 100%;
}

.contact-form .input-box .send-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(58, 108, 244, 0.4);
}

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

.contact-form .input-box .send-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.contact-form .input-box .send-btn:hover .btn-icon {
  transform: translateX(5px);
}

.result-container {
  margin-top: 20px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-message {
  text-align: center;
  font-size: 1.1em;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  padding: 15px;
  border-radius: 10px;
  margin: 0;
}

.result-message.show {
  opacity: 1;
  transform: translateY(0);
}

.result-message.success {
  color: #00cc66;
  background: rgba(0, 204, 102, 0.1);
  border: 1px solid rgba(0, 204, 102, 0.2);
}

.result-message.error {
  color: #cc0000;
  background: rgba(204, 0, 0, 0.1);
  border: 1px solid rgba(204, 0, 0, 0.2);
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.success-animation {
  animation: slideInUp 0.6s ease-out;
}

/* ================================================================
   CHANGE 6: FOOTER — Enhanced with sliding email animation
   ================================================================ */
.footer {
  background: #000016;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Actual footer content */
.footer-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 30px;
}

.footer-logo {
  width: 140px;
  height: auto;
  display: block;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
}

.footer .footer-title {
  font-size: 20px;
  font-weight: 600;
}

.footer p {
  font-size: 16px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.footer p a {
  color: #3a6cf4;
  font-weight: 600;
  text-decoration: none;
}

/* ================================================================
   SCROLL TO TOP BUTTON
   ================================================================ */
.scrollToTop-btn {
  z-index: 999;
  position: fixed;
  background: #3a6cf4;
  color: #fff;
  width: 45px;
  height: 45px;
  right: 0;
  bottom: 10px;
  font-size: 22px;
  text-align: center;
  line-height: 45px;
  border-radius: 3px;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
}

.scrollToTop-btn.active {
  right: 20px;
  opacity: 1;
  pointer-events: auto;
}

/* ================================================================
   REVEAL ANIMATION (general)
   ================================================================ */
.reveal {
  position: relative;
  transform: translateY(50px);
  opacity: 0;
  transition: all 1.5s ease;
}

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

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .contact .content .row {
    justify-content: center;
  }

  .contact .content .row .card {
    width: 250px;
    margin: 8px;
  }
}

@media (max-width: 480px) {
  .contact .content .row .card {
    padding: 20px;
  }

  .contact .content .row .card .contact-icon {
    font-size: 3em;
  }

  .contact-form {
    padding: 20px 15px;
  }

  .project-card {
    padding: 22px;
  }

  .project-title {
    font-size: 1.05em;
  }

  .footer-email-track {
    font-size: clamp(2rem, 10vw, 4rem);
  }
}

@media (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .card__data {
    width: 250px;
    padding: 1rem;
  }
}

/* ================================================================
   TIMELINE SECTION (EXPERIENCE)
   ================================================================ */
.timeline-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  position: relative;
}

@media (min-width: 768px) {
  .timeline-container {
    padding: 100px 40px;
  }
}

.timeline-header {
  margin: 0 auto 40px auto;
  max-width: 800px;
  text-align: center;
  /* Centered Title */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-header .section-title {
  margin-bottom: 10px;
  padding-bottom: 60px;
  font-size: 1.8em;
}

@media (min-width: 768px) {
  .timeline-header .section-title {
    font-size: 2.2em;
  }
}

.timeline-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1em;
}

.timeline-content-wrapper {
  position: relative;
  padding-bottom: 80px;
}

.timeline-item {
  display: flex;
  justify-content: flex-start;
  padding-top: 40px;
  position: relative;
}

@media (min-width: 768px) {
  .timeline-item {
    padding-top: 100px;
    gap: 40px;
  }
}

/* Left part: Sticky Date and Dot */
.timeline-left {
  position: sticky;
  top: 160px;
  align-self: flex-start;
  display: flex;
  align-items: center;
  flex-direction: column;
  max-width: 150px;
  z-index: 40;
}

@media (min-width: 768px) {
  .timeline-left {
    flex-direction: row;
    max-width: 300px;
    width: 100%;
  }
}

.timeline-dot-container {
  position: absolute;
  left: 12px;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: #000016;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .timeline-dot-container {
    left: 12px;
  }
}

.timeline-dot {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #4181db;
  border: 1px solid #374151;
  padding: 8px;
}

.timeline-date {
  display: none;
}

@media (min-width: 768px) {
  .timeline-date {
    display: block;
    font-size: 1.5rem;
    padding-left: 80px;
    font-weight: 700;
    color: rgb(47, 71, 255)
  }
}

/* Right part: Content */
.timeline-right {
  position: relative;
  width: 100%;
  padding-left: 80px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .timeline-right {
    padding-left: 16px;
  }
}

.timeline-date-mobile {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 700;
  text-align: left;
  color: rgba(255, 255, 255, 0.93)
}

@media (min-width: 768px) {
  .timeline-date-mobile {
    display: none;
  }
}

.timeline-card {
  text-align: left;
}

.timeline-role {
  font-size: 1.2em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.timeline-company {
  font-size: 0.9em;
  color: #00d4ff;
  margin-bottom: 20px;
}

.timeline-desc p {
  color: rgb(255, 255, 255);
  font-size: 0.9em;
  margin-bottom: 10px;
  line-height: 1.6;
}

.timeline-desc ul {
  list-style: disc inside;
  color: rgb(255, 255, 255);
  font-size: 0.9em;
  margin-bottom: 15px;
  padding-left: 20px;
  line-height: 1.6;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 25px;
}

.timeline-image {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  display: block;
}

.timeline-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 0.9em;

}

/* Background Lines */
.timeline-line-background {
  position: absolute;
  top: 0;
  left: 32px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.1) 10%, rgba(255, 255, 255, 0.1) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 32px;
  width: 2px;
  height: 0%;
  /* updated by JS */
  background: linear-gradient(to bottom, #8a2be2 0%, #3b82f6 50%, transparent 100%);
  border-radius: 9999px;
  transition: height 0.1s ease-out;
}

/* ================================================================ */
/* Certifications Independent Styling */
/* ================================================================ */

/* Text Justification for About and Skills paragraphs */
.about .paragraph-text,
.skills .column.col-left p {
  text-align: justify;
}

/* Subtle Blue Gradient Blur (Corners for White Sections) */
.white-gradient-effect {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.white-gradient-effect::before,
.white-gradient-effect::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}

/* Top-Left Blue Blur */
.white-gradient-effect::before {
  width: 400px;
  height: 400px;
  background: rgba(0, 212, 255, 0.12);
  top: -100px;
  left: -100px;
}

/* Bottom-Right Blue Blur */
.white-gradient-effect::after {
  width: 350px;
  height: 350px;
  background: rgba(58, 108, 244, 0.12);
  bottom: -100px;
  right: -100px;
}

/* Stats Slide Animation Setup */
.about-stats {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin-top: 25px;
  gap: 15px;
  width: 100%;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  padding: 15px 5px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.249);
  border: 1px solid rgba(0, 212, 255, 0.1);
  flex: 1;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #3b82f6;
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3b82f6;
}

.stat-item p {
  font-size: 0.8rem;

  color: #555;
  margin-top: 5px;
  font-weight: 600;
}

/* Fixing Project Nav Arrows Shifting & Container Heights */
.proj-carousel {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 550px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--proj-base-bg, #000);
}

.proj-inner {
  display: flex;
  flex-direction: column-reverse;
  position: relative;
  z-index: 2;
  min-height: 500px;
}



@media (min-width: 900px) {
  .proj-inner {
    flex-direction: row;
    min-height: 480px;
  }
}

.proj-content {
  flex: 1;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 900px) {
  .proj-content {
    padding: 50px 40px;
    max-width: 50%;
  }
}

.proj-content-inner {
  position: relative;
  padding-bottom: 70px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.proj-nav-arrows {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 10px;
}


/* Compact Contact Cards Adjustments */
.contact .row .card {
  background: rgba(255, 255, 255, 0.95);
  width: 260px;
  margin: 10px;
  padding: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.385);
  border-radius: 15px;
  transition: all 0.6s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.27);
  opacity: 0;
  transform: translateY(50px);
}

.contact .content .row .card.animate {
  opacity: 1;
  transform: translateY(0);
}

.contact .content .row .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.405);
}

.contact .content .row .card .contact-icon {
  color: #3a6cf4;
  font-size: 3.5em;
  text-align: center;
  transition: all 0.5s ease;
  margin-bottom: 20px;
}

.contact .content .row .card .contact-icon a {
  color: #3a6cf4;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact .content .row .card .contact-icon a:hover {
  color: #562389;
  transform: scale(1.1);
}

.contact .content .row .card:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact .content .row .card .info {
  text-align: center;
}

.contact .content .row .card .info h3 {
  color: #111;
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact .content .row .card .info span {
  color: #666;
  font-weight: 500;
  font-size: 1em;
}



/* ================================
   ✨ GLOSSY GLASS EFFECT (ONLY VISUAL)
   ================================ */
.proj-carousel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}


/* ================================
   🎯 CONTENT ALIGNMENT (SAFE ONLY)
   ================================ */
.proj-inner {
  display: flex;
  align-items: center;
  /* vertical center only */
}

.proj-content {
  display: flex;
  justify-content: center;
  /* center text block */
}

.proj-content-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* spacing only */
}

/* ===== EXPERIENCE TITLE SPACING FIX ===== */
.portfolio .section-title::after {
  margin-top: 12px;
  display: block;
}

/* ===== EXPERIENCE TITLE SPACING FIX ===== */
.portfolio .section-title::after {
  margin-top: 12px;
  display: block;
}

.quote-person-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(-10px 20px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(0, 123, 255, 0.2));
  z-index: 2;
  position: relative;
}

.quote-person-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(-10px 20px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(0, 123, 255, 0.2));
  z-index: 2;
  position: relative;
}