/* style.css (Common Styling for All Pages) */

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-main: #030711;
  --bg-elevated: #070d1c;
  --bg-soft: #0b1220;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.18);
  --accent-gold: #fbbf24;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: #111827;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617, #02040a 48%, #000000 100%);
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

/* Header & Navigation */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(55, 65, 81, 0.65);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-header nav a {
  margin-left: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 3px;
}

.main-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-gold));
  transition: width 0.18s ease-out;
}

.main-header nav a:hover::after,
.main-header nav a.active::after {
  width: 100%;
}

.main-header nav a.active {
  color: var(--text-main);
}

/* Hero */
.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 56px 20px 48px;
  background: radial-gradient(circle at top, #0f172a, #020617 55%, #000000 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background-image: radial-gradient(circle at 20% 0, rgba(59, 130, 246, 0.24), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.25), transparent 55%);
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url("images/hero-agency.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.14;
}

.hero-content {
  position: relative;
  max-width: 840px;
  text-align: center;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-content p {
  max-width: 640px;
  margin: 0 auto 26px;
  color: var(--text-muted);
}

.hero-buttons .btn {
  margin: 0 6px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.18s ease-out;
  background: transparent;
}

.btn.primary {
  background: linear-gradient(to right, var(--accent), var(--accent-gold));
  color: #020617;
  border-color: transparent;
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.9);
}

/* Generic Layout Sections */
.page-header,
.highlight-section,
.services-grid,
.team-section,
.about-section,
.gallery-grid,
.ceo-section,
.contact-wrapper,
.policy-section {
  max-width: 1120px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-muted);
}

.highlight-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: radial-gradient(circle at top left, #111827, #020617);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-bottom: 6px;
}

.card p {
  color: var(--text-muted);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.service-box {
  background: radial-gradient(circle at top left, #020617, #020617 45%, #020617);
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: var(--shadow-soft);
}

.service-box img {
  border-radius: 14px;
  margin-bottom: 12px;
}

.service-box h2 {
  margin-bottom: 6px;
}

.service-box p {
  color: var(--text-muted);
}

.juju-grid .service-box {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), #020617);
}

/* About Section */
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.about-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.about-images img:nth-child(3) {
  grid-column: 1 / -1;
}

.about-images img {
  border-radius: 16px;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

/* Team Section */
.team-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.team-card {
  background: radial-gradient(circle at top left, #020617, #020617 45%, #020617);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.team-card img {
  border-bottom: 1px solid rgba(55, 65, 81, 0.9);
}

.team-card h3 {
  padding: 14px 16px 6px;
}

.team-card p {
  padding: 0 16px 16px;
  color: var(--text-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-grid figure {
  background: var(--bg-elevated);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

/* CEO Section */
.ceo-section {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.ceo-photo img {
  border-radius: 20px;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.ceo-bio h2 {
  margin-bottom: 8px;
}

.ceo-bio p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact-card,
.contact-form-card {
  background: var(--bg-elevated);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: var(--shadow-soft);
}

.contact-card h2,
.contact-form-card h2 {
  margin-bottom: 10px;
}

.contact-card p {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-buttons .btn {
  margin-right: 6px;
  margin-top: 8px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: #020617;
  color: var(--text-main);
}

/* Policy */
.policy-section h2 {
  margin-top: 18px;
  margin-bottom: 6px;
}

.policy-section p {
  color: var(--text-muted);
}

/* Footer */
.main-footer {
  text-align: center;
  padding: 18px 10px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  margin-top: 40px;
  background: #020617;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .about-section {
    grid-template-columns: 1fr;
  }

  .ceo-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 20px;
  }

  .main-header nav {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .main-header nav a {
    margin-left: 0;
    margin-right: 14px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}
