/*  RESET & BASE STYLES */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #0e1111;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

main,
section,
article,
header,
footer,
nav {
  padding: 1.5rem;
  margin: auto;
}

/* NAVIGATION AREA */
#top {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #eaf6f6;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#top nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

#top nav h1 img {
  height: 50px;
  border-radius: 50%;
}

#top nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

#top nav ul li a {
  color: #eaf6f6;
  font-weight: 500;
}

#top nav ul li a:hover {
  color: #00bfa6;
  transform: scale(1.05);
}

#hire-button {
  background: #00bfa6;
  color: #0e1111;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: bold;
  transition: 0.3s ease;
}

#hire-button:hover {
  background: #eaf6f6;
  transform: scale(1.1);
}

/* HERO SECTION */
#hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 2rem;
  color: #eaf6f6;
  background: linear-gradient(135deg, #0a0f0f 20%, #1a2324 80%);
  border-bottom: 2px solid #00bfa6;
  perspective: 1000px;
  --glowX: 50%;
  --glowY: 50%;
  position: relative;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glowX) var(--glowY), rgba(0,191,166,0.2) 0%, transparent 60%);
  pointer-events: none;
  transition: background 0.2s ease;
}

#hero header {
  flex: 1 1 45%;
  z-index: 1;
  position: relative;
}

#hero h1 {
  font-size: 2.5rem;
  background: linear-gradient(to right, #00bfa6, #36c2cf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #cddcdc;
  max-width: 500px;
}

#hero .button {
  display: inline-block;
  background: #00bfa6;
  color: #0e1111;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#hero .button:hover {
  background: #019c8a;
  transform: scale(1.05);
}

#hero figure {
  flex: 1 1 45%;
  z-index: 1;
  position: relative;
}

#hero figure img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  #hero {
    flex-direction: column-reverse;
    text-align: center;
  }
  #hero figure img {
    max-width: 80%;
  }
}

/* SERVICES SECTION */
#services {
  background: #101414;
  padding: 80px 20px;
  text-align: center;
}

#services h2 {
  font-size: 2rem;
  color: #00bfa6;
  margin-bottom: 0.5rem;
}

#services p {
  color: #cddcdc;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #1a1f1f;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.service-card figure img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.service-card figcaption {
  font-weight: 600;
  color: #00bfa6;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #eaf6f6;
  font-size: 1rem;
  margin-top: 0.5rem;
}

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

/* PORTFOLIO SECTION */
#portfolio {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #eaf6f6;
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

#portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/abstract-shapes.svg') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
}

#portfolio * {
  position: relative;
  z-index: 1;
}

#portfolio-filters ul {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  list-style: none;
}

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

.project {
  background: #1a1f1f;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project figcaption {
  padding: 0.75rem;
  font-weight: 600;
  color: #00bfa6;
}

/*TESTIMONIALS */
#testimonials {
  background: #101414;
  color: #eaf6f6;
  text-align: center;
  padding: 80px 20px;
  margin-top: 4rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#testimonials h2 {
  color: #00bfa6;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.testimonial-card {
  background: #1a1f1f;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideUp 1s ease-out forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/*CONTACT SECTION */
#contact {
  background: linear-gradient(135deg, #203a43, #2c5364);
  color: #eaf6f6;
  padding: 80px 20px;
  border-radius: 12px;
  margin-top: 4rem;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease-in-out;
}

#contact h2 {
  font-size: 2rem;
  color: #00bfa6;
  margin-bottom: 1rem;
}

#contact p {
  font-size: 1.1rem;
  color: #cddcdc;
  margin-bottom: 2rem;
}

#contact address p {
  margin: 0.25rem 0;
  color: #aee1e1;
}

#contact address a {
  color: #00bfa6;
  transition: 0.3s ease;
}

#contact address a:hover {
  color: #36c2cf;
}

#contact form {
  max-width: 600px;
  margin: 2rem auto 0;
  background: rgba(15, 20, 20, 0.7);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s ease;
}

#contact fieldset {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#contact label {
  text-align: left;
  font-weight: 500;
  color: #aee1e1;
}

#contact input,
#contact textarea {
  background: #1a1f1f;
  border: 1px solid #2c5364;
  border-radius: 6px;
  color: #eaf6f6;
  padding: 0.75rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact input:focus,
#contact textarea:focus {
  border-color: #00bfa6;
  box-shadow: 0 0 8px rgba(0, 191, 166, 0.4);
  outline: none;
}

#contact button {
  background: #00bfa6;
  color: #0e1111;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

#contact button:hover {
  background: #019c8a;
  transform: scale(1.03);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #0f2027;
  color: #eaf6f6;
  margin-top: 4rem;
}

footer ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-top: 1rem;
}

footer ul li a {
  color: #00bfa6;
  transition: 0.3s ease;
}

footer ul li a:hover {
  color: #36c2cf;
}
