:root {
    --primary-color: #1a3a5f;
    --secondary-color: #3a6ea5;
    --accent-color: #f55c00;
    --light-bg: #f8f9fa;
    --dark-text: #121212;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-text);
    line-height: 1.5;
    overflow-x: hidden;
}

p:last-child {
  margin-bottom: 0;
}

/* Header Styles */
.navbar {
    background-color: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}
.navbar-brand img {
  max-width: 100%;
  max-height: 64px;
}
.brand-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 500;
  color: var(--primary-color);
  text-align: center;
  font-size: 17px;
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

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

.navbar-toggler,
.navbar-toggler:focus {
  border: none;
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
}
.hero-section .hero-description {
  font-size: 1.5rem;
  margin-top: 1.25rem;
}
.hero-section .content-image {
  text-align: right;
  margin-right: 20px;
}
.hero-section .content-image img {
  transform: rotate(8deg);
  position: relative;
  width: 80%;
}
.hero-section .btn {
  margin-top: 20px;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 0;
}

.section-title.center {
    display: block;
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 40px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

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

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-description {
    color: #666;
    font-size: 0.95rem;
}

/* Taglines Section */
.taglines-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
}
.taglines {
  font-size: 1.75rem;
  text-align: center;
}

/* Numbers Section */
.numbers-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px 0;
}

.numbers-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.number-item {
    text-align: center;
    padding: 20px;
    min-width: 200px;
}

.number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.number-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cs-name h3 {
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 0;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.75;
    text-align: justify;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
}
.contact-section:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url(../images/contacts.jpg) center top no-repeat;
  opacity: .1;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white;
}

.contact-section .section-title::after {
    background-color: white;
}

.contact-form {
    max-width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

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

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 5px;
    padding: 15px;
}
textarea.form-control {
  resize: none;
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}
.form-control.errorMsg{ box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.8);}
.form-control.errorMsg:focus{ outline: 0; box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.8);}
div.errorMsg,
div.captchaError{ color: #ff0000; font-size: .875rem; line-height: 1.5rem;}

.btn-submit {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px 28px;
    backdrop-filter: blur(10px);
    height: 100%;
}

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

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-text {
    flex: 1;
    padding-top: 6px;
}

.contact-info-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-text p {
    margin: 0;
    line-height: 1.6;
}

.contact-info-text a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-text a:hover {
    color: var(--accent-color);
}
.contact-message{ padding: 20px; background: #e5ffe5; color: #004800; margin-bottom: 20px; z-index: 4; display: flex; flex-flow: column; justify-content: center; border-radius: 5px; display: none; transition: all 0.3s ease;}
.contact-message.text-red{ background: #ffe5e5; color: #480000;}
.contact-message.active{ display: block;}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Responsive Design */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        row-gap: 1.25rem;
        column-gap: 0;
    }
}

@media (max-width: 991px) {
    .brand-text {
      display: none;
    }
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    .cs-name h3 {
      font-size: 1.625rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .navbar {
      padding: 10px 0;
    }
    .navbar-brand {
      font-size: 1.25rem;
    }
    .navbar-brand img {
      max-height: 44px;
    }
    .navbar-nav {
      border-top: 1px solid var(--bs-border-color);
      margin-top: 1rem;
      padding-top: .5rem;
    }
    .hero-section {
      padding: 90px 0 0;
    }
    .hero-section h1 {
      font-size: 2.25rem;
    }
    .hero-section .hero-description {
      font-size: 1.125rem;
    }
    .hero-section .btn {
      margin-top: 10px;
    }
    .section {
      padding: 2.5rem 0;
    }
    .section-subtitle {
      font-size: 1rem;
      margin-bottom: 10px;
    }
    .about-content {
      margin-top: 1.5rem;
    }
    .taglines {
      font-size: 1.5rem;
    }
    .numbers-grid {
      gap: 10px;
    }
    .contact-form {
      padding: 20px;
    }
}

@media (min-width: 1200px) {
  .about-text p {
    line-height: 1.6;
  }
}

@media (min-width: 1400px) {
  .about-text p {
    line-height: 1.75;
  }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.custom-toast {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}