:root {
    --charcoal: #212529;
    --yellow: #FFC766;
    --light-grey: #F8F9FA;
    --gold-gr:linear-gradient( 90deg,#905E26, 50% #F5EC9B, 100% #905E26) ;
    --dark-yellow: #EFBF04;
    --text-primary:var(--charcoal);
    --text-secondary:white;
    --text-tertiary: var(--yellow)
   

}


/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    overflow-x: hidden !important; 
}

.h2, h2{
    font-weight: 600;
    margin-bottom: 1rem;
}

.h1, h1 {
    font-weight: 700;
}
.p, p{
font-size: 1.125rem;
}

.lead{
    font-weight: 400 !important;
}

.display-4{
    font-weight: 700;
}

section {
    padding-top: 4rem;
    padding-bottom: 4rem;

}
footer section{
    padding-top: 0 ;
    padding-bottom: 0;
}

/* Navigation */


.navbar {
    background-color: none;
    transition: all 0.3s ease; 
    z-index: 20;
}
.dark{
    background-color: var(--charcoal);
}

.navbar-scroll {
    background-color: #212529;
    transition: all 0.3s ease; 
}

.navbar-toggler{
    color: white;
}


.logo{ 
    position: absolute;
    top:0;
}
.small{
    position: static;
    height: 68px;
    transform: all  0.5s ease;
}
 
.large{
    position: absolute;
    top:0;
    height: 160px;
    background-color: var(--charcoal);
    padding: 1rem;
    border-bottom: 2px solid #ac883b;
    border-radius: 0 0 90px 90px;
    transform: all  0.5s ease;
}


.nav-link {
    color: white !important;
    transition: color 0.3s ease;
    font-size: 1.25rem;
}

.nav-link:hover {
    color: var(--yellow) !important;
}

.nav-item{
    border-radius: 0.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.nav-item:hover{
    
    border-radius: 1rem;
    border: 1px solid var(--yellow);
    transform: translateY(-2px);
}
.mobile-overlay{
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 15;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 700px;
    background-image: linear-gradient(#0009 40%, #0009 40%), url(../images/hero.jpeg);
    background-position: 0 0, 55%;
    background-size: auto, cover;
    position: relative;
    overflow: hidden;
}




/* Services Section */

.services {
    background-color: var(--light-grey);
    justify-content: center;
    z-index: 10;
  
}

.bg-services1{
    z-index: -1;
    position: absolute;
    left:0%;
    bottom:0%;
}
.bg-services2{
    z-index: -1;
    position: absolute;
    right:0%;
    bottom:0%;
}




.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border-bottom-style: solid;
    border-bottom-width: 4px;
    border-bottom-color: #905F26;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    color: var(--yellow);
}

/* Control Center Card Specific Styles */
.service-card .control-center-icon {
    width: 100%;
    max-width: 240px;
    height: auto;
    transition: transform 0.3s ease;
}

.service-card{
    margin-bottom: 1.5rem;
}

.sub{
    background-color: white;
    border-bottom: 3px solid #905F26;
    border-radius: 1rem 1rem 3rem 3rem;
    padding-top: 4rem;  
}
.service-card:hover .control-center-icon {
    transform: scale(1.05);
}

/* Contact Section */
.contact{
    background-color: var(--light-grey);
    z-index: 0;
}

.contact-sec{
    z-index: 5;
}

.contact-container{
    background-color: var(--charcoal);
    color: white;
    border-radius: 0.75rem;
}
.contact-card {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-control {
    padding:  0.6rem 1rem;
    border: 1px solid var(--charcoal);
    border-radius: 1.5rem;
    transition: border-color 0.3s ease;
}

 .form-control:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 0.2rem rgba(241, 212, 47, 0.356);
}

.contact-card textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-container{
    background-color: white;
    border-radius: 0.75rem;
    border-color: var(--charcoal);
}

.form-check-input{
    border: 1px solid var(--yellow);
}
.form-check-input:checked{
    background-color: var(--dark-yellow);
    box-shadow: 0 0 0 0.25rem var(--yellow);
}
.form-check-input:focus{
    box-shadow: 0 0 0 0.25rem var(--yellow);
}

.bg-contacts{
position: absolute;
right: 0%;
bottom: 0%;
z-index: -1;
}

/* Buttons */
.btn: :active{
    background-color: var(--dark-yellow);
}

.btn-secondary:active {
    background-color: var(--dark-yellow);
  }

.btn-primary {
    background-color: var(--yellow)!important;
    color: var(--charcoal) !important;
    border: none;
    border-radius: 32px;
    padding: 0.8rem 2rem;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background-color: var(--dark-yellow) !important;
    transform: translateY(-2px) !important;
    color: var(--charcoal);
}

.btn-secondary {
    margin-top: auto;
    border-radius: 32px;
    background-color: rgba(255, 255, 255, 0);
    border-width: 1px;
    border-color: var(--yellow);
    color: var(--charcoal);
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--dark-yellow);
    border-color: var(--dark-yellow);
    transform: translateY(-2px);
}

.btn-menu {
    
    border-radius: 32px;
    background-color: rgba(255, 255, 255, 0);
    border-width: 1px;
    border-color: var(--yellow);
    color: white;
    padding: 0.6rem 2rem;
    font-weight: 400 !important;
    transition: all 0.3s ease;
}

.btn-menu:hover {
    background-color: var(--dark-yellow);
    border-color: var(--dark-yellow);
    transform: translateY(-2px);
}
.Btn-icon{
    display: flex;
    border-radius: 96px;
    background-color: rgba(255, 255, 255, 0);
    color: white;
    border-width: 1px;
    border-color: var(--yellow);
    justify-content: center;
    align-items: center;
    height: 48px;
    width: 48px;
    padding: 0;
    transition: all 0.3s ease;

}

.Btn-icon:hover {
    background-color: var(--dark-yellow);
    border-color: var(--dark-yellow);
    transform: translateY(-2px);
}


.line {
    fill: none;
    stroke: rgb(255, 255, 255);
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
      stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .line1 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
  }
  .line2 {
    stroke-dasharray: 60 60;
    stroke-width: 6;
  }
  .line3 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
  }
  .opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }
  .opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 6;
  }
  .opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }
  


/* Alert Styles */
.alert {
    margin-bottom: 2rem;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsive Design */

@media (max-width: 360px){
    .large{
        height: 120px;
    }
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .service-card .control-center-icon {
        max-width: 200px;
    }
    
    .contact-card {
        padding: 2rem;
    }
    .bg-sub{
        display: none;
    }
  
  
}


@media (min-width:768px ){
    .contact-container{
        max-width: 260px;
    }
}
@media (max-width: 992px){
    .navbar-collapse .colapse{
        width: 100vw;
        margin: 0;
    
        background-color: var(--charcoal);
        padding: 3rem;
       
    }
    
    .nav-item:hover{
        border: none;
        transform: translateY(-2px);
    }
    
    .nav-link{
        text-align: end;
    }
    .bg-contacts{
        display: none;
    }

    .bg-services1{
        display: none;
    }
    
    .bg-services2{
        display: none;
    }

    .bg-footer{
        display: none;
    }
   
    .navbar {
        background-color: var(--charcoal);
        transition: all 0.3s ease; 
    }
    .hero {
        height: 60vh;
        min-height: 600px;
    padding-top: 5rem;}
}

.navbar-collapse .colapse{
 
    padding: 3rem;
   
}


.about-features li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-image-container {
    padding: 2rem;
    background: var(--charcoal);
    border-radius: 1rem;
}

.about-image-container img {
    width: 100%;
    min-width: 280px;
    max-width: 320px;
    height: auto;
    opacity: 0.9;
}
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    animation: fadeIn 0.3s ease-in;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border: 1px solid #198754;
    color: #0f5132;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #842029;
}

.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-loading button[type="submit"] {
    position: relative;
    padding-right: 2.5rem;
}

.form-loading button[type="submit"]::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}


/*footer*/
.footer {
    background-color: var(--charcoal);
    padding: 2rem 0;
    color: white;
    z-index: 0;
}
.bg-footer{
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    margin: 0 auto;
    z-index: 1; 
}

.footer-sec{

    z-index: 10;
}



.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
 

  /*SubPage design*/
  .hero-sub{
    background-color: var(--light-grey);
    padding-top: 5rem !important;
  }
  

  .fa-regular{
    color: var(--yellow);
  }

  .bg-sub{
    z-index: -3;
    position: absolute;
    bottom: 0%;
    right:0%
  }

  .content-sec{
    z-index: -5;
  }


/*Fade-in animation */
 .in-view {
     animation: fade 0.8s 0.1s ease-in both;
 }

 @keyframes fade{
    0% {
        opacity: 0;
        transform: translateY(-80px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
 }

/* -- hoover -- */

.service-card.sub {
  overflow: hidden;
}

.partner-logo-link .control-center-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  border: none;
  transform-origin: center center;
}

.partner-logo-link .control-center-icon:focus,
.partner-logo-link .control-center-icon:active {
  outline: none;
  border: none;
}

.partner-logo-link:hover .control-center-icon {
  transform: scale(1.4);
	}