/* ============================================================
   MAHESH PORTFOLIO — PREMIUM CSS (2026 EDITION)
   ============================================================ */

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

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #ff004f;
  --red2: #ff6b6b;
  --rg: linear-gradient(135deg, #ff004f, #ff6b6b);
  --bg: #080808;
  --bg2: #0f0f0f;
  --bg3: #141414;
  --border: rgba(255, 255, 255, 0.07);
  --border-r: rgba(255, 0, 79, 0.25);
  --text: #f0f0f0;
  --muted: #888;
  --tr: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --r: 16px;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: var(--rg);
  border-radius: 8px;
}

::selection {
  background: rgba(255, 0, 79, .3);
  color: #fff;
}

/* ── Animated background lines ── */
.bg-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-lines span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .04), transparent);
  animation: lineMove 8s ease-in-out infinite;
}

.bg-lines span:nth-child(1) {
  left: 10%;
  animation-delay: 0s
}

.bg-lines span:nth-child(2) {
  left: 30%;
  animation-delay: 1.5s
}

.bg-lines span:nth-child(3) {
  left: 50%;
  animation-delay: 3s
}

.bg-lines span:nth-child(4) {
  left: 70%;
  animation-delay: 4.5s
}

.bg-lines span:nth-child(5) {
  left: 90%;
  animation-delay: 6s
}

@keyframes lineMove {

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

  50% {
    opacity: 1;
    transform: translateY(100%)
  }
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 99999;
  transition: opacity .6s ease, visibility .6s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  position: relative;
  width: 80px;
  height: 80px;
}

.loader::before,
.loader::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}

.loader::before {
  border-top-color: var(--red);
  animation: spin 1.2s linear infinite;
}

.loader::after {
  border-bottom-color: #fff;
  animation: spin 1.2s linear infinite reverse;
  animation-delay: -.4s;
}

.loader-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
}

.preloader-progress {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, .1);
  border-radius: 10px;
  overflow: hidden;
}

.preloader-progress-bar {
  width: 0;
  height: 100%;
  background: var(--rg);
  animation: progressGrow 2.2s ease forwards;
  border-radius: 10px;
}

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

@keyframes progressGrow {
  0% {
    width: 0
  }

  60% {
    width: 70%
  }

  100% {
    width: 100%
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav#main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all .4s var(--tr);
}

nav#main-nav.scrolled {
  background: rgba(8, 8, 8, .9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 5%;
  border-bottom: 1px solid var(--border-r);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

/* Scroll progress bar inside nav */
.scroll-progress-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.scroll-progress-bar {
  height: 100%;
  width: 0;
  background: var(--rg);
  box-shadow: 0 0 10px var(--red);
  border-radius: 0 2px 2px 0;
  transition: width .1s linear;
}

/* Logo */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform var(--tr);
}

.logo-link:hover {
  transform: scale(1.04);
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--rg);
  box-shadow: 0 0 16px rgba(255, 0, 79, .45), 0 0 0 1px rgba(255, 0, 79, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .5px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: box-shadow var(--tr);
}

.logo-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  transform: skewX(-15deg);
  animation: logoShine 4s ease-in-out infinite;
}

@keyframes logoShine {
  0% {
    left: -60%;
    opacity: 0
  }

  30% {
    opacity: 1
  }

  60%,
  100% {
    left: 120%;
    opacity: 0
  }
}

.logo-link:hover .logo-badge {
  box-shadow: 0 0 24px rgba(255, 0, 79, .65), 0 0 0 1px rgba(255, 0, 79, .4);
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.5px;
  background: linear-gradient(135deg, #fff 35%, rgba(255, 0, 79, .85));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  margin-top: 2px;
}

/* Nav links */
nav#main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

nav#main-nav ul li a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-block;
  position: relative;
  transition: all .3s ease;
  letter-spacing: .3px;
}

nav#main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--rg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--tr);
  border-radius: 2px;
}

nav#main-nav ul li a:hover,
nav#main-nav ul li a.active {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

nav#main-nav ul li a:hover::after,
nav#main-nav ul li a.active::after {
  transform: scaleX(1);
}

/* Hamburger */
nav#main-nav .fa-bars,
nav#main-nav .fa-times {
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: none;
}

.fas {
  color: #fff;
  transition: all .3s ease;
}

@media (max-width: 800px) {
  nav#main-nav .fa-bars {
    display: block;
  }

  nav#main-nav ul {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(10, 6, 16, .96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding-top: 80px;
    gap: 4px;
    transition: right .45s var(--tr);
    border-left: 1px solid var(--border-r);
    box-shadow: -4px 0 24px rgba(0, 0, 0, .5);
    z-index: 1000;
  }

  nav#main-nav ul li {
    width: 100%;
  }

  nav#main-nav ul li a {
    display: block;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 0;
  }

  nav#main-nav ul li a::after {
    left: 28px;
    right: 28px;
  }

  nav#main-nav .fa-times {
    display: block;
    position: absolute;
    top: 22px;
    right: 22px;
  }
}

/* ============================================================
   HERO / HEADER
   ============================================================ */
#header {
  min-height: 100vh;
  height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

#header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 50%, rgba(255, 0, 79, .12) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(255, 107, 107, .08) 0%, transparent 50%),
    linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  z-index: 0;
  animation: bgGlow 8s infinite alternate ease-in-out;
}

@keyframes bgGlow {
  0% {
    opacity: .7;
    transform: scale(1)
  }

  100% {
    opacity: 1;
    transform: scale(1.04)
  }
}

#particles-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, .4);
  border-radius: 50%;
  animation: float 20s infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0
  }

  10%,
  90% {
    opacity: 1
  }

  100% {
    transform: translateY(-100vh) translateX(100px) rotate(720deg);
    opacity: 0
  }
}

#header .container {
  width: 100%;
  height: 100%;
  max-width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 100px 8% 60px;
  position: relative;
  z-index: 2;
}

.header-text {
  flex: 1;
  max-width: 580px;
  position: relative;
  z-index: 2;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 0, 79, .1);
  color: var(--red);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 0, 79, .3);
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(255, 0, 79, .15);
  animation: badgePulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.role-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%
  }

  100% {
    left: 100%
  }
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 79, .4)
  }

  50% {
    box-shadow: 0 0 20px 5px rgba(255, 0, 79, .15)
  }
}

.header-text h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: .3s;
}

.header-text h1 span {
  background: linear-gradient(135deg, var(--red) 0%, var(--red2) 50%, var(--red) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 4s ease infinite;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px)
  }

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

@keyframes gradientText {

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

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

.hero-subtext {
  font-size: 17px;
  color: #aaa;
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 38px;
  opacity: 0;
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: .5s;
}

.hero-btns {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: .7s;
}

.hero-btns .btn {
  margin: 0;
}

.hero-image {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: 50%;
  height: 95vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 1;
}

.hero-image::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 70%;
  bottom: 10%;
  right: 10%;
  background: radial-gradient(circle, rgba(255, 0, 79, .25) 0%, transparent 60%);
  z-index: -1;
  filter: blur(40px);
  animation: heroGlow 6s ease-in-out infinite;
}

@keyframes heroGlow {

  0%,
  100% {
    opacity: .6;
    transform: scale(1)
  }

  50% {
    opacity: 1;
    transform: scale(1.1)
  }
}

.hero-image img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  animation: heroFloat 6s ease-in-out infinite;
  transform-origin: bottom right;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0) scale(1.12)
  }

  50% {
    transform: translateY(-22px) scale(1.12)
  }
}

@media (max-width: 900px) {
  .header-row {
    flex-direction: column;
    text-align: center;
    padding: 120px 5% 60px;
    min-height: auto;
  }

  .hero-image {
    position: relative;
    width: 80%;
    height: auto;
    right: auto;
    bottom: auto;
    margin-top: 30px;
    justify-content: center;
  }

  .hero-image img {
    height: auto;
    width: 80%;
    max-height: 60vh;
    animation: none;
  }

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

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .8px;
  text-transform: uppercase;
  background: var(--rg);
  color: #fff;
  border: none;
  box-shadow: 0 8px 25px rgba(255, 0, 79, .4);
  position: relative;
  overflow: hidden;
  transition: all .4s var(--tr);
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  transition: left .5s ease;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(255, 0, 79, .5);
}

.btn:hover::before {
  left: 100%;
}

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

.btn-resume-premium {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, .25);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
  transition: all var(--tr);
  letter-spacing: .5px;
}

.btn-resume-premium:hover {
  border-color: var(--red);
  background: rgba(255, 0, 79, .1);
  box-shadow: 0 0 20px rgba(255, 0, 79, .25);
  transform: translateY(-3px);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  background: var(--red);
  color: #fff;
  transition: all var(--tr);
  box-shadow: 0 4px 15px rgba(255, 0, 79, .3);
}

.btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 0, 79, .5);
}

.btn-link.secondary {
  background: rgba(255, 255, 255, .06);
  color: #ccc;
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-link.secondary:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .2);
}

#seeMoreBtn {
  display: block;
  margin: 50px auto 10px;
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red);
  box-shadow: none;
  width: fit-content;
}

#seeMoreBtn:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 25px rgba(255, 0, 79, .3);
  transform: translateY(-3px);
}

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 52px;
  height: 52px;
  background: var(--rg);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.85);
  transition: all .5s var(--tr);
  z-index: 1001;
  box-shadow: 0 8px 25px rgba(255, 0, 79, .4);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 16px 35px rgba(255, 0, 79, .55);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.sub-title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  color: #fff;
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 50%, #999 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--rg);
  border-radius: 2px;
}

.section-title {
  text-align: center;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 56px;
  letter-spacing: -1px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--rg);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 0, 79, .06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.about-col-1 {
  flex-basis: 48%;
  position: relative;
  z-index: 2;
}

.about-img-premium {
  width: 100%;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .8),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all .6s cubic-bezier(0.23, 1, 0.32, 1);
  transform: perspective(1000px) translateY(var(--parallax-y, 0px));
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: block;
  z-index: 2;
}

.about-col-1:hover .about-img-premium {
  transform: perspective(1000px) scale(1.02) translateY(calc(var(--parallax-y, 0px) - 8px));
  box-shadow: 0 50px 120px rgba(0, 0, 0, 1);
  border-color: rgba(255, 255, 255, 0.1);
}

.about-col-2 {
  flex-basis: 48%;
  padding-left: 20px;
}

.about-text p {
  font-size: 16px;
  color: #c5c5c5;
  margin-bottom: 24px;
  line-height: 1.8;
  letter-spacing: 0.2px;
}

.about-text strong {
  color: #fff;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.about-text strong::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(255, 0, 79, 0.15);
  z-index: -1;
}

/* Tabs */
.tab-titles {
  display: flex;
  margin: 22px 0 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding-bottom: 10px;
  gap: 4px;
}

.tab-links {
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 8px;
  color: #888;
  transition: all .3s ease;
  position: relative;
}

.tab-links::after {
  content: '';
  width: 0;
  height: 2px;
  background: var(--red);
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  transition: width .3s ease;
  border-radius: 2px;
}

.tab-links:hover {
  color: #fff;
  background: rgba(255, 255, 255, .04);
}

.tab-links.active-link {
  color: var(--red);
}

.tab-links.active-link::after {
  width: 60%;
  box-shadow: 0 0 8px rgba(255, 0, 79, .5);
}

.tab-contents {
  display: none;
}

.tab-contents.active-tab {
  display: block;
  animation: fadeInUp .5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

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

.tab-contents ul li {
  list-style: none;
  margin: 16px 0;
  padding-left: 18px;
  position: relative;
  color: #aaa;
  transition: transform .3s ease;
}

.tab-contents ul li:hover {
  transform: translateX(5px);
}

.tab-contents ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 2px;
  height: 75%;
  background: linear-gradient(to bottom, var(--red), transparent);
}

.tab-contents ul li span {
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

@media (max-width: 800px) {

  .about-col-1,
  .about-col-2 {
    flex-basis: 100%;
  }

  .about-col-1 {
    margin-bottom: 36px;
  }
}

/* ============================================================
   SKILLS
   ============================================================ */
#skills-tools {
  padding: 100px 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
  position: relative;
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.skill-category {
  background: linear-gradient(145deg, #1e1e1e, #141414);
  padding: 28px 24px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--red);
  position: relative;
  overflow: hidden;
  transition: all .4s var(--tr);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}

.skill-category:hover::before {
  left: 150%;
}

.skill-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5), 0 0 20px rgba(255, 0, 79, .12);
  border-color: rgba(255, 0, 79, .35);
}

.skill-category h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category h3 i {
  color: var(--red);
  font-size: 20px;
  background: rgba(255, 0, 79, .1);
  padding: 8px;
  border-radius: 8px;
  transition: all .4s ease;
}

.skill-category:hover h3 i {
  background: var(--red);
  color: #fff;
  transform: rotate(8deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 0, 79, .4);
}

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

.skill-list li {
  color: #ccc;
  font-size: 14px;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  position: relative;
  transition: all .3s ease;
}

.skill-list li:last-child {
  border-bottom: none;
}

.skill-list li:hover {
  color: #fff;
  transform: translateX(6px);
}

.skill-list li::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--red);
  position: absolute;
  left: 0;
  top: 10px;
}

/* ============================================================
   CERTIFICATIONS / HIGHLIGHTS
   ============================================================ */
.certifications-section {
  padding: 100px 5%;
  background: linear-gradient(180deg, #000 0%, #050505 100%);
  position: relative;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.card.premium-highlight-card {
  background: #111;
  padding: 36px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  flex-direction: column;
  transition: all .5s var(--tr);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.highlight-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: grayscale(80%) opacity(.35);
  transition: all .6s var(--tr);
}

.card.premium-highlight-card:hover .highlight-bg {
  filter: grayscale(0%) opacity(.6);
  transform: scale(1.05);
}

.highlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, .5) 0%, rgba(17, 17, 17, .9) 100%);
  z-index: 1;
  transition: opacity .5s ease;
}

.card.premium-highlight-card>div:not(.highlight-overlay) {
  position: relative;
  z-index: 2;
}

.card.premium-highlight-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, .55), 0 0 25px rgba(255, 0, 79, .18);
  border-color: rgba(255, 0, 79, .4);
}

.card.premium-highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--rg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--tr);
  z-index: 3;
}

.card.premium-highlight-card:hover::before {
  transform: scaleX(1);
}

.card.premium-highlight-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: skewX(-25deg);
  transition: left .7s ease;
  z-index: 3;
  pointer-events: none;
}

.card.premium-highlight-card:hover::after {
  left: 150%;
}

.card-icon-wrapper {
  width: 64px;
  height: 64px;
  background: rgba(255, 0, 79, .1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 0, 79, .2);
  transition: all .5s ease;
}

.card:hover .card-icon-wrapper {
  background: var(--red);
  transform: translateY(-6px) rotate(8deg);
  box-shadow: 0 12px 25px rgba(255, 0, 79, .4);
}

.card-icon {
  font-size: 28px;
  color: var(--red);
  transition: color .5s ease;
}

.card:hover .card-icon {
  color: #fff;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.card:hover .card-title {
  color: var(--red);
}

.card-desc {
  font-size: 14px;
  color: #aaa;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 24px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.card-date {
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.card-link {
  color: #555;
  font-size: 15px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .05);
  text-decoration: none;
  transition: all .3s ease;
}

.card:hover .card-link {
  color: #fff;
  background: var(--red);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(255, 0, 79, .4);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.compact-projects-section,
#my-projects {
  padding: 100px 0;
  background: #050505;
}

.hz-scroll-section {
  position: relative;
  height: 300vh; /* Defines vertical scrolling length */
  width: 100%;
  padding: 0 !important; 
}

.hz-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0; /* inner padding */
}

.hz-scroll-container {
  width: 100%;
  will-change: transform; /* optimized for JS translation */
  margin-top: 20px;
}

.compact-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 16px;
}

.hz-grid {
  display: flex !important;
  flex-wrap: nowrap;
  width: max-content;
  gap: 32px;
  padding-right: 20vw; /* padding at the end of scroll */
}

.hz-grid .compact-project-card,
.hz-grid .service-card {
  width: 360px;
  flex-shrink: 0;
  height: 480px;
}

@media (max-width: 800px) {
  .hz-grid .compact-project-card,
  .hz-grid .service-card {
    width: 280px;
    height: 420px;
  }
}

.compact-project-card {
  background: #111;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--tr), box-shadow .4s ease, border-color .4s ease;
}

.compact-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5), 0 0 20px rgba(255, 0, 79, .1);
  border-color: var(--border-r);
}

.compact-project-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 2px solid var(--red);
}

.compact-project-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  transform: translateY(var(--parallax-y, 0)) scale(1.02);
}

.compact-project-card:hover .card-image img {
  transform: translateY(var(--parallax-y, 0)) scale(1.08);
}

.compact-project-card .card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.compact-project-card .card-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.compact-project-card:hover .card-title {
  color: var(--red);
}

.compact-project-card .card-desc {
  color: #999;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

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

.compact-project-card .card-tags span {
  background: rgba(255, 0, 79, .08);
  color: var(--red);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid rgba(255, 0, 79, .15);
}

.compact-project-card .card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services {
  padding: 100px 0;
  background: #0a0a0a;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  counter-reset: service-count;
}

.service-card {
  background: #111;
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .4s var(--tr);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
  counter-increment: service-count;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--rg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--tr);
  z-index: 2;
}

.service-card {
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5), 0 0 20px rgba(255, 0, 79, .1);
  border-color: var(--border-r);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-image-wrapper {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #0a0a0a;
  position: relative;
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(70%) opacity(.75);
  transition: all .7s var(--tr);
  transform: translateY(var(--parallax-y, 0px));
}

.service-card:hover .service-image-wrapper img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05) translateY(var(--parallax-y, 0px));
}

.service-icon-box {
  position: absolute;
  bottom: -24px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #111;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
  border: 1px solid var(--border);
  transition: all .4s ease;
  z-index: 2;
}

.service-card:hover .service-icon-box {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(255, 0, 79, .3);
}

.service-icon-box i {
  font-size: 22px;
  color: var(--red);
  transition: all .4s ease;
}

.service-card:hover .service-icon-box i {
  color: #fff;
  transform: scale(1.1);
}

.service-content {
  padding: 38px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  transition: color .3s ease;
}

.service-card:hover .service-content h2 {
  color: var(--red);
}

.service-content p {
  color: #999;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #ccc;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s ease;
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.service-link:hover {
  color: var(--red);
  border-bottom-color: var(--red);
  letter-spacing: .3px;
}

.service-link i {
  transition: transform .3s ease;
  font-size: 13px;
}

.service-link:hover i {
  transform: translateX(4px) translateY(-3px);
}

/* ============================================================
   GALLERY
   ============================================================ */
#gallery {
  padding: 100px 0;
  background: linear-gradient(180deg, #000 0%, #050505 50%, #000 100%);
  position: relative;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 36px;
  margin-top: 46px;
}

.work {
  border-radius: 18px;
  background: #111;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all .5s var(--tr);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .4);
}

.work:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 55px rgba(255, 0, 79, .14), 0 0 28px rgba(255, 0, 79, .1);
  border-color: var(--border-r);
}

.gallery-img-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.gallery-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, #111 100%);
  opacity: .9;
  transition: opacity .5s ease;
}

.work:hover .gallery-img-wrapper::after {
  opacity: .6;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--tr);
  transform: translateY(var(--parallax-y, 0)) scale(1.02);
}

.work:hover .gallery-img-wrapper img {
  transform: translateY(var(--parallax-y, 0)) scale(1.08) rotate(1deg);
}

.gallery-content {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #111;
  margin-top: -8px;
}

.gallery-header {
  margin-bottom: 16px;
}

.gallery-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  transition: color .3s ease;
}

.work:hover .gallery-header h3 {
  color: var(--red);
}

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-tags span {
  background: rgba(255, 255, 255, .05);
  color: #aaa;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  transition: all .3s ease;
}

.work:hover .gallery-tags span {
  background: rgba(255, 0, 79, .1);
  color: var(--red);
  border-color: rgba(255, 0, 79, .25);
}

.gallery-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-details p {
  color: #aaa;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all .3s ease;
  align-self: flex-start;
}

.gallery-link:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.extra-work-container {
  display: none;
  opacity: 0;
  transition: opacity .6s ease;
  margin-top: 36px;
}

.extra-work-container.show {
  opacity: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 36px;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  padding: 100px 0 60px;
  background: radial-gradient(circle at top left, #111, #000);
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 0, 79, .05), transparent 70%);
  top: -100px;
  right: -100px;
  z-index: 0;
}

.contact-left {
  flex-basis: 38%;
  padding-right: 40px;
  position: relative;
  z-index: 1;
}

.contact-right {
  flex-basis: 57%;
  position: relative;
  z-index: 1;
}

.contact-cta {
  font-size: 17px;
  color: #777;
  margin-bottom: 36px;
  font-weight: 300;
}

.contact-left p {
  margin-top: 22px;
  font-size: 15px;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .3s ease;
}

.contact-left p:hover {
  transform: translateX(8px);
  color: #fff;
}

.contact-left p i {
  color: var(--red);
  font-size: 18px;
  background: rgba(255, 0, 79, .1);
  padding: 10px;
  border-radius: 50%;
}

.social-icons {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social-icons a {
  text-decoration: none;
  font-size: 20px;
  color: #ccc;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s cubic-bezier(.68, -.55, .27, 1.55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  border: 1px solid #1e1e1e;
}

.social-icons a:hover {
  color: #fff;
  background: var(--red);
  transform: translateY(-7px) scale(1.1);
  box-shadow: 0 10px 22px rgba(255, 0, 79, .4);
  border-color: var(--red);
}

/* Form */
.contact-right form.premium-form {
  width: 100%;
  background: rgba(255, 255, 255, .025);
  padding: 42px 46px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 55px rgba(0, 0, 0, .55);
}

.premium-form .form-header {
  margin-bottom: 30px;
  text-align: center;
}

.premium-form .form-title {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.glow-icon {
  color: var(--red);
  filter: drop-shadow(0 0 8px rgba(255, 0, 79, .6));
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

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

  50% {
    transform: translateY(-5px)
  }
}

.premium-form .form-subtitle {
  color: #888;
  font-size: 14px;
}

.premium-form .input-group {
  position: relative;
  margin-bottom: 22px;
}

.premium-form .input-icon {
  position: absolute;
  left: 18px;
  top: 17px;
  color: #666;
  font-size: 15px;
  transition: color .3s ease;
}

.premium-form .textarea-icon {
  top: 20px;
}

.premium-form input,
.premium-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 15px 18px 15px 46px;
  color: #fff;
  font-size: 14px;
  border-radius: 12px;
  transition: all .4s var(--tr);
  font-family: 'Poppins', sans-serif;
}

.premium-form input::placeholder,
.premium-form textarea::placeholder {
  color: #555;
}

.premium-form input:focus,
.premium-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255, 0, 79, .03);
  box-shadow: 0 0 18px rgba(255, 0, 79, .14);
  transform: translateY(-2px);
}

.premium-form .input-group:focus-within .input-icon {
  color: var(--red);
}

.premium-form textarea {
  resize: vertical;
  min-height: 120px;
}

.premium-form .premium-submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--rg);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .4s var(--tr);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 22px rgba(255, 0, 79, .4);
  font-family: 'Poppins', sans-serif;
}

.premium-form .premium-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transition: left .5s ease;
}

.premium-form .premium-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(255, 0, 79, .55);
}

.premium-form .premium-submit-btn:hover::before {
  left: 100%;
}

#msg {
  color: #4caf50;
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 800px) {

  .contact-left,
  .contact-right {
    flex-basis: 100%;
    padding-right: 0;
  }

  .contact-left {
    margin-bottom: 36px;
    text-align: center;
  }

  .contact-left p {
    justify-content: center;
  }

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

  .contact-right form.premium-form {
    padding: 28px 20px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.premium-footer {
  background: #050505;
  padding: 90px 0 36px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .03);
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 0, 79, .07) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.premium-footer .container {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 46px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand h2 {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.footer-brand h2 span {
  color: var(--red);
  animation: pulseColor 3s infinite;
}

@keyframes pulseColor {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 0, 79, .4)
  }

  50% {
    text-shadow: 0 0 22px rgba(255, 0, 79, .8), 0 0 10px var(--red)
  }
}

.footer-brand p {
  color: #888;
  font-size: 15px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: #888;
  font-size: 15px;
  font-weight: 500;
  transition: all .3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '→';
  color: var(--red);
  opacity: 0;
  transform: translateX(-8px);
  transition: all .3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(6px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-social-wrapper {
  display: flex;
  flex-direction: column;
}

.footer-social-wrapper p {
  color: #fff;
  font-weight: 600;
  margin-bottom: 18px;
  font-size: 16px;
}

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

.footer-social a {
  width: 46px;
  height: 46px;
  background: rgba(20, 20, 20, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ccc;
  font-size: 18px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .08);
  transition: all .4s ease;
}

.footer-social a:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(255, 0, 79, .4);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
  margin: 46px 0 28px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(76, 175, 80, .1);
  padding: 7px 14px;
  border-radius: 20px;
  color: #4caf50;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(76, 175, 80, .2);
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #4caf50;
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, .4)
  }

  70% {
    box-shadow: 0 0 0 8px rgba(76, 175, 80, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0)
  }
}

.made-with i {
  color: var(--red);
  animation: heartBeat 1.5s ease-in-out infinite;
  margin: 0 4px;
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1)
  }

  15%,
  45% {
    transform: scale(1.3)
  }

  30%,
  60% {
    transform: scale(1)
  }
}

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-links {
    align-items: center;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

/* ============================================================
   PREMIUM BUTTONS CSS (was separate file, merged in)
   ============================================================ */
.btn-resume-premium {
  margin-top: 0;
}

/* ============================================================
   ANIMATIONS / UTILITIES
   ============================================================ */
.animate-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
}

.animate-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.section-hidden {
  opacity: .85;
}

.section-visible {
  opacity: 1;
  transition: opacity .8s ease;
}

#typing-text {
  font-family: 'Orbitron', sans-serif;
  color: #0ff;
  position: relative;
}

/* ── Tech Journey Timeline Section ── */
.tech-journey-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  position: relative;
  overflow: hidden;
}

.tech-journey-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rg);
  opacity: 0.3;
}

.journey-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 60px;
  font-weight: 300;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rg);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-year {
  flex: 0 0 120px;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--red);
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 2;
}

.timeline-year::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 20px rgba(255, 0, 79, 0.5);
  z-index: -1;
}

.timeline-item.current .timeline-year::before {
  background: #0ff;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
  animation: pulse 2s infinite;
}

.timeline-link {
  text-decoration: none;
  display: block;
  flex: 1;
  color: inherit;
}

.timeline-content {
  flex: 1;
  background: var(--bg2);
  padding: 25px 30px;
  border-radius: var(--r);
  border: 1px solid var(--border-r);
  margin: 0 40px;
  position: relative;
  transition: all var(--tr);
  display: flex;
  gap: 20px;
  align-items: center;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 0, 79, 0.2);
  border-color: var(--red);
}

.timeline-image {
  flex: 0 0 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--bg3);
  border: 2px solid var(--border);
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  transform: translateY(var(--parallax-y, 0px));
}

.timeline-content:hover .timeline-image img {
  transform: scale(1.05) translateY(var(--parallax-y, 0px));
}

.timeline-text {
  flex: 1;
}

.timeline-content h3 {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.timeline-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: 40px;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 40px;
  margin-right: 0;
}

/* Timeline arrow */
.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -20px;
  border-left-color: var(--bg2);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: -20px;
  border-right-color: var(--bg2);
}

@keyframes pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }

  .timeline-year {
    flex: none;
    margin-bottom: 15px;
    text-align: left;
    position: absolute;
    left: 0;
    top: 0;
  }

  .timeline-year::before {
    left: 30px;
    top: 50%;
  }

  .timeline-content {
    margin: 0 !important;
    width: 100%;
  }

  .timeline-content::before {
    display: none;
  }

  .timeline-item.current .timeline-year::before {
    left: 30px;
  }
}

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */
.case-study-page {
  background: radial-gradient(1200px 600px at 20% 10%, rgba(255, 0, 79, 0.14), transparent 55%),
    radial-gradient(900px 500px at 80% 20%, rgba(0, 255, 255, 0.10), transparent 60%),
    var(--bg);
}

.case-study-header {
  padding: 110px 0 40px;
  position: relative;
  overflow: hidden;
}

.case-study-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 0, 79, 0.10), rgba(255, 255, 255, 0.02), rgba(0, 255, 255, 0.06));
  opacity: 0.9;
  pointer-events: none;
}

.case-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 25px;
}

.case-hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 14px;
}

.case-hero-text .hero-subtext {
  margin-top: 16px;
  color: rgba(240, 240, 240, 0.82);
  max-width: 62ch;
}

.case-hero .hero-btns {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-hero-image {
  border-radius: 22px;
  border: 1px solid var(--border-r);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  transform: translateZ(0);
}

.case-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  filter: saturate(1.05) contrast(1.03);
}

.case-main {
  padding: 35px 0 70px;
}

.case-section {
  padding: 48px 0;
}

.case-section:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.case-section p {
  color: rgba(240, 240, 240, 0.86);
  margin-top: 14px;
}

.case-meta-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.case-meta-grid>div {
  padding: 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(10px);
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}

.case-meta-grid>div:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 14px 35px rgba(255, 0, 79, 0.14);
}

.case-meta-grid h3 {
  font-size: 0.95rem;
  color: rgba(240, 240, 240, 0.92);
}

.case-meta-grid p {
  margin-top: 8px;
  color: rgba(240, 240, 240, 0.75);
  font-size: 0.95rem;
}

.case-two-column {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.case-two-column>div {
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(15, 15, 15, 0.55);
}

.case-two-column h3 {
  font-size: 1.1rem;
}

.case-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.case-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(240, 240, 240, 0.84);
}

.case-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rg);
  box-shadow: 0 0 14px rgba(255, 0, 79, 0.35);
  transform: translateY(-50%);
}

@media (max-width: 900px) {
  .case-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-study-header {
    padding: 95px 0 25px;
  }

  .case-meta-grid {
    grid-template-columns: 1fr;
  }

  .case-two-column {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PREMIUM PAGE TRANSITION
   ============================================================ */
.pt-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  pointer-events: none;
}
.pt-strip {
  flex: 1;
  height: 100vh;
  background: #050505;
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.65s cubic-bezier(0.85, 0, 0.15, 1);
}
.pt-strip:last-child {
  border-right: none;
}
.pt-strip:nth-child(1) { transition-delay: 0.00s; }
.pt-strip:nth-child(2) { transition-delay: 0.06s; }
.pt-strip:nth-child(3) { transition-delay: 0.12s; }
.pt-strip:nth-child(4) { transition-delay: 0.18s; }
.pt-strip:nth-child(5) { transition-delay: 0.24s; }

body.pt-leave .pt-strip {
  transform: scaleY(1);
  transform-origin: bottom;
}

body.pt-enter .pt-strip {
  transform: scaleY(1);
  transition: none;
}

body.pt-enter-active .pt-strip {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.65s cubic-bezier(0.85, 0, 0.15, 1);
}