/* AgaShu Softech Solutions - Consolidated Styles
   Combines essential styles from: layout-fixes.css, text-visibility-fixes.css, and inline styles
   Created: July 13, 2025
*/

/* === Core Layout & Typography === */
body {
  font-family: 'Poppins', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  color: #ffffff;
  padding-top: 70px; /* Added to account for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

p {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

a {
  color: #ffffff;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

hr {
  border-color: rgba(255,255,255,0.5);
}

/* Fix for scrolling sections */
section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* === Navigation === */
.custom-navbar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background-color: #667eea !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
  padding: 10px 0 !important;
}

.navbar-header, .navbar-nav {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.navbar-collapse {
  display: block;
  visibility: visible;
  opacity: 1;
}

.navbar-collapse.collapse {
  display: block !important;
  height: auto !important;
  padding-bottom: 0;
  overflow: visible !important;
}

.navbar-toggle {
  display: none;
}

.navbar-nav {
  float: right;
  margin: 0;
}

.navbar-nav > li {
  float: left;
}

.navbar-nav > li > a {
  padding-top: 15px;
  padding-bottom: 15px;
}

.navbar-nav li a {
  color: #ffffff !important;
  font-weight: bold;
  padding: 10px 15px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.logo-link img {
  height: 50px;
  max-width: 200px;
  display: block;
  filter: brightness(0) invert(1);
}

/* === Section Styles === */
.section-title strong {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.section-title .heading {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* === Service Cards === */
.service-card {
  float: left;
  width: 33.33%;
  padding: 15px;
  box-sizing: border-box;
}

.service-box {
  background: white;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-box h3,
.service-box p,
.service-box .service-number,
.service-box i {
  color: #333333 !important;
  text-shadow: none !important;
}

.service-icon-wrapper {
  margin-bottom: 20px;
  text-align: center;
}

.service-icon-wrapper i {
  font-size: 36px;
  color: #667eea !important;
  transition: transform 0.3s ease;
}

.service-box:hover .service-icon-wrapper i {
  transform: scale(1.2);
}

.service-number {
  font-size: 16px;
  font-weight: bold;
  color: #999 !important;
  position: absolute;
  bottom: 15px;
  right: 20px;
}

.medium-icon {
  font-size: 36px;
  line-height: 1;
  display: inline-block;
}

/* === Portfolio Section === */
.iso-section {
  padding: 30px 0;
}

.filter-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 0;
  list-style: none;
}

.filter-wrapper li {
  display: inline-block;
  margin: 5px;
}

.filter-wrapper li a {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 10px 20px;
  display: inline-block;
  text-decoration: none;
  font-weight: bold !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
  transition: all 0.3s ease;
}

.filter-wrapper li a:hover,
.filter-wrapper li a.selected {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* New Portfolio Text-based Styles */
.portfolio-text-section {
  margin-top: 40px;
}

.portfolio-text-item {
  margin-bottom: 30px;
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  min-height: 350px;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.portfolio-icon {
  text-align: center;
  margin-bottom: 20px;
}

.portfolio-icon i {
  font-size: 48px;
  color: #667eea;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-card h3 {
  color: #333333 !important;
  text-shadow: none !important;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.portfolio-card p {
  color: #666666 !important;
  text-shadow: none !important;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.portfolio-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portfolio-features li {
  color: #333333 !important;
  text-shadow: none !important;
  font-size: 14px;
  margin-bottom: 8px;
  padding-left: 0;
}

/* Remove old portfolio item styles that are no longer needed */
.portfolio-item {
  display: none;
}

.portfolio-overlay {
  display: none;
}

/* === Contact Form === */
#contact input,
#contact textarea {
  background-color: rgba(255,255,255,0.9);
  color: #333;
  border: 1px solid rgba(255,255,255,0.5);
  margin-bottom: 15px;
}

#contact input[type="submit"] {
  background-color: #667eea;
  color: white;
  font-weight: bold;
  border: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* === Footer === */
.social-icon {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  padding: 0;
  list-style: none;
}

.social-icon li {
  display: inline-block;
  margin: 0 10px;
}

.social-icon a {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
}

/* === Preloader === */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sk-spinner-circle .sk-circle {
  background-color: #667eea;
}

/* === Responsive Styles === */
@media (max-width: 767px) {
  body {
    padding-top: 60px;
  }
  
  .service-card {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    padding: 15px;
  }
  
  .navbar-nav li a {
    text-align: center;
    padding: 10px;
  }
  
  /* Portfolio mobile styles */
  .portfolio-text-item {
    margin-bottom: 20px;
  }
  
  .portfolio-card {
    padding: 20px;
    min-height: auto;
  }
  
  .portfolio-icon i {
    font-size: 36px;
  }
  
  .portfolio-card h3 {
    font-size: 20px;
  }
  
  .portfolio-card p {
    font-size: 14px;
    text-align: left;
  }
  
  .portfolio-features li {
    font-size: 13px;
  }
  
  .filter-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-wrapper li {
    margin: 5px 0;
    width: 80%;
    text-align: center;
  }
  
  .filter-wrapper li a {
    display: block;
    width: 100%;
    padding: 12px;
  }
}
