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

:root {
  --primary: #00d4ff;
  --secondary: #ff006e;
  --dark: #0a0e27;
  --light: #ffffff;
  --gray: #8892b0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, #0a0e27, #1a1f3a);
}

.bg-animation canvas {
  position: absolute;
  top: 0;
  left: 0;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 212, 255, 0.1);
}

nav .container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  margin-top: 80px;
}

.hero-content {
  max-width: 1400px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--gray);
  margin-bottom: 2rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--light);
  box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.btn-download {
  border-color: #10b981;
  color: #10b981;
}

.btn-download:hover {
  background: #10b981;
  color: var(--light);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* Sections */
section {
  padding: 6rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About Section */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  color: var(--gray);
  font-size: 1.1rem;
  text-align: justify;
}

/* Skills Section with Marquee */
#skills {
  padding: 6rem 0;
  overflow: hidden;
}

.skills-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.skills-marquee-container::before,
.skills-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.skills-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #0a0e27, transparent);
}

.skills-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #0a0e27, transparent);
}

.skills-marquee {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: fit-content;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 150px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s;
}

.skill-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.skill-item i {
  font-size: 3.5rem;
  color: var(--primary);
}

.skill-item span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light);
  white-space: nowrap;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--light);
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  margin-bottom: 1rem;
  color: var(--light);
}

.project-content p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.explore-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}
.explorebtn {
  padding: 10px;
  border: 1px solid var(--primary);
  background: transparent;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  font-size: 1rem;
}
.explorebtn:hover {
  border: none;
  background-color: var(--primary);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}
.project-links a {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.project-links a:hover {
  background: var(--primary);
  color: var(--dark);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  font-size: 2rem;
  color: var(--primary);
}

.contact-item a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-5px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--gray);
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  color: var(--light);
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(10, 14, 39, 0.95);
  color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    flex-direction: column;
    background: rgba(10, 14, 39, 0.98);
    width: 100%;
    padding: 2rem;
    transition: right 0.3s;
  }

  .nav-links.active {
    right: 0;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-marquee {
    gap: 2rem;
  }

  .skill-item {
    min-width: 120px;
    padding: 1.5rem;
  }

  .skill-item i {
    font-size: 2.5rem;
  }

  .skill-item span {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 4rem 5%;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}
