:root {
  --bg-color: #0a0a0a;
  --text-color: #ffffff;
  --accent-color: #64ffda;
  --secondary-color: #8892b0;
  --card-bg: #1a1a1a;
  --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Add padding for fixed header */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 100;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(10px);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.no-decoration {
  text-decoration: none;
}

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

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

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.subtitle {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--secondary-color);
  max-width: 600px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.7;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-color);
  border-radius: 15px;
  position: relative;
}

.mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background-color: var(--text-color);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scroll 1.5s infinite;
}

/* Sections */
section {
  padding: 8rem 1.5rem;
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}

.about-text p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.skill-category h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.skill-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

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

.project-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(100, 255, 218, 0.1) 100%
  );
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
}

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

.project-content h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.project-content p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

/* Ensure footer content (tags + link) sits at the bottom */
.project-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-footer {
  margin-top: auto;
}

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

.project-tags span {
  background-color: rgba(100, 255, 218, 0.1);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.9rem;
}

.project-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accent-color);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.project-link:hover::after {
  width: 100%;
}

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

.contact-item {
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.contact-item:hover {
  transform: translateY(-5px);
  background-color: rgba(100, 255, 218, 0.1);
}

.contact-label {
  color: var(--accent-color);
  font-size: 0.9rem;
}

.contact-value {
  color: var(--secondary-color);
}

/* Footer */
footer {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--secondary-color);
}

/* Animations */
@keyframes scroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 10px);
    opacity: 0;
  }
}

.reveal-text {
  opacity: 0;
  transform: translateY(20px);
  animation: revealText 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .subtitle {
    font-size: 1.5rem;
  }

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

  nav ul {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 4rem 1rem;
  }

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