/*
  Brand Afro Digital Agency - Main Stylesheet
  Modernized for premium, professional look
*/

/* =====================
   Brand Afro Premium Styles
   ===================== */

/* === CSS Variables === */
:root {
  --color-bg: #fff;
  --color-text: #111;
  --color-primary: #D4A017;
  --color-dark: #000;
  --color-light: #F5F5F5;
  --color-accent: #F9C846;
  --color-footer: #000;
  --color-footer-text: #fff;
  --font-main: 'Open Sans', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* === Base Styles === */
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  scroll-behavior: smooth;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin: 0 0 1rem 0;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* === Navigation === */
header.navbar {
  background: var(--color-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}
.nav-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-dark);
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  padding: 0.2rem 0;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--color-primary);
}
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--color-bg);
  z-index: 1050;
  animation: slideIn 0.3s ease-in-out;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-size: 2rem;
  font-weight: 700;
  margin: 1.5rem 0;
  color: var(--color-dark);
  transition: color var(--transition);
}
.mobile-menu a.active,
.mobile-menu a:hover {
  color: var(--color-primary);
}
@keyframes slideIn {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  background: url('https://via.placeholder.com/1920x1080?text=Hero+Image') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.2s cubic-bezier(.4,0,.2,1);
}
.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 0 18px rgba(0,0,0,0.5);
}
.hero p {
  font-size: 1.6rem;
  font-weight: 300;
  color: #fff;
  margin: 2rem 0 2.5rem;
  max-width: 700px;
}
.cta-button {
  border: 2px solid var(--color-dark);
  background: var(--color-primary);
  color: var(--color-dark);
  padding: 0.9rem 2.8rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  letter-spacing: 1px;
}
.cta-button:hover {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-primary);
}

/* === Section Base === */
.section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.section-title {
  font-size: 2.7rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-dark);
  letter-spacing: 1px;
}

/* === Services === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: var(--color-light);
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #ddd;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}
.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 1.2rem;
}
.service-card h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}
.service-card p {
  font-size: 1.08rem;
  color: #666;
}

/* === About === */
.about-section {
  background: var(--color-dark);
  color: #fff;
  text-align: center;
  border-radius: 0;
}
.about-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 0;
  box-shadow: none;
}
.about-text {
  flex: 1 1 320px;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}
.about-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* === Portfolio === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #ddd;
  transition: box-shadow var(--transition);
}
.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition);
}
.portfolio-item:hover img {
  transform: scale(1.08);
}
.portfolio-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-overlay h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

/* === Testimonials === */
.testimonials-section {
  background: var(--color-light);
  text-align: center;
  border-radius: 0;
}
.testimonial {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.3rem;
  font-style: italic;
  color: #333;
  padding: 2rem 0;
}
.testimonial span {
  display: block;
  margin-top: 1rem;
  color: var(--color-dark);
  font-weight: 700;
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, rgba(0,0,0,0.92), rgba(212,160,23,0.18)), url('https://via.placeholder.com/1920x400?text=CTA+Background') center/cover no-repeat;
  text-align: center;
  color: #fff;
  position: relative;
  padding: 8rem 2rem;
  overflow: hidden;
  border-radius: 0;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s cubic-bezier(.4,0,.2,1);
}
.cta-section h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}
.cta-section p {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .cta-button {
  padding: 1.1rem 3.2rem;
  font-size: 1.3rem;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  transition: all var(--transition);
}
.cta-section .cta-button:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-dark);
}

/* === Footer === */
footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  padding: 3rem 0 1.5rem 0;
  text-align: center;
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid #222;
}
.footer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}
.footer-socials {
  margin: 2rem 0 0 0;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}
.footer-socials a img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s, transform 0.2s;
}
.footer-socials a:hover img {
  filter: brightness(1) invert(0.5) sepia(1) hue-rotate(20deg) saturate(5);
  transform: scale(1.12);
}
.footer-socials a i {
  font-size: 2rem;
  color: #fff;
  transition: color 0.2s, transform 0.2s;
}
.footer-socials a:hover i {
  color: var(--color-primary);
  transform: scale(1.15);
}
footer p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #bbb;
}
footer .footer-content > p:first-child {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
footer .footer-content > p:last-child {
  margin-bottom: 0.5rem;
}
footer .footer-content > p:not(:first-child):not(:last-child) {
  color: #bbb;
}
footer .footer-divider {
  width: 60px;
  height: 2px;
  background: #333;
  margin: 2rem auto 1.5rem auto;
  border: none;
}

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .section {
    padding: 4rem 1.5rem;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .about-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .section-title {
    font-size: 2rem;
  }
  .cta-section {
    padding: 4rem 1.5rem;
  }
  .cta-section h2 {
    font-size: 2rem;
  }
  .cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  .cta-section .cta-button {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
  }
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .about-image img {
    max-width: 100%;
  }
  .portfolio-item img {
    height: 180px;
  }
}

/* Remove border-radius from all sections and cards */
.section,
.about-section,
.testimonials-section,
.cta-section,
footer,
.service-card,
.portfolio-item,
.team-card,
.value-item {
  border-radius: 0 !important;
}

/* Remove box-shadow from cards and add thin gray border */
.service-card,
.portfolio-item,
.team-card,
.value-item {
  box-shadow: none !important;
  border: 1px solid #ddd !important;
}

/* Remove border-radius from about images and other images */
.about-image img,
.team-card img,
.portfolio-item img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Responsive grid for values/mission cards */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.value-item {
  border: 1px solid #ddd;
  border-radius: 0;
  box-shadow: none;
  padding: 2rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

/* Home Service Card Custom Styles */
.home-service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  text-align: center;
  padding: 0;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
}
.home-service-card img {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.home-service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin: 1.5rem 0 1rem 0;
  font-weight: 500;
}
.home-service-card p {
  color: #444;
  font-size: 1.1rem;
  margin: 0 1.5rem 1.5rem 1.5rem;
}
.service-cta {
  color: #D4A017;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: color 0.2s;
}
.service-cta:hover {
  color: #000;
  text-decoration: underline;
}

/* Remove border from home-service-card and service-card on homepage */
.home-service-card, .home-service-card:before, .home-service-card:after {
  border: none !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Remove global border for .service-card only on homepage */
.services-section .service-card {
  border: none !important;
}

.modern-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .modern-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .modern-values-grid {
    grid-template-columns: 1fr;
  }
}
.modern-value-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  border: none;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1), background 0.3s;
  text-align: center;
  position: relative;
  cursor: pointer;
}
.modern-value-item .value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #D4A017;
  margin-bottom: 1.2rem;
  transition: color 0.3s;
}
.modern-value-item:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 12px 32px rgba(212,160,23,0.18), 0 2px 16px rgba(0,0,0,0.10);
  background: #fffbe9;
}
.modern-value-item:hover .value-icon {
  color: #000;
}
.modern-value-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #222;
}
.modern-value-item p {
  color: #444;
  font-size: 1.05rem;
  margin: 0;
} 