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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #1a1a1a;
  color: #ffffff;
  overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid #00ff88;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.15s ease;
}

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

nav ul {
  display: flex;
  justify-content: center;
  gap: 3rem;
  list-style: none;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
}

nav a:hover {
  color: #00ff88;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00ff88;
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* Sections */
section {
  min-height: 100vh;
  padding: 6rem 5%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Home Section */
#home {
  flex-direction: column;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  position: relative;
  overflow: hidden;
}

#home::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 255, 136, 0.1) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.profile-container {
  position: relative;
  z-index: 2;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #00ff88;
  object-fit: cover;
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.home-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: slideInLeft 1s ease-out;
}

.home-content .name {
  color: #00ff88;
  font-size: 3.5rem;
  font-weight: bold;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.home-content .title {
  font-size: 2rem;
  color: #b0b0b0;
  margin-bottom: 2rem;
  animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}

.social-links a {
  width: 50px;
  height: 50px;
  border: 2px solid #00ff88;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none;
  color: #00ff88;
  font-size: 1.5rem;
}

.social-links a:hover {
  background: #00ff88;
  color: #1a1a1a;
  transform: scale(1.1) rotate(360deg);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  padding: 1rem 2rem;
  border: 2px solid #00ff88;
  background: transparent;
  color: #00ff88;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #00ff88;
  transition: left 0.3s;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-primary {
  background: #00ff88;
  color: #1a1a1a;
}

/* Skills Section */
#skills {
  background: #2d2d2d;
  flex-direction: column;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #00ff88;
}

.skills-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.skill-category {
  background: #242424;
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 136, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.65);
  box-shadow: 0 12px 30px rgba(0, 255, 136, 0.08);
}

.skill-category h3 {
  font-size: 1.45rem;
  margin-bottom: 1.35rem;
  color: #00ff88;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.85rem;
}

.skill-item {
  background: #1a1a1a;
  padding: 0.85rem 0.75rem;
  border-radius: 9px;
  text-align: center;
  border: 1px solid rgba(0, 255, 136, 0.12);
  transition: all 0.3s;
  animation: fadeInUp 0.6s ease-out backwards;
  font-size: 0.95rem;
  line-height: 1.25;
}

.skill-item:hover {
  border-color: #00ff88;
  color: #00ff88;
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0, 255, 136, 0.14);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Projects Section */
#projects {
  background: #1a1a1a;
  flex-direction: column;
}

/* Services Section */
#services {
  background: #2d2d2d;
  flex-direction: column;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
}

.service-card {
  background: #1a1a1a;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s;
  animation: fadeInUp 0.6s ease-out backwards;
}

.service-card:hover {
  border-color: #00ff88;
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3);
}

.service-icon {
  color: #00ff88;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #00ff88;
}

.service-card p {
  color: #d0d0d0;
  line-height: 1.6;
}

/* Projects Section */
#projects {
  background: #1a1a1a;
  flex-direction: column;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  align-items: stretch;
}

.project-card {
  background: #2d2d2d;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: scaleIn 0.6s ease-out backwards;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-card:hover {
  border-color: #00ff88;
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.25);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.project-img {
  width: 100%;
  height: 215px;
  background: #171717;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 255, 136, 0.18);
}

.project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-screenshot {
  transform: scale(1.035);
}

.project-img-console {
  background: #080808;
}

.project-screenshot-console {
  object-fit: contain;
}

.project-content {
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-content h3 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  color: #00ff88;
}

.project-description {
  color: #d0d0d0;
  line-height: 1.65;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: #1a1a1a;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.75);
}

.project-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border: 1px solid #00ff88;
  border-radius: 8px;
  color: #00ff88;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.project-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.project-link:hover {
  background: #00ff88;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.2);
}

/* About Section */
#about {
  background: #2d2d2d;
  flex-direction: column;
}

.about-content {
  max-width: 800px;
  text-align: center;
  line-height: 1.8;
  font-size: 1.2rem;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
}

.about-content p {
  margin-bottom: 1.5rem;
  color: #d0d0d0;
}

.interests {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.interest-item {
  background: #1a1a1a;
  padding: 1rem 2rem;
  border-radius: 10px;
  border: 2px solid #00ff88;
  transition: all 0.3s;
}

.interest-item:hover {
  background: #00ff88;
  color: #1a1a1a;
  transform: scale(1.1);
}

/* Contact Section */
#contact {
  background: #1a1a1a;
  flex-direction: column;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
}

.contact-form {
  background: #2d2d2d;
  padding: 2.5rem;
  border-radius: 15px;
  border: 2px solid #00ff88;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: #1a1a1a;
  border: 2px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00ff88;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.contact-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-links h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #00ff88;
}

.social-contact {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: #2d2d2d;
  border: 2px solid #00ff88;
  border-radius: 10px;
  color: #00ff88;
  text-decoration: none;
  transition: all 0.3s;
}

.contact-link:hover {
  background: #00ff88;
  color: #1a1a1a;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

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

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #2d2d2d;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.contact-detail-item:hover {
  border-color: #00ff88;
  transform: translateX(10px);
}

.contact-detail-item svg {
  color: #00ff88;
  min-width: 20px;
}

.contact-detail-item a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-detail-item:hover a {
  color: #00ff88;
}

/* Footer */
footer {
  background: #0d0d0d;
  padding: 2rem;
  text-align: center;
  color: #808080;
  border-top: 1px solid #00ff88;
}

footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 1050px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
  }

  .skill-category {
    padding: 1.5rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .home-content h1 {
    font-size: 2rem;
  }

  .home-content .name {
    font-size: 2.5rem;
  }

  .home-content .title {
    font-size: 1.5rem;
  }

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

  .section-title {
    font-size: 2rem;
  }

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

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

  .social-contact {
    flex-direction: column;
  }
}
