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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #e0e0e0;
  background: #0d1117;
  line-height: 1.6;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(2, 160, 228, 0.15);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.nav-right {
  display: contents;
}

.nav-links {
  margin-left: auto;
}

.nav-right .theme-toggle {
  order: 1;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #02a0e4;
}

.theme-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 2rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
  width: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  border-color: #ffb048;
  color: #ffb048;
}

/* Hamburger - hidden on desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

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

/* Hero */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: #0d1117;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffb048, #02a0e4, #8231e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: 1.3rem;
  color: #fff;
}

/* Quotes */
.quotes {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.quotes h2 {
  text-align: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 3rem;
}

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

.quote-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(2, 160, 228, 0.4);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.quote-card:hover {
  border-color: rgba(2, 160, 228, 0.3);
  border-left-color: rgba(2, 160, 228, 0.7);
}

.quote-card blockquote {
  font-size: 1.05rem;
  font-style: italic;
  color: #ccc;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-info strong {
  color: #fff;
  font-size: 1rem;
}

.author-info span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Projects */
.projects {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.projects h2 {
  text-align: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

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

.project-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(255, 176, 72, 0.4);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.project-card:hover {
  border-color: rgba(255, 176, 72, 0.3);
  border-left-color: rgba(255, 176, 72, 0.7);
}

.project-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-card h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.project-card p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: #8231e8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.project-link:hover {
  color: #ffb048;
}

/* Socials */
.socials {
  padding: 5rem 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.socials h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 2rem;
}

.socials-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.socials-links a {
  color: #8231e8;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(130, 49, 232, 0.25);
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s;
}

.socials-links a:hover {
  color: #ffb048;
  border-color: rgba(255, 176, 72, 0.4);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  color: #555;
  font-size: 0.85rem;
  border-top: 1px solid rgba(130, 49, 232, 0.15);
  margin-top: 2rem;
}

/* Light Mode */
[data-theme="light"] body {
  background: #f5f6f8;
  color: #1a1a2e;
}

[data-theme="light"] nav {
  background: rgba(245, 246, 248, 0.95);
  border-bottom-color: rgba(2, 160, 228, 0.2);
}

[data-theme="light"] .logo {
  color: #1a1a2e;
}

[data-theme="light"] .nav-links a {
  color: rgba(26, 26, 46, 0.7);
}

[data-theme="light"] .theme-toggle {
  color: #1a1a2e;
  border-color: rgba(26, 26, 46, 0.2);
}

[data-theme="light"] .theme-toggle:hover {
  color: #ffb048;
  border-color: #ffb048;
}

[data-theme="light"] .hero {
  background: #f5f6f8;
}

[data-theme="light"] .hero .subtitle {
  color: #1a1a2e;
}

[data-theme="light"] .quotes h2,
[data-theme="light"] .projects h2,
[data-theme="light"] .socials h2 {
  color: #1a1a2e;
}

[data-theme="light"] .section-intro {
  color: rgba(26, 26, 46, 0.6);
}

[data-theme="light"] .quote-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  border-left: 3px solid rgba(2, 160, 228, 0.4);
}

[data-theme="light"] .project-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  border-left: 3px solid rgba(255, 176, 72, 0.4);
}

[data-theme="light"] .quote-card blockquote {
  color: #444;
}

[data-theme="light"] .author-info strong,
[data-theme="light"] .project-card h3 {
  color: #1a1a2e;
}

[data-theme="light"] .author-info span {
  color: rgba(26, 26, 46, 0.5);
}

[data-theme="light"] .project-card p {
  color: #555;
}

[data-theme="light"] .hamburger span {
  background: #1a1a2e;
}

[data-theme="light"] footer {
  color: #999;
  border-top-color: rgba(130, 49, 232, 0.2);
}

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

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

  .nav-inner {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    order: 1;
  }

  .theme-toggle {
    margin-left: 0;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0 0.5rem;
    margin-left: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    margin-left: 0;
    padding: 0.6rem 0;
    font-size: 1.05rem;
  }
}
