@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;700&display=swap");

:root {
  --primary-color: #8a2be2;
  --secondary-color: #4b0082;
  --text-color: #e6e6fa;
  --background-color: #1a0033;
  --card-bg-color: rgba(74, 0, 130, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

.background-shapes {
  position: fixed;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

.shape {
  position: absolute;
  opacity: 0.1;
}

.shape-1 {
  top: -20%;
  left: -10%;
  width: 50%;
  height: auto;
  animation: float 20s ease-in-out infinite;
}

.shape-2 {
  bottom: -30%;
  right: -15%;
  width: 70%;
  height: auto;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(5%, 5%) rotate(5deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 20px;
}

.floating-nav {
  background-color: rgba(26, 0, 51, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 30px rgba(138, 43, 226, 0.2);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: var(--primary-color);
}

main {
  padding-top: 80px;
}

section {
  padding: 5rem 10%;
}

h1,
h2 {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 1rem;
}

#home {
  text-align: center;
  padding: 8rem 10%;
  background: linear-gradient(135deg, var(--secondary-color), var(--background-color));
}

#home h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

#home p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.cta-button:hover {
  background-color: transparent;
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.skills span {
  background-color: var(--card-bg-color);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid var(--primary-color);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(138, 43, 226, 0.2);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(138, 43, 226, 0.3);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3,
.project-card p {
  padding: 1rem;
}

#contact form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--card-bg-color);
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  font-family: inherit;
  color: var(--text-color);
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: rgba(230, 230, 250, 0.7);
}

#contact button {
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  padding: 0.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#contact button:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

footer {
  background-color: var(--secondary-color);
  color: var(--text-color);
  text-align: center;
  padding: 1rem;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }

  nav ul {
    margin-top: 1rem;
  }

  nav ul li {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  #home {
    padding: 6rem 5%;
  }

  #home h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 3rem 5%;
  }
}

