/* Global styles for Data.Kolawoles Analytics Portfolio
   Uses only the colors defined in app.json */

:root {
  /* Colors from app.json */
  --color-background: #FFFFFF;
  --color-accent: #F85C70;
  --color-text: #212529;
  --color-secondary: #FDFDFE;
  
  /* Derived colors (still based on the main colors) */
  --color-accent-light: rgba(248, 92, 112, 0.1);
  --color-accent-hover: rgba(248, 92, 112, 0.8);
  --color-background-alt: rgba(248, 92, 112, 0.05);
  --color-shadow: rgba(33, 37, 41, 0.1);
  --color-border: rgba(33, 37, 41, 0.15);
  
  /* Additional semantic variables */
  --section-padding: 25px 0;
  --heading-font-weight: 700;
  --text-muted: rgba(33, 37, 41, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 76px; /* For fixed header */
  scroll-behavior: smooth;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--heading-font-weight);
  margin-bottom: 1rem;
  color: var(--color-text);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  margin-bottom: 1rem;
}

.text-accent {
  color: var(--color-accent);
}

/* Header styles */
header {
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 0.35rem 0;  /* Reduced from 0.75rem */
  transition: all 0.3s ease;
  min-height: 56px;  /* Reduced from default */
}

.navbar {
  padding: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-brand i {
  margin-right: 8px;  /* Reduced margin */
  font-size: 1.5rem;  /* Slightly smaller icon */
}

.navbar-toggler {
  border: none;
  color: var(--color-accent);
  font-size: 1.5rem;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Navigation */
.navbar-nav {
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--color-text);
  font-weight: 600;
  padding: 0.35rem 0.75rem;  /* Reduced padding */
  transition: all 0.3s ease;
  position: relative;
  line-height: 1.4;  /* Tighter line height */
}

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

.nav-link.active {
  color: var(--color-accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--color-accent);
}

/* Hero section */
.hero-section {
  padding: 2rem 0 1.5rem;
  background-color: var(--color-background);
  position: relative;
  overflow: hidden;
}

.hero-content {
  padding-right: 2rem;
}

.hero-content .subtitle {
  display: block;
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.hero-content .job-title {
  color: var(--color-text);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

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

.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 80%;
  border: 5px solid var(--color-background);
}

/* Content area */
.content {
  flex: 1;
  transition: opacity 0.3s ease;
}

/* Section styles */
.section-title {
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.section-heading {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: 700;
}

.section-heading::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-content {
  margin-bottom: 2rem;
}

/* Card styles */
.card {
  background-color: var(--color-background);
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--color-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

/* Privacy Notice styles */
.privacy-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  padding: 0.25rem 0;
}

.privacy-notice .bi-shield-lock {
  font-size: 0.9rem;
  color: var(--color-accent);
  opacity: 0.8;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--color-shadow);
  border-left: 3px solid var(--color-accent);
}

/* Card alignment styles */
.row.justify-content-center > [class^="col-"] {
  display: flex;
}

/* Fix for showcase.js missing closing div */
.card .d-flex.flex-wrap.gap-2 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}

.card-header {
  background-color: var(--color-secondary);
  padding: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.card-header h2, .card-header h4 {
  margin: 0;
  color: var(--color-accent);
}

.card-body {
  padding: 1.25rem;
}

.card-img-top {
  height: 180px;
  object-fit: cover;
}

/* Skill cards */
.skill-card {
  background-color: var(--color-background);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--color-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--color-shadow);
  border-left: 3px solid var(--color-accent);
}

.skill-title {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.skill-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-background);
  transform: translateY(-3px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-background);
  transform: translateY(-3px);
}

/* About section */
.about-section {
  padding: 5rem 0;
}

/* Showcase section */
.showcase-section {
  padding: 5rem 0;
  background-color: var(--color-background-alt);
}

.showcase-gallery {
  margin-top: 2rem;
}

/* Contact section */
.contact-section {
  padding: 5rem 0;
}

.contact-form {
  background-color: var(--color-background);
}

.form-control {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.25rem var(--color-accent-light);
}

/* Footer */
footer {
  background-color: var(--color-secondary);
  color: var(--color-text);
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

/* Footer Quick Links */
.quick-links {
  margin-top: 0.5rem;
}

.quick-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.quick-links a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Footer Social Links */
.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.social-links a {
  color: var(--color-accent);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--color-accent-hover);
  transform: translateY(-3px);
  transform: translateY(-3px);
}

/* Animation classes */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Background elements */
.bg-light {
  background-color: var(--color-background-alt) !important;
}

.shadow {
  box-shadow: 0 5px 15px var(--color-shadow) !important;
}

/* Helper classes */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

/* Floating Home Button Styles */
.floating-home-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  background: #F85C70;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.floating-home-btn:hover {
  background: #d94c5c;
}

/* Floating Home/Parent/Back Icon */
.floating-home-icon {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 6px;
  width: 56px;
  height: 56px;
  transition: box-shadow 0.2s;
  color: #dc3545;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-home-icon:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  background: #f8f9fa;
}

@media (max-width: 600px) {
  .floating-home-icon {
    left: auto;
    right: 16px;
    transform: none;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-content {
    text-align: center;
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  /* Tablet header adjustments */
  header {
    padding: 0.3rem 0;
    min-height: 52px;
  }

  .navbar-brand i {
    font-size: 1.4rem;
    margin-right: 7px;
  }

  /* Adjust body padding for medium sized header */
  body {
    padding-top: 52px;
  }
  body {
    padding-top: 66px;
  }
  
  .navbar-collapse {
    background-color: var(--color-background);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--color-shadow);
    margin-top: 1rem;
  }
  
  /* Tablet card optimizations */
  .card {
    font-size: 0.9rem;
  }
  
  h1, h2 {
    margin-bottom: 0.75rem;
  }
  
  h3, h4, h5 {
    margin-bottom: 0.5rem;
  }
  
  p {
    margin-bottom: 0.75rem;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  /* Responsive footer */
  footer .row {
    flex-direction: column;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
    margin-top: 1.5rem;
  }
  
  .quick-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .section-title {
    padding: 1rem 0 0.5rem;
  }
}

/* Mobile Styles */
@media (max-width: 576px) {
  /* Compact header for mobile */
  header {
    padding: 0.25rem 0;
    min-height: 48px;
  }

  .navbar-brand i {
    font-size: 1.3rem;
    margin-right: 6px;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .navbar-toggler {
    padding: 0.25rem;
    font-size: 1.3rem;
  }

  /* Adjust mobile nav items */
  .navbar-collapse {
    padding: 0.5rem 0;
  }

  .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.95rem;
  }

  /* Adjust body padding for smaller header */
  body {
    padding-top: 48px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  /* Reduce card padding on mobile */
  .card-body {
    padding: 1rem;
  }
  
  /* Make card images smaller on mobile */
  .card-img-top {
    height: 150px;
  }
  
  /* Reduce padding on icon containers */
  .card-img-top,
  .card-img-container {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  
  /* Reduce margins and paddings globally on mobile */
  .row > [class^="col-"] {
    margin-bottom: 0.75rem !important;
  }
  
  /* Reduce padding on all sections */
  section {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  
  /* Make vertical spacing more compact */
  .py-3, .pt-3, .pb-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
  
  /* Reduce paragraph margins */
  p.lead {
    margin-bottom: 0.75rem;
    font-size: 1rem;
  }
  
  /* Adjust padding for section contents */
  .section-content {
    margin-bottom: 1rem;
  }
    gap: 0.5rem;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .section-heading {
    font-size: 1.8rem;
  }
}

/* Let's Connect Section Styles */
.connect-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  padding: 1.5rem;
  color: white;
  margin: 1rem 0;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.connect-banner:hover {
  transform: translateY(-5px);
}

.connect-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.email-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1.25rem;
  color: var(--color-accent);
  background-color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.email-link:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* About page specific styles for CTA */
.about-cta-section .connect-banner {
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: white;
}

.about-cta-section .connect-title {
  color: white;
}

/* Bootstrap icon styling for image fallbacks */
.card-img-container .bi,
.card-img-top .bi,
.text-center .bi {
  display: inline-block;
  padding: 1.5rem;
  border-radius: 50%;
  background-color: var(--color-background-alt);
  color: var(--color-accent);
  transition: all 0.3s ease;
  font-size: 2.5rem !important;
  width: 120px;
  height: 120px;
  line-height: 60px;
  box-shadow: 0 5px 15px rgba(248, 92, 112, 0.1);
}

.card-img-container .bi:hover,
.card-img-top .bi:hover,
.text-center .bi:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(248, 92, 112, 0.2);
}

/* Global spacing reduction */
.section-content h3, .section-content h4, .section-content h5, .section-content h6 {
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 0.75rem;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
