/* Global Styles */
:root {
  --primary-color: #fad02c; /* Yellow from company logo */
  --primary-color-rgb: 250, 208, 44;
  --secondary-color: #000000; /* Black */
  --secondary-color-rgb: 0, 0, 0;
  --accent-color: #fad02c; /* Yellow accent to maintain brand consistency */
  --accent-color-rgb: 250, 208, 44;
  --text-color: #e4e6eb;
  --light-text: #f4f4f4;
  --bg-dark: #121212;
  --bg-darker: #0a0a0a;
  --bg-light: #1e1e1e;
  --card-bg: #252525;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);

  /* Font sizes adjusted for Shadows Into Light */
  --heading-1: 3.5rem;
  --heading-2: 2.8rem;
  --heading-3: 2rem;
  --paragraph: 1.3rem;
  --small-text: 1.1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6; /* Adjusted line height for Montserrat font */
  color: var(--text-color);
  background-color: var(--bg-dark);
  letter-spacing: 0.01em; /* Reduced letter spacing for professional font */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 100px 0;
  scroll-margin-top: 80px; /* Ensures anchor links account for fixed header */
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; /* Standard font size for buttons */
  letter-spacing: 0.02em;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
  text-transform: uppercase; /* More professional look */
}

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

.btn-primary:hover {
  background-color: #001a4b;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(0, 32, 91, 0.1);
  transform: translateY(-2px);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.4rem; /* More professional size */
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  margin-bottom: 0.8rem;
  letter-spacing: 0.01em; /* Less letter spacing for Montserrat */
  font-weight: 700;
  text-transform: uppercase; /* More professional look */
}

.header-line {
  height: 3px;
  width: 60px;
  background-color: var(--secondary-color);
  margin: 0 auto;
  position: relative;
  margin-top: 10px;
}

/* Header */
header {
  background: rgba(0, 0, 0, 0.75); /* Darker background for better visibility */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

header.sticky {
  padding: 15px 0;
  background-color: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px; /* Increased max-width for better spacing */
  padding: 0 30px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 160px; /* Increased from 110px to 160px */
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  /* Remove transition to prevent smooth resizing */
  transition: none;
}

/* Prevent logo from shrinking on scroll */
header.scrolled .logo img {
  max-height: 160px;
  height: auto;
}

.header-left,
.logo {
  min-height: 160px; /* Match the increased logo size */
  display: flex;
  align-items: center;
}

nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  margin-left: 40px; /* Add space between logo and nav */
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: space-between;
  max-width: 700px; /* Control the spread of menu items */
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 10px 5px;
  position: relative;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.nav-links a:before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
}

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

.nav-links a:hover:before,
.nav-links a.active:before {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent-color);
  font-weight: 600;
}

/* Header scroll effect */
header.scrolled {
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.9);
}

header.scrolled .logo img {
  height: 50px; /* Still visible but slightly smaller when scrolled */
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 32, 91, 0.8), rgba(0, 32, 91, 0.9)),
    url('../images/yego.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  color: var(--light-text);
  margin-top: 0;
  padding-top: 80px;
}

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

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* About Section */
.about {
  background-color: var(--bg-darker);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  color: var(--primary-color);
  font-size: var(--heading-3);
  margin-bottom: 20px;
  margin-top: 35px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  margin-bottom: 20px;
  font-weight: 300;
  line-height: 1.8;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Services Section */
.services {
  background-color: var(--bg-dark);
}

.services.parallax-section {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(135deg, #1a2a3a, #0a1525);
}

.services-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8),
    rgba(0, 10, 30, 0.9)
  );
  z-index: -1;
}

.services .section-header h2 {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-tagline {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

/* Combined Service Card */
.combined-service-card {
  background: rgba(37, 37, 37, 0.7);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  max-width: 900px;
}

.service-items-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Style for the last service item (centered) */
.service-items-container .service-item:last-child {
  grid-column: 1 / span 2;
  width: 80%;
  margin: 0 auto;
  justify-content: center;
}

.service-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.2);
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(52, 152, 219, 0.3);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 22px;
  color: var(--accent-color);
  min-width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  background: rgba(52, 152, 219, 0.15);
  transition: all 0.3s ease;
}

.service-item:hover .service-icon {
  background: rgba(52, 152, 219, 0.25);
  transform: scale(1.05);
  color: #fff;
}

.service-content {
  flex: 1;
}

.service-content h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-weight: 600;
}

.service-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Projects Section */
.projects {
  background-color: var(--bg-darker);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.project-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
  background-color: var(--card-bg);
}

.project-info h3 {
  color: var(--primary-color);
  font-size: var(--heading-3);
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--bg-dark);
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.testimonial {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 500px;
  flex: 1;
}

.testimonial-content {
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content p {
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  font-size: var(--paragraph);
  letter-spacing: 0.01em;
  position: relative;
  padding: 0 15px;
}

/* Add elegant quote marks to testimonials */
.testimonial-content p::before {
  content: '"';
  font-size: 2rem;
  position: absolute;
  left: -5px;
  top: -10px;
  color: var(--primary-color);
  opacity: 0.6;
  font-family: Georgia, serif;
}

.testimonial-content p::after {
  content: '"';
  font-size: 2rem;
  position: relative;
  margin-left: 3px;
  color: var(--primary-color);
  opacity: 0.6;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-image img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* Contact Section */
.contact {
  background-color: var(--bg-darker);
}

.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info,
.contact-form {
  flex: 1;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.info-icon {
  color: var(--primary-color);
  font-size: 24px;
  margin-right: 15px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(52, 152, 219, 0.2);
  border-radius: 50%;
}

.info-text h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  background-color: #333;
  color: var(--text-color);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo,
.footer-links,
.footer-social {
  margin-bottom: 20px;
}

.footer-logo img.footer-img-logo {
  max-width: 150px;
  margin-bottom: 15px;
}

.footer-links h3,
.footer-social h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a,
.social-icons a {
  color: var(--light-text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover,
.social-icons a:hover {
  color: var(--accent-color);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Client Logos Section */
.client-logos {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 30px;
}

.client-logo {
  width: 170px;
  height: 100px;
  margin: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* New client text styling to replace missing logo images */
.client-text {
  width: 170px;
  height: 100px;
  margin: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg);
  border-radius: 6px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.client-text:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--primary-color);
}

.client-text h3 {
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 5px;
}

.client-text p {
  font-size: var(--small-text);
  color: var(--text-color);
}

/* WhatsApp Chat Button Styles */
.whatsapp-chat-btn {
  position: fixed;
  right: 32px;
  bottom: 90px;
  z-index: 1200;
  background: #25d366;
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  font-size: 2rem;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-chat-btn:hover,
.whatsapp-chat-btn:focus {
  background: #1ebe57;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

/* Ensure scroll-to-top button is always visible above WhatsApp button */
.scroll-to-top {
  position: fixed;
  right: 32px;
  bottom: 24px;
  z-index: 1100;
  display: block !important;
}

/* Media Queries */
@media screen and (max-width: 992px) {
  .about-content,
  .contact-content {
    flex-direction: column;
  }

  .about-image {
    order: -1;
  }
}

@media screen and (max-width: 768px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 80px;
    background-color: var(--bg-light);
    flex-direction: column;
    width: 100%;
    text-align: center;
    transform: translateY(-120%);
    transition: all 0.3s ease;
    z-index: 998;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .hamburger {
    display: block;
  }

  /* 
  Note: Hamburger animations handled in header-fix.css to avoid conflicts
  .hamburger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active .line2 {
    opacity: 0;
  }

  .hamburger.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  */
}

@media screen and (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .section-header h2 {
    font-size: 28px;
  }
}
