* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #00f5ff;
  --secondary-color: #ff006e;
  --accent-color: #8338ec;
  --bg-dark: #0a0a0a;
  --bg-card: #1a1a1a;
  --text-light: #ffffff;
  --text-gray: #b0b0b0;
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 20% 50%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 110, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(131, 56, 236, 0.1) 0%, transparent 50%);
  animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

/* Navigation */
.navbar {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after { width: 80%; }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content { z-index: 2; }

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideInUp 1s ease 0.5s forwards;
}

.hero .subtitle {
  font-size: 1.5rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideInUp 1s ease 0.7s forwards;
}

.gradient-text {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: var(--bg-dark);
  font-weight: 600;
  padding: 15px 40px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: slideInUp 1s ease 0.9s forwards;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s ease;
}

.cta-btn:hover::before { left: 100%; }

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 245, 255, 0.4);
}

/* Floating Elements */
.floating-element {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; right: 10%; animation-delay: 2s; }
.floating-element:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  height: 100%;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 245, 255, 0.1), rgba(255, 0, 110, 0.1));
  opacity: 0;
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 245, 255, 0.2);
}

.card:hover::before { opacity: 1; }

.card-body {
  position: relative;
  z-index: 2;
  color: var(--text-light);
}

.card-icon {
  font-size: 3rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* Skills */
.skill-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.skill-progress {
  height: 15px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  transition: width 2s ease;
  position: relative;
}

.skill-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Contact Form */
.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--text-light);
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
  color: var(--text-light);
}

.form-control::placeholder { color: var(--text-gray); }

/* Animations */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Particle effect */
.particle {
  position: absolute;
  background: var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat 4s linear infinite;
}

@keyframes particleFloat {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-100vh) scale(0); }
}

/* Meteors */
.meteors-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.meteor {
  position: absolute;
  width: 2px;
  height: 70px;
  background: linear-gradient(to bottom, rgba(0, 245, 255, 0), rgba(255, 0, 110, 0.9));
  border-radius: 50px;
  opacity: 0;
  transform: rotate(var(--angle));
  animation: magicMeteor var(--duration) linear forwards;
}

@keyframes magicMeteor {
  0% { transform: translateY(-120px) translateX(0) rotate(var(--angle)); opacity: 0; }
  15% { opacity: 0.8; }
  100% { transform: translateY(120vh) translateX(200px) rotate(var(--angle)); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
}

/* Footer */
.site-footer {
  padding: 40px 0;
  background: rgba(20, 20, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 80px;
}

.site-footer .social-links a {
  color: var(--primary-color);
  margin: 0 12px;
  font-size: 1.5rem;
  transition: 0.3s ease;
}

.site-footer .social-links a:hover {
  color: var(--secondary-color);
  transform: scale(1.15);
}

.site-footer .copy {
  margin-top: 15px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===================== */
/* PROJECTS SECTION CSS  */
/* ===================== */

.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(131, 56, 236, 0.05));
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 0;
}

.project-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary-color);
  box-shadow: 0 25px 50px rgba(0, 245, 255, 0.2), 0 0 0 1px rgba(0, 245, 255, 0.1);
}

.project-card:hover::before { opacity: 1; }

.project-thumbnail {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumbnail .thumb-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.5s ease;
}

.project-card:hover .thumb-bg { transform: scale(1.05); }

/* Project screenshot image */
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img { transform: scale(1.05); }

.project-thumbnail .thumb-icon {
  position: relative;
  z-index: 1;
  font-size: 3.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.4));
  transition: transform 0.4s ease;
}

.project-card:hover .thumb-icon { transform: scale(1.15) rotate(-5deg); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.project-card:hover .project-overlay { opacity: 1; }

.overlay-btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.overlay-btn.live {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-dark);
  border: none;
}

.overlay-btn.github {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.overlay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 245, 255, 0.3);
}

.project-content {
  padding: 22px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

/* Tech Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid;
}

.tag-cyan {
  color: var(--primary-color);
  border-color: rgba(0, 245, 255, 0.4);
  background: rgba(0, 245, 255, 0.08);
}

.tag-pink {
  color: var(--secondary-color);
  border-color: rgba(255, 0, 110, 0.4);
  background: rgba(255, 0, 110, 0.08);
}

.tag-purple {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(192, 132, 252, 0.08);
}

.tag-green {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.08);
}

/* Filter Buttons */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  background: transparent;
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-dark);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 245, 255, 0.3);
}

/* Number badge */
.project-number {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 0.75rem;
  color: rgba(0, 245, 255, 0.5);
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 3;
}

/* Project card fade animation */
.project-card.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.project-col {
  transition: all 0.4s ease;
}