* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 50%, #16213e 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* Animated starfield background */
body::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #eee, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 60px 70px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 50px 50px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 90px 10px, #fff, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

header {
  background: linear-gradient(135deg, #0f3460 0%, #533483 50%, #16213e 100%);
  color: #00d4ff;
  padding: 100px 20px;
  text-align: center;
  box-shadow:
    0 0 40px rgba(0, 212, 255, 0.2),
    inset 0 0 40px rgba(83, 52, 131, 0.1);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #00d4ff;
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

header h1 {
  font-size: 3.5em;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  }
  50% {
    text-shadow:
      0 0 30px rgba(0, 212, 255, 0.9),
      0 0 40px rgba(83, 52, 131, 0.5);
  }
}

header p {
  font-size: 1.4em;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 1px;
}

nav {
  background: rgba(15, 52, 96, 0.85);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

nav a {
  color: #00d4ff;
  text-decoration: none;
  margin: 0 35px;
  transition: all 0.3s;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-block;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00d4ff;
  transition: width 0.3s;
}

nav a:hover {
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
  transform: translateY(-3px);
}

nav a:hover::after {
  width: 100%;
}

section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px;
  background: linear-gradient(
    135deg,
    rgba(15, 52, 96, 0.4) 0%,
    rgba(83, 52, 131, 0.3) 100%
  );
  border-radius: 15px;
  box-shadow:
    0 0 30px rgba(0, 212, 255, 0.15),
    inset 0 0 30px rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  backdrop-filter: blur(5px);
}

h2 {
  color: #00d4ff;
  margin-bottom: 30px;
  font-size: 2.3em;
  border-bottom: 3px solid #00d4ff;
  padding-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.project-card {
  background: linear-gradient(
    135deg,
    rgba(15, 52, 96, 0.6) 0%,
    rgba(83, 52, 131, 0.5) 100%
  );
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 212, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  border-color: rgba(0, 212, 255, 0.6);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card h3 {
  color: #00d4ff;
  margin-bottom: 12px;
  font-size: 1.5em;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.project-card p {
  margin-bottom: 15px;
  color: #b0b0b0;
  line-height: 1.7;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
  color: #00d4ff;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.95em;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.3);
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.skill-tag:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
  border-color: rgba(0, 212, 255, 0.6);
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

#contact-form div {
  display: flex;
  flex-direction: column;
}

#contact-form label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #00d4ff;
  letter-spacing: 0.5px;
}

#contact-form input,
#contact-form textarea {
  padding: 12px 15px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
  transition: all 0.3s;
  background: rgba(15, 52, 96, 0.3);
  color: #e0e0e0;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: rgba(224, 224, 224, 0.5);
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  background: rgba(15, 52, 96, 0.5);
}

#contact-form button {
  background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
  color: #00d4ff;
  border: 2px solid #00d4ff;
  padding: 14px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  letter-spacing: 0.5px;
}

#contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
  background: linear-gradient(135deg, #533483 0%, #0f3460 100%);
}

#demos-btn {
  background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
  color: #00d4ff;
  border: 2px solid #00d4ff;
  padding: 11px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
  align-self: flex-start;
  letter-spacing: 0.5px;
}

#demos-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  background: linear-gradient(135deg, #533483 0%, #0f3460 100%);
}

footer {
  background: linear-gradient(135deg, #0a0e27 0%, #0f3460 100%);
  color: #00d4ff;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  font-size: 0.95em;
  border-top: 2px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
  letter-spacing: 0.5px;
}

.contact-links a {
  color: #00d4ff;
  text-decoration: none;
  margin: 0 15px;
  transition: all 0.3s;
  font-weight: 600;
  position: relative;
}

.contact-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00d4ff;
  transition: width 0.3s;
}

.contact-links a:hover {
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.contact-links a:hover::after {
  width: 100%;
}
