/* Importing the 'Inter' font family from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

/* WebKit Browsers: Customize Scrollbar */
::-webkit-scrollbar {
  width: 10px; /* Set scrollbar width */
}

::-webkit-scrollbar-track {
  background: #ebebeb; /* Track background (light gray) */
}

::-webkit-scrollbar-thumb {
  background: #4a6fa5; /* Thumb color (primary blue) */
  border-radius: 10px; /* Rounded corners for thumb */
}

::-webkit-scrollbar-thumb:hover {
  background: #3a5f95; /* Darker blue on hover */
}

/* Firefox Scrollbar Styling */
* {
  scrollbar-width: auto;
  scrollbar-color: #4a6fa5 #ebebeb; /* Thumb color, Track color */
}

/* Reset margin/padding and set default font for entire site */
body,
html {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* Header label positioned above the glass-about card */
.glass-about > div:first-child {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #4a6fa5; /* Primary blue background */
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Slight shadow */
  text-align: center;
  color: white;
  font-weight: bold;
}

/* Global text styling used for uppercase labels */
text {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: bold;
}

/* Central positioning and animation for rotating circular text */
.circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: none; /* Allow clicks to pass through */
  transform-style: preserve-3d;
  transition: all 1s ease-in-out;
}

/* 3D rotation effect on hover for circular text */
.group:hover .circle-text {
  transform: translate(-50%, -50%) rotate3d(1, 1, 0, 60deg);
}

/* Outer shell of the rotating card (circular container) */
.circle-card {
  background: linear-gradient(135deg, #4a6fa5, #334155);
  height: 220px;
  width: 220px;
  border-radius: 50%;
  transform-style: preserve-3d;
  transition: all 1s ease-in-out;
  position: relative;
}

/* Icons inside circle get a glowing effect */
.circle-card .circle i {
  color: rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Base style for all nested circles */
.circle {
  background: linear-gradient(#ffffff27, #ffffff28);
  border-radius: inherit;
  position: absolute;
  box-shadow: -5px 5px 10px #64646f33;
  transition: all 1s ease-in-out;
}

/* Staggered layers with delays for hover animation */
.circle:nth-child(1) {
  inset: 10px;
  transition-delay: 0.1s;
}
.circle:nth-child(2) {
  inset: 30px;
  transition-delay: 0.2s;
}
.circle:nth-child(3) {
  inset: 50px;
  transition-delay: 0.3s;
}
.circle:nth-child(4) {
  inset: 70px;
  transition-delay: 0.4s;
}

/* Rotate the entire circle-card on hover */
.circle-card:hover {
  transform: rotate3d(1, 1, 0, 60deg);
}

/* Animate nested circle layers outward in 3D space */
.circle-card:hover .circle:nth-child(1) {
  transform: translate3d(0, 0, 20px);
}
.circle-card:hover .circle:nth-child(2) {
  transform: translate3d(0, 0, 40px);
}
.circle-card:hover .circle:nth-child(3) {
  transform: translate3d(0, 0, 60px);
}
.circle-card:hover .circle:nth-child(4) {
  transform: translate3d(0, 0, 80px);
}

/* Cursor used for blinking typing effect */
.cursor {
  display: inline-block;
  width: 1px;
  height: 1em;
  background-color: currentColor;
  margin-left: 4px;
  animation: blink 0.7s steps(1) infinite;
}

/* Code-style text for typewriter effect */
#typewriter {
  font-family: "Fira Code", Consolas, "Courier New", monospace;
  font-size: 1rem;
}

/* Keyframes for blinking cursor */
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Small hamburger menu for mobile view */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 14px;
  height: 10px;
}

/* Hamburger lines styling */
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger transform to X (when active) */
.hamburger-active .line1 {
  transform: rotate(45deg) translate(2.5px, 3.4px);
}
.hamburger-active .line2 {
  opacity: 0;
}
.hamburger-active .line3 {
  transform: rotate(-45deg) translate(2px, -3px);
}

/* Online status badge (e.g. "Available") */
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 110, 165, 0.05);
  border: 1px solid rgba(74, 110, 165, 0.46);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #4a6fa5;
}

/* Animated green dot inside badge */
.dot {
  position: relative;
  width: 6px;
  height: 6px;
  background: rgb(1, 212, 114);
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff88;
}

/* Pulse animation for the green dot */
.dot::before,
.dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: #00ff88;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  animation: pulse 1.5s infinite ease-out;
}
.dot::after {
  animation-delay: 0.75s;
  background: rgba(0, 255, 136, 0.5);
}

/* Keyframes for pulsing ring effect */
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Scroll to top button: hidden state */
#scrollTopBtn {
  opacity: 0;
  transform: translateY(60px) scale(0.5);
  transition: opacity 0.4s ease-out,
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Visible state of scroll button */
#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Square loading element with neon glow */
#rect-container .rect {
  width: 2rem;
  height: 2rem;
}
.square {
  box-shadow: 0 0 20px 6px rgba(36, 48, 68, 0.9);
}

/* Base glassmorphism card style */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glassmorphism card used in About section */
.glass-about {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  max-width: 90%;
  margin: 0 auto;
}

/* Complex layered background with gradients */
body {
  background: radial-gradient(
      circle at top right,
      rgba(38, 0, 255, 0.2),
      transparent 15%
    ),
    radial-gradient(circle at 50% 30%, rgba(0, 10, 36, 0.8), rgba(0, 0, 0, 0.9)),
    linear-gradient(180deg, #000814 0%, #000814 20%, #001f3f 100%);
  color: white;
  position: relative;
}

/* Slightly lighter background for mobile screens */
@media (max-width: 768px) {
  body {
    background: radial-gradient(
        circle at top right,
        rgba(38, 0, 255, 0.1),
        transparent 15%
      ),
      radial-gradient(
        circle at 50% 30%,
        rgba(0, 10, 36, 0.8),
        rgba(0, 0, 0, 0.9)
      ),
      linear-gradient(180deg, #000814 0%, #000814 20%, #001f3f 100%);
  }
}

/* Wrapper for animated background circles */
.tech-bg-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Base circle styling */
.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.6;
}

/* Individual gradient circles with different sizes and colors */
.circle-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(0, 89, 255, 0.5) 1%,
    rgba(0, 162, 255, 0) 70%
  );
  top: 10%;
  left: 5%;
}
.circle-2 {
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(128, 0, 128, 0.4) 0%,
    rgba(128, 0, 128, 0) 70%
  );
  top: 20%;
  right: 10%;
}
.circle-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(255, 165, 0, 0.4) 0%,
    rgba(255, 165, 0, 0) 70%
  );
  bottom: 15%;
  left: 15%;
}
.circle-4 {
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle,
    rgba(0, 162, 255, 0.3) 0%,
    rgba(0, 162, 255, 0) 70%
  );
  bottom: 20%;
  right: 20%;
}
.circle-5 {
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(128, 0, 128, 0.3) 0%,
    rgba(128, 0, 128, 0) 70%
  );
  top: 50%;
  left: 30%;
}
.circle-6 {
  width: 140px;
  height: 140px;
  background: radial-gradient(
    circle,
    rgba(255, 165, 0, 0.3) 0%,
    rgba(255, 165, 0, 0) 70%
  );
  top: 70%;
  right: 15%;
}
.circle-7 {
  width: 160px;
  height: 160px;
  background: radial-gradient(
    circle,
    rgba(0, 162, 255, 0.35) 0%,
    rgba(0, 162, 255, 0) 70%
  );
  bottom: 40%;
  left: 40%;
}
.circle-8 {
  width: 130px;
  height: 130px;
  background: radial-gradient(
    circle,
    rgba(128, 0, 128, 0.35) 0%,
    rgba(128, 0, 128, 0) 70%
  );
  bottom: 10%;
  right: 30%;
}

/* (Each one uses radial gradients and absolute positioning for unique placement) */

/* Foggy/asap background with subtle radial gradients */
.asap-bg {
  background: radial-gradient(
      circle at 20% 30%,
      rgba(128, 128, 128, 0.15),
      transparent 70%
    ),
    radial-gradient(
      circle at 80% 40%,
      rgba(128, 128, 128, 0.15),
      transparent 70%
    ),
    radial-gradient(
      circle at 50% 70%,
      rgba(128, 128, 128, 0.1),
      transparent 80%
    ),
    radial-gradient(
      circle at 30% 90%,
      rgba(128, 128, 128, 0.1),
      transparent 80%
    );
  filter: blur(20px);
}

/* Hero section setup for centered layout */
#home {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

/* Adjust hero layout for mobile screens */
@media (max-width: 768px) {
  #home {
    align-items: flex-start;
    text-align: left;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Animated bounce scroll-down icon at bottom center */
.scroll-down {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: white;
  animation: bounce 1.5s infinite;
  cursor: pointer;
}

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