:root {
  --primary-color: #ffffff;
  --secondary-color: #bdc3c7;
  --accent-color: #3498db;
  --bg-color: #000000;
  --light-bg: #111111;
  --text-color: #ffffff;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-color);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

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

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

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--primary-color);
}

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

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 80px;
  /* Account for fixed navbar */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-color);
  gap: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 800px;
}

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

.hero-image img {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.hero-header-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
}

.hero-prefix {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.1;
  margin-right: 0.5rem;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0;
  line-height: 1.1;
  color: var(--primary-color);
  white-space: nowrap;
}

.role-text {
  font-family: var(--font-code);
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 0;
  font-weight: 700;
  margin-top: 0;
  line-height: 1.2;
}

.hero p {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  max-width: 600px;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: #ffffff;
  color: #000000;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* About Section */
.about {
  background-color: var(--bg-color);
  text-align: center;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Education Section */
.education {
  background-color: var(--bg-color);
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.education-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-left: 5px solid var(--accent-color);
}

.education-card:hover {
  transform: translateX(10px);
}

.education-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.education-card .degree {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.education-card .institution {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.education-card .grade {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-family: var(--font-code);
}



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

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

.project-card {
  background: var(--light-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.project-content {
  padding: 2rem;
}

.project-content h3 {
  margin-bottom: 0.5rem;
}

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

/* Contact Section */
.contact {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* Resume Page */
.resume-body {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.resume-header {
  padding: 1rem 5%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.resume-container {
  flex: 1;
  width: 100%;
  background: var(--light-bg);
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    background-color: var(--light-bg);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 16px 0;
  }

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

  .hero {
    flex-direction: column-reverse;
    /* Stack with image on top (since column-reverse reverses the order of flex items) Wait, HTML is Content then Image. Column-Reverse makes Image first, Content second. */
    text-align: center;
    padding-top: 120px;
    /* More space for fixed header */
    height: auto;
    padding-bottom: 50px;
  }

  .hero-image img {
    width: 250px;
    height: 250px;
    margin-bottom: 2rem;
    margin-top: 0;
  }

  .hero-header-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .hero-prefix {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .hero-content {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
}