/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f7f5f0 0%, #e8e4d9 100%);
    color: #3b3833;
    line-height: 1.8;
    direction: ltr;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Links */
a {
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #b89a5a;
    transform: translateY(-2px);
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    color: #3b3833;
    font-weight: 600;
    position: relative;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #d4af37;
    animation: slideIn 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #d4af37;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #3b3833;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.back-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

#hero .content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

#hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.btn {
    background: #d4af37;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Sections */
.services-section,
.about-section,
.portfolio,
.testimonials-section,
.contact {
    padding: 100px 0;
    text-align: center;
}

.services-section {
    background: #e8e4d9;
}

.about-section {
    background: #fcfcfc;
}

.portfolio {
    background: #f7f5f0;
}

.testimonials-section {
    background: #121212;
    color: #fff;
}

.contact {
    background: #e8e4d9;
}

/* Grids */
.services-grid,
.about-grid,
.portfolio-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-item,
.about-card,
.portfolio-item,
.testimonial {
    background: #fff;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    cursor: pointer;
}

.service-item:hover,
.about-card:hover,
.portfolio-item:hover,
.testimonial:hover {
    transform: translateY(-10px);
    border-bottom-color: #d4af37;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-item i,
.about-card i {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 20px;
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Testimonials Section - Updated for Dark Glassmorphism and Professional Look */
.testimonials-section {
    background: #121212 !important; /* Dark base for section */
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05) !important; /* Dark transparent glassmorphism */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    color: #fff;
}

.avatar i {
    font-size: 24px;
    color: #fff;
}

.user-info {
    text-align: left;
}

.user-info h4 {
    color: #ffffff !important; /* White for names */
    font-weight: bold;
    margin: 0;
    font-size: 18px;
}

.verified-icon {
    color: #4285F4; /* Google blue for authenticity */
    font-size: 16px;
    margin-left: 5px;
}

.stars {
    color: #d4af37 !important; /* Gold stars */
    font-size: 20px;
    margin: 15px 0;
}

.stars i {
    margin: 0 2px;
}

.quote-box {
    border-left: 3px solid #d4af37;
    padding-left: 15px;
    margin-top: 15px;
}

.quote-box p {
    color: #e0e0e0 !important; /* Light gray for comments */
    font-size: 15px;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

/* Contact Form */
.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact input,
.contact textarea {
    padding: 15px;
    border: 1px solid #d4af37;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: #b89a5a;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.contact button {
    background: #d4af37;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Form Message (Success/Error for AJAX) */
#form-message {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 10px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.1); /* Subtle gold background for success */
    border: 1px solid rgba(212, 175, 55, 0.3);
}

#form-message.success {
    color: #d4af37; /* Gold for success */
}

#form-message.error {
    color: #ff0000; /* Red for error */
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
}

/* Footer */
.footer-section {
    background: #3b3833;
    color: #f7f5f0;
    text-align: center;
    padding: 50px 0;
}

.social-icons a {
    color: #f7f5f0;
    font-size: 24px;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #d4af37;
    transform: translateY(-5px);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    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: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .services-grid,
    .about-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .service-item,
    .about-card,
    .portfolio-item,
    .testimonial {
        padding: 30px 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    #form-message {
        font-size: 14px;
        margin-top: 15px;
    }
}

/* RTL Support */
[dir="rtl"] body {
    direction: rtl;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-content {
    right: auto;
    left: 0;
}

[dir="rtl"] .dropdown-content a {
    text-align: right;
}

[dir="rtl"] .dropdown-content a:hover {
    padding-right: 25px;
    padding-left: 16px;
}

[dir="rtl"] .service-item,
[dir="rtl"] .about-card,
[dir="rtl"] .portfolio-item,
[dir="rtl"] .testimonial {
    text-align: right;
}

[dir="rtl"] .contact input,
[dir="rtl"] .contact textarea {
    text-align: right;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 40px;
}

[dir="rtl"] .btn:hover {
    transform: translateX(-10px);
}

[dir="rtl"] .service-item:hover,
[dir="rtl"] .about-card:hover,
[dir="rtl"] .portfolio-item:hover,
[dir="rtl"] .testimonial:hover {
    transform: translateY(-10px) translateX(-5px);
}

/* RTL Adjustments for Testimonials */
[dir="rtl"] .card-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .avatar {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .user-info {
    text-align: right;
}

[dir="rtl"] .quote-box {
    border-left: none;
    border-right: 3px solid #d4af37;
    padding-left: 0;
    padding-right: 15px;
}