/* base */
@import "./base/reset.css";
@import "./base/variables.css";
@import "./base/typography.css";

/* layout */
@import "./layout/header.css";
@import "./layout/hero.css";
@import "./layout/about.css";
@import "./layout/projects.css";
@import "./layout/footer.css";

/* components */
@import "./components/navbar.css";
@import "./components/buttons.css";
@import "./components/cards.css";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body {
  font-family: system-ui, sans-serif;
  background-color: #0f0c2a;
  color: #ffffff;
}

body {
    background-color: purple;
}
html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  background: linear-gradient(135deg, #1a1446, #0f0c2a);
  padding: 6rem 0;
}

.about {
  background-color: #0f0c2a;
  padding: 5rem 0;
}

.projects {
  background-color: #0b0922;
  padding: 5rem 0;
}

.contact {
  background-color: #0f0c2a;
  padding: 5rem 0;
}

.header {
  position: sticky;
  top: 0;
  background-color: rgba(15, 12, 42, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #cfd3ff;
}

.navbar a:hover {
  color: #ffffff;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

p {
  line-height: 1.7;
  color: #cfd3ff;
  max-width: 650px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
  list-style: none;
}

.skills li {
  background-color: #1e1a4f;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.footer {
  background-color: #080717;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #9aa0ff;
}

img {
  max-width: 100%;
  height: auto;
}

.hero-content {
  max-width: 600px;
}

.navbar a {
  color: #ffffff;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--accent);
}

/* underline animation */

.project-card a {
  color: var(--accent);
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.project-card a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar a {
    margin-left: 0;
  }
}
