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

html, body {
  font-family: 'Roboto Mono', monospace;
  background-color: #0d0d0d;
  color: white;
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
}

/* Particle Background */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom right, rgba(0,0,255,0.2), rgba(255,0,0,0.2));
  z-index: -2;
  animation: glow 8s infinite alternate;
}

@keyframes glow {
  from { opacity: 0.6; }
  to { opacity: 0.9; }
}

/* Header */
header {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(to right, #1a0033, #330066);
  box-shadow: 0 0 20px #6a0dad;
  animation: slideIn 1s ease-out;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid #ffcc00;
  margin-bottom: 1rem;
  transition: transform 0.5s;
}

.profile-img:hover {
  transform: scale(1.1) rotate(5deg);
}

.tagline {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffcc00;
  margin-bottom: 0.5rem;
  font-family: 'Orbitron', sans-serif;
}

.summary {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* Sections */
main {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  border-left: 6px solid #ff4500;
  padding-left: 0.5rem;
  color: #ffcc00;
  text-shadow: 0 0 10px #ff4500;
}

.project-card {
  background: linear-gradient(to right, #ff416c, #ff4b2b);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  color: white;
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.7);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

a {
  color: #00d9ff;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #ffcc00;
}

/* Skills */
.skill {
  margin-bottom: 1.5rem;
}

.bar {
  width: 100%;
  background: #222;
  height: 25px;
  border-radius: 12px;
  overflow: hidden;
}

.fill {
  height: 100%;
  border-radius: 12px;
  animation: fill 2s ease-in-out forwards;
}

.fill.python { width: 95%; background: linear-gradient(to right, #1e3c72, #2a5298); }
.fill.java { width: 80%; background: linear-gradient(to right, #ef3b36, #ffffff); }
.fill.web { width: 85%; background: linear-gradient(to right, #fc4a1a, #f7b733); }
.fill.csharp { width: 75%; background: linear-gradient(to right, #6a11cb, #2575fc); }
.fill.javascript { width: 75%; background: linear-gradient(to right, #f7df1e, #f0db4f); }
.fill.sql { width: 85%; background: linear-gradient(to right, #336791, #4d9de0); }
.fill.git { width: 90%; background: linear-gradient(to right, #f05032, #f7931e); }

@keyframes fill {
  from { width: 0; }
  to { width: 100%; }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  animation: reveal 1s forwards 0.2s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

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

.about-intro {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: center;
  color: #e0e0e0;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.detail-item h3 {
  color: #ffcc00;
  margin-bottom: 1rem;
  font-family: 'Orbitron', sans-serif;
}

.detail-item p {
  line-height: 1.6;
  color: #ccc;
}

/* Experience Section */
.experience-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.experience-item {
  background: linear-gradient(to right, #ff416c, #ff4b2b);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(255, 69, 0, 0.7);
  transition: transform 0.3s, box-shadow 0.3s;
}

.experience-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.9);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.experience-header h3 {
  color: white;
  margin: 0;
  font-size: 1.3rem;
}

.period {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.company {
  color: #ffcc00;
  font-weight: bold;
  margin-bottom: 1rem;
}

.responsibilities {
  list-style: none;
  padding: 0;
}

.responsibilities li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
}

.responsibilities li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ffcc00;
  font-weight: bold;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-category h3 {
  color: #ffcc00;
  margin-bottom: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  border-left: 4px solid #ff4500;
  padding-left: 1rem;
}

.skill {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-level {
  background: #ff4500;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.skill-tech {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Projects Section */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  background: #ff4500;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.project-content {
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.project-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.project-features h4,
.project-results h4 {
  color: #ffcc00;
  margin-bottom: 0.8rem;
}

.project-features ul {
  margin-bottom: 1.5rem;
}

.project-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
  color: #ccc;
}

.project-features li:before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #ff4500;
}

.project-results p {
  background: rgba(0, 255, 0, 0.1);
  padding: 0.8rem;
  border-radius: 8px;
  border-left: 4px solid #00ff00;
  color: #90ee90;
  font-weight: bold;
}

/* Education Section */
.education-container {
  max-width: 800px;
  margin: 0 auto;
}

.education-item {
  background: linear-gradient(to right, #4facfe, #00f2fe);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(79, 172, 254, 0.7);
  transition: transform 0.3s, box-shadow 0.3s;
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.9);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.education-header h3 {
  color: white;
  margin: 0;
  font-size: 1.2rem;
}

.institution {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.year {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.education-item p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Achievements Section */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.achievement-card {
  background: linear-gradient(to right, #667eea, #764ba2);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.7);
  transition: transform 0.3s, box-shadow 0.3s;
}

.achievement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.9);
}

.achievement-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffcc00;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 0.5rem;
}

.achievement-text {
  color: white;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Contact Section */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}

.contact-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.contact-item h3 {
  color: #ffcc00;
  margin-bottom: 1rem;
  font-family: 'Orbitron', sans-serif;
}

.contact-item p {
  margin-bottom: 1rem;
}

.contact-item a {
  color: #00d9ff;
  font-weight: bold;
  font-size: 1.1rem;
}

.contact-description {
  color: #aaa;
  font-size: 0.9rem;
  font-style: italic;
}

.discord-tag {
  background: #5865f2;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1rem;
}

.cta-section {
  background: linear-gradient(to right, #ff416c, #ff4b2b);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.7);
}

.cta-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #ff416c;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-tagline {
  margin-top: 0.5rem;
  opacity: 0.8;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  h2 { font-size: 1.5rem; }
  .project-card { font-size: 0.95rem; padding: 1rem; }
  .profile-img { width: 120px; height: 120px; }

  .about-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .education-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .achievement-number {
    font-size: 2rem;
  }

  .cta-section {
    padding: 2rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}