/* assets/css/style.css - COMPLETE FIXED FILE */

:root {
    --primary-color: #852f23;
    --secondary-color: #2c3e50;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --whatsapp-color: #25D366;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand img {
    transition: all 0.3s ease;
    background-color: transparent !important;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.split-carousel {
    display: flex;
    height: 100%;
}

.carousel-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem;
    background-color: var(--light-gray);
}

.carousel-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

/* Lead Capture Form */
.lead-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lead-form .form-control,
.lead-form .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.lead-form .form-control:focus,
.lead-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(133, 47, 35, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #6a251c;
    border-color: #6a251c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(133, 47, 35, 0.3);
}

/* ========== FEATURED PROJECTS (HOMEPAGE) ========== */
.featured-projects {
    padding: 80px 0;
    background-color: #fff;
}

.featured-projects .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.featured-projects .section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.featured-projects .section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.featured-project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
}

.featured-project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-project-item:hover img {
    transform: scale(1.1);
}

.featured-project-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transition: bottom 0.3s ease;
}

.featured-project-item:hover .featured-project-overlay {
    bottom: 0;
}

.featured-project-info h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.featured-project-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.featured-projects .view-all-btn {
    text-align: center;
    margin-top: 30px;
}

/* ========== PORTFOLIO PAGE - FORCED SMALL BOXES ========== */
.portfolio-page {
    padding: 80px 0;
    background-color: #f8f9fa;
}


/* Clean CSS for portfolio - No !important, just clean working styles */

/* Filter Buttons */
.filter-buttons {
    margin-bottom: 2rem;
    text-align: center;
}

.filter-btn {
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #852f23;
    color: white;
}

/* RESET ALL POSITIONING FIRST */
.portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    margin-top: 30px !important;
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
}

/* Remove all absolute positioning from portfolio items */
.portfolio-item {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 4/3 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.portfolio-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Filter Buttons */
.filter-buttons {
    margin-bottom: 2rem !important;
    text-align: center !important;
}

.filter-btn {
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #852f23;
    color: white;
}

/* Overlay */
.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transition: bottom 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
}

.portfolio-info h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: white;
}

.portfolio-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: #f0f0f0;
}

/* Responsive */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
}




/* Team Cards */
.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.team-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover img {
    transform: scale(1.1);
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.team-card:hover .team-info {
    transform: translateY(0);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(133, 47, 35, 0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 2rem;
    text-align: center;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -60px auto 1.5rem;
    font-size: 2rem;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Testimonials */
.testimonial-slider {
    padding: 2rem 0;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin: 1rem;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

/* Map Container */
.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Admin Panel */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #6a251c);
}

.admin-sidebar {
    background: linear-gradient(135deg, var(--primary-color), #6a251c);
    min-height: 100vh;
    color: white;
}

.admin-content {
    padding: 2rem;
    background: #f8f9fa;
    min-height: 100vh;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 999;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 160px;
    right: 30px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(133, 47, 35, 0.3);
    transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-left: 4px solid;
    animation: slideInRight 0.3s ease forwards;
}



@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 500px;
    }
    
    .split-carousel {
        flex-direction: column;
    }
    
    .carousel-content {
        padding: 2rem;
    }
    
    .carousel-content h1 {
        font-size: 2.5rem;
    }
    
    
    .featured-projects-grid {
        grid-template-columns: 1fr !important;
    }
    
    .filter-btn {
        display: inline-block;
        width: auto;
        margin: 0.25rem;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .whatsapp-float {
        bottom: 70px;
        right: 20px;
    }
    
    .back-to-top {
        bottom: 140px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .filter-btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

