html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial;
}

/* NAVBAR */
.custom-nav {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
}

.nav-link {
  color: white !important;
  margin-left: 15px;
  position: relative;
}

.nav-link::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #38bdf8;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #38bdf8 !important;
}

/* HERO IMAGE BACKGROUND */
.hero {
  height: 100vh;

  background: url("https://images.unsplash.com/photo-1498050108023-c5249f4df085") no-repeat center center/cover;

  position: relative;
}

/* DARK OVERLAY (TEXT CLEAR-A VARA) */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,0.6);
}

/* CONTENT ABOVE OVERLAY */
.hero-content {
  position: relative;
  z-index: 2;
}

/* OPTIONAL ZOOM ANIMATION */
.hero {
  animation: zoomBg 15s infinite alternate;
}

@keyframes zoomBg {
  0% {background-size: 100%;}
  100% {background-size: 110%;}
}
/* ABOUT SECTION */
.about-section {
  background: linear-gradient(to right, #0f172a, #1e293b);
}

/* IMAGE BOX ANIMATION */
.about-img-box {
  display: inline-block;
  padding: 10px;
  border-radius: 50%;
  background: linear-gradient(45deg, #38bdf8, #0ea5e9);
  animation: rotateBorder 5s linear infinite;
}

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

/* IMAGE */
.about-img {
  width: 250px;
  border-radius: 50%;
  display: block;
}

/* TEXT */
.about-section p {
  line-height: 1.6;
}

/* PROFILE */
.profile {
  width: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {transform: scale(1)}
  50% {transform: scale(1.1)}
  100% {transform: scale(1)}
}

/* GLOW */
.glow {
  color: #38f8d8;
  text-shadow: 0 0 10px #38f8d8;
}

/* TYPING */
.typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid white;
  width: 0;
  animation: typing 3s steps(20) forwards, blink 0.7s infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 340px }
}

@keyframes blink {
  50% { border-color: transparent }
}

/* SKILLS */
.skill-box {
  padding: 25px;
  background: #1e293b;
  color: white;
  border-radius: 10px;
  transition: 0.4s;
}

.skill-box:hover {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 0 20px #38bdf8;
}

/* PROJECTS */
.project-box {
  padding: 30px;
  border-radius: 10px;
  transition: 0.4s;
  
}

.project-box:hover {
  transform: translateY(-15px);
  box-shadow: 0 0 20px #0ea5e9;
}
#projects{
  background: linear-gradient(to right, #0f172a, #1e293b);
  color: white;
}

/* MOBILE */
@media(max-width:768px){
  .typing {
    width: 180px;
    font-size: 18px;
  }
}