@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #34393f;
    --accent-color: #e97a11;
    --action-color: #336559;
    --text-color: #34393f;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-gray);
    border-top: 5px solid var(--action-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Header & Nav */
header {
    background: var(--white);
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--action-color);
}

nav ul li a.btn-contact {
    border-radius: 30px;
}

.btn-contact {
    background: var(--action-color);
    color: var(--white) !important;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

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

/* Hero Slider */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    padding: 1.5rem;
    padding-top: 100px; /* Leave space for header */
    background: var(--white);
}

.hero-swiper {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    position: relative;
    z-index: 10;
    text-align: left;
    color: var(--white);
    max-width: 700px;
    padding: 2rem;
    margin-left: 5%;
}

.slide-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease backwards;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.slide-content .btn-contact {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

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

.swiper-button-next, .swiper-button-prev {
    color: var(--white) !important;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--action-color);
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
section {
    padding: 6rem 5%;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
}

/* Summaries / Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.card-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.card-body {
    padding: 2rem;
}

.card-body h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-body p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border: 2px solid var(--action-color);
    color: var(--action-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--action-color);
    color: var(--white);
}

/* Services Page Specific */
.services-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.services-detail:nth-child(even) {
    direction: rtl;
}

.services-detail:nth-child(even) .service-text {
    direction: ltr;
}

.service-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.service-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

/* Testimonials */
.testimonials {
    background: var(--bg-gray);
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 2rem;
}

.testimonial-author h4 {
    color: var(--action-color);
    font-weight: 700;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 5%;
    }
    .logo img {
        height: 45px;
    }
    nav {
        display: none;
    }
    .hero {
        padding: 1rem;
        padding-top: 100px; 
        height: 70vh;
    }
    .hero-swiper {
        border-radius: 20px;
    }
    .slide-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    .slide-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .btn-contact {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    .services-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .services-detail:nth-child(even) {
        direction: ltr;
    }
}
