/* Reset + fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: white;
  color: black;
  transition: background 0.3s, color 0.3s;
}

/* Header & Footer font */
.header, .footer {
  font-family: 'Montserrat', sans-serif;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: space-between;
  background: white;
  padding: 1rem 2rem; 
  box-shadow: 0 3px 7px rgba(0,0,0,0.15);
  z-index: 1000;
  height: 70px;
}

/* Logo circular frame */
.logo img {
  height: 40px; /* smaller logo */
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Navigation */
.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s, border-bottom 0.3s;
  padding-bottom: 2px;
}

.nav a:hover {
  color: #005bb5;
}

.nav a.active {
  border-bottom: 2px solid #005bb5;
}

/* Hamburger menu */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: auto;
}

#menu-toggle {
  display: none;
}

/* Responsive navigation for mobile */
@media (max-width: 768px) {
  .nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 2rem;
    top: 70px;
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    text-align: right;
  }

  #menu-toggle:checked + .hamburger + .nav ul {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .nav ul li {
    margin: 0.5rem 0;
  }
}

/* Footer - 3 column layout */
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left, center, right */
  align-items: center;
  background: #f4f4f4;
  padding: 1rem 2rem;
  margin-top: 2rem;
  gap: 1rem;
  transition: background 0.3s, color 0.3s;
  box-shadow: 0 -3px 7px rgba(0,0,0,0.15); /* shadow at the top */
}

/* Left section */
.footer-left {
  text-align: left;
  font-size: 0.9rem;
}

/* Center section */
.footer-center {
  text-align: center;
}

.footer-center p {
  font-size: 0.85rem;
  font-weight: 400;
  margin: 0;
  color: rgba(0,0,0,0.7); /* light mode */
}

/* Right section */
.footer-right {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

/* kofi button */
.footer-right a.kofi img {
  height: 32px;
  width: auto;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.footer-right a.kofi img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Footer icons colors */
.footer-right a.github i { color: #181717; }
.footer-right a.linkedin i { color: #0A66C2; }
.footer-right a.kaggle i { color: #20BEFF; }
.footer-right a.youtube i { color: #FF0000; }

.footer-right a {
  font-size: 1.2rem;
  text-decoration: none;
  transition: transform 0.3s;
}

.footer-right a:hover {
  transform: scale(1.2);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .footer {
    background: #222;
  }

  .footer-left,
  .footer-right a {
    color: #eee;
  }

  .footer-center p {
    color: rgba(255,255,255,0.7); /* subtle white */
  }

  .footer-right a.github i { color: #eee; }
  .footer-right a.linkedin i { color: #0A66C2; }
  .footer-right a.kaggle i { color: #20BEFF; }
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
    margin: 0.5rem 0;
  }

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


/* Main content */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Homepage main section with full-screen background, blur + overlay */
.home-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 70px - 80px);
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Full viewport blurred background image */
.home-main::before {
  content: "";
  position: fixed; /* cover entire viewport */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('background.jpg') center/cover no-repeat;
  filter: blur(6px);
  z-index: -2;
}

/* Translucent overlay for readability - now full viewport */
.home-main::after {
  content: "";
  position: fixed; /* cover entire viewport */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.5); /* light mode overlay */
  z-index: -1;
}

/* Hero section */
.home-main .hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  color: #005bb5; /* updated blue */
}

.home-main .hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.home-main .cta-button {
  padding: 0.75rem 1.5rem;
  background: #005bb5;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
  position: relative;
  z-index: 1;
  display: inline-block;
}

.home-main .cta-button:hover {
  background: #004080;
}

/* CTA row buttons */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.cta-row .cta-button {
  flex: 1 1 auto;
  max-width: 200px;
  text-align: center;
}

/* Who I Help */
.who-i-help-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap; /* stacks on small screens */
  position: relative;
  z-index: 1;
}

.help-card {
  flex: 1 1 250px;
  max-width: 300px;
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(8px); /* glass effect */
  background: rgba(255, 255, 255, 0.4); /* translucent for light mode */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.help-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.help-card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Hover effect */
.help-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Dark mode cards */
@media (prefers-color-scheme: dark) {
  .help-card {
    background: rgba(0, 0, 0, 0.4); /* translucent dark */
    color: #eee;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body { background: #111; color: #eee; }
  .header { background: #222; }
  .footer { background: #222; }

  .nav a { color: #fff; }
  .nav a:hover { color: #3399ff; }
  .nav a.active { border-bottom: 2px solid #3399ff; }

  .home-main::after {
    background: rgba(0,0,0,0.5);
  }

  .why-data ul li { color: #eee; }
}

/* Mobile dropdown menu dark mode */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
  .nav ul { background: #222; }
  .nav ul a { color: #fff; }
  .nav ul a:hover { color: #3399ff; }
  .nav ul a.active { border-bottom: 2px solid #3399ff; }
}

/* Portfolio Hero Section */
.portfolio-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1rem 2rem 1rem;
}

.portfolio-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #005bb5; /* updated blue */
}

.portfolio-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  line-height: 1.5;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.portfolio-item h3 {
  margin: 1rem 0 0.5rem 0;
}

.portfolio-item .see-more {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #005bb5;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.portfolio-item .see-more:hover {
  background: #004080;
}

/* Dark mode portfolio items */
@media (prefers-color-scheme: dark) {
  .portfolio-item { background: #222; color: #eee; }
  .portfolio-item .see-more { background: #3399ff; color: #111; }
  .portfolio-item .see-more:hover { background: #005bb5; color: #fff; }
}

/* ===== Services Section ===== */
.services-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
}

.services-title {
  font-size: 2.5rem;
  color: #005bb5; 
  margin-bottom: 1rem;
}

/* Services Container: two columns side by side on desktop */
.services-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: stretch; /* ensures equal column height */
  justify-content: space-between; /* optional to push columns apart */
}

/* Each column (Business / Data Learners) */
.services-column {
/*   flex: 1 1 300px; /* min-width 300px, stretch equally */ 
  flex: 1 1 calc(50% - 1rem); /* 50% width minus half the gap for spacing */
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 300px;
}

/* Column headings */
.services-column h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #111;
}

/* Individual Service Cards */
.service-card {
  background: #f4f4f4;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,91,181,0.1); /* subtle blue shadow */
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 1; /* ensures all cards in a column are equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keeps button at bottom */
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,91,181,0.2); /* stronger blue on hover */
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #005bb5;
}

.service-card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #111;
  flex-grow: 1; /* ensures text pushes button down evenly */
}

/* Service Buttons */
.service-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #005bb5;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
  align-self: center;
}

.service-btn:hover {
  background: #004080;
  transform: translateY(-2px);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .services-title { color: #3399ff; }

  .services-column h2 { color: #eee; }

  .service-card {
    background: rgba(0,0,0,0.4);
    color: #eee;
    box-shadow: 0 4px 15px rgba(0,91,181,0.15); /* subtle blue shadow in dark mode */
  }

  .service-card:hover {
    box-shadow: 0 10px 25px rgba(0,91,181,0.25); /* stronger blue on hover */
  }

  .service-card h3 { color: #3399ff; }

  .service-card p { color: #ccc; }

  .service-btn {
    background: #3399ff;
    color: #111;
  }

  .service-btn:hover { background: #005bb5; color: #fff; }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .services-main { padding: 2rem 1rem; }
  .services-title { font-size: 2rem; margin-bottom: 2rem; }

  /* Stack columns on small screens */
  .services-container { flex-direction: column; }
  
  .service-card { padding: 1.5rem; }
  .service-btn { width: 100%; text-align: center; }
}

/* ===== Contact Page ===== */
  .contact-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
  }

  .contact-main h1 {
    font-size: 2.5rem;
    color: #005bb5; 
    margin-bottom: 1rem;
  }

  .contact-main p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #111;
  }

  .contact-main p:last-child {
    margin-bottom: 1rem; /* reduced space before FAQ */
  }

  /* ===== FAQ ===== */
  .faq-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
  }

  .faq-container h2 {
    font-size: 2rem;
    color: #005bb5;
    margin-bottom: 1.5rem;
  }

  .faq-item {
    background: #f4f4f4;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,91,181,0.1);
    overflow: hidden;
    transition: box-shadow 0.3s;
  }

  .faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,91,181,0.25);
  }

  .faq-item input {
    display: none;
  }

  .faq-question {
    display: block;
    cursor: pointer;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    position: relative;
  }

  .faq-question::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #005bb5;
    transition: transform 0.3s;
  }

  .faq-item input:checked + .faq-question::after {
    content: "−";
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    text-align: left;
  }

  .faq-item input:checked ~ .faq-answer {
    max-height: 1200px; /* ensures full content shows on mobile */
    padding: 0.5rem 1.5rem 1rem 1.5rem;
  }

  .faq-answer p, .faq-answer li {
    margin: 0.5rem 0;
    color: #555;
  }

  .faq-answer ul {
    padding-left: 1.2rem;
  }

  /* Dark mode */
  @media (prefers-color-scheme: dark) {
    .contact-main p {
      color: #ccc;
    }

    .faq-item {
      background: rgba(0,0,0,0.4);
      color: #eee;
      box-shadow: 0 4px 15px rgba(0,91,181,0.1);
    }

    .faq-item:hover {
      box-shadow: 0 8px 25px rgba(0,91,181,0.25);
    }

    .faq-answer p, .faq-answer li {
      color: #ccc;
    }

    .faq-question::after {
      color: #005bb5;
    }
  }

  /* Responsive tweaks */
  @media (max-width: 768px) {
    .contact-main {
      padding: 2rem 1rem;
    }

    .contact-main h1 {
      font-size: 2rem;
    }

    .contact-main p {
      font-size: 1rem;
    }

    .faq-container h2 {
      font-size: 1.75rem;
    }

    .faq-question {
      font-size: 1rem;
      padding: 0.75rem 1rem;
    }

    .faq-question::after {
      right: 1rem;
      font-size: 1.25rem;
    }

    .faq-answer {
      max-height: 1500px; /* ensures long content fits */
      padding: 0.5rem 1rem 1rem 1rem;
    }

    .faq-answer p, .faq-answer li {
      font-size: 0.95rem;
    }

    .faq-item {
      margin-bottom: 0.6rem;
    }
  }
