@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1e1e1e;
  color: #e0e0e0;
  font-family: "Orbitron", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  width: 100%;
}

header {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  position: relative;
  overflow: hidden;
  color: #f0f0f0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(46, 145, 0, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

header .header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-direction: column;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #007e06;
  animation: typing 2s steps(5) 1s 1 normal both,
    erase 2s steps(5) 3s 1 normal forwards, blink 0.75s step-end infinite;
  font-size: 2rem;
  visibility: visible;
}

.typewriter-name {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #007e06;
  animation: typing 4s steps(30) 6s 1 normal both, blink 0.75s step-end infinite;
  font-size: 1.5rem;
  visibility: visible;
}
.typewriter-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #007e06;
  animation: typing 4s steps(30) 6s 1 normal both, blink 0.75s step-end infinite;
  font-size: 1.5rem;
  visibility: visible;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes erase {
  from {
    width: 100%;
  }
  to {
    width: 0;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header h1 span {
  color: #f0f0f0;
}

header p {
  font-size: 1.2rem;
  color: #b8b8b8;
}

header .cta-buttons {
  margin-top: 1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: relative;
  bottom: 0;
  margin-top: 2rem;
}

.cta-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: #666666;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #f0f0f0;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cta-button:hover {
  background-color: #444444;
}
.cta-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.3s ease;
  opacity: 0;
}
.cta-button:hover::after {
  opacity: 1;
  transform: rotate(45deg) translate(-50%, -50%);
}
.cta-button i {
  font-size: 1.5rem;
}

header .profile-img {
  width: 12vw;
  height: 12vw;
  border-radius: 50%;
  object-fit: cover;
}

section {
  padding: 2rem 1.5rem;
  max-width: 1000px;
  margin: auto;
  text-align: center;
  animation: fadeInUp 0.6s ease forwards;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

h2,
h3 {
  color: #f0f0f0;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #30363d;
  display: inline-block;
  padding-bottom: 0.5rem;
}

p {
  font-size: 1.2rem;
  color: #f0f0f0;
  line-height: 1.6;
  text-align: justify;
  max-width: 90%;
  margin: 0 auto;
}

ul {
  list-style: none;
  text-align: center;
}

li {
  font-size: 1rem;
  color: #b8b8b8;
  margin-bottom: 0.5rem;
}

.skills ul {
  list-style: none;
}

.skills li {
  margin-bottom: 0.5rem;
}

.project-card {
  background-color: #2b2b2b;
  border: 1px solid #444444;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
  color: #a8a8a8;
}

.project-card a {
  text-decoration: double;
  color: #ffffff;
}

.project-card a:hover {
  text-decoration: underline;
  color: #f0f0f0;
}

.project-card h4 {
  margin-top: 1rem;
  color: #58a6ff;
}

pre {
  background-color: #1e1e1e;
  color: #e0e0e0;
  padding: 1rem;
  border-radius: 8px;
  font-family: "Courier New", Courier, monospace;
  overflow-x: auto;
  white-space: pre-wrap;
  text-align: left;
}

code {
  display: block;
  color: #e0e0e0;
}

.keyword {
  color: #58a6ff;
}

.string {
  color: #79c0ff;
}

.variable {
  color: #a8a8a8;
}

.comment {
  color: #6a6a6a;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #b8b8b8;
  background-color: #1e1e1e;
  border-top: 1px solid #444444;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.code-demo {
  margin-top: 3rem;
  text-align: center;
}

.code-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.code-container::before {
  content: "● ● ●";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #666;
  font-size: 1.2rem;
  letter-spacing: 0.5rem;
}

.code-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.featured-projects {
  padding: 4rem 1.5rem;
  background: linear-gradient(90deg, #2a2a2a, #333333);
}

.project-card.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  background: rgba(43, 43, 43, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #2e9100;
  transition: transform 0.3s ease;
}

.project-card.featured:hover {
  transform: translateY(-5px);
}

.project-preview {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.project-img:hover {
  transform: scale(1.05);
}

.project-features {
  text-align: left;
  margin: 1rem 0;
}

.project-features li {
  color: #b8b8b8;
  margin-bottom: 0.5rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.demo-button,
.github-button {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
}

.demo-button {
  background: #2e9100;
  color: white;
}

.github-button {
  background: #333;
  color: white;
  border: 1px solid #2e9100;
}

.demo-button:hover,
.github-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category {
  background: rgba(43, 43, 43, 0.9);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #2e9100;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(46, 145, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(46, 145, 0, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-category:hover::before {
  opacity: 1;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category h3 {
  font-size: 1.5rem;
  color: #2e9100;
  border-bottom: none;
  text-shadow: 0 0 10px rgba(46, 145, 0, 0.3);
  font-family: "Orbitron", sans-serif;
}

.skill-category li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e0e0e0;
  font-family: "Orbitron", sans-serif;
}

.skill-category i {
  color: #2e9100;
  font-size: 1.2rem;
  text-shadow: 0 0 5px rgba(46, 145, 0, 0.5);
}

.stats {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 4rem 1.5rem;
  margin: 2rem auto;
  border-radius: 10px;
  width: 100%;
  max-width: 1200px;
  padding: 3rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-card i {
  font-size: 2.5rem;
  color: #2e9100;
  margin-bottom: 1rem;
}

.stat-card h3 {
  font-size: 2.5rem;
  color: #fff;
  margin: 1rem 0;
  font-weight: bold;
  font-family: "Orbitron", sans-serif;
}

.stat-card p {
  color: #b8b8b8;
  font-size: 1.1rem;
  text-align: center;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.6s ease forwards;
}

header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(46, 145, 0, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-button {
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.3s ease;
  opacity: 0;
}

.cta-button:hover::after {
  opacity: 1;
  transform: rotate(45deg) translate(-50%, -50%);
}

.skill-category {
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(46, 145, 0, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-category:hover::before {
  opacity: 1;
}

.code-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.code-container::before {
  content: "● ● ●";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #666;
  font-size: 1.2rem;
  letter-spacing: 0.5rem;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.highlight-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 2rem;
  text-align: center;
}

.achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.achievement-item {
  background: rgba(46, 145, 0, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(46, 145, 0, 0.1);
}

.achievement-item:hover {
  transform: translateY(-5px);
}

.achievement-item i {
  font-size: 2rem;
  color: #2e9100;
  margin-bottom: 1rem;
}

.achievement-item p {
  color: #b8b8b8;
  font-size: 1.1rem;
  text-align: center;
}

.project-video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-video:hover {
  transform: scale(1.02);
}

.project-preview {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-preview::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(46, 145, 0, 0.1) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.enhanced-footer {
  margin-top: 2rem;
  padding: 3rem 1rem;
  width: 100%;
  background-color: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.footer-section {
  color: #f0f0f0;
  text-align: left;
}

.footer-section h3 {
  color: #2e9100;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: none;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin: 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s;
}

.footer-section li:hover {
  transform: translateX(5px);
}

.footer-section i {
  color: #2e9100;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: #f0f0f0;
}

.footer-bottom p {
  text-align: center;
  max-width: 100%;
}

.tech-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s;
  font-family: "Orbitron", sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.2);
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.experience {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 100%;
  background: #2e9100;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  width: 100%;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: #2e9100;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: #fff;
  box-shadow: 0 0 10px #2e9100;
}

.timeline-content {
  width: 45%;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  position: relative;
  margin-left: 55%;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(46, 145, 0, 0.2);
  transition: transform 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: 55%;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: #2e9100;
}

.timeline-content h3 {
  color: #2e9100;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

.timeline-content h4 {
  color: #f0f0f0;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-date {
  color: #b8b8b8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-details {
  list-style: none;
  padding: 0;
}

.timeline-details li {
  color: #e0e0e0;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.timeline-details li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #2e9100;
}

.certifications {
  padding: 4rem 1.5rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.cert-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(46, 145, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(46, 145, 0, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: #2e9100;
}

.cert-card:hover::before {
  opacity: 1;
}

.cert-icon {
  font-size: 2.5rem;
  color: #2e9100;
  margin-bottom: 1rem;
}

.cert-card h3 {
  color: #f0f0f0;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
}

.cert-card p {
  color: #b8b8b8;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.cert-date {
  display: inline-block;
  background: rgba(46, 145, 0, 0.2);
  padding: 0.3rem 1rem;
  border-radius: 15px;
  color: #2e9100;
  font-size: 0.9rem;
}

.project-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 16/9;
  box-shadow: 0 0 20px rgba(46, 145, 0, 0.2);
  border: 1px solid rgba(46, 145, 0, 0.3);
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide.active {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
  }

  .project-card.featured {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-category {
    min-height: auto;
    padding: 2rem;
  }

  header .profile-img {
    width: 150px;
    height: 150px;
  }

  h1,
  h2,
  h3 {
    font-size: 2rem;
  }

  .typewriter,
  .typewriter-name,
  .typewriter-text {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .project-links {
    flex-direction: column;
    gap: 1rem;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .achievement-item {
    padding: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  header {
    padding: 1rem;
  }

  section {
    padding: 1.5rem 1rem;
  }

  .tech-badges {
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
