/* ========== GLOBAL RESET & BASE STYLES ========== */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding-top: 90px; /* Keeps space for the fixed navbar */
  font-family: 'Sora', sans-serif;
  background-color: #121212;
  color: #f0f0f0;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  width: 100%; /* Ensure the body takes up full width */
}



h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  color: #ffffff;
}
a {
  color: #2979ff;
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Style for the clickable 'Isaiah George' logo */
.site-title {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.site-title:hover {
  color: #2979ff; /* Change the color when hovering */
}

/* ========== NAVBAR ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #1e1e1e;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.navbar h1 {
  font-size: 1.5rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a.active {
  color: #ffffff;
  font-weight: bold;
  border-bottom: 2px solid #2979ff;
}

/* ========== MOBILE NAVIGATION ========== */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  z-index: 1100;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Show the hamburger icon on mobile */
  }

  /* Default state (menu is hidden) */
.nav-links {
  position: absolute;
  top: 70px;
  right: 20px;
  background: rgba(30, 30, 30, 0.95); /* Transparent background */
  backdrop-filter: blur(6px);         /* Subtle blur for modern glassy look */
  -webkit-backdrop-filter: blur(6px); /* Safari support */
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 2rem;
  border-radius: 10px;
  display: none;
  z-index: 1050;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Shadow for depth */

  /* Animation settings */
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(-20px); /* Initially hidden above */
  opacity: 0; /* Initially hidden */
}

/* When active (on click) */
.nav-links.active {
  display: flex;
  transform: translateY(0); /* Final position */
  opacity: 1; /* Fully visible */
}

  }

/* ========== HERO SECTION ========== */
.hero {
  position: relative; /* Needed to position the parallax background absolutely inside */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  height: 100vh; /* Full screen height */
  padding: 8rem 2rem;
  overflow: hidden; /* Hide overflow from parallax */
  margin-bottom: 6rem;
}

/* Hero text container */
.hero-text {
  width: 100%;
  max-width: 900px;
  text-align: center;
  position: relative; /* ensures it's layered correctly above the parallax bg */
  z-index: 2; /* ensure it's above the background */
  padding: 0 1rem;
}


.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.cta-button {
  background: #2979ff;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  margin: 0 auto; /* center horizontally */
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #1a5cd8;
  transform: scale(1.05);
}

.funnel-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}



/* ========== SECTION LAYOUTS ========== */
.about, .services, .contact, .portfolio-gallery {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 4rem auto;
}
.portfolio {
  padding: 4rem 2rem;
  background: #181818;
}
.portfolio h2,
.portfolio-gallery h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
/* ========== GALLERY ========== */
.gallery,
.image-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);  /* Set 3 columns for desktop */
  margin-top: 2rem;
}

/* For mobile view: 1 column */
@media (max-width: 768px) {
  .gallery,
  .image-grid {
    grid-template-columns: 1fr;  /* 1 column for mobile */
  }
}

.item,
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hover-caption {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #f0f0f0;
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
  border-radius: 0 0 10px 10px;
}

/* Hover effect for caption */
.item:hover .hover-caption,
.image-container:hover .hover-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery .item img,
.image-container img {
  transition: transform 0.3s ease;
}

/* Hover effect for image scaling */
.gallery .item:hover img,
.image-container:hover img {
  transform: scale(1.03);
}

/* ========================
   SERVICES SECTION - PARALLAX
=========================== */
.services {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto 1.5rem auto; /* Adds space below */
  position: relative;
  z-index: 1;
}


.services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #fff;
}

/* === Each Parallax Service Block === */
.service-wrapper {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 420px;
  padding: 4rem 2rem;
  margin-bottom: 5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.service-wrapper:last-of-type {
  margin-bottom: 3rem;
}

/* === Overlay === */
.service-wrapper .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18, 18, 18, 0.55);
  z-index: 1;
}

/* === Service Card Content === */
.service-card {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 3rem 2rem;
  background: transparent;
  text-align: center;
  color: white;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-card .cta-button {
  background: #2979ff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease;
  display: inline-block;
}

.service-card .cta-button:hover {
  background: #1a5cd8;
}

/* === Contact & Portfolio Fix to Prevent Overlap === */
.contact,
.portfolio-gallery {
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background-color: #121212;
}

/* === Responsive Fixes === */
@media (max-width: 768px) {
  .service-wrapper {
    min-height: 360px;
    padding: 3rem 1rem;
  }

  .service-card {
    padding: 2rem 1rem;
  }

  .service-card h3 {
    font-size: 1.5rem;
  }

  .service-card p {
    font-size: 0.95rem;
  }
}

/* Clearfix for .services to contain floated/absolute children */
.services::after {
  content: "";
  display: block;
  clear: both;
}




/* ========== CONTACT SECTION ========== */
.contact ul {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
form input,
form textarea {
  background: #1f1f1f;
  border: 1px solid #333;
  padding: 1rem;
  border-radius: 8px;
  color: white;
  font-family: 'Inter', sans-serif;
}
form button {
  background: #2979ff;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
form button:hover {
  background: #1a5cd8;
}
#confirmation-message {
  color: #2979ff;
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  animation: fadeIn 0.5s ease;
  display: none;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 2rem;
  background: #1a1a1a;
  color: #999;
}
/* ========== BACK TO TOP BUTTON ========== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #2979ff;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0.75rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}
#backToTop:hover {
  background: #1a5cd8;
}

/* ========== ANIMATIONS ========== */
/* Default visibility if JS is off */
section {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

/* Only if JS is working */
.js-enabled section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-enabled section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ========== NAVBAR SCROLL EFFECT ========== */
.navbar.scrolled {
  background: rgba(30, 30, 30, 0.95); /* semi-transparent */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

/* ========== CTA BUTTON HOVER EFFECT ========== */
.cta-button:hover {
  background-color: #1a5cd8;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 18px rgba(41, 121, 255, 0.3);
  transition: all 0.3s ease;
}

/* ========== HERO TEXT ANIMATION ========== */
.hero-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out 0.5s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== IMAGE HOVER SCALE UPGRADE ========== */
.gallery .item:hover img,
.image-container:hover img {
  transform: scale(1.06);
}

  


/* Add top padding for services page */
#services {
  padding-top: 100px;  /* Adjust this based on your navbar height */
}


/* Blog Section */
.blog {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
  background-color: #181818; /* Dark background for contrast */
  color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.blog h2 {
  font-size: 2.5rem;
  color: #2979ff; /* Highlight color for the blog heading */
  text-align: center;
  margin-bottom: 2rem;
}

/* Blog Post Titles */
.blog h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  color: #ffffff; /* Light color for headings */
  margin-bottom: 1rem;
  transition: color 0.3s ease; /* Transition for hover effect */
}

.blog h3:hover {
  color: #1a5cd8; /* Change color on hover */
}

/* Blog Post Preview */
.blog .post p {
  font-family: 'Sora', sans-serif;
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Read More Button */
.read-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #2979ff; /* Blue color for the button */
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Button effects */
}

.read-more:hover {
  background-color: #1a5cd8; /* Darker blue when hovered */
  transform: translateY(-2px); /* Slight lift effect */
}

.read-more:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(41, 121, 255, 0.5); /* Focused state with glow */
}

/* BLOG1-IMAGE */
.blog1-image {
  max-width: 100%;
  width: 400px;
  height: auto;
  margin: 2rem auto;
  display: block;
  border-radius: 8px;
}

/* ========== EMAIL POPUP ========== */
.lead-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  padding: 0 1rem;
  justify-content: center;
  align-items: center;
}

.lead-popup.visible {
  display: flex;
  animation: slideDown 0.4s ease forwards;
}

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




.popup-content {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
  color: #fff;
  animation: fadeIn 0.4s ease;
}

.popup-content h2 {
  margin-top: 0;
  color: #2979ff;
}

.popup-content input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  margin: 1rem 0;
  border-radius: 6px;
  border: 1px solid #333;
  background: #121212;
  color: #fff;
}

.popup-content button {
  background: #2979ff;
  color: white;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup-content button:hover {
  background: #1a5cd8;
}

#closePopup {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 480px) {
  .popup-content {
    width: 90%;
    padding: 1.5rem;
  }

  .popup-content h2 {
    font-size: 1.3rem;
  }

  .popup-content p {
    font-size: 1rem;
  }

  .popup-content input[type="email"] {
    font-size: 0.9rem;
  }

  .popup-content button {
    font-size: 0.9rem;
  }
}

/* ========== SERVICES.HTML PAGE-SPECIFIC ========== */
.page-services {
  max-width: 1000px;
  margin: 4rem auto 2rem auto;
  padding: 4rem 2rem 2rem;
}

.page-services h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 3rem;
  color: #fff;
}

.page-services .service-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.page-services .service-card {
  background-color: #181818;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

.page-services .service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.page-services .service-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.page-services .cta-button {
  background: #2979ff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  color: white;
  transition: background 0.3s ease;
  display: inline-block;
  margin-top: 1rem;
}

.page-services .cta-button:hover {
  background: #1a5cd8;
}

/* Responsive */
@media (max-width: 768px) {
  .page-services {
    padding: 3rem 1rem 2rem;
  }

  .page-services .service-card {
    padding: 1.5rem;
  }

  .page-services .service-card h3 {
    font-size: 1.5rem;
  }

  .page-services .service-card p {
    font-size: 0.95rem;
  }
}

/* ========== FOOTER ========== */
.footer-btn {
  color: #fff;
  background: #2979ff;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s ease;
}

.footer-btn:hover {
  background: #1a5cd8;
}






