/* Base Styles (Mobile First) */
* {
  font-family: "Space Mono", serif;
  font-family: "Lato", serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #cc00ff;
  --gradient: linear-gradient(to bottom, #000000, #000033);
  --gradient-text: linear-gradient(135deg, #6600cc, #ff00ff);
  --gradient-bg: linear-gradient(135deg, #8000ff, #ff00ff);
  --gradient-border: linear-gradient(135deg, #6600cc, #ff00ff);
}

body,
html {
  scroll-behavior: smooth;
  font-size: 16px !important;
  color: #ededed;
  background-color: var(--gradient);
  overflow-x: hidden;
}

body {
  width: auto;
  overflow-x: hidden;
  height: 100vh;
  color: #ededed;
  background-color: #000;
}

p {
  line-height: 1.5;
  font-size: 1rem !important;
}

.card i {
  font-size: 1rem;
}
p a {
  text-transform: lowercase;
  color: #fff;
}

p a:hover {
  transform: scale(1.1);
  color: var(--accent);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.gradient-bg {
  background: var(--gradient-bg);
}
.gradient-border {
  border: 4px solid transparent;
  border-image: var(--gradient-border);
}

/* Preloader Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 10;
}

.text-container {
  display: flex;
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
}

.letter {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.breakdown {
  animation: breakdown 0.5s forwards;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: -1;
}

canvas {
  display: block;
}

.content {
  display: none;
  padding: 20px 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

@keyframes breakdown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100px);
    opacity: 0;
  }
}

/* Main Styling */
a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
}

nav {
  position: sticky;
  width: 100%;
  padding: 20px 5%;
  background-color: transparent;
  z-index: 100;
}

.logo {
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.name {
  opacity: 0;
  animation: slideRight 1s ease-in-out 0.3s forwards;
}

/* Hamburger Menu Styles */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 30px;
  cursor: pointer;
  position: relative;
  z-index: 1000;
  opacity: 0;
  animation: slideTop 1s ease-in-out 0.5s forwards;
  transition: all 0.3s ease;
}

.bar {
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
  transform-origin: left center;
}

.bar2 {
  width: 100%;
}

/* Full-screen Mobile Menu */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  z-index: 999;
  padding: 0;
  margin: 0;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.nav-menu ul li {
  margin: 30px 0;
  transition: all 0.3s ease;
}

.nav-menu ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 600;
  opacity: 0;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu ul li a:hover {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-bg);
  transition: width 0.3s ease;
}

.nav-menu ul li a:hover::after {
  width: 100%;
}

.hamburger.active .bar1 {
  transform: rotate(45deg) translate(10px, -10px);
  background-color: #fff;
}

.hamburger.active .bar2 {
  opacity: 0;
}

.hamburger.active .bar3 {
  transform: rotate(-45deg) translate(10px, 10px);
  background-color: #fff;
}

.nav-menu.active {
  right: 0;
}

.nav-menu.active ul li a {
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: calc(0.1s * var(--i));
}

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

.desktop-menu ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  display: none;
}

.desktop-menu ul li {
  margin: 0 10px;
  list-style-type: none;
}

.desktop-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.7s ease-in-out;
  opacity: 0;
  animation: slideTop 1s ease-in-out forwards;
  animation-delay: calc(0.2s * var(--i));
  position: relative;
}

.desktop-menu ul li a:hover {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-menu ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-bg);
  transition: width 0.3s ease;
}

.desktop-menu ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-image: url(images/bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section .overlay {
  padding: 50px 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.inner-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

.content-wrapper {
  max-width: 600px;
}

.hero-image {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 20px 0;
  transition: ease-in-out 0.5s;
  will-change: transform, opacity;
  animation: jumping 2s ease-in-out 1s forwards;
  opacity: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 6px solid var(--accent);
  border-radius: 40%;
  animation: rotateBorder 50s linear infinite alternate;
  box-sizing: border-box;
}

@keyframes jumping {
  0% {
    transform: translate(0);
    opacity: 0;
  }
  50% {
    transform: translateY(-20px);
    opacity: 0.5;
  }
  100% {
    transform: translate(0);
    opacity: 1;
  }
}

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hero-image:hover {
  box-shadow: 0 0 20px var(--accent);
}

.hero-content {
  color: var(--secondary);
}

.hero-content h3 {
  font-size: 1.7rem;
  font-weight: 700;
  padding: 20px 0;
  opacity: 0;
  animation: slideBottom 1s ease-in-out 0.9s forwards;

}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: -3px 0;
  opacity: 0;
  animation: slideRight 1s ease-in-out 1.2s forwards;
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0;
  animation: slideLeft 1s ease-in-out 1.5s forwards;
}

.hero-socials {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.hero-socials a {
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background-color: transparent;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 20px 10px 20px 0;
  transition: ease-in-out 0.5s;
  opacity: 0;
  animation: slideLeft 1s ease-in-out forwards;
  animation-delay: calc(0.2s * var(--i));
}

.hero-socials a:hover {
  background: var(--gradient-bg);
  color: #000 !important;
  box-shadow: 0 0 20px var(--accent);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #000;
}

.hero-btn a{
  font-weight: 600;
  display: inline-block;
  margin: 10px 0;
  padding: 5px;
  background: var(--gradient-bg);
  border-radius: 40px;
  border: 2px solid var(--accent);
  cursor: pointer;
  opacity: 0;
  animation: slideTop 1s ease-in-out forwards;
  animation-delay: 2s;
  box-shadow: 0 0 5px var(--accent);
  transition: all ease-in-out 0.5s;
}

.hero-btn a {
  color: #000 !important;
}

.hero-btn a:hover {
  box-shadow: 0 0 20px var(--accent);
  color: var(--accent) !important;
  background: transparent;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--accent);
}

.gradient-button a {
  font-weight: 600;
  display: inline-block;
  margin: 10px 0;
  padding: 5px;
  background-color: transparent;
  border-radius: 40px;
  border: 2px solid var(--accent);
  cursor: pointer;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: slideBottom 1s ease-in-out forwards;
  animation-delay: 3s;
  box-shadow: 0 0 5px var(--accent);
  transition: all ease-in-out 0.5s;
}

.gradient-button a:hover {
  background: var(--gradient-bg);
  color: #000 !important;
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent);
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #000;
}

.typing-wrapper {
  animation: slideTop 1s ease-in-out forwards;
  animation-delay: 0.9s;
}

#typing-text {
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 2rem;
  text-transform: capitalize;
  line-height: 40px;
}

@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes slideTop {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes slideBottom {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes slideLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

/* Services Section */
.services-section {
  background-color: #0d0d0d;
  color: white;
  padding: 50px 20px;
  /* padding-top: 500px;
  padding-bottom: 100px; */
}

.services {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  background: #151515;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  transition: 0.3s;
  opacity: 0;
  transition: all 1s ease-in-out;
  animation: slideTop 1s ease-in-out forwards;
  animation-delay: calc(0.2s * var(--i));
}

.service-number,
.project-info h2 {
  font-size: 4rem;
  font-weight: bold;
  font-family: "Orbitron", sans-serif;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  transition: -webkit-text-stroke 0.3s, color 0.3s;
}

.service-title {
  font-size: 1.5rem;
  margin: 10px 0;
  color: white;
  transition: color 0.3s;
}

.service-card p {
  font-size: 1rem;
}

.arrow {
  width: 30px;
  height: 30px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  font-family: "Times New Roman", Times, serif;
  top: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  transform: scale(1.5) rotate(320deg);
}

.arrow::before {
  content: "↓";
  font-size: 1rem;
  color: black;
  transition: all 0.3s ease-in-out;
}

.service-card:hover {
  box-shadow: 0 0 5px var(--accent);
}

.service-card:hover .service-number,
.service-card:hover .service-title {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card:hover .arrow {
  background: var(--gradient-bg);
  transform: scale(1.5) rotate(270deg);
}

.arrow:hover {
  background: var(--gradient-bg);
}

.arrow:hover::before {
  transform: rotateZ("180deg");
}

/* Portfolio Section */
.portfolio-section-wrapper {
  background: #121212;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 10px;
}

.resume-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #000000;
  padding: 40px 10px;
}

.left-panel-heading {
  line-height: 1.5 !important;
}

.left-panel-heading p {
  font-size: 1rem;
}

.left-panel {
  width: 1 1 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-btn {
  background: #2a2a2a;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
  text-align: center !important;
  transition: all 0.3s ease-in-out;
  margin: 7px 0;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--gradient-bg);
  color: #000;
}

.right-panel {
  flex: 2 1 60%;
  margin: 20px 0;
}

.right-panel p {
  line-height: 1.5 !important;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
  box-sizing: border-box;
  overflow: hidden;
}

.tab-content h3 {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tab-content h2 {
  padding: 10px 0;
}

.tab-content h4 {
  font-weight: 600;
  text-transform: capitalize;
  font-size: 0.8rem;
  padding: 10px 0;
}

.tab-content h5 {
  font-weight: 600;
  text-transform: capitalize;
  font-size: 0.8rem;
  padding-bottom: 10px;
}

.tab-content p {
  font-size: 1rem !important;
}

.tab-content.active {
  display: block;
}

.card-wrapper {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  max-width: 900px;
  width: 100%;
  height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  margin: 20px 0;
  scroll-behavior: smooth;
  /* overscroll-behavior: contain; */
}

.card-wrapper::-webkit-scrollbar {
  width: 8px;
}

.card-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.card-wrapper::-webkit-scrollbar-thumb {
  background: var(--gradient-bg);
  border-radius: 10px;
}

.card-wrapper::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.card-wrapper2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
}

.card,
.icon {
  background: #252525;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
}

.card2 {
  background: #252525;
  padding: 10px;
  border-radius: 10px;
  width: 100%;
  justify-self: center;
}

.email {
  word-break: break-all;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

.card .icon i {
  font-size: 1.5rem;
}

.card figcaption {
  background-color: #fff;
  padding: 2px 0;
  color: #000;
  text-align: center;
  border-radius: 10px;
  font-size: 0.8rem;
  visibility: hidden;
  transition: 2s ease-in-out;
  cursor: pointer;
  margin: 2px;
}

.card-wrapper2 .card:hover figcaption {
  visibility: visible;
}

.aboutme-text {
  text-transform: none !important;
}

#about .flex2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px 0;
}

#about .flex2 h3 {
  font-size: 0.7rem !important;
  text-transform: capitalize;
  padding-right: 10px;
}

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

/* Project Section */
.project-section-wrapper {
  background-color: #1a1a1a;
  color: #fff;
}

.portfolio-section {
  padding: 100px 10px;
  margin: 20px auto;
  max-width: 1200px;
  width: 90%;
}

.portfolio-section .resume-heading h2 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.portfolio-section p {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 10px;
  opacity: 0.7;
}

/* Portfolio Buttons */
.portfolio-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}

.portfolio-btns button {
  color: white;
  background: none;
  border: 2px solid #fff;
  padding: 12px 20px;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.portfolio-btns button:hover {
  background-color: white;
  color: #000;
}

/* Portfolio Grid */
.portfolio-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-top: 30px;
}

/* Portfolio Item */
.portfolio-item {
  background-color: #222;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}
.portfolio-item:hover .image {
  transform: scale(1.05);
  transition: all 1s ease-in-out;
}

.portfolio-item .image {
  position: relative;
  width: 100%;
  height: 100%;
}

.portfolio-item .image img {
  width: 100%;
  height: 250px;
  display: block;
  border-bottom: 2px solid #333;
}

/* Overlay Text */
.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  opacity: 0;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay-text {
  opacity: 1;
}

.overlay-text h3 {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: capitalize;
  margin-bottom: 10px;
}

.overlay-text p {
  font-size: 1rem;
  margin-bottom: 20px;
  opacity: 0.8;
}

.project-link a {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.project-link a:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Contact Section */
.contact-section {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  text-align: center;
  padding: 30px 10px;
  gap: 20px;
  background-color: #1a1a1a;
}

.contact-section p {
  font-size: 1rem;
}

.contact-form {
  background: #1f1f1f;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  text-align: left;
}

.contact-section h2 {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.input-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  background: #333;
  color: white;
}

textarea {
  height: 100px;
}

.contact-section button {
  background: var(--gradient-bg);
  color: black;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
}

.contact-section button:hover {
  box-shadow: 0 0 5px var(--accent), 0 0 25px var(--accent);
}

/* Contact Info */
.contact-info {
  margin-top: 20px;
  background: #1f1f1f;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
}

.contact-info .contact-wrapper {
  margin: 10px 0;
  display: flex;
  align-items: center;
}

.contact-form div p,
.contact-text {
  display: flex;
  font-size: 0.8rem;
  line-height: 1.5;
}

.sub-info {
  margin: 0 20px !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.sub-info h3 {
  font-size: 1rem;
  text-transform: capitalize;
}

/* Footer */
.bouncing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.bouncing-text,
.reflection {
  display: flex;
  font-size: 3rem;
  font-weight: bold;
  font-family: Arial, sans-serif;
  padding-top: 30px;
}

.bouncing-text span {
  display: inline-block;
  animation: bounce 1.5s ease-in-out infinite;
}

.reflection {
  transform: scaleY(-1);
  opacity: 0.3;
  filter: blur(2px);
  margin-top: -30px;
}

.reflection span {
  display: inline-block;
  animation: bounce 1.5s ease-in-out infinite;
}

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

.bouncing-text span:nth-child(1),
.reflection span:nth-child(1) {
  animation-delay: 0s;
}

.bouncing-text span:nth-child(2),
.reflection span:nth-child(2) {
  animation-delay: 0.2s;
}

.bouncing-text span:nth-child(3),
.reflection span:nth-child(3) {
  animation-delay: 0.4s;
}

.bouncing-text span:nth-child(4),
.reflection span:nth-child(4) {
  animation-delay: 0.6s;
}

.bouncing-text span:nth-child(5),
.reflection span:nth-child(5) {
  animation-delay: 0.8s;
}

.bouncing-text span:nth-child(6),
.reflection span:nth-child(6) {
  animation-delay: 1s;
}

.bouncing-text span:nth-child(7),
.reflection span:nth-child(7) {
  animation-delay: 1.2s;
}

.bouncing-text span:nth-child(8),
.reflection span:nth-child(8) {
  animation-delay: 1.4s;
}

.bouncing-text span:nth-child(9),
.reflection span:nth-child(9) {
  animation-delay: 1.6s;
}

.footer-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}





/* RESPONSIVENESS */

@media (min-width: 350px) {
  .services-section {
    padding-top: 100px !important;
    margin-top: 50px;
  }
}
@media (min-width: 400px) {
  .services-section {
    padding-top: 100px !important;
    margin-top: 50px;
  }
  .portfolio-btns {
    gap: 20px;
  }
}
@media (min-width: 500px) {
  .services-section {
    margin-top: 120px !important;
  }
}
@media (min-width: 700px) {
  .services-section {
    padding-top: 100px !important;
    margin-top: 50px;
  }
  .hero-section {
    min-height: 80vh !important;
  }
}
@media (min-width: 1000px) {
  .hero-section {
    min-height: 80vh !important;
    margin-top: 100px !important  ;
  }
}

@media (min-width: 576px) {
  .services {
    grid-template-columns: 1fr;
  }

  .portfolio-section .resume-heading h2 {
    font-size: 2.2rem;
  }

  .portfolio-btns {
    gap: 20px;
  }

  .portfolio-btns button {
    font-size: 1.1rem;
    padding: 14px 22px;
  }

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

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

@media (min-width: 768px) {
  body,
  html {
    font-size: 18px !important;
  }

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

  .services-section {
    padding: 100px 40px;
  }

  .inner-wrapper {
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: center;
  }

  hero-section .overlay {
    padding: 20px 0;
  }
  .hero-image {
    width: 300px;
    height: 300px;
  }

  .portfolio-section .resume-heading h2 {
    font-size: 2.5rem;
  }

  .portfolio-btns button {
    font-size: 1.2rem;
    padding: 16px 24px;
  }

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

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

  .input-row {
    flex-direction: row;
    gap: 10px;
  }

  .contact-section {
    flex-direction: row;
    justify-content: space-around;
    padding: 50px;
  }

  .contact-form,
  .contact-info {
    width: 45%;
  }

  .bouncing-text,
  .reflection {
    font-size: 5.5rem;
    padding-top: 30px;
  }

  .reflection {
    margin-top: -60px;
  }

  .text-container {
    font-size: 5.5rem;
  }

  p {
    font-size: 1.1rem !important;
  }

  .resume-section {
    flex-direction: row;
    text-align: center;
    max-width: 700px;
    background: #1e1e1e;
    border-radius: 10px;
    gap: 40px;
  }

  .left-panel-heading {
    text-align: left;
  }

  .left-panel {
    padding-top: 50px;
    width: 40%;
    flex-direction: column;
  }

  .tab-btn {
    text-align: left;
    padding: 8px 15px;
    font-size: 0.8rem;
  }

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

  .right-panel {
    width: 60%;
    text-align: left;
    padding-left: 20px;
  }
}

@media (min-width: 1024px) {
  body,
  html {
    font-size: 20px !important;
  }

  .desktop-menu ul {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .inner-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .portfolio-section .resume-heading h2 {
    font-size: 3rem;
  }

  .portfolio-btns button {
    font-size: 1.3rem;
    padding: 18px 28px;
  }

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

  .portfolio-item .image img {
    height: 300px;
    object-fit: cover;
  }

  .project-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
    transition: all 1s ease-in-out;
  }

  .input-row {
    flex-direction: row;
    gap: 10px;
  }

  .bouncing-text,
  .reflection {
    font-size: 7.5rem;
    padding-top: 30px;
  }

  .text-container {
    font-size: 7.5rem;
  }

  .contact-info {
    width: 50%;
  }

  p {
    font-size: 1rem !important;
  }

  .resume-section {
    max-width: 900px;
  }
}

@media (min-width: 1200px) {
  .resume-section {
    max-width: 1000px;
  }
  .portfolio-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cursor core (small dot) */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--gradient-bg);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.2s linear;
  mix-blend-mode: difference;
  z-index: 999;
}

/* Cursor outline (smooth trailing circle) */
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.5s ease-out;
  mix-blend-mode: difference;
  z-index: 999;
}

/* Hover effect for links & buttons */
a:hover,
button:hover {
  color: #fff;
}

a:hover ~ .cursor,
button:hover ~ .cursor {
  transform: scale(2); 
  background-color: white;
}

a:hover ~ .cursor-outline,
button:hover ~ .cursor-outline {
  transform: scale(1.5);
  border-color: white;
}

/* Click animation */
.click-effect {
  transform: scale(2);
  background: var(--gradient-bg);
}
