@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --orange: #f59a23;
  --orange-light: #ffb13b;
  --black: #090d12;
  --surface: #11171e;
  --surface-raised: #171e27;
  --white: #f4f6f8;
  --gray: #2a323c;
  --muted: #a3adb8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
  background: var(--black);
  color: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.site-header {
  padding: 52px 0 38px;
  border-bottom: 1px solid var(--gray);
}

.site-header .eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.site-header .Graduation {
  margin: 20px 0 0;
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 700;
}

main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px 32px;
  padding: 42px 0;
}

main section {
  min-width: 0;
}

.about,
.projects {
  grid-column: 1 / -1;
}

h2 {
  margin: 0 0 18px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.about p {
  max-width: 760px;
  color: #c3cbd3;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.skills ul,
.projects ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray);
  color: #d8dde2;
  font-weight: 600;
}

.projects ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.projects li {
  min-height: 190px;
  padding: 22px;
  border: 1px solid #252e38;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at top right, rgb(245 154 35 / 10%), transparent 55%),
    var(--surface);
  color: var(--white);
  transition: transform 180ms ease, border-color 180ms ease;
}

.projects li:hover {
  transform: translateY(-3px);
  border-color: rgb(245 154 35 / 60%);
}

.projects li a {
  color: var(--white);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-decoration: none;
}

.projects li a:hover {
  color: var(--orange-light);
}

.projects li p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

#weather,
.ai-chat {
  margin: 0 0 32px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--gray);
  border-radius: 12px;
  background: var(--surface);
}

#weather {
  border-top: 3px solid var(--orange);
}

#weather input,
.chat-controls input {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #303a45;
  border-radius: 7px;
  background: #0d1218;
  color: var(--white);
  font: inherit;
}

#weather input::placeholder,
.chat-controls input::placeholder {
  color: #7f8994;
}

#weather input:focus,
.chat-controls input:focus {
  border-color: var(--orange);
  outline: 2px solid rgb(245 154 35 / 20%);
  outline-offset: 1px;
}

button {
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);
  color: #111;
  font: 700 0.85rem "DM Sans", Arial, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: var(--orange-light);
}

#weatherResult {
  margin-top: 18px;
  color: var(--white);
  font-weight: 600;
}

.chat-note,
#chatStatus {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--gray);
  color: var(--muted);
  font-size: 0.85rem;
}

#themeToggle {
  margin-bottom: 28px;
}

@media (max-width: 700px) {
  body {
    padding-right: 20px;
    padding-left: 20px;
  }

  main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about,
  .projects {
    grid-column: auto;
  }

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

  .projects li {
    min-height: 150px;
  }

  #weather input,
  .chat-controls input {
    width: 100%;
    margin-bottom: 10px;
  }
}