/*! Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(0, 234, 255, 0.15),
      transparent 50%
    ),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 212, 0.15), transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(138, 43, 226, 0.1), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 14, 39, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00eaff, #ff00d4);
  border-radius: 10px;
  border: 2px solid rgba(10, 14, 39, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00d4ff, #ff00e6);
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(0, 234, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 234, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/*^ Navbar */
.navbar {
  background: rgba(5, 8, 20, 0.85);
  backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid rgba(0, 234, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.navbar-brand {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #00eaff, #0099ff, #ff00d4, #00eaff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 4s ease infinite;
  text-shadow: 0 0 30px rgba(0, 234, 255, 0.5);
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/*& Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0e27 0%, #1a0b2e 50%, #0f0c29 100%);
  padding-top: 140px;
  overflow: hidden;
  z-index: 2;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 40%,
      rgba(0, 234, 255, 0.1),
      transparent 40%
    ),
    radial-gradient(circle at 70% 60%, rgba(255, 0, 212, 0.08), transparent 40%);
  animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 234, 255, 0.6);
  animation: float 15s infinite;
  pointer-events: none;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  top: 40%;
  left: 80%;
  animation-delay: 2s;
  background: rgba(255, 0, 212, 0.6);
}
.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  top: 60%;
  left: 30%;
  animation-delay: 4s;
}
.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  top: 80%;
  left: 70%;
  animation-delay: 1s;
  background: rgba(138, 43, 226, 0.6);
}
.particle:nth-child(5) {
  width: 4px;
  height: 4px;
  top: 30%;
  left: 50%;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-30px) translateX(20px);
  }
  50% {
    transform: translateY(-60px) translateX(-20px);
  }
  75% {
    transform: translateY(-30px) translateX(30px);
  }
}

.animate-title {
  opacity: 0;
  transform: translateY(-30px);
  animation: slideIn 1.3s ease forwards;
}

.animate-fade {
  opacity: 0;
  animation: fadeIn 2s 0.5s ease forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.hero-section h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00eaff, #00ff88, #ff00d4);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
  text-shadow: 0 0 40px rgba(0, 234, 255, 0.4);
  position: relative;
  z-index: 3;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-section .lead {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 3;
}

/** Search **/
.search-input {
  position: relative;
  z-index: 3;
}

.search-input input {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(0, 234, 255, 0.3);
  border-radius: 50px;
  padding: 18px 170px 18px 30px;
  color: #fff;
  font-size: 1.05rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-input input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

.search-input input:focus {
  color: white;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid #00eaff;
  box-shadow: 0 0 40px rgba(0, 234, 255, 0.6), 0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-glow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50px;
  background: linear-gradient(135deg, #00eaff, #0099ff, #ff00d4);
  background-size: 200% 200%;
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 35px;
  box-shadow: 0 0 30px rgba(0, 234, 255, 0.5);
  transition: all 0.4s ease;
  animation: btnGradient 3s ease infinite;
  cursor: pointer;
}

@keyframes btnGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.btn-glow:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 0 50px rgba(255, 0, 212, 0.8), 0 0 80px rgba(0, 234, 255, 0.4);
}

.btn-glow:active {
  transform: translateY(-50%) scale(0.98);
}

/*! Cards */
.cards-section {
  position: relative;
  background: linear-gradient(180deg, #0f0c29 0%, #0a0e27 100%);
  padding: 80px 0;
  z-index: 2;
}

.weather-card {
  position: relative;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 234, 255, 0.2);
  backdrop-filter: blur(30px) saturate(180%);
  overflow: hidden;
  padding: 35px 25px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  animation: fadeUp 1s ease forwards;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.weather-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 234, 255, 0.2),
    rgba(255, 0, 212, 0.15)
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 30px;
}

.weather-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  border-color: rgba(0, 234, 255, 0.6);
  box-shadow: 0 20px 60px rgba(0, 234, 255, 0.3),
    0 0 80px rgba(255, 0, 212, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.weather-card:hover::before {
  opacity: 1;
}

.weather-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #00eaff, #ff00d4, #00eaff);
  background-size: 400% 400%;
  border-radius: 30px;
  opacity: 0;
  z-index: -1;
  animation: borderGlow 3s ease infinite;
  transition: opacity 0.5s ease;
}

@keyframes borderGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.weather-card:hover::after {
  opacity: 0.6;
}

.weather-header {
  position: relative;
  z-index: 2;
  margin-bottom: 25px;
}

.weather-header h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00eaff, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.date {
  display: inline-block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.weather-body {
  position: relative;
  z-index: 2;
  margin-bottom: 25px;
}

.weather-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 20px rgba(0, 234, 255, 0.6));
  transition: all 0.4s ease;
}

.weather-card:hover .weather-icon {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 30px rgba(255, 0, 212, 0.8));
}

.degree {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #00eaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(0, 234, 255, 0.3);
}

.condition {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.weather-footer {
  position: relative;
  z-index: 2;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-footer p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.location {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(0, 234, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 20px;
  color: #00eaff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.location:hover {
  background: rgba(0, 234, 255, 0.2);
  border-color: rgba(0, 234, 255, 0.5);
  transform: scale(1.05);
}

.location i {
  margin-right: 6px;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/*! Media Query */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .search-input input {
    padding: 16px 140px 16px 25px;
    font-size: 0.95rem;
  }

  .btn-glow {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .degree {
    font-size: 2.5rem;
  }

  .weather-icon {
    width: 90px;
    height: 90px;
  }
}






.footer-section {
  position: relative;
  background: linear-gradient(180deg, #0a0e27 0%, #050611 100%);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(0, 234, 255, 0.2);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 234, 255, 0.15), transparent 70%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer-top {
  margin-bottom: 40px;
}

.footer-brand {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00eaff, #0099ff, #ff00d4);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 4s ease infinite;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  letter-spacing: 0.5px;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  justify-content: end;
}

@media (max-width: 768px) {
  .social-links {
    justify-content: center;
  }
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 234, 255, 0.3);
  color: #00eaff;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(0, 234, 255, 0.15);
  border-color: #00eaff;
  color: #fff;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 234, 255, 0.4);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 234, 255, 0.4) 20%, 
    rgba(255, 0, 212, 0.4) 50%, 
    rgba(0, 234, 255, 0.4) 80%, 
    transparent
  );
  margin-bottom: 30px;
  animation: dividerGlow 3s ease infinite;
}

@keyframes dividerGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.footer-bottom {
  padding-top: 20px;
}

.footer-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

.footer-credit {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.engineer-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #00eaff, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.engineer-name::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00eaff, #00ff88);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.engineer-name:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


@media (max-width: 768px) {
  .footer-section {
    padding: 40px 0 20px;
  }
  
  .footer-brand {
    font-size: 1.5rem;
  }
  
  .footer-text,
  .footer-credit {
    font-size: 0.85rem;
  }
}








/*^ Loading Screen */
.loader {
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #514b82;
  -webkit-mask: radial-gradient(circle closest-side at 50% 40%,#0000 94%, #000);
  transform-origin: 50% 40%;
  animation: l25 1s infinite linear;
}
@keyframes l25 {
  100% {transform: rotate(1turn)}
}