:root {
    --primary-color: #8ddb03;
    --white: #3a3a3a;
    --accent-color: #2998e9;
    --light-color: #ecfdde;
    --black:#000000;
    --dark-color: #343a40;
    --text-color: #333;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor:default;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow: hidden;
    
}



h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
    cursor:pointer;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color:var(--white);
}

.section-description {
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--white);
}

    /* Landing Container--------------------------------------------- */
.landing-container {
    height:100svh;
    width:100svw;
   position:absolute;
   top:0;
    z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100svh;
        background-color: #000000;
        color: var(--white);
        overflow:hidden;
        font-family: 'Courier New', Courier, monospace;
    }
    
    .typing-container {
        border-right: 2px solid white; /* Cursor effect */
        white-space: nowrap; /* Prevent text wrapping */
        overflow: hidden; /* Hide the text that is not yet typed */
        animation: blink 0.7s step-end infinite; /* Cursor blinking effect */
    }

    #typing-text{
        font-size:2rem;
        font-weight:bold;
        /* color:var(--primary-color); */
    }
    
    @keyframes blink {
        50% {
            border-color: transparent; /* Blink effect */
        }
   }

   .main-container{
    height:100svh;
    width:100svw;
    visibility: hidden;
    display:none;
   }

/* Header------------------------------------------------------------ */
#header {
    background: var(--black);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left:0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    
}

#header .container{
    display:flex;
    align-items: center;
    justify-content: space-between;
}

header.scrolled {
    padding: 10px 0;
    background: var(--black);
}



nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--white);
}

/* Hero Section--------------------------------------------------------- */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('Media/b4AftHero.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 70px;
}

.hero-content {
    position: relative;
    left:2svw;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero img{
    width:740px;
    height:600px
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
}

/* Services Section------------------------------------------------- */
.services {
    padding: 80px 0;
    background: var(--light-color);
    /* content-visibility: auto; */
}

.services h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--black);
}

.section-description{
    color:var(--dark-color)
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--black);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition); 
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color:var(--primary-color)
}

.service-card p {
    color: var(--white);
}

/* Why------------------------------------------------------------- */
.why-choose-us {
    padding: 80px 0;
    background: var(--black);
    /* content-visibility: auto; */
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--white);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 5px;
     transition: var(--transition);
}

.feature:hover{
transform:translateX(-3px)
}

.feature i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color:var(--primary-color)
}

.feature p {
    color: var(--black);
}

/* Portfolio----------------------------------------------------------- */
.portfolio {
    padding: 80px 0;
    background: var(--light-color);
    /* content-visibility: auto; */
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--black);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    /* background:white; */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height:100%;
    border-radius: 5px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transform: translateY(100%);
    transition: all .5s ease-in-out;
}

.portfolio-overlay img{
   width: 100%;
    height:100%; 
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 14px;
    opacity: 0.8;
}

/* About--------------------------------------------------------------- */
.about {
    padding: 80px 0;
    background: var(--black);
    /* content-visibility: auto; */
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 5px;
    box-shadow: var(--shadow);
    height:400px;
    width:300px;
}

.about-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
    color:var(--white);
}

.certifications {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    color:var(--white);
}

.certifications i{
    color:var(--primary-color)
}

/* Testimonials---------------------------------------------------------- */
.testimonials {
    padding: 80px 0;
    background: var(--light-color);
    /* content-visibility: auto; */
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--black);
}

.testimonial-slider {
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
   
    
}

.testimonial {
    background: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    text-align: center;
    display: none;
     height:236px;
}

.testimonial.active {
    display: block;
}

.testimonial p {
    font-style: italic;
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.client-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.client-info p {
    font-style: normal;
    font-size: 14px;
    color: var(--dark-color);
}

.slider-controls {
    position: absolute;
    top: 90%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.slider-controls button {
    background: #0434d16c;
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: var(--accent-color);
}

/* Contact-------------------------------------------------------------- */
.contact {
    padding: 80px 0;
    background: var(--black);
    /* content-visibility: auto; */
  
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-form p {
    margin-bottom: 30px;
    color: var(--white);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 127, 42, 0.2);
}

.contact-info {
    background: var(--light-color);
    padding: 30px;
    border-radius: 5px;

}

.contact-info h3 {
    color: var(--black);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.info-item {
    display: flex;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.service-area h4 {
    margin-bottom: 10px;
    color: var(--black);
}

.service-area p {
    color: var(--dark-color);
    font-size: 14px;
}

/* Footer ------------------------------------------------------------*/
footer {
    background: var(--black);
     background-image: linear-gradient(120deg, var(--dark-color), black);
  background-size: 20px 20px;
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col{
    text-align: center;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col img{
    height: 100px;
    width:123px;
}

.footer-bottom {
    border-top: 1px solid var(--white);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom a {
    color: #aaa;
    margin: 0 10px;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* Media queries----------------------------------------------------------- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .about .container,
    .contact .container {
        grid-template-columns: 1fr;
    }
    
    .about-image,
    .contact-info {
        order: -1;
    }
    
    .about-image {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
    #typing-text{
        font-size:1.5rem;    
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }
    #typing-text{
        font-size:1.25rem;    
    }
}

@media (max-width: 450px){
.hero {
    background: url('Media/paulsTruck.webp') no-repeat center center/cover; 
}

.overlay {
    width: 100%;  
}

   .testimonial{
    height:40svh
   }
  
   #typing-text{
        font-size:.75rem;    
    }
}

@media (max-width: 310px){
 #typing-text{
        font-size:.65rem;    
    }
}