:root {
  --primary-color: #000;
  --secondary-color: #333;
  --background-color: #fff;
  --spacing: 80px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--background-color);
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--spacing);
  position: fixed;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

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

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

/* Hide/Show Mobile Classes */
.hide-mobile {
  display: inline-block;
}

/* Main Content */
main {
  padding: 0 var(--spacing);
}

section {
  padding: 100px 0;
  max-width: 1000px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  padding-top: 160px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

h2 {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.location {
  font-size: 1.2rem;
  color: var(--secondary-color);
}

/* About Section */
.about-content {
  max-width: 800px;
}

.highlight {
  font-size: 2rem;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.underline {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px;
}

/* Experience & Projects Sections */
.role {
  margin-bottom: 4rem;
}

.role:last-child {
  margin-bottom: 0;
}

h3 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}

h4 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.website {
  display: inline-block;
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.website:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.title {
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.period {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Skills Section */
.skills-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skills-list li {
  font-size: 1.2rem;
  position: relative;
  padding-left: 1.5rem;
}

.skills-list li::before {
  content: "—";
  position: absolute;
  left: 0;
}

/* Contact Section */
.contact-links {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1.2rem;
  padding: 1rem 2rem;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
}

.contact-item:hover {
  background: var(--primary-color);
  color: var(--background-color);
}

/* Footer */
footer {
  padding: 2rem var(--spacing);
  text-align: center;
  color: var(--secondary-color);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --spacing: 20px;
  }

  nav {
    padding: 1rem var(--spacing);
  }

  .nav-links {
    gap: 1.5rem;
  }

  .hide-mobile {
    display: none;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  .highlight {
    font-size: 1.5rem;
  }

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

  .contact-item {
    width: 100%;
  }

  section {
    padding: 60px 0;
  }

  .skills-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .skills-list li {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 120px;
    min-height: 80vh;
  }

  .role {
    margin-bottom: 2.5rem;
  }

  .title {
    font-size: 1.1rem;
  }
}

