/* 
    GmanTech Solutions Ltd - Main Stylesheet
    Fully responsive design for all screen sizes
*/

/* ======= GLOBAL STYLES ======= */
:root {
  --primary-color: #0066cc;
  --secondary-color: #004d99;
  --accent-color: #ff6600;
  --text-color: #333333;
  --light-text: #ffffff;
  --dark-bg: #222222;
  --light-bg: #f9f9f9;
  --gray-bg: #f0f0f0;
  --border-color: #dddddd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px; /* Accounts for fixed header */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

section {
  padding: 5rem 0;
}

/* ======= HEADER STYLES ======= */
header {
  position: relative; 
  background-color: #ffffff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.logo {
  max-width: 120px;
}

.logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%; /* Circular logo */
}

.company-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  position: absolute;
  left: 60%;
  transform: translateX(-50%);
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}


.toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

/* ======= HERO SECTION ======= */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/Bg\ .png');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  text-align: center;
  padding: 8rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-container {
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ======= ABOUT SECTION ======= */
.about {
  background-color: var(--light-bg);
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-content {
  max-width: 800px;
  text-align: center;
}

.mission-vision {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.mission, .vision {
  flex: 1;
  min-width: 250px;
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.mission:hover, .vision:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mission h3, .vision h3 {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.mission h3 i, .vision h3 i {
  margin-right: 10px;
  font-size: 1.5rem;
}

/* ======= SERVICES SECTION ======= */
.services {
  background-color: white;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}

.service-item {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  background-color: var(--light-bg);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-item h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

/* ======= PORTFOLIO SECTION ======= */
/* Portfolio Section */
.portfolio {
  background: var(--light-bg);
}

.portfolio h2 {
  margin-bottom: 4rem;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2.5rem;
}

.portfolio-box {
  position: relative;
  border-radius: 2rem;
  box-shadow: 0 0 1rem var(--dark-bg);
  overflow: hidden;
  display: flex;
  transition: var(--transition);
}

.portfolio-box:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.portfolio-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-box:hover img {
  transform: scale(1.1);
}

.portfolio-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1), var(--primary-color));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 4rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.portfolio-box:hover .portfolio-layer {
  transform: translateY(0);
}

.portfolio-layer h4 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.portfolio-layer p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.tech-used {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-used span {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
}

.portfolio-layer a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  background: var(--text-color);
  border-radius: 50%;
}

.portfolio-layer a i {
  font-size: 2rem;
  color: var(--secondary-color);
}


/* ======= TESTIMONIALS SECTION ======= */
.testimonials {
  background-color: white;
  text-align: center;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  min-width: 100%;
  padding: 2rem;
  box-sizing: border-box;
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-color);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-card h4 {
  color: var(--primary-color);
  margin-bottom: 0;
}

/* ======= CONTACT SECTION ======= */
.contact {
  background-color: var(--light-bg);
  text-align: center;
}

.contact p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.input-group label i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

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

.btn-submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit:hover {
  background-color: var(--secondary-color);
}

.contact-info {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: left;
}

.contact-info h3 {
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.contact-info p i {
  margin-right: 1rem;
  font-size: 1.5rem;
}

.contact-info a {
  color: white;
  text-decoration: underline;
}

.contact-info a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.social-links a {
  color: white;
  font-size: 1.8rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* ======= DONATE SECTION ======= */
.donate-section {
  background-color: var(--dark-bg);
  color: white;
  padding: 3rem 0;
}

.donate-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.donate-card h3 {
  color: white;
  margin-bottom: 1rem;
}

#donate-button-container {
  margin: 1.5rem 0;
}

#paystack-donate-container {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#paystack-donate-container input {
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.mobilemoney-btn {
  background: linear-gradient(90deg, #4cd964 0%, #cc0000 100%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.mpesa-part {
  background-color: #4cd964;
  padding: 0.5rem 1rem;
  border-radius: 4px 0 0 4px;
}

.airtel-part {
  background-color: #cc0000;
  padding: 0.5rem 1rem;
  border-radius: 0 4px 4px 0;
}

/* ======= FOOTER ======= */
.footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-box {
  flex: 1;
  min-width: 250px;
}

.footer-box h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-box h3:after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  margin-top: 8px;
}

.footer-box ul li {
  margin-bottom: 0.8rem;
}

.footer-box a {
  color: #ccc;
  transition: var(--transition);
}

.footer-box a:hover {
  color: white;
  margin-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-divider {
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
}

.credit {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}

.credit a {
  color: var(--accent-color);
}

.privacy-link {
  display: block;
  text-align: center;
  color: #ccc;
  font-size: 0.9rem;
}

/* ======= WHATSAPP FLOAT ======= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ======= POPUP STYLES ======= */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-color);
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--accent-color);
}

.popup-poster {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.offer-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.offer-btn:hover {
  background-color: var(--primary-color);
}

/* ======= COOKIE BANNER ======= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
}

.cookie-banner p {
  margin: 0;
  text-align: center;
}

.cookie-banner button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-banner button:hover {
  background-color: var(--accent-color);
}

/* ======= ANIMATIONS ======= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ======= RESPONSIVE STYLES ======= */
@media (min-width: 768px) {
  .company-name {
      display: block;
  }
  
  .hero h1 {
      font-size: 3.5rem;
  }
}

@media (max-width: 991px) {
  html {
      font-size: 15px;
  }
  
  section {
      padding: 4rem 0;
  }
}

@media (max-width: 767px) {
  html {
      font-size: 14px;
  }
  
  h1 {
      font-size: 2.2rem;
  }
  
  h2 {
      font-size: 1.8rem;
  }
  
  section {
      padding: 3rem 0;
  }
  
  header {
      padding: 1rem;
  }
  
  .toggle-btn {
      display: block;
  }
  
  nav {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: white;
      box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
  }
  
  nav.active {
      max-height: 300px;
  }
  
  .nav-links {
      flex-direction: column;
      padding: 1rem;
  }
  
  .nav-links li {
      margin: 0;
      text-align: center;
  }
  
  .nav-links a {
      display: block;
      padding: 0.8rem 0;
  }
  
  .hero {
      padding: 5rem 0;
  }
  
  .hero h1 {
      font-size: 2rem;
  }
  
  .mission-vision {
      flex-direction: column;
  }
  
  .contact-content {
      flex-direction: column;
      align-items: center;
  }
  
  .contact-form, .contact-info {
      width: 100%;
  }
}

@media (max-width: 480px) {
  html {
      font-size: 13px;
  }
  
  .hero h1 {
      font-size: 1.8rem;
  }
  
  .portfolio-container {
      grid-template-columns: 1fr;
  }
  
  .services-container {
      grid-template-columns: 1fr;
  }
  
  .footer-container {
      flex-direction: column;
      text-align: center;
  }
  
  .footer-box h3:after {
      margin: 8px auto 0;
  }
  
  .social-icons {
      justify-content: center;
  }
}

