/* ============================================
   Digital Nasarawa Innovation Hub - CSS Styles
   Design: Modern Tech-Forward with African Heritage
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
  /* Brand Colors */
  --primary: #1B5E20;
  --primary-foreground: #F5F5F0;
  --secondary: #D4A574;
  --secondary-foreground: #1B5E20;
  --accent: #00897B;
  --accent-foreground: #F5F5F0;
  
  /* Neutral Colors */
  --background: #FAFAF8;
  --foreground: #2C2C2C;
  --card: #FFFFFF;
  --card-foreground: #2C2C2C;
  --muted: #E8E8E4;
  --muted-foreground: #6B6B6B;
  --border: #E0E0DC;
  
  /* Spacing */
  --radius: 0.65rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Global Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

.display-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

button {
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

/* ============================================
   Navigation
   ============================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-weight: bold;
  font-size: 1.125rem;
}

.nav-logo-text {
  font-weight: bold;
  color: var(--primary);
  font-size: 1.125rem;
  display: none;
}

@media (min-width: 640px) {
  .nav-logo-text {
    display: inline;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

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

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #0d3818;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(26, 94, 32, 0.9) 50%, var(--accent) 100%);
  padding: 5rem 0 8rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  background-color: var(--secondary);
  border-radius: 50%;
  filter: blur(3rem);
  opacity: 0.1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  background-color: var(--accent);
  border-radius: 50%;
  filter: blur(3rem);
  opacity: 0.1;
}

.hero .container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.6s ease-in-out;
}

.hero-tag {
  color: rgba(245, 245, 240, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  color: var(--primary-foreground);
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero p {
  font-size: 1.125rem;
  color: rgba(245, 245, 240, 0.9);
  max-width: 28rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background-color: #c49664;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-foreground);
  border: 2px solid var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
}

.btn-outline:hover {
  background-color: rgba(245, 245, 240, 0.1);
}

.hero-image {
  position: relative;
  height: 24rem;
  animation: slideInRight 0.6s ease-out;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background-color: var(--background);
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

/* ============================================
   About Section
   ============================================ */
.about {
  padding: 5rem 0;
  background-color: var(--background);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about .container {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: slideInLeft 0.6s ease-out;
}

.about h2 {
  font-size: 2.25rem;
  color: var(--primary);
}

.about p {
  font-size: 1.125rem;
  color: rgba(44, 44, 44, 0.8);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(0, 137, 123, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.875rem;
  color: rgba(44, 44, 44, 0.7);
}

.about-image {
  position: relative;
  height: 24rem;
  animation: slideInRight 0.6s ease-out;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
}

/* ============================================
   Work Section
   ============================================ */
.work {
  padding: 5rem 0;
  background-color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeIn 0.6s ease-out;
}

.section-header h2 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: rgba(44, 44, 44, 0.7);
  max-width: 42rem;
  margin: 0 auto;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background-color: var(--card);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.card-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.875rem;
  color: rgba(44, 44, 44, 0.7);
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
}

.card-link:hover {
  color: #006b63;
}

/* ============================================
   Team Section
   ============================================ */
.team {
  padding: 5rem 0;
  background-color: var(--background);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  background-color: var(--card);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
}

.team-card-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.team-card-content {
  padding: 1.5rem;
}

.team-card h3 {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.team-card p {
  font-size: 0.875rem;
  color: rgba(44, 44, 44, 0.7);
}

.team-view-btn {
  display: inline-block;
  margin-top: 3rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--primary-foreground);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="20" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.1;
}

.cta .container {
  position: relative;
  z-index: 10;
}

.cta h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-foreground);
}

.cta p {
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 2rem;
  color: rgba(245, 245, 240, 0.9);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.btn-light {
  background-color: var(--primary-foreground);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-light:hover {
  background-color: rgba(245, 245, 240, 0.9);
}

/* ============================================
   Footer
   ============================================ */
footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h4 {
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--primary-foreground);
}

.footer-section p {
  color: rgba(245, 245, 240, 0.8);
  font-size: 0.875rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(245, 245, 240, 0.8);
  font-size: 0.875rem;
}

.footer-section ul li a:hover {
  color: var(--primary-foreground);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: rgba(245, 245, 240, 0.8);
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(245, 245, 240, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: rgba(245, 245, 240, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 245, 240, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(245, 245, 240, 0.7);
  font-size: 0.875rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .nav-links {
    gap: 0.5rem;
  }
}
