/* Custom styles for the website */

/* Color Palette Variables */
:root {
    --dark-wood-brown: #5A3A28;
    --medium-wood-brown: #A6764A;
    --light-wood-beige: #E8CFA8;
    --soft-earth-green: #8AA67A;
    --olive-green: #6F8C62;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Navbar */
nav {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(90, 58, 40, 0.1);
}

/* Hero slider transitions */
.hero-slide {
    transition: opacity 1.5s ease-in-out;
}

.hero-slide h1 {
    animation: fadeInUp 1s ease-out;
}

.hero-slide p {
    animation: fadeInUp 1.2s ease-out;
}

.hero-slide a {
    animation: fadeInUp 1.4s ease-out;
}

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

/* Enhanced Project card hover effects */
.project-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 58, 40, 0) 0%, rgba(166, 118, 74, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(90, 58, 40, 0.2);
}

.project-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover img {
    transform: scale(1.1);
}

/* Testimonial card transitions */
.testimonial-card {
    transition: all 0.5s ease-in-out;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Enhanced buttons */
.btn-primary {
    background: linear-gradient(135deg, #5A3A28 0%, #A6764A 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(90, 58, 40, 0.3);
}

/* Glassmorphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Section animations */
section {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced image hover effects */
.image-hover-effect {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
}

.image-hover-effect:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(90, 58, 40, 0.25);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5A3A28 0%, #A6764A 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #A6764A 0%, #5A3A28 100%);
}

/* Text gradient effect */
.text-gradient {
    background: linear-gradient(135deg, #5A3A28 0%, #A6764A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced shadows */
.shadow-elegant {
    box-shadow: 0 10px 30px rgba(90, 58, 40, 0.15);
}

.shadow-elegant-lg {
    box-shadow: 0 20px 50px rgba(90, 58, 40, 0.2);
}

/* Hover underline effect */
.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: linear-gradient(135deg, #5A3A28 0%, #A6764A 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.hover-underline:hover::after {
    width: 100%;
}

/* Card elevation effect */
.card-elevated {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-elevated:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(90, 58, 40, 0.2);
}

/* Modal animations */
#project-modal, #image-modal {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Gallery grid item hover */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 58, 40, 0.7) 0%, rgba(166, 118, 74, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(90, 58, 40, 0.3), transparent);
    margin: 60px 0;
}

/* Badge/Pill style */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #E8CFA8 0%, #A6764A 100%);
    color: #5A3A28;
}

/* Enhanced footer */
footer {
    background: linear-gradient(135deg, #2d1e14 0%, #3d2819 100%);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Enhanced form inputs */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #5A3A28;
    box-shadow: 0 0 0 3px rgba(90, 58, 40, 0.1);
}

/* FAQ Accordion Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
    outline: none;
}

.faq-question:focus {
    outline: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
}

.faq-answer:not(.hidden) {
    max-height: 1000px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-icon {
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
}
