/* External stylesheet for PC store final project */
/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: #050509;
  color: #f5f5f5;
}

/* Layout */

.site-header {
  background: #10101a;
  border-bottom: 1px solid #272737;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo-area {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: #29b6f6;
}

.tagline {
  font-size: 0.85rem;
  color: #bbb;
}

.top-fragment-nav ul {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.top-fragment-nav a {
  font-size: 0.85rem;
  color: #ddd;
  text-decoration: none;
}

.top-fragment-nav a:hover {
  color: #29b6f6;
}

.main-nav {
  margin-top: 0.5rem;
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  color: #f5f5f5;
  font-size: 1.1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #ddd;
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: #29b6f6;
  color: #fff;
}

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.section {
  margin-bottom: 2.5rem;
}

.section h1,
.section h2,
.section h3 {
  margin-bottom: 1rem;
}

.section p {
  margin-bottom: 1rem;
}

/* Hero */

.hero {
  max-width: 1100px;
  margin: 1.5rem auto 3rem;
  padding: 1.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.accent {
  color: #ffca28;
}

.hero-list {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-buttons a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #29b6f6;
  color: #29b6f6;
  text-decoration: none;
  font-size: 0.9rem;
}

.hero-buttons a:hover {
  background: #29b6f6;
  color: #050509;
}

.hero-image img {
  width: 100%;
  border-radius: 10px;
  display: block;
  border: 1px solid #272737;
}

.hero-image figcaption {
  font-size: 0.85rem;
  color: #bbb;
  margin-top: 0.5rem;
}

/* Lists & definition lists */

.highlight-dl {
  margin-bottom: 1.5rem;
}

.highlight-dl dt {
  font-weight: 700;
  margin-top: 0.5rem;
}

.highlight-dl dd {
  margin-left: 1rem;
  color: #ccc;
}

.highlight-steps {
  padding-left: 1.25rem;
}

/* Video */

.responsive-video {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  border: 1px solid #272737;
}

/* Cards / grid */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background: #10101a;
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid #272737;
}

.card h2 {
  margin-bottom: 0.5rem;
}

.card a {
  color: #29b6f6;
  text-decoration: none;
  font-size: 0.9rem;
}

.card a:hover {
  text-decoration: underline;
}

/* About-style layouts */

.fun-facts {
  padding-left: 1.25rem;
}

/* Gallery */

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.image-gallery figure {
  background: #10101a;
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid #272737;
}

.image-gallery img {
  width: 100%;
  border-radius: 6px;
}

.image-gallery figcaption {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: #ccc;
}

/* Forms */

form {
  max-width: 650px;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #424257;
  background: #090914;
  color: #f5f5f5;
}

textarea {
  resize: vertical;
}

.form-inline label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary {
  display: inline-block;
  background: #29b6f6;
  color: #050509;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.error-message {
  color: #ff8080;
  font-size: 0.85rem;
}

.success-message {
  color: #81c784;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* Site map */

.sitemap-list {
  list-style: none;
  padding-left: 0;
}

.sitemap-list > li {
  margin-bottom: 0.75rem;
}

.sitemap-list a {
  color: #ffca28;
  text-decoration: none;
}

.sitemap-list a:hover {
  text-decoration: underline;
}

.sitemap-list ul {
  list-style: disc;
  padding-left: 1.25rem;
}

/* Back to top */

.back-to-top {
  margin-top: 2rem;
  text-align: right;
}

.back-to-top a {
  color: #ffca28;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-to-top a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  background: #10101a;
  border-top: 1px solid #272737;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a {
  color: #ffca28;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive design: mobile & small screens */

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .top-fragment-nav {
    width: 100%;
    margin-top: 0.75rem;
  }

  .top-fragment-nav ul {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    flex-direction: column;
    background: #10101a;
    padding: 0.5rem 0;
    position: absolute;
    right: 0;
    top: 2.4rem;
    min-width: 170px;
    display: none;
  }

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

  .nav-links li {
    padding: 0.25rem 1rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
