
html {
  scroll-behavior: smooth;
}

body {
  background-color: #0F0F12;
  color: #E6E6E6;
  font-family: 'Inter', sans-serif;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text p {
  color: #A0A0A8;
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 320px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  filter: grayscale(20%) contrast(105%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.03);
}


.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(139, 0, 0, 0.15);
}

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.hero-button {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 28px;
  border: 2px solid #8B0000;
  border-radius: 25px;
  text-decoration: none;        /* removes underline */
  color: #E6E6E6;               /* force white text */
  font-weight: 500;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, 
              color 0.3s ease, 
              transform 0.3s ease;
}

.hero-button:hover{
  background-color: #8B0000;
  color: white;
  transform: translateY(-2px);
}

.hero-button:visited {
  color: #E6E6E6;
}

.code-section {
  padding: 80px 0;
  text-align: center;
  scroll-margin-top: 80px;
}

.code-section h2 {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  position: relative;
}

.code-section h2::after {
  content: "";
  width: 100px;
  height: 2px;
  background-color: #8B0000;
  display: block;
  margin: 12px auto 0 auto;
}

.section-intro {
  color: #A0A0A8;
  max-width: 600px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

/* Grid Layout */
.code-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Cards */
.code-card {
  background-color: #18181C;
  padding: 50px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.code-card h3 {
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.code-card p {
  color: #A0A0A8;
  line-height: 1.6;
}

.code-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

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

.project-card {
  background-color: #18181C;
  padding: 36px;
  border-radius: 8px;
  text-align: left;
  border-top: 3px solid #8B0000;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
  border-top-color: #b30000;
}

.precision-builds{
  text-align: center;
}

.precision-builds h2 {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  position: relative;
}

.precision-builds h2::after {
  content: "";
  width: 70px;
  height: 2px;
  background-color: #8B0000;
  display: block;
  margin: 12px auto 0 auto;
}

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

.project-card h3 {
  font-size: 20px;
  margin-bottom: 14px;
  font-weight: 600;
}

.project-card p {
  color: #A0A0A8;
  line-height: 1.7;
  margin-bottom: 18px;
}

.tech-stack {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 6px 10px;
  border: 1px solid #8B0000;
  border-radius: 4px;
  color: #E6E6E6;
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .project-card {
    padding: 28px;
  }
}

.tools-section h2 {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  position: relative;
}

.tools-section {
  padding: 80px 0;
  text-align: center;
}

.tools-section h2::after {
  content: "";
  width: 70px;
  height: 2px;
  background-color: #8B0000;
  display: block;
  margin: 12px auto 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.tool-category {
  background-color: #18181C;
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tool-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.tool-category h3 {
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.tool-category p {
  color: #A0A0A8;
  line-height: 1.7;
}


.drive-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.drive-section h2 {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  position: relative;
}

.drive-section h2::after {
  content: "";
  width: 50px;
  height: 2px;
  background-color: #8B0000;
  display: block;
  margin: 14px auto 0 auto;
}

.drive-content {
  max-width: 760px;
  margin: 70px auto 0 auto;
  text-align: left;
}

.drive-content p {
  color: #A0A0A8;
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 30px;
  letter-spacing: 0.3px;
}

.drive-content p:first-child {
  color: #E6E6E6;
  font-weight: 500;
}

.drive-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.contact-section {
  padding: 100px 0 60px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-section h2 {
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  position: relative;
}

.contact-section h2::after {
  content: "";
  width: 60px;
  height: 2px;
  background-color: #8B0000;
  display: block;
  margin: 12px auto 0 auto;
}

.contact-links {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-links a {
  text-decoration: none;
  color: #E6E6E6;
  font-size: 16px;
  letter-spacing: 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-links a:hover {
  color: #8B0000;
  border-color: #8B0000;
}

.footer-note {
  margin-top: 60px;
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  .contact-links {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-image img {
    width: 260px;
    height: 340px;
  }
}