body {
  margin: 0;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif,
    sans-serif;
  background-color: rgb(12, 12, 12);
}

body {
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.fade-in {
  opacity: 1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #202020;
  padding: 15px 35px;
  position: sticky;
  top: 0;
  transform: scale(1);
  z-index: 1000;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: #00f; /* blue logo with glow */
  text-shadow: 0 0 5px #00f;
  cursor: pointer;
  letter-spacing: 1px;
}

.logo:hover {
  text-shadow: 0 0 10px #00f, 0 0 15px #00f;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-item a {
  color: white;
  text-decoration: none;
  font-size: 17px;
  position: relative;
  transition: color 0.3s;
}

/* Hover underline animation */
.nav-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 3px;
  background-color: #00f;
  transition: width 0.3s;
}

.nav-item a:hover::after {
  width: 100%;
}

/* Active tab */
.nav-item.active a {
  color: #00f;
  text-shadow: 0 0 10px #00f;
}

.nav-item.active a::after {
  width: 100%;
}

.content {
  padding: 50px 30px;
}

/* ===== Hero Section ===== */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #131313;
  padding: 0px 20px;
  margin: 20px 20px 0px 20px; /* top, right, bottom, left */
}

/* ===== Hero Left ===== */
.hero-left {
  flex: 1.5;
  margin-left: 40px;
  position: relative;
  transform: scale(0.75); /* less than 1 = zoom out */
  transform-origin: top left; /* keeps it anchored in place */
}

/* ===== Hero Item individually ===== */

#gradient-text-2,
#gradient-text-1 {
  font-size: 35px;
  font-weight: 800;
  background: linear-gradient(90deg, #00e1ff, #007bff, #00e1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  margin-bottom: 20px;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

#glow-line-1 {
  height: 2px;
  border-radius: 5px;
  background: linear-gradient(90deg, #00ffff, #007bff);
  box-shadow: 0 0 15px #00e1ff;
  margin: 25px 0;
  width: 1000px;
}

#glow-line-2 {
  height: 2px;
  border-radius: 5px;
  background: linear-gradient(90deg, #00ffff, #007bff);
  box-shadow: 0 0 15px #00e1ff;
  margin: 25px 0;
  width: 800px;
}

#para-1 {
  font-size: 20px;
  padding-top: 5px;
  color: #ddd;
  line-height: 1.5;
  margin-top: -5px;
  margin-bottom: 50px;
}

#para-2 {
  font-size: 20px;
  padding-top: 5px;
  color: #ddd;
  line-height: 1.4;
  margin-top: -5px;
}

/* ===== Hero Button ===== */
.hero-button-container {
  margin-top: 30px;
  margin-bottom: -120px;
}

.start-btn {
  display: inline-block;
  padding: 15px 15px;
  background: linear-gradient(90deg, #00f, #1e90ff);
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 255, 0.3);
  transition: all 0.3s ease;
}

.start-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.start-btn:hover::before {
  top: -20%;
  left: -20%;
}

.start-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 255, 0.5);
}

.start-btn:active {
  transform: scale(0.95);
}

/* ===== Button ===== */
.start-btn {
  display: inline-block;
  padding: 15px 45px;
  background: linear-gradient(90deg, #007bff, #00e1ff);
  color: white;
  font-size: 25px;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 0 25px rgba(0, 195, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  animation: pulseBtn 2.5s infinite;
  margin-top: 20px;
}

@keyframes pulseBtn {
  0%,
  100% {
    box-shadow: 0 0 15px #00e1ff;
  }
  50% {
    box-shadow: 0 0 35px #00e1ff;
  }
}

.start-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.5s;
}
.start-btn:hover::after {
  left: 100%;
}
.start-btn:hover {
  transform: translateY(-5px);
}

/* ===== Hero Right ===== */
/* ===== Hero Right ===== */
.hero-right {
  flex: 1;
  display: flex;
}

/* Container for logo and glow */
.r-logo-container {
  position: relative;
  width: 100px; /* same as logo */
  height: 250px;
}

/* Logo */
.r-logo {
  width: 250px;
  height: 250px;
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  animation: float 3s ease-in-out infinite;
  z-index: 2;
}

/* Glow Circle */
.glow-circle {
  position: absolute;
  top: 80%; /* vertical center of container */
  left: 50%; /* horizontal center of container */
  transform: translate(-50%, -50%); /* perfectly centered */
  width: 600px; /* smaller than before for easy positioning */
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 80px 80px rgba(0, 200, 255, 0.5);
  filter: blur(100px);
  opacity: 1;
  animation: pulse 3s ease-in-out infinite;
  z-index: 1; /* behind logo */
}

/* ===== Animations ===== */
@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
  }
}

/* ===== Gradient Text Style ===== */
.gradient-text {
  font-weight: bold;
  background: linear-gradient(90deg, rgb(32, 32, 248), rgb(179, 252, 252));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-left > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 1.5s ease forwards;
}

.hero-left #gradient-text-1 {
  animation-delay: 0.3s;
}
.hero-left #gradient-text-2 {
  animation-delay: 0.6s;
}
.hero-left #para-1 {
  animation-delay: 0.9s;
}
.hero-left #para-2 {
  animation-delay: 1.2s;
}
.hero-left .start-btn {
  animation-delay: 1.5s;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* _____________________________________________________________________________________________ */

/* ===== Floating Glowing Particles (Hero Section Only) ===== */
.particle-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.floating-particle {
  position: absolute;
  bottom: -20px;
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, #00e1ff 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.9;
  animation: floatUp 10s linear infinite;
}

/* Animation - moves particles upward */
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-800px) scale(1.2);
    opacity: 0;
  }
}

/* Create variation for different particles */
.floating-particle:nth-child(1) {
  left: 5%;
  animation-delay: 0s;
  animation-duration: 12s;
}
.floating-particle:nth-child(2) {
  left: 20%;
  animation-delay: 2s;
  animation-duration: 14s;
}
.floating-particle:nth-child(3) {
  left: 35%;
  animation-delay: 4s;
  animation-duration: 10s;
}
.floating-particle:nth-child(4) {
  left: 50%;
  animation-delay: 1s;
  animation-duration: 11s;
}
.floating-particle:nth-child(5) {
  left: 65%;
  animation-delay: 3s;
  animation-duration: 15s;
}
.floating-particle:nth-child(6) {
  left: 80%;
  animation-delay: 5s;
  animation-duration: 13s;
}
.floating-particle:nth-child(7) {
  left: 90%;
  animation-delay: 7s;
  animation-duration: 12s;
}
.floating-particle:nth-child(8) {
  left: 30%;
  animation-delay: 6s;
  animation-duration: 16s;
}
.floating-particle:nth-child(9) {
  left: 70%;
  animation-delay: 8s;
  animation-duration: 18s;
}
.floating-particle:nth-child(10) {
  left: 10%;
  animation-delay: 10s;
  animation-duration: 20s;
}

/* __________________________________________________________________________________________ */

#para-1 {
  position: relative;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.5;
  text-align: left;
}

/* Flying words */
.fly-word {
  position: relative;
  display: inline-block;
  color: #00ffff;
  font-weight: bold;
  animation: flyMotion 10s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.8s);
}

/* Animate movement in different directions */
@keyframes flyMotion {
  0%,
  100% {
    transform: translate(0, 0);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
  }
  25% {
    transform: translate(5px, -10px) rotate(3deg);
  }
  50% {
    transform: translate(-10px, 10px) rotate(-3deg);
  }
  75% {
    transform: translate(10px, 5px) rotate(2deg);
  }
}

#para-2 {
  position: relative;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.5;
  text-align: left;
  margin-top: 1rem;
}

/* Reuse the same animation for both */
.fly-word {
  position: relative;
  display: inline-block;
  color: #00ffff;
  font-weight: bold;
  animation: flyMotion 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.8s);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

@keyframes flyMotion {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(5px, -10px) rotate(3deg);
  }
  50% {
    transform: translate(-10px, 10px) rotate(-3deg);
  }
  75% {
    transform: translate(10px, 5px) rotate(2deg);
  }
}

/* __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

    Contact Section 
    ______________________________________________________________________________________________________________________________________________________________________________________________________________________________________*/

/* ===== Contact Hero Section ===== */
.hero-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #131313;
  padding: 20px 50px;
  margin-top: 10px;
  margin-right: 20px;
  margin-left: 20px;
  margin-bottom: 0px;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* ===== Left side ===== */
.hero-left-contact {
  flex: 1.5;
  color: #fff;
  z-index: 2;
  padding: 0% 5% 0% 0%;
}

#dev-title {
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(90deg, #00e1ff, #007bff, #00e1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmerTitle 4s linear infinite;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

#dev-title span {
  color: #00ffff;
  text-shadow: 0 0 20px #00e1ff;
}

@keyframes shimmerTitle {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Glow Line */
.glow-line-contact {
  width: 800px;
  height: 2px;
  margin-top: -5px;
  border-radius: 5px;
  background: linear-gradient(90deg, #ffffff, #ffffff);
  box-shadow: 0 0 20px #00e1ff;
  margin-bottom: 5px;
}

/* Magical Description */
.dev-description {
  font-size: 20px;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 37px;
  margin-right: 10px;
  line-height: 1.6;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
  animation: fadeSlide 8s ease-in-out infinite;
}

@keyframes fadeSlide {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-10px);
  }
}

.contact-details-row {
  display: flex;
  gap: 10px; /* space between email and phone */
  flex-wrap: wrap; /* makes it responsive on smaller screens */
  margin-top: 5px;
}

.contact-details-row .contact-item {
  font-size: 15px;
  flex: 1; /* evenly divides space */
  min-width: 20px; /* ensures they don’t shrink too much */
}

/* ===== Right Side (Glitch Photo Circle) ===== */
.hero-image-container {
  position: relative;
  width: 250px; /* change size here */
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 40px cyan, inset 0 0 30px rgba(0, 255, 255, 0.4);
  animation: glitchBorder 3s infinite linear;
  margin-right: 40px;
}

@keyframes glitchBorder {
  0%,
  100% {
    box-shadow: 0 0 40px cyan, inset 0 0 30px rgba(0, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 60px #00ffff, inset 0 0 60px rgba(0, 255, 255, 0.6);
  }
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
}

.glow-circle {
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: 120px;
  height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 255, 255, 0.8), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}

/* Glow Circle Below the Image */
.glow-below {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 255, 0.5) 0%,
    rgba(0, 255, 255, 0) 70%
  );
  filter: blur(40px);
  z-index: -1;
  animation: glowPulseContact 3s ease-in-out infinite;
}

@keyframes glowPulseContact {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 1;
  }
}

/* Floating animation for photo */
@keyframes floatDev {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== Developer Contact Info in Hero Section ===== */
.contact-details {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 27px;
  color: #ccefff;
  animation: fadeUp 1.5s ease-in-out;
}

.contact-item {
  display: flex;
  font-size: 15px;
  align-items: center;
  gap: 12px;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  padding: 12px 18px;
  border-radius: 14px;
  width: fit-content;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.08);
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  margin-bottom: 0px;
}

.contact-item:hover {
  transform: translateX(8px);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
  background: rgba(0, 255, 255, 0.08);
}

.contact-item i {
  font-size: 22px;
  color: #00ffff;
  animation: glowIcon 3s ease-in-out infinite;
}

.contact-item strong {
  color: #00e1ff;
}

.contact-item a {
  color: #bffcff;
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

.contact-item a:hover {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}

/* === Animations === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowIcon {
  0%,
  100% {
    text-shadow: 0 0 8px #00ffff;
  }
  50% {
    text-shadow: 0 0 20px #00ffff;
  }
}

/*_____________________________________________________________ */
.portfolio-link {
  color: #ff2a2a; /* red color */
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* underline animation */
.portfolio-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #ff2a2a;
  transition: width 0.3s ease;
}

/* hover effect */
.portfolio-link:hover {
  color: #ff4d4d;
  transform: translateY(-2px); /* slight lift */
}

/* underline expands on hover */
.portfolio-link:hover::after {
  width: 100%;
}

.portfolio-link,
.portfolio-link:visited,
.portfolio-link:active {
  color: rgb(248, 209, 34) !important;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.portfolio-link:hover {
  color: red !important;
  transform: translateY(-2px);
}

/* underline animation */
.portfolio-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: red;
  transition: width 0.3s ease;
}

.portfolio-link:hover::after {
  width: 100%;
}

/* ===== Site Footer ===== */
/* ===== Frozen Footer ===== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  text-align: center;
  padding: -15px 0;
  background-color: #101010;
  color: #ccefff;
  font-size: 14px;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 -2px 10px rgba(0, 255, 255, 0.1);
  animation: footerGlow 3s ease-in-out infinite;
}

/* glowing animation */
@keyframes footerGlow {
  0%,
  100% {
    text-shadow: 0 0 5px #00ffff;
  }
  50% {
    text-shadow: 0 0 15px #00ffff;
  }
}

/* Make sure content does not overlap footer */
body,
.main-content {
  padding-bottom: 60px; /* height of footer */
}

/* ===== Screen Size Warning (Mobile & Tablet Only) ===== */
/* ===== MOBILE / TABLET FULL SCREEN WARNING ===== */
.screen-warning-only {
  display: none;
}

/* Mobile & Tablet */
@media (max-width: 1024px) {
  /* Hide everything */
  body > * {
    display: none !important;
  }

  /* Show only the warning */
  .screen-warning-only {
    display: flex !important;
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #0a0a0a, #000);
    justify-content: center;
    align-items: center;
    z-index: 10000;
  }

  .warning-box {
    text-align: center;
    padding: 40px 35px;
    border-radius: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6), 0 0 60px rgba(0, 225, 255, 0.3);
    animation: pulseWarning 2.5s infinite ease-in-out;
  }

  .warning-box span {
    color: #00e1ff;
    text-shadow: 0 0 15px #00ffff;
  }
}

/* Glow Pulse */
@keyframes pulseWarning {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 45px rgba(0, 255, 255, 0.8);
  }
}
