/* Space Theme Variables */
:root {
  --space-dark: #0a0e17;
  --space-darker: #050a13;
  --space-blue: #1a237e;
  --space-light-blue: #3949ab;
  --space-purple: #7b1fa2;
  --space-pink: #d81b60;
  --space-neon: #00e5ff;
  --space-star: #ffffff;
  --space-text: #e0e0e0;
  --space-text-secondary: #b0b0b0;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--space-dark);
  color: var(--space-text);
  overflow-x: hidden;
  position: relative;
}

/* Floating Particles Background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to bottom, var(--space-darker), var(--space-dark));
  overflow: hidden;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--space-neon);
  letter-spacing: 2px;
  background: linear-gradient(to right, var(--space-neon), var(--space-light-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--space-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--space-neon), var(--space-light-blue));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--space-neon);
}

.burger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--space-text);
  margin: 5px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.burger.active .line1 {
  transform: rotate(45deg) translate(5px, 6px);
  background-color: var(--space-neon);
}

.burger.active .line2 {
  opacity: 0;
  transform: translateX(-20px);
}

.burger.active .line3 {
  transform: rotate(-45deg) translate(5px, -6px);
  background-color: var(--space-neon);
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--space-neon);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  letter-spacing: 1px;
  font-weight: 300;
}

.neon-text {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 1.8rem;
  opacity: 0;
  text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 40px #00d4ff, 0 0 80px #00d4ff;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 40px #00d4ff, 0 0 80px #00d4ff;
  }
  100% {
      text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 40px #00d4ff, 0 0 80px #00d4ff;
  }
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--space-text-secondary);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-buttons {
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.9s forwards;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(45deg, var(--space-light-blue), var(--space-purple));
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, var(--space-purple), var(--space-light-blue));
}

.download-btn {
  margin-left: 2rem;
  margin-right: 2rem;
}

/* Hero Section Social Icons */
.hero-buttons.social-icons-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--space-text);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  order: 1;
}

.social-icons a:hover {
  background: var(--space-neon);
  color: var(--space-dark);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* Section Styles */
.section {
  padding: 3rem 2rem;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2.7rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title i {
  margin-right: 0.5rem;
  color: var(--space-neon);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--space-neon), transparent);
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.about-text {
  flex: 1.6;
  text-align: justify;
  font-size: 1.1rem; 
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--space-text-secondary);
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 5px solid rgba(57, 73, 171, 0.3);
  position: relative;
  transition: transform 0.5s ease;
  z-index: 1;
}

.about-image::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 400px;
  border-radius: 10px;
  background: linear-gradient(to right, var(--space-neon), var(--space-light-blue));
  transform: rotate(5deg);
  z-index: 0;
  opacity: 0.7;
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* Experience Section */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.experience-card {
  background: rgba(26, 35, 126, 0.2);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(57, 73, 171, 0.3);
  backdrop-filter: blur(10px);
}

.experience-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--space-neon);
}

.job-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--space-neon);
}

.company {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--space-text);
}

.duration {
  font-size: 0.9rem;
  color: var(--space-text-secondary);
  margin-bottom: 1rem;
}

.job-description p {
  line-height: 1.6;
  color: var(--space-text-secondary);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(26, 35, 126, 0.2);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(57, 73, 171, 0.3);
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--space-neon);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-details {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--space-neon);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: rgba(0, 229, 255, 0.1);
  color: var(--space-neon);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  border: 1px solid var(--space-neon);
}

.project-description {
  margin-bottom: 1.5rem;
  color: var(--space-text-secondary);
  line-height: 1.6;
}

.project-link {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--space-neon);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  background: none;
  border: none;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--space-neon), var(--space-light-blue));
  transition: width 0.3s ease;
}

.project-link:hover {
  color: var(--space-neon);
  background: transparent;
}

.project-link:hover::after {
  width: 100%;
}

/* Skills Section */
#skills {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 auto;
  position: relative;
}

.skills-track {
  overflow: visible;
  width: 100%;
  padding: 20px 0;
}

.skills-scroller {
  display: flex;
  will-change: transform;
  position: relative;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  background: rgba(26, 35, 126, 0.2);
  border-radius: 15px;
  padding: 1rem;
  margin: 0 1rem;
  border: 1px solid rgba(57, 73, 171, 0.3);
  transition: all 0.5s ease;
  flex-shrink: 0;
  transform: translateZ(0);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.skill:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--space-neon);
  z-index: 2;
}

.skill::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.skill:hover::before {
  opacity: 1;
}

.skill img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  transition: transform 0.5s ease;
}

.skill:hover img {
  transform: scale(1.1);
}

.skill span {
  font-size: 0.9rem;
  color: var(--space-text);
  text-align: center;
  transition: transform 0.5s ease;
}

.skill:hover span {
  transform: translateY(5px);
}

/* Certifications Section */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.certification-card {
  background: rgba(26, 35, 126, 0.2);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(57, 73, 171, 0.3);
  backdrop-filter: blur(10px);
}

.certification-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--space-neon);
}

.certification-image {
  height: 200px;
  overflow: hidden;
}

.certification-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certification-details {
  padding: 1.5rem;
}

.certification-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--space-neon);
}

.certification-issuer {
  font-size: 0.9rem;
  color: var(--space-text);
  margin-bottom: 0.5rem;
}

.certification-date {
  font-size: 0.8rem;
  color: var(--space-text-secondary);
  margin-bottom: 1rem;
}

.certification-link {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--space-neon);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  background: none;
  border: none !important;
}

.certification-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--space-neon), var(--space-light-blue));
  transition: width 0.3s ease;
}

.certification-link:hover {
  color: var(--space-neon);
  background: transparent;
}

.certification-link:hover::after {
  width: 100%;
}

/* Contact Section */
.contact-intro {
  text-align: center;
  max-width: 700px;
  margin: auto;
  color: var(--space-text-secondary);
  line-height: 1.6;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.contact-card {
  background: rgba(26, 35, 126, 0.2);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(57, 73, 171, 0.3);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: var(--space-text);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--space-text-secondary);
}

.email:hover {
  border-color: #d81b60;
  box-shadow: 0 15px 30px rgba(216, 27, 96, 0.3);
}

.linkedin:hover {
  border-color: #0077b5;
  box-shadow: 0 15px 30px rgba(0, 119, 181, 0.3);
}

.github:hover {
  border-color: #6e5494;
  box-shadow: 0 15px 30px rgba(110, 84, 148, 0.3);
}

.instagram:hover {
  border-color: #e1306c;
  box-shadow: 0 15px 30px rgba(225, 48, 108, 0.3);
}

.resume-download {
  text-align: center;
  margin-top: 2.5rem;
}

/* Footer */
.footer {
  background: rgba(5, 10, 19, 0.8);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(57, 73, 171, 0.3);
}

.footer p {
  margin-bottom: 1rem;
  color: var(--space-text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  display: inline-block;
  color: var(--space-text);
  text-decoration: none;
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.3s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--space-neon), var(--space-light-blue));
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--space-neon);
}

.footer-links a:hover::after {
  width: 100%;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 9));
  }
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-100px) translateX(20px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

@keyframes twinkle {
  0% { opacity: 0.1; }
  50% { opacity: 1; }
  100% { opacity: 0.1; }
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(57, 73, 171, 0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  /* Staggered animation for menu items */
  .nav-links.active li:nth-child(1) {
    transition-delay: 0.15s;
  }
  .nav-links.active li:nth-child(2) {
    transition-delay: 0.25s;
  }
  .nav-links.active li:nth-child(3) {
    transition-delay: 0.35s;
  }
  .nav-links.active li:nth-child(4) {
    transition-delay: 0.45s;
  }
  .nav-links.active li:nth-child(5) {
    transition-delay: 0.55s;
  }
  .nav-links.active li:nth-child(6) {
    transition-delay: 0.65s;
  }

  .burger {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .about-content {
    flex-direction: column;
  }

  .profile-img {
    max-width: 250px;
  }

  .section {
    padding: 4rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .skills-scroller {
    animation: scroll 40s linear infinite;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 3.2rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .neon-text {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.8rem 1.3rem;
    font-size: 1rem;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .project-card, .certification-card, .experience-card {
    max-width: 100%;
  }

  .skill {
    min-width: 120px;
    height: 120px;
  }

  .skill img {
    width: 50px;
    height: 50px;
  }
}
