/* Base */
:root {
  --main-color: #1f3c88;
  --accent-color: #3f5ebf;
  --secondary-accent-color: #324a99;
  --accent-red: #e63946;
  --bg-color: #f8f9fa;
  --text-color: #333;

}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
}

h2, h3 {
  color: var(--main-color);
  margin-top: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
header {
  background: var(--main-color);
  color: var(--bg-color);
  padding: 1rem 0;
}

.logo-container {
  margin-right: auto;
}

.logo-container:active {
  transform: translateY(2px);
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--main-color);
  background-color: var(--bg-color);
  padding: 0.5rem;
  border-radius: 20px;
  border: 0.5rem solid var(--accent-color);
  font-size: 20px;
  font-weight: 700;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  margin: 0 1rem 0 1rem;

}

header nav a {
  color: var(--bg-color);
  text-decoration: none;
  font-weight: 500;
}

header nav a:hover {
  text-decoration: underline;
}


/* Buttons */
.btn-wrapper {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.btn-primary {
  display: block;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  margin: 5px;
}

.btn-primary {
  color: var(--bg-color);
  border: none;
}

/* Hero */
.hero {
  position: relative;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-color);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 1rem;
  max-width: 800px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.7rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 4px var(--secondary-accent-color) ;
  color: var(--bg-color);
}

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

.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-color);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
}

.btn-primary:hover {
  background-color: var(--secondary-accent-color);
}

.btn-primary:active {
      transform: translateY(2px);
}

.hero-btn {
  display: inline-block;
}


/* Section */
.section {
  padding: 3rem 0;
}

/* Services */
.services .service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card svg {
  width: 40px;
  height: 40px;
  stroke: var(--main-color);
  margin-bottom: 1rem;
}

/* === Portfolio Section (Gallery) === */
.portfolio {
  padding: 60px 0;
  background-color: #fafafa;
}

.portfolio .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--text-color);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery__item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery__item:hover {
  transform: scale(1.03);
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact */
form {
  display: grid;
  gap: 1rem;
}

form input, form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
}

/* Footer */
footer {
  background: var(--main-color);
  color: var(--bg-color);
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

.contact-link {
  color: var(--bg-color);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1080px) {

.logo {
  font-size: 1rem;
}

header nav ul {
  font-size: 0.8rem;
  display: flex;
  align-items: baseline;
}

.btn-wrapper {
display: inline-block;
}

.btn-primary {
  font-size: 0.8rem;
  padding: 0.7rem;
}

.hero-btn {
  font-size: 1rem;
}
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-wrapper {
    display: flex;
    justify-content: center;
  }

  header nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo-container {
    margin: 0 auto;
  }

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



.process .timeline {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
}

.process .timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-red);
  z-index: 1;
}

.process .step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  background: var(--bg-color);
  padding: 1rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process .step:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.process .step i {
  display: block;
  margin: 0 auto 0.5rem;
  width: 36px;
  height: 36px;
  color: var(--accent-red);
  transition: color 0.3s ease;
}

.process .step:hover i {
  color: var(--secondary-accent-color);
}

.process .step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Mobile layout */
@media (max-width: 768px) {
  .process .timeline {
    flex-direction: column;
    align-items: flex-start;
  }

  .process .timeline::before {
    top: 0;
    left: 20px;
    width: 4px;
    height: 100%;
  }

  .process .step {
    text-align: left;
    padding-left: 3rem;
  }

  .process .step i {
    position: absolute;
    left: 0;
    top: 1rem;
  }
}
