/* 
   Modern Website Styles for United BOS
*/

:root {
  --primary-color: #6c63ff;
  --secondary-color: #4d47b7;
  --accent-color: #f13c45;
  --text-color: #333;
  --light-text: #f5f5f5;
  --background: #f8f9fa;
  --dark-background: #343a40;
  --section-padding: 5rem 0;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
  overflow-x: hidden;
}

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

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 2.5rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.8rem;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  padding: 0 15px;
  flex: 1;
}

.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background-color: transparent;
  transition: var(--transition);
}

.header.scrolled {
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 0.7rem 0;
}

.header.scrolled .logo,
.header.scrolled .nav-link {
  color: var(--text-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light-text);
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  color: var(--light-text);
  font-weight: 500;
  position: relative;
}

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

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

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--light-text);
  transition: var(--transition);
}

.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../../../images/pic01.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--light-text);
  position: relative;
}

.hero-text {
  text-align: left;
  max-width: 800px;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

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

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

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--light-text);
  color: var(--light-text);
}

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

section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.about {
  background-color: white;
}

.about-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services {
  background-color: var(--background);
}

/* Add spacing between rows in the Services section */
.services .row {
    row-gap: 2rem; /* Adjust the gap as needed */
}

.service-box {
  padding: 2rem;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: var(--transition);
  text-align: center;
  height: 100%;
}

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

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

.projects {
  background-color: white;
}

.project-card {
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.project-img {
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-img img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
  background-color: white;
}

.contact {
  background-color: var(--background);
}

.contact-form .form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

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

.footer {
  background-color: var(--dark-background);
  color: var(--light-text);
  padding: 4rem 0 1rem;
}

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

.text-center {
  text-align: center;
}

@media screen and (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero-text h1 {
    font-size: 3.5rem;
  }
}

@media screen and (max-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 1.5rem 0;
  }
  
  .nav-link {
    color: var(--text-color);
  }
  
  .header.scrolled .bar {
    background-color: var(--text-color);
  }
}

@media screen and (max-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
