/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Landing Page Styles */

@font-face {
  font-family: "Inter";
  src: url("/assets/Inter-VariableFont_opsz,wght-c6876acd.ttf");
}

body {
  font-family: "Inter", monospace;
  font-weight: 350;
  font-optical-sizing: auto;
  letter-spacing: 1pt;
}

.page {
  max-width: 1200px;
  margin: 20px auto;
  width: calc(100% - 40px);
}

/* Hero Section */

.hero {
  text-align: center;
  /* width: 100%; */
  margin: 0;
  padding: 0;
}

.hero-image {
  /* max-width: 100%; */
  height: auto;
  /* display: block; */
  /* margin: 0 auto; */
}

/* Projects Section */

.projects {
  margin-top: 4em;
  width: 100%;
}

.section-title {
  text-align: center;
  font-size: 2.5em;
  color: #333;
  margin-bottom: 40px;
  font-weight: 700;
}

/* Projects Grid - Horizontal on Desktop */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.project-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.project-image {
  margin-bottom: 20px;
  text-align: center;
}

.project-img {
  width: 128px;
  height: 128px;
  display: block;
  margin: 0 auto;
}

.project-title {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
}

.project-description {
  font-size: 1em;
  color: #666;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

nav.menu {
  position: absolute;
  width: calc(100vw - 30px);
  text-align: right;
}

nav.menu a {
  display: inline-block;
  margin-left: 0.5em;
  opacity: 0.6;
}

nav.menu a img {
  width: 24px;
  height: 24px;
}

nav.menu a:hover {
  transform: translateY(-2px);
  opacity: 1;
}

form label {
  display: block;
  margin-bottom: 0.2em;
}

form label abbr {
  display: none;
}

form .control {
  margin: 1em 0 1em 0;
}

form .control input, form .control textarea {
  width: 100%;
  max-width: 300px;
}

form .control textarea {
  height: 4em;
}

/* Responsive - Stacked Vertically on Mobile */

@media (max-width: 768px) {
  .hero-image {
    max-width: 80%;
  }

  .section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-card {
    min-height: 250px;
    /* padding: 20px; */
    display: block;
  }

  .project-title {
    font-size: 1.5em;
  }

  .project-img {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 480px) {
  .landing-page {
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  /* Stack vertically on mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    min-height: auto;
    padding: 25px 20px;
  }

  .project-title {
    font-size: 1.4em;
  }

  .page h1 {
    padding-top: 1em;
  }
}

/* Contact Page Styles */

.contact-container {
  display: flex;
  flex-direction: column;
  /* gap: 40px; */
}

.contact-form {
  flex: 1;
}

.contact-info {
  flex: 0 0 50%;
}

@media (min-width: 769px) {
  .contact-container {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Contact Form Submit Button */
.contact-submit {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 1em;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.contact-submit:hover {
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
  background: #0069d9;
}
