/* Custom CSS for GidMacCooperation Plywood Website */

:root {
    --primary-color: #2c5530;
    --secondary-color: #8b4513;
    --accent-color: #d4af37;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --text-dark: #212529;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}
.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.9), rgba(139, 69, 19, 0.8)), 
                url('images/image 7.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.8), rgba(139, 69, 19, 0.6));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.specifications ul li {
    padding: 0.25rem 0;
}

.applications .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* Tool Cards */
.tool-card {
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.visualizer-placeholder {
    background: var(--light-gray);
    border-radius: 0.5rem;
    border: 2px dashed #dee2e6;
}

/* Dealer Search */
#dealerResults {
    max-height: 400px;
    overflow-y: auto;
}

.dealer-item {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.dealer-item:hover {
    background-color: var(--light-gray);
    border-color: var(--primary-color);
}

/* Testimonial Cards */
.testimonial-card {
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stars {
    font-size: 1.2rem;
}

.avatar {
    width: 50px;
    height: 50px;
}

/* Contact Section */
.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--text-dark) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.25);
}

.btn {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a21, #6b2f0a);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .product-card .card-img-top {
        height: 200px;
    }
    
    .tool-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Success/Error States */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d1edff;
    color: #0c5460;
    border-left: 4px solid #0c5460;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #721c24;
}

/* Case Study Cards */
.case-study-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-study-card .card-img-top {
    height: 200px;
    object-fit: cover;
    position: relative;
}

.case-study-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.case-study-details {
    background: var(--light-gray);
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Blog Cards */
.blog-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Resources Sidebar */
.resources-sidebar .card {
    border: none;
    border-radius: 1rem;
}

.resources-sidebar .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.resources-sidebar .list-unstyled li:last-child {
    border-bottom: none;
}

.resources-sidebar a {
    transition: all 0.3s ease;
}

.resources-sidebar a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.newsletter-form .form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.certifications .d-flex {
    padding: 0.25rem 0;
}

/* Additional Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .case-study-card .card-img-top,
    .blog-card .card-img-top {
        height: 150px;
    }
    
    .case-study-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .case-study-details {
        padding: 0.75rem;
    }
    
    .resources-sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .case-study-card .card-img-top,
    .blog-card .card-img-top {
        height: 120px;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .case-study-details .row > div {
        margin-bottom: 0.5rem;
    }
}

/* Enhanced Product Range Styles */
.product-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    transition: transform 0.3s ease;
}

.product-hover:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-hover:hover .product-overlay {
    opacity: 1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.price-info {
    text-align: left;
}

/* Product Filter Buttons */
.btn-group .btn {
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.btn-group .btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-group .btn:hover:not(.active) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Expert Resources: white text on image overlays */
#expert-resources .resource-image-badge,
#expert-resources .resource-image-badge i {
    color: white !important;
}
#expert-resources .resource-image-badge:not(.bg-primary):not(.bg-danger):not(.bg-dark) {
    background-color: rgba(0, 0, 0, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Expert Resources: cards with white text (Design Trends, Maintenance, Sustainability) */
#expert-resources .resource-card-white-text .card-body {
    background-color: #2d3e2f;
    color: white;
}
#expert-resources .resource-card-white-text .card-body .card-title,
#expert-resources .resource-card-white-text .card-body p,
#expert-resources .resource-card-white-text .card-body small {
    color: white !important;
}
#expert-resources .resource-card-white-text .card-body .text-white-50,
#expert-resources .resource-card-white-text .card-body .text-white-50 small {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Enhanced Expert Resources Styles */
.featured-article {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid var(--primary-color);
}

.featured-article .card-body {
    background: white;
}

.video-card .video-overlay {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.author-info img {
    border: 2px solid var(--primary-color);
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
    border-radius: 0.5rem;
}

.resource-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

.expert-avatar img {
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Resource Filter Buttons */
[data-resource-filter] {
    transition: all 0.3s ease;
}

[data-resource-filter].active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

[data-resource-filter]:hover:not(.active) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Object Cover Utility */
.object-cover {
    object-fit: cover;
}

/* Enhanced Badge Styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.025em;
}

.bg-primary-subtle {
    background-color: rgba(44, 85, 48, 0.1) !important;
    color: var(--primary-color) !important;
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important;
}

.bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.1) !important;
    color: #0dcaf0 !important;
}

/* Enhanced Card Headers */
.card-header {
    border-bottom: none;
    font-weight: 600;
}

/* Product Comparison CTA */
.bg-primary .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

/* Loading Animation for Filter */
.filter-loading {
    opacity: 0.6;
    pointer-events: none;
}

.filter-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Mobile Responsiveness for New Sections */
@media (max-width: 768px) {
    .product-hover .product-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .featured-article .row {
        flex-direction: column;
    }
    
    .featured-article .col-md-4 {
        height: 200px;
    }
    
    .featured-article .col-md-8 {
        height: auto;
    }
    
    .btn-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-group .btn {
        margin: 0.25rem;
        flex: 1;
        min-width: 120px;
    }
    
    .price-info {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .product-card .card-body {
        padding: 1rem;
    }
    
    .featured-article .card-body {
        padding: 1rem;
    }
    
    .btn-group .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .resource-icon {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }
    
    .expert-avatar img {
        width: 60px;
        height: 60px;
    }
}

/* Site Footer */
.site-footer .footer-text {
    color: rgba(255, 255, 255, 0.75);
}
.site-footer .footer-link {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}
.site-footer .footer-link:hover {
    color: white;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    z-index: 1060;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    color: #ffffff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 576px) {
    .whatsapp-float {
        right: 16px;
        bottom: 84px;
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .hero-section, footer, .btn, .modal, .whatsapp-float {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        width: 100%;
    }
}
