/* Main CSS Styles */
:root {
  --primary-color: #ff7700;
  --secondary-color: #121e3d;
  --dark-color: #0a1126;
  --light-color: #ffffff;
  --gray-color: #acacac;
  --transition: all 0.3s ease-in-out;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Logo container and animation */
.logo-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
}

.preloader-logo-reference {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  /* Used as reference for sizing/positioning only */
}

.logo-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.logo-path {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 2;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: dash 2s ease-in-out forwards;
}

.logo-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  -webkit-mask-image: url(../images/logo.png);
  mask-image: url(../images/logo.png);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
  animation: fill 1.5s ease-in-out 1.5s forwards;
}

.preloader-text {
  color: var(--primary-color);
  font-family: "Oxanium", cursive;
  font-size: 1.2rem;
  margin-top: 15px;
  opacity: 0;
  animation: fade-in 0.5s ease-in-out 0.5s forwards;
}

@keyframes dash {
  0% {
    stroke-dashoffset: 300;
  }
  75% {
    stroke-dashoffset: 0;
    fill: transparent;
  }
  100% {
    stroke-dashoffset: 0;
    fill: transparent;
  }
}

@keyframes fill {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Improve scroll experience */
  overflow-y: scroll;
  scroll-padding-top: 100px; /* Adjust based on your header height */
}

/* Smoother scrolling for Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--dark-color);
}

/* Smoother scrolling for Chrome/Safari */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 4px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--dark-color);
  color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.cursor {
  width: 15px;
  height: 15px;
  background-color: var(--primary-color);
  filter: drop-shadow(0 0 5px var(--primary-color));
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s,
    mix-blend-mode 0.2s;
  opacity: 0.8;
  /* Ensure cursor is in the viewport initially */
  top: 50%;
  left: 50%;
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), #ff9f50);
  z-index: 9999;
  width: 0%;
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px rgba(255, 119, 0, 0.5);
  opacity: 0.9;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 80px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  gap: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 119, 0, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

/* Download button styles */
.btn[download]::after {
  content: "\f019";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 8px;
  font-size: 0.9em;
  transition: var(--transition);
}

.btn[download]:hover::after {
  transform: translateY(3px);
}

/* Animation for download button */
@keyframes pulse-download {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 119, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 119, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 119, 0, 0);
  }
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-block;
  padding-bottom: 10px;
  position: relative;
  font-family: "Oxanium", cursive;
  letter-spacing: 1px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 25%;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8%;
  position: fixed;
  margin: 30px auto;
  left: 0;
  right: 0;
  width: 95%;
  border-radius: 8px;
  background-color: rgba(
    18,
    30,
    61,
    0.3
  ); /* Transparent version of var(--secondary-color) */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2500;
  transition: var(--transition);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.navbar.scrolled {
  padding: 10px 8%;
  background-color: rgba(
    18,
    30,
    61,
    0.7
  ); /* Slightly more opaque when scrolled */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 40px;
  width: auto;
}

.nav-links ul {
  display: flex;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: var(--light-color);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--light-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  background-color: #040404;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Magic Lighting Effect */
.magic-lighting-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.magic-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color),
    0 0 30px var(--primary-color);
  animation: magicFloat 8s ease-in-out infinite;
}

.magic-particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.magic-particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 2s;
  animation-duration: 10s;
}

.magic-particle:nth-child(3) {
  top: 80%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 12s;
}

.magic-particle:nth-child(4) {
  top: 30%;
  left: 70%;
  animation-delay: 1s;
  animation-duration: 9s;
}

.magic-particle:nth-child(5) {
  top: 50%;
  left: 50%;
  animation-delay: 3s;
  animation-duration: 11s;
}

.magic-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 119, 0, 0.4) 0%,
    rgba(255, 119, 0, 0.2) 40%,
    rgba(172, 172, 172, 0.1) 70%,
    transparent 100%
  );
  box-shadow: 0 0 30px rgba(255, 119, 0, 0.3);
  animation: magicOrb 15s ease-in-out infinite;
}

.magic-orb-1 {
  width: 150px;
  height: 150px;
  top: 15%;
  right: 20%;
  animation-delay: 0s;
}

.magic-orb-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 10%;
  animation-delay: 5s;
  background: radial-gradient(
    circle,
    rgba(172, 172, 172, 0.3) 0%,
    rgba(172, 172, 172, 0.1) 40%,
    rgba(255, 119, 0, 0.1) 70%,
    transparent 100%
  );
  box-shadow: 0 0 25px rgba(172, 172, 172, 0.2);
}

.magic-orb-3 {
  width: 100px;
  height: 100px;
  top: 70%;
  right: 40%;
  animation-delay: 10s;
}

@keyframes magicFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translateY(-30px) translateX(20px) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: translateY(-60px) translateX(-10px) scale(0.8);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-20px) translateX(30px) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes magicOrb {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: scale(1.1) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: scale(0.9) rotate(180deg);
    opacity: 0.4;
  }
  75% {
    transform: scale(1.05) rotate(270deg);
    opacity: 0.7;
  }
}

/* Magical glow effect on hero hover */
.hero:hover .magic-lighting-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 40%,
      rgba(255, 119, 0, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(172, 172, 172, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(255, 119, 0, 0.06) 0%,
      transparent 60%
    );
  animation: magicGlow 4s ease-in-out infinite;
}

@keyframes magicGlow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.02);
  }
}

.hero-content {
  flex: 1;
  padding-left: 12%;
}

.hero-image {
  z-index: 1500;
  flex: 1;
  margin-top: 15vh;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/pic 1.png");
  background-size: cover;
  background-position: center;
  z-index: 2;
}

.hero-image::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  animation: circleRotate 15s linear infinite;
  z-index: 1;
}

@keyframes circleRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(-50%, -50%) rotate(90deg) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translate(-50%, -50%) rotate(270deg) scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
    opacity: 0.6;
  }
}

@keyframes circleRotateReverse {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 0.4;
  }
  30% {
    transform: translate(-50%, -50%) rotate(-108deg) scale(0.8);
    opacity: 0.6;
  }
  60% {
    transform: translate(-50%, -50%) rotate(-216deg) scale(1.2);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg) scale(1);
    opacity: 0.4;
  }
}

/* Additional Circle Animation Elements */
.circle-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.circle-animation::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 450px;
  height: 450px;
  border: 2px solid var(--gray-color);
  border-radius: 50%;
  border-style: dashed;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  animation: circleRotateReverse 20s linear infinite reverse;
}

.circle {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
}

.circle-1 {
  width: 200px;
  height: 200px;
  border: 2px solid var(--primary-color);
  top: 20%;
  right: 10%;
  opacity: 0.5;
  animation: floatCircle1 12s ease-in-out infinite;
}

.circle-2 {
  width: 150px;
  height: 150px;
  border: 1px dashed var(--gray-color);
  bottom: 15%;
  left: 15%;
  opacity: 0.4;
  animation: floatCircle2 18s ease-in-out infinite;
}

.circle-3 {
  width: 100px;
  height: 100px;
  border: 3px dotted var(--primary-color);
  top: 70%;
  right: 20%;
  opacity: 0.6;
  animation: floatCircle3 14s ease-in-out infinite;
}

@keyframes floatCircle1 {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translateY(-30px) rotate(90deg) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(20px) rotate(180deg) scale(0.9);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-10px) rotate(270deg) scale(1.05);
    opacity: 0.6;
  }
}

@keyframes floatCircle2 {
  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
    opacity: 0.4;
  }
  33% {
    transform: translateX(40px) translateY(-25px) rotate(-120deg);
    opacity: 0.7;
  }
  66% {
    transform: translateX(-20px) translateY(35px) rotate(-240deg);
    opacity: 0.2;
  }
}

@keyframes floatCircle3 {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }
  20% {
    transform: scale(1.2) rotate(72deg);
    opacity: 0.8;
  }
  40% {
    transform: scale(0.8) rotate(144deg);
    opacity: 0.4;
  }
  60% {
    transform: scale(1.1) rotate(216deg);
    opacity: 0.7;
  }
  80% {
    transform: scale(0.9) rotate(288deg);
    opacity: 0.3;
  }
}

.intro {
  font-size: 2rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 7px;
}

.name {
  font-size: 6rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.job-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gray-color);
  margin-bottom: 30px;
  min-height: 1.5rem; /* Ensure consistent height during typing */
}

/* Typing cursor animation */
.cursor-typing {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 700;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Scroll down indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--light-color);
  font-size: 0.9rem;
  z-index: 10;
}

.scroll-down a {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
}

.scroll-down a:hover {
  transform: translateY(-5px);
  color: var(--primary-color);
}

.scroll-arrow {
  font-size: 1.2rem;
  animation: bounce 3s infinite ease-in-out;
  margin-bottom: 5px;
  color: var(--primary-color);
}

@keyframes bounce {
  0%,
  10%,
  25%,
  40%,
  100% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-10px);
  }
  30% {
    transform: translateY(-5px);
  }
}

.hero-btn {
  margin-bottom: 30px;
  padding: 12px 40px;
}

.social-links {
  display: flex;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: 15px;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
}

/* About Section */
.about {
  background-color: var(--dark-color);
  padding: 100px 12%;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  margin: 0 50px 0 50px;
  flex: 1;
  background-image: url("../images/pic 2.jpg");
  background-size: cover;
  background-position: top;
  height: 700px;
  width: 10vw; /* change this value to your desired width */
  border-radius: 10px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: "Oxanium", cursive;
  letter-spacing: 0.5px;
}

.job-description {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.bio {
  margin-bottom: 20px;
  color: var(--gray-color);
}

.personal-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-item span {
  font-weight: 600;
  margin-bottom: 5px;
}

.info-item p {
  color: var(--gray-color);
}

.about-buttons {
  display: flex;
  gap: 20px;
}

/* Services Section */
.services {
  background-color: var(--secondary-color);
  padding: 100px 12%;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 80px;
}

.service-card {
  background-color: var(--dark-color);
  border-radius: 10px;
  padding: 30px;
  transition: var(--transition);
  text-align: center;
}

.service-card:hover h3 {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0px 10px 20px rgba(255, 119, 0, 0.2),
    0 0 30px rgba(255, 119, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
}

.service-card {
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease, background-color 0.3s ease;
}

.service-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-family: "Oxanium", cursive;
  letter-spacing: 0.5px;
}

.service-card p {
  color: var(--gray-color);
}

/* Skills Section */
.skills {
  background-color: var(--dark-color);
  padding: 100px 12%;
}

.skills-content {
  display: flex;
  gap: 50px;
}

.skills-text {
  flex: 1;
}

.skills-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
  font-family: "Oxanium", cursive;
  letter-spacing: 0.5px;
}

.skills-text p {
  color: var(--gray-color);
  margin-bottom: 15px;
}

.skills-bars {
  flex: 1;
}

.skill {
  margin-bottom: 25px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress-bar {
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 5px;
  width: 0; /* Start with 0 width */
  transition: width 1.5s cubic-bezier(0.1, 0.45, 0.1, 1); /* Smoother animation curve */
}

/* Tools Section */
.tools {
  background-color: var(--secondary-color);
  padding: 100px 12%;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 1000px; /* Optional: limits the width of the grid */
}

.tool-item {
  width: 120px;
  height: 120px;
  background-color: var(--light-color);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  transition: var(--transition);
}

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

.tool-item img {
  max-width: 100%;
  max-height: 100%;
}

/* Portfolio Section */
.portfolio {
  background-color: var(--dark-color);
  padding: 100px 12%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.portfolio-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-10px);
}

.portfolio-image {
  height: 200px;
  background-color: #333;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 20px;
  position: relative;
}

.portfolio-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-family: "Oxanium", cursive;
  letter-spacing: 0.5px;
}

.portfolio-info p {
  color: var(--gray-color);
  margin-bottom: 15px;
}

.portfolio-links {
  position: relative;
  justify-content: center;
  align-items: center;
  display: flex;
}

.portfolio-link {
  size: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: 15px;
  transition: var(--transition);
  font-size: larger;
  color: var(--gray-color);
  border-color: var(--gray-color);
}

.portfolio-link:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.view-more {
  text-align: center;
  margin-top: 50px;
}

/* Contact Section */
.contact {
  background-color: var(--secondary-color);
  padding: 100px 12%;
}

.contact-container {
  display: flex;
  gap: 50px;
}

.contact-form,
.contact-info {
  flex: 1;
}

.contact-form h3,
.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-family: "Oxanium", cursive;
  letter-spacing: 0.5px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: var(--light-color);
  font-family: "Poppins", sans-serif;
}

.form-group textarea {
  height: 150px;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 1px solid var(--primary-color);
}

.btn-submit {
  width: 100%;
}

.contact-info p {
  color: var(--gray-color);
  margin-bottom: 30px;
}

.contact-info .info-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 20px;
}

.icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  color: var(--primary-color);
}

.details h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.details p {
  color: var(--gray-color);
  margin-bottom: 0;
}

.social-links-contact {
  margin-top: 30px;
}

.social-icons {
  display: flex;
  margin-top: 15px;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  padding: 30px 0;
  text-align: center;
}

.footer-content p {
  color: var(--gray-color);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(255, 119, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--dark-color);
  color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 119, 0, 0.5);
}

/* Notification */
.notification {
  position: fixed;
  bottom: 20px;
  right: -300px;
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 15px 25px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 9999;
}

.notification.success {
  border-left: 4px solid #2ecc71;
}

.notification.error {
  border-left: 4px solid #e74c3c;
}

.notification.show {
  right: 20px;
}

/* Contact Form Loading State */
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-submit:disabled::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Form Validation Feedback */
.form-group.error input,
.form-group.error textarea {
  border-color: #e74c3c;
  box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.form-group.success input,
.form-group.success textarea {
  border-color: #2ecc71;
  box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

.form-group .error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

/* Scroll Animation */
.scroll-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animation.scrolled {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .name {
    font-size: 3rem;
  }

  .about-content,
  .skills-content,
  .contact-container {
    flex-direction: column;
  }

  .personal-info {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 400px;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(18, 30, 61, 0.7); /* Matches navbar glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    flex-direction: column;
    height: auto;
    padding-top: 100px;
    text-align: center;
  }

  .hero-content {
    padding: 50px 12%;
  }

  .hero-image {
    height: 400px;
  }

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

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

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

@media screen and (max-width: 576px) {
  .section-title h2 {
    font-size: 2rem;
  }

  .name {
    font-size: 2.5rem;
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
