:root {
  --primary-color: #00ff88;
  --secondary-color: #6c63ff;
  --background-dark: #0a0a0a;
  --background-light: #ffffff;
  --text-dark: #ffffff;
  --text-light: #333333;
  --card-bg: #1a1a1a;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-dark);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease;
}

.cursor-trail {
  position: fixed;
  width: 2px;
  height: 2px;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
}

.cursor-trail::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 50%;
  filter: blur(1px);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(26, 26, 26, 0.8);
  padding: 3rem;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 136, 0.1);
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
}

/* .hero-content::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    transparent 30%,
    rgba(0, 255, 136, 0.1) 70%,
    transparent 100%
  );
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
} */

.hero-content h1 {
  font-size: 4.5rem;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    #fff,
    var(--primary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200%;
  animation: gradient 8s linear infinite;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.hero-content h2 {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.hero-content:hover h2::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-content p {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-content p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--primary-color);
  animation: blink 1s steps(2) infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0.5rem;
  border: 2px solid transparent;
}

.btn.primary {
  background: var(--primary-color);
  color: var(--background-dark);
}

.btn.secondary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn.download {
  background: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
  background: var(--primary-color);
  color: var(--background-dark);
}

/* Sections */
section {
  padding: 5rem 5%;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary-color);
}

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

/* Enhanced Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  perspective: 1000px;
}

.skill-category {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  border: 1px solid transparent;
}

.skill-category::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    225deg,
    transparent 0%,
    transparent 50%,
    var(--primary-color) 150%
  );
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
}

.skill-category::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    transparent,
    var(--primary-color)
  );
  z-index: -2;
  border-radius: 12px;
  opacity: 0;
  transition: all 0.4s ease;
}

.skill-category:hover {
  transform: translateY(-5px) rotateX(10deg);
  border-color: rgba(0, 255, 136, 0.2);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2),
    0 15px 35px rgba(0, 255, 136, 0.1);
}

.skill-category:hover::before {
  opacity: 0.1;
}

.skill-category:hover::after {
  opacity: 1;
}

.skill-category h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  transition: transform 0.3s ease;
}

.skill-category:hover h3 {
  transform: translateZ(20px);
}

.skill-category ul {
  list-style: none;
  position: relative;
  transition: transform 0.3s ease;
}

.skill-category:hover ul {
  transform: translateZ(15px);
}

.skill-category li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2em;
  transition: all 0.3s ease;
}

.skill-category li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.skill-category:hover li::before {
  opacity: 1;
  transform: translateX(0);
}

.skill-category:hover li {
  padding-left: 1.5em;
  color: var(--primary-color);
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 2000px;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--primary-color),
    transparent
  );
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  transform-origin: top;
  animation: grow 2s ease-out forwards;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
  transform-style: preserve-3d;
  opacity: 0;
}

.timeline-item:nth-child(odd) {
  left: 0;
  transform: translateX(-100px) rotateY(10deg);
}

.timeline-item:nth-child(even) {
  left: 50%;
  transform: translateX(100px) rotateY(-10deg);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0) rotateY(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-content {
  padding: 30px;
  background: var(--card-bg);
  border-radius: 15px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  border: 1px solid rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
}

.timeline-content:hover {
  transform: translateZ(20px);
  border-color: rgba(0, 255, 136, 0.3);
}

.timeline-content::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  box-shadow: 0 0 20px var(--primary-color);
  animation: pulse 2s infinite;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -60px;
}

.timeline-content h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.timeline-content h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.timeline-content .date {
  color: var(--primary-color);
  font-style: italic;
  margin-bottom: 15px;
}

.timeline-content ul {
  list-style: none;
}

.timeline-content ul li {
  margin: 10px 0;
  padding-left: 25px;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content ul li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.timeline-content:hover ul li::before {
  opacity: 1;
  transform: translateX(0);
}

.timeline-content:hover ul li {
  padding-left: 30px;
  color: var(--primary-color);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

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

.project-tech span {
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  padding: 5rem 2rem;
  background: linear-gradient(
    to bottom,
    var(--background-dark),
    var(--card-bg)
  );
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 255, 136, 0.15);
  border-color: rgba(0, 255, 136, 0.3);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-dark);
  text-decoration: none;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(0, 255, 136, 0.05);
}

.contact-link:hover {
  background: rgba(0, 255, 136, 0.1);
  transform: translateX(10px);
  color: var(--primary-color);
}

.contact-link i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.05);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-3px);
  color: var(--primary-color);
}

.social-link i {
  font-size: 1.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-content {
    padding: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    margin-bottom: 30px;
    left: 0 !important;
  }

  .timeline-content::after {
    left: 15px !important;
  }

  .contact-card {
    padding: 1.5rem;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Shopware Expertise Section */
.shopware-expertise {
  background: var(--card-bg);
  border-radius: 20px;
  margin: 2rem auto;
  padding: 3rem;
  max-width: 1400px;
}

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

.expertise-card {
  background: var(--background-dark);
  padding: 2rem;
  border-radius: 15px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 255, 136, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.5s;
}

.expertise-card:hover::before {
  transform: translateX(100%);
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

.expertise-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.expertise-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.expertise-card ul {
  list-style: none;
}

.expertise-card ul li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.expertise-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Enhanced Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover::after {
  opacity: 1;
}

.project-content {
  position: relative;
  z-index: 1;
}

.project-tech span {
  transition: var(--transition);
}

.project-tech span:hover {
  background: var(--primary-color);
  color: var(--background-dark);
}

/* Animation Updates */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-content {
  animation: float 6s ease-in-out infinite;
}
