/* Fonts */
@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #252525;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Accessibility */
:focus {
  outline: 3px solid #252525;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Hero section */
.hero {
  background: #ffebb4;
  height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 4rem;
}

.title-container,
.subtitle-container {
  position: relative;
  display: inline-block;
}

.title-container {
  margin-bottom: 0.5rem;
}

.subtitle-container {
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 5rem);
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h2 strong {
  font-weight: 700;
}

.highlighter {
  position: absolute;
  width: 100%;
  height: 20%;
  bottom: 15%;
  left: 0;
  background-color: rgba(255, 236, 66, 0.7);
  z-index: 1;
  transform: rotate(-0.5deg);
}

/* About section */
.about {
  padding: 5rem 2rem;
  background-color: white;
  max-width: 1200px;
  margin: 0 auto;
}

.about-container {
  display: flex;
  gap: 8rem;
  align-items: flex-start;
}

.about-image {
  flex: 0 0 30%;
  max-width: 300px;
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  background-color: #fbb6fe;
  z-index: 1;
  border-radius: 3px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  border-radius: 3px;
}

.about-content {
  flex: 1;
}

.about h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.about p {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Services section */
.services {
  background: #f6f5f5;
  padding: 5rem 2rem;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 2rem;
}

.service-card {
  padding: 2rem;
  text-align: left;
  display: flex;
}

.service-image {
  width: 30%;
  margin-bottom: 3rem;
  aspect-ratio: 16/9;
  overflow: visible;
  max-width: 400px;
  margin-left: auto;
  margin-right: 2rem;
  position: relative;
}

.service-image::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 100%;
  height: 100%;
  background-color: #ffebb4;
  z-index: 1;
  border-radius: 3px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  border-radius: 3px;
}

.service-content {
  max-width: 70%;
  margin-left: 2rem;
}

.service-card h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 1.5rem;
}

.service-card p {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Projects section */
.projects {
  padding: 5rem 2rem;
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem;
  margin-bottom: 1rem;
}

.project-card {
  padding: 2rem;
  text-align: left;
}

.project-image {
  width: 100%;
  margin-bottom: 3rem;
  aspect-ratio: 16/9;
  overflow: visible;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.project-image::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 100%;
  height: 100%;
  background-color: #b4eefd;
  z-index: 1;
  border-radius: 3px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  border-radius: 3px;
}

.project-card h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 1.5rem;
}

.project-card p {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* CTA section */
.cta-section {
  background: #f6f5f5;
  padding: 5rem 2rem;
}

.cta-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 0;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 2rem;
}

.cta-section p {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.cta-section p a {
  text-decoration: underline;
}

.cta-section p a:hover {
  opacity: 0.7;
}

/* Buttons */
.hero-button,
.cta-button {
  display: inline-block;
  background-color: #252525;
  color: white;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease, transform 0.3s ease;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 3px;
}

.cta-button {
  margin-top: 2rem;
}

.hero-button:hover,
.cta-button:hover {
  background-color: #404040;
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background-color: #252525;
  padding: 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1em;
  font-weight: 300;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-bottom {
  max-width: 1400px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 1em;
  font-weight: 300;
  color: #FFFFFF;
}

/* Responsive styles */
@media (max-width: 1023px) {
  .service-card {
    padding: 1.5rem 10px 1.5rem 0;
    flex-direction: column;
  }

  .service-image {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2rem;
    width: 100%;
  }

  .service-content {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .about {
    padding: 5rem 2rem;
  }

  .about-container {
    gap: 4rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 0rem;
  }

  .project-card {
    padding: 1.5rem 10px 1.5rem 0;
  }

  .project-image {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: calc(3rem + 10px);
  }
}

@media (max-width: 900px) {
  .about-container {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }

  .about-image {
    max-width: 250px;
    margin-bottom: 2rem;
    align-self: flex-start;
  }

  .cta-container {
    text-align: left;
    margin: 0 auto 0;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .footer-bottom {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .project-card {
    padding: 1.5rem 0;
  }

  .service-card {
    padding: 1.5rem 0;
  }

  .about {
    padding: 5rem 2rem;
  }
}

@media (max-width: 480px) {

  .hero h1,
  .hero h2 {
    padding: 0 1rem;
  }

  .cta-button {
    font-size: 1rem;
  }
}