@import url("https://fonts.googleapis.com/css2?family=Epilogue:wght@400;600&family=Space+Grotesk:wght@700&display=swap");

:root {
  --background-color: #121212;
  --primary-color: #e0e0e0;
  --secondary-color: #1a1a1a;
  --accent-color: #00ffff;
  --shadow-color: rgba(0, 255, 255, 0.2);
  --font-family-headings: "Space Grotesk", sans-serif;
  --font-family-body: "Epilogue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-body);
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--primary-color);
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5rem;
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo a {
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 20px;
  text-decoration: none;
  font-family: var(--font-family-headings);
}

.nav-links {
  display: flex;
  justify-content: space-around;
  width: 30%;
  list-style: none;
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--shadow-color);
}

.burger {
  display: none;
}

.main-content {
  padding: 0 5rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  padding-top: 80px; /* Offset for header */
}

.header-content {
  flex: 1;
}

.header-text .subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header-text .title {
  font-family: var(--font-family-headings);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  margin: 1rem 0;
  line-height: 1.1;
  color: #fff;
}

.header-text .description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
}

.contact-button {
  background-color: var(--accent-color);
  color: #000;
  text-decoration: none;
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 2rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 5px;
  border: none;
}

.contact-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--shadow-color);
}

.header-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 0 30px var(--shadow-color));
}

/* --- Skills Marquee --- */
.skills-section {
  padding: 4rem 0;
  overflow: hidden;
}

.skills-title {
  text-align: center;
  font-family: var(--font-family-headings);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #fff;
}

.skills-marquee {
  width: 100%;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
}

.skills-track {
  display: flex;
  animation: scroll 30s linear infinite;
}

.skills-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.skills-track .skill-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 100px;
  margin: 0 2rem;
  background-color: var(--secondary-color);
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.skills-track .skill-card:hover {
  transform: scale(1.1);
  border-color: var(--accent-color);
}

.skills-track .skill-card img {
  width: 50px;
  height: 50px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.skills-track .skill-card:hover img {
  filter: grayscale(0%);
}

/* --- Projects Section --- */
.projects-section {
  padding: 4rem 5rem;
}

.projects-title {
  text-align: center;
  font-family: var(--font-family-headings);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #fff;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color);
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-card:hover::after {
  transform: translateX(100%);
}

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

.project-card h3 {
  font-family: var(--font-family-headings);
  font-size: 1.5rem;
  margin: 0;
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  color: #fff;
}

.project-card p {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.view-all-button {
  display: block;
  width: fit-content;
  margin: 3rem auto 0 auto;
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

/* --- Contact Section --- */
#contact {
  padding: 4rem 5rem;
  text-align: center;
}

#contact h2 {
  font-family: var(--font-family-headings);
  font-size: 2.5rem;
  color: #fff;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: left;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
}

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

.contact-form input {
  padding: 1rem;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  font-size: 1rem;
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.contact-form input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.contact-form button {
  font-family: var(--font-family-headings);
  align-self: flex-start;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}
.social-links img {
  filter: grayscale(1) brightness(2);
  transition: filter 0.3s ease;
}
.social-links a:hover img {
  filter: none;
}

/* --- Responsive Styles --- */
@media screen and (max-width: 1024px) {
  .main-content,
  header,
  .projects-section,
  #contact {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media screen and (max-width: 768px) {
  /* Mobile Nav styles will go here if implemented */
  .header {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .header-content {
    order: 2;
  }
  .header-image {
    order: 1;
    margin-bottom: 2rem;
  }
  .header-text .description {
    margin: 0 auto;
  }
  .contact-button,
  .contact-form button {
    align-self: center;
  }
  .contact-content {
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
}
