@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

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

:root {
  --color-black: #000000;
  --color-dark-1: #0a0a0a;
  --color-dark-2: #121212;
  --color-dark-3: #1a1a1a;
  --color-gray-1: #242424;
  --color-gray-2: #2e2e2e;
  --color-gray-3: #404040;
  --color-gray-4: #6a6a6a;
  --color-light-gray: #9a9a9a;
  --color-white: #ffffff;
    
  /* Theme colors - Dark mode (default) */
  --bg-primary: var(--color-dark-1);
  --bg-secondary: #121212F2; /* 95% opacity */
  --bg-tertiary: #1a1a1AF2; /* 95% opacity */
  --text-primary: var(--color-white);
  --text-secondary: var(--color-light-gray);
  --text-tertiary: var(--color-gray-4);
  --border-color: var(--color-gray-1);
  --border-color-hover: var(--color-gray-3);
}

[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffffF2; /* 95% opacity */
  --bg-tertiary: #e8e8e8F2; /* 95% opacity */
  --text-primary: #0a0a0a;
  --text-secondary: #404040;
  --text-tertiary: #6a6a6a;
  --border-color: #d0d0d0;
  --border-color-hover: #a0a0a0;
}

html {
  scroll-behavior: smooth;
}

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

#backgroundCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Navbar - now inside content window, no longer fixed */
.navbar {
  position: relative;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-white);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-menu a {
  color: var(--color-light-gray);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-white);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--color-white);
}

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

/* Main Content */
main {
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
}

.hero-photo {
  flex-shrink: 0;
}

.photo-placeholder {
  width: 300px;
  height: 300px;
  background-color: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder:hover {
  border-color: var(--border-color-hover);
}

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

.greeting {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-primary);
  font-weight: 600;
}

.highlight-box {
  position: relative;
  display: inline-block;
  padding: 0.1em 0.3em;
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 0%,
    var(--bg-secondary) 100%
  );
  border: 1px solid var(--border-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-tertiary);
  margin-bottom: 4rem;
  font-family: "JetBrains Mono", monospace;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 800px;
  margin-top: 5rem;
}

.stat-item {
  border-left: 2px solid var(--border-color);
  padding-left: 1.5rem;
  transition: border-color 0.3s ease;
}

.stat-item:hover {
  border-left-color: var(--text-primary);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section Styles */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--text-primary);
}

/* About Section */
.about {
  background-color: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-content {
  max-width: 900px;
}

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

/* Projects Section */
.projects {
  background-color: var(--bg-secondary);
}

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

.project-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--text-primary) 0%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.project-card:hover::before {
  transform: translateX(0);
}

.project-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-5px);
  background-color: var(--bg-secondary);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-year {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.tech-tag {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  font-family: "JetBrains Mono", monospace;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-color-hover);
}

/* Skills Section */
.skills {
  background-color: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
}

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

.skill-category {
  border-left: 2px solid var(--border-color);
  padding-left: 1.5rem;
}

.category-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: "JetBrains Mono", monospace;
}

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

.skill-list li {
  color: var(--text-secondary);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: default;
}

.skill-list li:hover {
  color: var(--text-primary);
  padding-left: 0.5rem;
}

/* Contact Section */
.contact {
  background-color: var(--bg-secondary);
}

.contact-content {
  max-width: 700px;
}

.contact-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Footer */
.footer {
  background-color: transparent;
  border-top: 1px solid var(--border-color);
  padding: 2rem;
  margin-top: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

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

  .hero-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .photo-placeholder {
    width: 200px;
    height: 200px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-menu {
    gap: 1.5rem;
  }

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

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

@media (max-width: 480px) {
  .nav-menu {
    display: none;
  }

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

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