/*
    Theme Name: Elevate Web Solutions
    Theme URI: https://elevatewebsolutions.com
    Author: Your Name
    Author URI: https://yourwebsite.com
    Description: A sleek, modern, and professional WordPress theme for web development businesses.
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: custom-background, custom-logo, custom-menu, featured-images, responsive-layout, seo-friendly
*/

* {
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #252525;
}

html {
  scroll-behavior: smooth;
}

header {
  height: auto;
  background: #252525;
  color: #F9FAFB;
  padding: 0;
  margin: 0;
  text-align: center;
  overflow: hidden;
  user-select: none;
}

header a {
  width: fit-content;
  font-size: 22px;
  color: #F9FAFB;
  text-decoration: none;
  font-weight: bold;
  margin: 0;
  padding: 20px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

header a:hover {
  color: #00E0FF;
}

header h1 {
  font-size: 2.7em;
  color: #00E0FF;
}

.header-center {
  display: none;
}

/* Navigation */
/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: relative;
  padding: 0;
}

/* Center the Title */
.nav-center {
  position: absolute;
  left: 1%;
  /*transform: translateX(-50%);*/
  white-space: nowrap; /* Prevents text from wrapping */
}

/* Navigation Menu */
.nav-links {
  display: flex; /* Ensure horizontal alignment */
  list-style: none;
  margin: 0;
  margin-left: auto; /* Push navigation links to the right */
  transition: right 0.4s ease-in-out;
}

.navbar li {
  display: inline-block;
  margin-left: 15px; /* Add spacing between links */
}

.nav-links.active {
  right: 0; /* Slide-in animation */
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  height: 50px;
  width: 50px;
  z-index: 100;
  padding: 0;
  margin: 0;
  background: #252525;
  border: 1px solid #00E0FF;
  border-radius: 4px;
}

.bar {
  width: 30px;
  height: 4px;
  background-color: white;
  margin: 0 auto;
  margin-top: 9px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Fix Burger Menu Animation */
.burger-menu.active .bar:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}

.burger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .bar:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}

/* About Section Layout */
#about {
  background: #252525;
  display: flex;
  align-items: center; /* Aligns text and image vertically */
  justify-content: space-between; /* Spaces elements evenly */
  max-width: 1400px; /* Adjust width as needed */
  height: 86vh; /* Takes up 90% of the screen height */
  margin: 0 auto; /* Centers the section */
  padding: 40px;
  gap: 50px; /* Adds space between text and logo */
  color: white;
  text-align: center;
}

/* Text Container */
.about-text {
  flex: 1; /* Allows text to take available space */
  max-width: 700px; /* Ensures readability */
}

/* Styling for Headings & Paragraphs */
.about-text h2 {
  font-size: 2.4em;
  font-weight: bold;
  margin-bottom: 50px;
  color: #00E0FF;
}

.about-text p {
  font-size: 1.25em;
  line-height: 1.6;
  margin: 0;
  margin-bottom: 50px;
}

/* CTA Button */
.get-in-touch-long {
  margin-top: 30px;
  background: none;
  color: white;
  padding: 10px 10px;
  text-decoration: none;
  border: 1px solid #00E0FF;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-size: 18px;
}

.get-in-touch {
  display: none;
}

.about-text a:hover {
  border: 1px solid #22D3EE;
  background-color: #6366F1;
  cursor: pointer;
}

/* Apply fade-in animations on load and scroll */
.about-text, .logo {
  opacity: 0; /* Initially hidden */
  transform: translateY(40px); /* Starts slightly lower */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* When elements are in view */
.about-text.show, .logo.show {
  opacity: 1;
  transform: translateY(0);
}

/* Floating animation for the logo */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); } /* Moves up */
  100% { transform: translateY(0); } /* Moves back */
}

/* Logo Container */
.logo {
  flex: 1; /* Makes logo responsive */
  max-width: 550px; /* Adjust as needed */
  height: auto;
  border-radius: 360px;
  animation: float 3s ease-in-out infinite; /* Idle floating animation */
}

#services {
  height: auto;
  background: #353535;
  color: white;
  display: block;
  text-align: center;
  padding: 20px;
}

#services h2 {
  color: #00E0FF;
  padding-bottom: 10px;
  font-size: 2em;
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Aligns left & right boxes lower */
  gap: 20px; /* Space between service boxes */
  text-align: center;
}

.service-wrapper {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Service Box */
.service-box {
  position: relative;
  width: 100%; /* Adjust as needed */
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #00E0FF;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Left & Right Boxes Slide In From Bottom */
.service-box {
  transform: translateY(60px);
}

/* Center Box Slides In From Top */
.center-box {
  transform: translateY(-60px);
}

/* When in view, make them visible */
.center-box.show {
  opacity: 1;
  transform: translateY(0);
}

.service-box.show {
  opacity: 1;
  transform: translateY(0);
}

/* Image Styling */
.service-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Overlay Effect */
.overlay {
  position: absolute;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay */
  backdrop-filter: blur(1.2px);
  color: white;
  text-align: center;
  padding: 15px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
}

.overlay h2 {
  font-size: 2.5em;
}

.overlay p {
  font-size: 1.5em;
  padding: 0 20px;
}

/* Adjustments for Staggered Effect */
.center-box {
  margin-bottom: 0; /* Lifts center box */
}

/* Text Positioning */
.side-description {
  max-width: 500px;
  color: white;
  margin-bottom: 30px;
  font-size: 1.4em;
}

.side-description-mobile {
  display: none;
  max-width: 500px;
  color: white;
  margin-bottom: 30px; /* Moves center description below box */
  font-size: 1.4em;
}

.center-description {
  max-width: 500px;
  color: white;
  margin-top: auto;
  margin-bottom: 100px; /* Moves center description below box */
  font-size: 1.4em;
}

#contact {
  height: auto;
  background: #252525;
  text-align: center;
  padding: 50px 20px;
  color: white;  
}

#contact h2 {
  color: #00E0FF;
  font-size: 2em;
  margin-bottom: 50px;
}

#contact p {
  font-size: 1.6em;
  margin-bottom: 80px;
}

#simple-contact-form {
  background: none;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  padding: 0 20px;
  border-radius: 5px;
  border: 1px solid #00E0FF;
  opacity: 0;
  transform: translateX(-60px); /* Move from the left */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* When in view, make it visible */
#simple-contact-form.show {
  opacity: 1;
  transform: translateX(0);
}

#simple-contact-form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  font-size: 18px;
}

#simple-contact-form input, #simple-contact-form textarea {
  background: none;
  width: 100%;
  padding: 8px 0;
  margin-top: 5px;
  color: white;
  border: 1px solid #00E0FF;
  border-radius: 4px;
  text-align: center;
  font-size: 18px;
}

#simple-contact-form input:focus, #simple-contact-form textarea:focus {
  background: none;
  width: 100%;
  padding: 8px 0;
  margin-top: 5px;
  color: white;
  border: 1px solid #00E0FF;
  border-radius: 4px;
  text-align: center;
  font-size: 18px;
}

#simple-contact-form button {
  margin: 30px 0;
  background: none;
  color: white;
  padding: 10px 10px;
  text-decoration: none;
  border: 1px solid #00E0FF;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-size: 18px;
}

#simple-contact-form button:hover {
  border: 1px solid #22D3EE;
  background-color: #6366F1;
  cursor: pointer;
}

.success-message {
  color: green;
  margin-top: 15px;
}

.error-message {
  color: red;
  margin-top: 15px;
}

footer {
  background-color: #353535;
  color: white;
  text-align: center;
  padding: 10px 0;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  gap: 15px;
}

.social-links a {
  color: #F9FAFB;
  font-size: 24px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #4338CA;
}

/*Laptop Adjustments*/

@media (max-width: 1440px) {

  .nav-center {
    position: absolute;
    left: 1%;
    transform: translateX(0);
    white-space: nowrap;
  }

  .logo {
    max-width: 350px;
  }

  #services h2 {
    padding-bottom: 10px;
    font-size: 1.8em;
  }

  .service-box {
    height: 350px;
  }

  .overlay h2 {
    font-size: 1.8em;
  }

  .overlay p {
    font-size: 1.2em;
    padding: 0 20px;
  }

  /* Text Positioning */
  .side-description {
    max-width: 500px;
    color: white;
    margin-bottom: 30px;
    font-size: 1.2em;
  }

  .center-description {
    max-width: 500px;
    color: white;
    margin-bottom: 30px;
    font-size: 1.2em;
  }

  #contact h2 {
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
  }

  #contact p {  
    margin-bottom: 20px;
    font-size: 1.4em;
  }
}


/*Tablet Adjustments*/

@media (max-width: 768px) {

  header {
    display: flex;
    text-align: center;
  }

  .header-center {
    display: inline-block;
  }

  .nav-center {
    display: none;
  }

  .burger-menu {
    display: flex;
  }
  .navbar {
    justify-content: flex-end;
    align-items: normal;
    height: 260px;
    width: 210px;
    color: white;
    position: absolute;
    right: 0%;
    overflow: hidden;
    z-index: 1;
    margin-top: 12px;
  }
  .nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    right: -100%; /* Start hidden */
    height: 200px;
    width: 200px;
    background: #252525;
    padding: 0;
    margin: 0;
    margin-top: 55px;
    transition: right 0.4s ease-in-out;
    border: 1px solid #00E0FF;
    border-radius: 4px;
  }

  .navbar li {
    margin: 0;
  }

  #about {
    height: 92vh;
    flex-direction: column;
    gap: 0;
  }

  .about-text h2 {
    margin: 0;
    margin-bottom: 40px;
  }

  .about-text p {
    font-size: 1.2em;
    line-height: 1.6;
    margin: 0;
    margin-bottom: 40px;
  }

  .logo {
    max-width: 300px;
    max-height: 300px;
  }

  #services {
    height: auto;
  }

  .services-container {
    flex-wrap: wrap;
    gap: 0;
  }

  .service-wrapper {
    width: 100%;
  }

  #services h2 {
    padding-bottom: 0;
    font-size: 1.8em;
  }

  .service-box {
    height: 350px;
  }

  .overlay h2 {
    font-size: 1.8em;
  }

  .overlay p {
    font-size: 1.2em;
    padding: 0 20px;
  }

  /* Left & Right Boxes Slide In From Bottom */
  .service-box {
    transform: translateY(0) translateX(-80px);
  }

  /* Center Box Slides In From Top */
  .center-box {
    transform: translateY(0) translateX(-80px);
  }

  .side-description {
    display: none;
  }

  .center-description {
    margin: 0;
    margin: 15px 0;
  }

  .side-description-mobile {
    display: block;
    margin: 15px 0;
  }

}

/*Mobile Adjustments*/

@media (max-width: 425px) {

  .header-center {
    font-size: 1.7em;
    margin: auto 30px;
  }

  #about {
    height: auto;
  }

  .get-in-touch-long {
    display: none;
  }

  .get-in-touch {
    display: block;
    margin-top: 30px;
    background: none;
    color: white;
    padding: 10px 10px;
    text-decoration: none;
    border: 1px solid #00E0FF;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 18px;
  }
}

@media (max-width: 320px) {

  header {
    height: 13vh;
  }

  .header-center {
    margin-top: 60px;
  }

  .navbar {
    margin-top: 0;
  }

  .logo {
    max-width: 200px;
  }

}

/*Blogs Page*/

/* --- Blog Listing Grid --- */
.blog-listing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-title {
  font-size: 1.25rem;
  margin: 1rem;
  flex: none;
}

.blog-title a {
  color: #222;
  text-decoration: none;
}

.blog-excerpt {
  flex: 1;
  margin: 0 1rem 1rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* --- Pagination --- */
.pagination {
  text-align: center;
  margin-top: 2.5rem;
}

.pagination ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
}

.pagination li {
  margin: 0 0.25rem;
}

.pagination a,
.pagination .page-numbers {
  display: block;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}

.pagination .current {
  background: #333;
  color: #fff;
  border-color: #333;
}


/* extra css for posts*/

.single-post {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.5rem;
}

.post-title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.post-content p {
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
