/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e50;
}

h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  color: #2c3e50;
}

p {
  margin-bottom: 1rem;
  color: #666;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
  background-color: #e67e22;
  color: white;
}

.btn-secondary:hover {
  background-color: #d35400;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease, transform 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Navbar hide/show animation */
.navbar.nav-hidden {
  transform: translateY(-100%);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 120px;
}

.nav-logo h2 {
  color: #3498db;
  margin: 0;
  font-size: 1.5rem;
  text-align: left;
}

/* Logo Styles */
.logo-img {
  height: 160px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.gas-safe-img {
  height: 74px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #3498db;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: #3498db;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: #e67e22;
  color: white !important;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #d35400;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section - Black */
.hero {
  background: #000000;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.hero h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: white;
}

.hero-tagline {
  font-size: 1.2rem;
  color: #bdc3c7;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-features .feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #bdc3c7;
  font-weight: 500;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  overflow: hidden; /* Prevent horizontal scroll */
}

.hero-content {
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-weight: 500;
}

.feature-icon {
  font-size: 1.2rem;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Hero Benefits List */
.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
}

.benefit-item {
  display: flex;
  align-items: flex-start; /* Change to flex-start for proper alignment */
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.benefit-tick {
  width: 30px;
  height: 30px;
  background: #27ae60;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.benefit-content h3 {
  margin: 0 0 0.25rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left; /* Ensure left alignment */
}

.benefit-content p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left; /* Ensure left alignment */
}

/* Section Headers */
.section-title-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-flame-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section - White */
.about {
  background: white;
  padding: 60px 0;
}

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

.about h2 {
  text-align: left;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-highlights {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.highlight {
  text-align: center;
}

.highlight h3 {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.highlight p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.about-image img {
  width: 100%;
}

.gas-safe-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gas-safe-about-img {
  height: 60px;
  width: auto;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.gas-safe-about-img:hover {
  transform: scale(1.05);
}

/* Services Section - Black */
.services {
  padding: 80px 0;
  background: #000000;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.services-bottom-row {
  display: none;
}

.service-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid #3498db;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

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

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* Gallery Section - White */
.gallery {
  background: white;
  padding: 80px 0;
}

.gallery-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.slide {
  display: none;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slide.active {
  display: block;
}

.project-image {
  position: relative;
  background: white;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.project-image img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slide-caption {
  padding: 2rem;
  text-align: center;
  background: white;
}

.slide-caption h4 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.slide-caption p {
  color: #666;
  margin: 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.slider-dots {
  text-align: center;
  margin-top: 2rem;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: #3498db;
}

/* Mobile adjustments for gallery */
@media (max-width: 768px) {
  .project-image {
    min-height: 300px;
    padding: 0.5rem;
  }

  .project-image img {
    max-height: 300px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .slider-wrapper {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .project-image {
    min-height: 250px;
  }

  .project-image img {
    max-height: 250px;
  }
}

/* Testimonials Section - Black */
.testimonials {
  padding: 80px 0;
  background: #000000;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.testimonial-rating {
  color: #f39c12;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.star {
  margin-right: 2px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.6;
}

.testimonial-author strong {
  color: #2c3e50;
  font-weight: 600;
  display: block;
}

.testimonial-author span {
  color: #666;
  font-size: 0.9rem;
}

/* Testimonials CTA */
.testimonials-cta {
  text-align: center;
  margin-top: 3rem;
}

.testimonials-cta .btn {
  font-size: 1.1rem;
  padding: 16px 32px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonials-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

/* FAQ Section - White */
.faq {
  background: white;
  padding: 80px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #e9ecef;
}

.faq-question h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.faq-toggle {
  font-size: 1.2rem;
  color: #3498db;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 200px;
}

.faq-answer p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* Contact Section - Light Gray */
.contact {
  padding: 80px 0;
  background: #f8f9fa;
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.contact-details h3 {
  margin-bottom: 0.5rem;
}

.contact-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-details p {
  margin: 0.5rem 0 0 0;
  color: #666;
  font-size: 0.9rem;
}

.contact-cta {
  background: #f8f9fa;
  padding: 2.5rem 2rem;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #e9ecef;
}

.cta-content h3 {
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
  color: #666;
}

.cta-content .btn {
  display: block;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: #000000;
  color: white;
  padding: 3rem 0 1rem;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
  color: #bdc3c7;
  margin-bottom: 0.5rem;
}

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

.footer-section ul li {
  padding: 0.25rem 0;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #3498db;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background: #3498db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  color: white;
}

.social-links a:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #95a5a6;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal a {
  color: #95a5a6;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: white;
}

/* Flame Icon Styles */
.flame-icon {
  background: none !important;
}

.flame-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 100px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 0;
  }

  .nav-menu a {
    padding: 0.5rem;
    display: block;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
    text-align: center !important;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .hero-features {
    justify-content: center;
    gap: 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .before-after-container {
    grid-template-columns: 1fr;
  }

  .before-after-item img {
    height: 250px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  /* Responsive logo adjustments */
  .logo-img {
    height: 140px; /* Reduced height for mobile */
    max-width: 90%; /* Ensure it doesn't touch screen edges */
    object-fit: contain;
  }

  /* Adjust nav container height for mobile */
  .nav-container {
    height: 100px; /* Reduced from 120px for mobile */
    padding: 0 15px;
  }

  .flame-img {
    width: 40px;
    height: 40px;
  }

  .hero-benefits {
    max-width: 100%;
    gap: 1rem;
  }

  .benefit-item {
    padding: 0.75rem;
  }

  .benefit-tick {
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }

  .benefit-content h3 {
    font-size: 1rem;
    text-align: left; /* Ensure left alignment on mobile */
  }

  .benefit-content p {
    font-size: 0.85rem;
    text-align: left; /* Ensure left alignment on mobile */
  }

  /* Mobile flame icon positioning */
  .section-title-with-icon {
    flex-direction: column;
    gap: 0.5rem;
  }

  .container {
    padding: 0 15px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero {
    padding: 140px 0 60px; /* Increased from 100px to account for fixed header */
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 120px 0 40px; /* Further adjusted for small phones */
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .service-card,
  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .contact-cta {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  /* Responsive logo adjustments */
  .logo-img {
    height: 140px; /* Even smaller for very small screens */
    max-width: 85%;
    object-fit: contain;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .nav-container {
    height: 90px; /* Smaller header on tiny screens */
    padding: 0 10px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
.contact-link:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    background: #0000ff;
    border: 2px solid #ffffff;
  }

  .btn-secondary {
    background: #ff0000;
    border: 2px solid #ffffff;
  }
}

/* Update text colors for black sections */
.services h2,
.testimonials h2 {
  color: white;
}

.services .section-header p,
.testimonials .section-header p {
  color: #bdc3c7;
}

/* Update text colors for white sections */
.gallery h2,
.faq h2 {
  color: #2c3e50;
}

.gallery .section-header p,
.faq .section-header p {
  color: #666;
}

/* Vertibase Credit */
.vertibase-credit {
  position: absolute;
  bottom: 15px;
  right: 20px;
  font-size: 0.75rem;
  color: #fff;
}

.vertibase-credit a {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.vertibase-credit .verti {
  color: #fff;
}

.vertibase-credit .base {
  color: #00b0f0;
}

/* Mobile Responsiveness - Footer Updates */
@media (max-width: 768px) {
  .vertibase-credit {
    position: static;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #fff;
  }
}

@media (max-width: 480px) {
  .vertibase-credit {
    margin-top: 1rem;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 50px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, #2980b9, #1f5f8b);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

/* Mobile adjustments for scroll button */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
