/* 
* Pest Control Company Landing Page - Tajoura, Libya
* Main Stylesheet
*/

/* ===== VARIABLES ===== */
:root {
    /* Brand Colors */
    --primary-color: #1a472a; /* Dark Green */
    --secondary-color: #f47c20; /* Orange */
    --light-color: #ffffff;
    --dark-color: #333333;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --section-bg: #f5f5f5;
    --hover-color: #15371f;
    
    /* Typography */
    --body-font: 'Aktiv Grotesk Arbc', 'Arial', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 15px;
    
    /* Box Shadow */
    --card-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

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

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    max-width: 150px;
}

.logo img {
    max-height: 60px;
}

nav {
    display: flex;
    align-items: center;
}

.language-switcher {
    margin: 0 20px;
    display: flex;
    align-items: center;
}

.language-switcher a {
    padding: 5px 8px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.language-switcher a.active {
    color: var(--secondary-color);
}

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

.language-switcher .separator {
    color: var(--primary-color);
    margin: 0 5px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-weight: 600;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('contentent and logos/pattren (1).png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: linear-gradient(135deg, var(--light-bg) 25%, transparent 25%),
                      linear-gradient(225deg, var(--light-bg) 25%, transparent 25%);
    background-size: 20px 20px;
    background-color: var(--primary-color);
    opacity: 0.1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-left: 20px;
}

.hero-content h1 {
    margin-bottom: 15px;
    font-weight: 800;
    font-size: 2.8rem;
    line-height: 1.3;
    position: relative;
    padding-right: 15px;
}

.hero-content h1::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 5px;
}

.hero-content .slogan {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(244, 124, 32, 0.1);
    border-radius: 30px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--dark-color);
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    margin-left: 15px;
    margin-bottom: 10px;
    padding: 15px 35px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background-color: var(--secondary-color);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

.hero-image img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--section-padding);
    background-color: var(--section-bg);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('contentent and logos/pattren (1).png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.03;
    z-index: 0;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background-color: var(--secondary-color);
    opacity: 0.1;
    border-radius: 0 0 0 100px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--dark-color);
    font-size: 1.05rem;
}

.location {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 30px;
    margin-top: 15px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.location:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.location i {
    margin-left: 10px;
    font-size: 18px;
}

.about-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--secondary-color);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.3;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: var(--hover-shadow);
}

.location i {
    margin-left: 8px;
    color: var(--secondary-color);
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--section-padding);
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.service-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.service-icon-circle.dark {
    background-color: #1a1a1a;
}

.service-icon-circle.yellow {
    background-color: #ffde00;
}

.service-icon-circle i {
    font-size: 36px;
    color: #ffde00;
}

.service-icon-circle.yellow i {
    color: #1a1a1a;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.service-divider {
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-top: auto;
}

.services-footer {
    text-align: center;
    max-width: 800px;
    margin: 20px auto 0;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('contentent and logos/pattren (1).png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.02;
    z-index: 0;
}

.services .section-header {
    position: relative;
    z-index: 1;
}

.services .section-header h2 {
    display: inline-block;
    position: relative;
}

.services .section-header h2::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -20px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.service-card {
    background-color: var(--light-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-icon {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    background-color: rgba(244, 124, 32, 0.1);
    width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--secondary-color);
    color: var(--light-color);
    transform: rotateY(360deg);
    transition: transform 0.8s ease, background-color 0.3s ease, color 0.3s ease;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover h3 {
    color: var(--secondary-color);
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-us {
    padding: var(--section-padding);
    background-color: var(--section-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 10px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.testimonial-author p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.slider-controls {
    text-align: center;
    margin-top: 30px;
}

.slider-controls button {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background-color: var(--secondary-color);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--section-padding);
    background-color: var(--light-color);
    position: relative;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 50%;
    background-image: url('image-removebg-preview(2).png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    opacity: 0.05;
    z-index: 0;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.contact-info {
    flex: 1;
}

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

.info-item i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-left: 15px;
}

.contact-form {
    flex: 1;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('contentent and logos/pattren (1).png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.03;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-logo .slogan-footer {
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 600;
    margin: 10px 0;
}

.footer-logo .est {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    margin-top: 10px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--light-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-size: 20px;
}

.footer-links h3:after,
.footer-contact h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.footer-links ul li:hover {
    transform: translateX(-5px);
}

.footer-links a,
.footer-contact p,
.footer-social a {
    color: var(--light-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover,
.footer-contact a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-left: 15px;
    color: var(--secondary-color);
    font-size: 18px;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 10px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.social-icons a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container,
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .hero-content,
    .about-text,
    .contact-info,
    .contact-form {
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .cta-button {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .service-icon-circle {
        width: 70px;
        height: 70px;
    }
    
    .service-icon-circle i {
        font-size: 30px;
    }
}

/* Mobile menu when active */
.nav-active {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    z-index: 999;
}

.nav-active li {
    margin: 10px 0;
    text-align: center;
}

/* Animation classes for AOS */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos].aos-animate {
    transform: translateY(0) translateX(0);
}
