:root {
  --bg: #ffffff;
  --muted: #6b7280;
  --accent: #0b63d6;
  --accent-contrast: #ffffff;
  --card: #f8fafc;
  --radius: 12px;
  --max-width: 1100px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: #0f172a;
  line-height: 1.45
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px
}

.site-header {
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  position: sticky;
  top: 0;
  z-index: 40
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit
}

.brand-photo {
  width: 64px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e6eefb
}

.brand-text .name {
  font-weight: 700;
  font-size: 1rem
}

.brand-text .title {
  font-size: 0.85rem;
  color: var(--muted)
}

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

.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  background: transparent
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid var(--accent)
}

.btn.outline {
  border: 1px solid #e6eefb;
  background: transparent;
  padding: 8px 12px
}

.btn.large {
  padding: 12px 18px;
  border-radius: 10px
}

.btn.ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted)
}

.hero {
  padding: 40px 0
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start
}

.hero-left h1 {
  font-size: 1.5rem;
  margin: 0 0 10px
}

.lead {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 18px
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 18px
}

.highlights {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted)
}

.hero-right {
  align-self: start
}

.card {
  background: var(--card);
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
  border: 1px solid #eef2f7
}

.quick-contact .card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px
}

.about {
  padding-top: 18px;
  padding-bottom: 18px
}

.about p {
  margin: 8px 0 0;
  color: var(--muted)
}

.expertise {
  padding-top: 18px;
  padding-bottom: 18px
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem
}

.experience {
  padding-top: 18px;
  padding-bottom: 18px
}

.exp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px
}

.exp-list {
  padding-left: 18px;
  color: var(--muted)
}

.exp-more {
  margin-top: 10px
}

.small {
  color: var(--muted);
  font-size: 0.9rem
}

.contact {
  padding-top: 18px;
  padding-bottom: 36px
}

.contact p {
  margin: 6px 0 12px
}

.contact-form {
  max-width: 640px;
  display: grid;
  gap: 12px
}

.contact-form label {
  display: block
}

.label-text {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--muted)
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e6eefb;
  border-radius: 8px;
  background: white
}

.form-actions {
  display: flex;
  gap: 8px;
  align-items: center
}

.site-footer {
  border-top: 1px solid #eef2f7;
  padding: 18px 0;
  text-align: center;
  color: var(--muted)
}

@media (max-width:900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: 8px
  }

  .grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .brand-photo {
    width: 56px;
    height: 72px
  }
}

@media (max-width:520px) {
  .brand-text .name {
    font-size: 0.95rem
  }

  .grid {
    grid-template-columns: 1fr
  }

  .nav {
    gap: 6px
  }

  .hero-left h1 {
    font-size: 1.15rem
  }

  .btn.large {
    padding: 10px 14px
  }

  .brand-photo {
    width: 56px;
    height: 72px
  }
}

.form-response {
  margin-top: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.form-response.success {
  color: #15803d;
  /* green */
}

.form-response.error {
  color: #b91c1c;
  /* red */
}

/* === HERO SECTION (MODERN) === */
.hero-modern {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-text h1 {
  font-family: "Raleway", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  animation: fadeInDown 0.8s ease-out forwards;
}

.hero-text h2 {
  font-weight: 500;
  margin: 0 0 16px;
  opacity: 0.9;
}

.hero-text .tagline {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 24px;
  animation: fadeIn 1s ease-out forwards;
}

.hero-photo img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.hero-photo img:hover {
  transform: scale(1.02);
}

/* Fade-in animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  border-radius: 50px;
  padding: 12px 22px;
  transition: all 0.25s ease;
}

.btn.primary {
  background: #fff;
  color: #1e3a8a;
}

.btn.primary:hover {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4);
}

.btn.outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Alternating section backgrounds */
section:nth-of-type(even):not(.image-gallery) {
  background: #f8fafc;
}

section:nth-of-type(odd):not(.hero-modern, .image-gallery) {
  background: #ffffff;
}

/* ========== Uniform Responsive Image Gallery ========== */
/* === UNIFORM IMAGE GALLERY === */
.image-gallery {
  background: #f8fafc;
  padding: 60px 0;
  text-align: center;
}

.image-gallery h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: #1e3a8a;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
  padding: 0 20px;
}

/* Each image sits in a fixed-size container */
.gallery-item {
  width: 160px;
  height: 100px; /* fixed height box */
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Smooth hover animation */
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

/* Make images auto-fit the box without distortion */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* keeps proportions */
  object-position: center;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Hover effects */
.gallery-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .gallery-item {
    width: 120px;
    height: 80px;
  }
}
