
header {
  background-color: var(--primary-color);
  padding: 1.5rem 1rem;
  color: var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo-icon {
  width: 220px;
  height: auto;
  display: block;
  user-select: none;
}

/* =======================
   Navigation
======================= */
.navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* =======================
   Hire Button
======================= */
.btn-hire {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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


/* =======================
   Login Button
======================= */
.btn-login {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.15s ease;
}

.btn-login:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}




.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  overflow: hidden;
  color: var(--secondary-color);
  width: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  user-select: none;
}

.hero-content {
  position: absolute;
  max-width: 800px;
  padding: 2em;
  z-index: 2;
  color: var(--secondary-color);
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
  color: var(--secondary-color);
  text-shadow: 0 0 50px hsla(0, 0%, 0%, 0.7);
}

.hero p {
  font-size: 1.5em;
  margin-bottom: 1em;
  color: var(--secondary-color);
}

.hero-btn {
  display: inline-block;
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  padding: 0.5em 1.2em;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  margin-right: 14px;
}

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


/* Section Layout */

.services-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem; /* space below header */
  padding: 0 1rem;
}

.services-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.services-header p {
  font-size: 1rem;
  color: var(--primary-color);
  line-height: 1.5;
}




.card-section {
  padding: 4rem 1rem;
  font-family: 'Montserrat', sans-serif;
  background-color: whitesmoke;
}

.card-section .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--primary-color);
  border-radius: 8px;
  overflow: hidden;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}




.card h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  font-weight: 600;
  color: var(--secondary-color);
}

.card p {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.card a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-color);
  text-decoration: none;
}

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




/* Features Section */
.features {
  padding: 5rem 2.5rem;
  background: var(--primary-color);
  font-family: 'Montserrat', sans-serif;
}

.features .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.feature .icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature .icon img {
  width: 40px;  /* scale down SVG */
  height: 40px;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  color: var(--secondary-color);
}

.feature p {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin: 0;
}




/* ===== Team Duo (polished avatar cards) ===== */
.team-duo {
  padding: 3.5rem 1rem;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:whitesmoke;
}

.team-wrap {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 3rem 4rem;
  margin-bottom: 1cm;
}

.avatar {
  width: 250px;
  height: 250px;
  margin: 0;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  box-shadow:
    0 0 0 4px var(--primary-color),
    0 6px 18px rgba(0,0,0,0.08);
}

/* Adjust grid so text aligns nicely with bigger avatar */
.person {
  display: grid;
  grid-template-columns: 160px 1fr; /* updated to match avatar size */
  align-items: center;
  gap: 7.5rem;
}

/* Image behaves nicely even if source is not square */
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;                  /* fills the circle */
  object-position: center;
  transform: scale(1.02);             /* avoids tiny edge gaps */
  filter: contrast(102%) saturate(102%);
  transition: transform .25s ease, filter .25s ease;
}

/* Text block */
.copy .name {
  margin: 0 0 .15rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--primary-color);
}

.copy .role {
  margin: 0 0 .6rem;
  color: #6f7683;
  font-weight: 600;
  font-size: .9rem;
}

.copy .bio {
  margin: 0 0 .7rem;
  color: var(--primary-color);
  font-size: .95rem;
  line-height: 1.55;
}

.copy .link {
  background-color: transparent;
  display: inline-block;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 6px;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.copy .link:hover { 
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.copy .download-btn {
  margin-left: 0.5rem;
}

/* ===== Footer ===== */
.site-footer {
  padding: 2rem 1rem;
  background: var(--primary-color);
  font-family: 'Montserrat', sans-serif;
}

/* Top row */
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* logo | nav | socials spaced out */
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 1rem;
  margin-bottom: 1cm;
}

/* Nav */
.footer-nav {
  display: flex;
  gap: 2rem;
}
.footer-nav a {
  text-decoration: none;
  color: var(--secondary-color);
  font-size: 0.95rem;
}
.footer-nav a:hover {
  color: var(--accent-color)
}

/* Social icons */
.footer-social {
  display: flex;
  justify-content: end;
  width: 40px;
  height: 40px;
  gap: 1rem;
}
.footer-social a {
  font-size: 1.2rem;
  color: #555;
  text-decoration: none;
}
.footer-social a:hover {
  color: #000;
}

/* Bottom row */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-bottom: 1cm;
}

.footer-bottom p {
  margin: 0;
    color: var(--secondary-color)
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  text-decoration: none;
  color: var(--secondary-color);
}
.footer-legal a:hover {
  color: var(--accent-color);
}

/* Responsive */
/* ============ ≥1200px fine-tuning (large screens) ============ */
@media (min-width: 1200px) {
  .container { padding: 0 1rem; }
  .hero-content { padding: 2.5em; }
}

/* ============ ≤1100px (laptops / small desktops) ============ */
@media (max-width: 1100px) {
  header { padding: 1.2rem 1rem; }
  .logo-icon { width: 200px; }

  .hero h1 { font-size: 2.6em; }
  .hero p  { font-size: 1.25em; }

  .features .container {
    gap: 3.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .team-wrap {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2.5rem 3rem;
  }
  .person { gap: 4rem; }
  .avatar { width: 220px; height: 220px; }
}

/* ============ ≤992px (tablets landscape) ============ */
@media (max-width: 992px) {
  .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .navbar { flex-direction: column; gap: 1rem; }
  .nav-links { flex-direction: row; flex-wrap: wrap; gap: 1rem; }

  .hero h1 { font-size: 2.3em; }
  .hero p  { font-size: 1.1em; }
  .hero-content { padding: 1.5em; max-width: 680px; }

  .card-section .container {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }

  .features .container {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
  }
  .feature { gap: 1.25rem; }
  .feature .icon { width: 56px; height: 56px; }
  .feature .icon img { width: 32px; height: 32px; }

  .team-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .person {
    grid-template-columns: 140px 1fr;
    gap: 2rem;
  }
  .avatar { width: 180px; height: 180px; }
}


/* ===== Profile Modal ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background: #fff;
  margin: auto;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

.modal-content h2 {
  margin-top: 0;
  font-weight: 700;
  color: #222;
}

.modal-content p {
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

.modal-content a {
  color: #007bff;
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}

.close {
  color: #888;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}















/* ============ ≤768px (tablets portrait) ============ */
@media (max-width: 768px) {
  header { padding: 1rem; }
  .logo-icon { width: 170px; }

  .hero {
    height: 80vh;          /* full but not too tall on small screens */
    background-size: cover;
    background-position: center;
  }
  .hero-content { padding: 1.25em; max-width: 560px; }
  .hero h1 { font-size: 2em; }
  .hero p  { font-size: 1rem; }

  .btn-hire, .hero-btn { padding: 0.45rem 1rem; }

  .card-section { padding: 3rem 1rem; }
  .card-section .container {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .features { padding: 3.5rem 1.25rem; }
  .features .container { grid-template-columns: 1fr; gap: 2rem; }

  .team-wrap { grid-template-columns: 1fr; }
  .person {
    grid-template-columns: 110px 1fr;
    align-items: center;
  }
  .avatar { width: 140px; height: 140px; }

  .site-footer { padding: 1.75rem 1rem; }
  .footer-top { flex-direction: column; text-align: center; gap: 0.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .5rem; }
}

/* ============ ≤600px (large phones) ============ */
@media (max-width: 600px) {
  .logo-icon { width: 150px; }

  .nav-links { width: 100%; justify-content: center; }
  .nav-links a { padding: 0.25rem 0.5rem; }

  .hero { height: 70vh; }
  .hero h1 { font-size: 1.8em; }
  .hero p  { font-size: 0.95em; }

  .card-section .container {
    grid-template-columns: 1fr;
  }

  .features .container { gap: 1.75rem; }
  .feature h3 { font-size: .95rem; }
  .feature p  { font-size: .9rem; }

  .avatar { width: 120px; height: 120px; }
  .copy .name { font-size: 1rem; }
  .copy .bio  { font-size: .9rem; }
}

/* ============ ≤480px (phones) ============ */
@media (max-width: 480px) {
  header { padding: 0.85rem 0.75rem; }
  .logo-icon { width: 135px; }

  .hero { height: 64vh; }
  .hero-content { padding: 1em; max-width: 92%; }
  .hero h1 { font-size: 1.6em; }
  .hero p  { font-size: 0.9em; }

  .btn-hire, .hero-btn { padding: 0.4rem 0.9rem; border-width: 2px; }

  .card { padding: 0.85rem; }
  .card h3 { font-size: 1rem; }
  .card p, .card a { font-size: 0.9rem; }

  .person { grid-template-columns: 1fr; text-align: center; }
  .avatar { margin: 0 auto 0.75rem; }
}

/* ============ Motion safety ============ */
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; box-shadow: none; }
  .feature img, .avatar img { transition: none; }
  .hero-btn, .btn-hire { transition: none; }
}
