* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  overflow-x: hidden;
}

/* Loading Screen */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-size: 3rem;
  font-weight: bold;
  background: linear-gradient(45deg, #00f2ff, #a000ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 242, 255, 0.2);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(45deg, #00f2ff, #a000ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00f2ff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f2ff, #a000ff);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  z-index: 1;
  text-align: center;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #00f2ff, #a000ff, #ff006e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeInUp 1s forwards 0.5s;
}

.hero-content h2 {
  font-size: 2rem;
  color: #00f2ff;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s forwards 0.8s;
}

.hero-content p {
  font-size: 1.2rem;
  color: #b0b0b0;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s forwards 1.1s;
}

.cta-btn {
  padding: 1rem 2.5rem;
  background: linear-gradient(45deg, #00f2ff, #a000ff);
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeInUp 1s forwards 1.4s;
  text-decoration: none;
  display: inline-block;
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 242, 255, 0.5);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Section Base */
section {
  padding: 5rem 5%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(45deg, #00f2ff, #a000ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* About Section */
#about {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 100%);
}

.about-content {
  display: flex;
  gap:3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow:hidden;
  background: linear-gradient(45deg, #00f2ff, #a000ff);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 8rem;
  transition: transform 0.5s;
  cursor: pointer;
}

.avatar:hover {
  transform: rotateY(180deg);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #00f2ff;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #b0b0b0;
}

/* Skills Section */
#skills {
  background: #0a0a0a;
  overflow: auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-card {
  background: rgba(26, 10, 46, 0.5);
  border: 1px solid rgba(0, 242, 255, 0.3);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.skill-card:hover {
  transform: translateY(-10px) rotateX(10deg);
  box-shadow: 0 20px 40px rgba(0, 242, 255, 0.3);
  border-color: #00f2ff;
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.skill-name {
  font-size: 1.2rem;
  color: #00f2ff;
}

/* Projects Section */
#projects {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 100%);
  overflow: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: rgba(26, 10, 46, 0.5);
  border: 1px solid rgba(160, 0, 255, 0.3);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(160, 0, 255, 0.4);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #00f2ff, #a000ff);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #00f2ff;
}

.project-info p {
  color: #b0b0b0;
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  padding: 0.5rem 1.5rem;
  background: rgba(0, 242, 255, 0.2);
  border: 1px solid #00f2ff;
  color: #00f2ff;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
}

.project-links a:hover {
  background: #00f2ff;
  color: #0a0a0a;
}

/* Experience Section */
#experience {
  background: #0a0a0a;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #00f2ff, #a000ff);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  padding-right: 50%;
  text-align: right;
}

.timeline-item:nth-child(even) {
  padding-left: 50%;
  text-align: left;
}

.timeline-content {
  background: rgba(26, 10, 46, 0.5);
  border: 1px solid rgba(0, 242, 255, 0.3);
  padding: 1.5rem;
  border-radius: 10px;
  transition: all 0.3s;
  cursor: pointer;
}

.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 242, 255, 0.3);
}

.timeline-content h3 {
  color: #00f2ff;
  margin-bottom: 0.5rem;
}

.timeline-content .date {
  color: #a000ff;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #b0b0b0;
}


/* CONTACT SECTION */
.contact-modern {
  background: #0d0d0d;
  color: #f5f5f5;
  padding: 80px 20px;
}



.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto; 
  flex-direction: row;
}

form {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
}

form label {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #cfcfcf;
}

form input,
form textarea {
  background: #141414;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 1rem;
  color: #f5f5f5;
  transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
  border-color: #00e0ff;
  outline: none;
}

.send-btn {
  background: #2e2e2e;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.send-btn:hover {
  background: #00e0ff;
  color: #000;
}

form small {
  font-size: 0.85rem;
  color: #9a9a9a;
  margin-top: 5px;
}

.contact-info {
  flex: 1 1 35%;
  background: #141414;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 0 10px rgba(0, 224, 255, 0.1);
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-info p {
  color: #cfcfcf;
  margin-bottom: 20px;
}

.social-links a {
  color: #00e0ff;
  margin-right: 20px;
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info {
    margin-top: 30px;
  }
}

/* Footer */
footer {
  background: #0a0a0a;
  padding: 2rem;
  text-align: center;
  border-top: 2px solid rgba(0, 242, 255, 0.3);
}

footer p {
  color: #b0b0b0;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #00f2ff;
  transition: all 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    padding: 2rem;
    transition: right 0.3s;
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    right: 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .about-content {
    flex-direction: column;
  }

  .avatar {
    width: 200px;
    height: 200px;
    font-size: 5rem;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 2rem;
    padding-right: 0;
    text-align: left;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
    overflow:auto;
  opacity: 1;
  transform: translateY(0);
}
