/* Custom CSS Variables */
:root {
    --primary-color: #3c2415;
    --secondary-color: #d4af37;
    --accent-color: #065f46;
    --text-dark: #1f2937;
    --text-light: #fefce8;
    --bg-light: #fffbeb;
    --bg-dark: #451a03;
    --border-color: #d6d3d1;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(60, 36, 21, 0.1);
    --shadow-hover: 0 15px 40px rgba(60, 36, 21, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.text-gold {
    color: var(--secondary-color);
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header .navbar {
    padding: 0.5rem 0;
    min-height: 70px;
}

.header .navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header .navbar-brand i {
    color: var(--secondary-color);
    font-size: 2rem;
}

.header .navbar-brand:hover {
    color: var(--secondary-color);
}

.header .navbar-nav {
    gap: 1.5rem;
}

.header .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.header .nav-link:hover::after,
.header .nav-link.active::after {
    width: 100%;
}

.header .nav-link:hover {
    color: var(--secondary-color);
}

.header-cta .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2860, 36, 21, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .header .navbar {
        min-height: 60px;
    }
    
    .header .navbar-collapse {
        background: white;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: var(--shadow);
    }
    
    .header .navbar-nav {
        gap: 0;
    }
    
    .header .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .header .nav-link:last-child {
        border-bottom: none;
    }
    
    .header-cta {
        margin-top: 1rem;
        text-align: center;
        display: block !important;
    }
}

/* Button Styles */
.btn {
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(212, 175, 55, 0.1) 100%);
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 991.98px) {
    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    padding-right: 2rem;
}

.about .lead {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.about-achievements {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.achievement-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.achievement-item i {
    font-size: 2rem;
    width: 60px;
    text-align: center;
}

.achievement-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.achievement-item p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.about-image {
    animation: fadeInLeft 1s ease-out;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
}

@media (max-width: 991.98px) {
    .about-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .about {
        text-align: center;
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.service-card h4 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.9rem;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Team Section */
.team {
    padding: 80px 0;
    background: var(--white);
}

.team-member {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .team-image img {
    transform: scale(1.1);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Testimonials Section - Fixed Layout */
.testimonials {
    padding: 80px 0;
    background: var(--bg-light);
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 60px; /* Add padding for arrow buttons */
}

.testimonials-container {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px); /* Ensure proper width calculation */
    background: var(--white);
    padding: 2rem;
    margin: 0 10px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    min-height: 320px; /* Set minimum height for consistency */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1; /* Allow text to take available space */
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto; /* Push to bottom */
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Prevent shrinking */
}

.testimonial-info {
    flex-grow: 1;
}

.testimonial-info h5 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.testimonial-info p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(60, 36, 21, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary-color);
    transform: scale(1.3);
}

.dot:hover {
    background: var(--primary-color);
}

/* Touch/Swipe Support */
.testimonials-container.dragging {
    cursor: grabbing;
    user-select: none;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .testimonials-carousel {
        padding: 0 50px; /* Reduce padding on tablets */
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 20px); /* 2 cards on tablet */
        min-height: 350px; /* Adjust height for tablet */
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn-prev {
        left: 5px;
    }
    
    .carousel-btn-next {
        right: 5px;
    }
}

@media (max-width: 575.98px) {
    .testimonials-carousel {
        padding: 0 20px; /* Minimal padding on mobile */
    }
    
    .testimonial-card {
        flex: 0 0 calc(100% - 10px); /* 1 card on mobile */
        margin: 0 5px;
        min-height: 300px; /* Smaller height for mobile */
        padding: 1.5rem; /* Less padding on mobile */
    }
    
    .carousel-btn {
        display: none; /* Hide arrows on mobile */
    }
    
    .testimonial-text {
        font-size: 0.95rem; /* Slightly smaller text on mobile */
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-info h5 {
        font-size: 1rem;
    }
    
    .testimonial-info p {
        font-size: 0.85rem;
    }
}

/* Ensure proper spacing between cards */
@media (min-width: 992px) {
    .testimonials-container {
        margin: 0 -10px; /* Negative margin to account for card margins */
    }
}

/* Fix for very large screens */
@media (min-width: 1400px) {
    .testimonials-carousel {
        max-width: 1400px;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    outline: none;
}

.contact-info {
    padding-left: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    width: 24px;
    margin-top: 0.25rem;
}

.contact-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-dark);
    opacity: 0.8;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

@media (max-width: 991.98px) {
    .contact-info {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 0;
}

.footer-section h5 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

@media (max-width: 767.98px) {
    .footer-bottom-links {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1000;
}

.whatsapp-float:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 575.98px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Reveal Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success Message */
.alert {
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: none;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}