/**
 * Corporate Website Styles
 * Wood/Timber Industry Design - Inspired by Natural Materials
 */

:root {
    --primary-color: #0d3858;
    --secondary-color: #ffffff;
    --accent-color: #ffffff;
    --success-color: #0d3858;
    --warning-color: #ffffff;
    --dark-color: #0d3858;
    --light-color: #ffffff;
    --text-color: #0d3858;
    --text-muted: #0d3858;
    --border-color: #0d3858;
    --shadow: 0 4px 15px rgba(13, 56, 88, 0.15);
    --border-radius: 0;
    --transition: all 0.3s ease;
    --wood-gradient: linear-gradient(135deg, #0d3858 0%, #0d3858 50%, #0d3858 100%);
    --wood-texture: none;
}

/* Typography */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    text-shadow: none;
}

.display-4 {
    font-weight: 800;
    font-size: 3.5rem;
    color: #ffffff;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

/* Layout */
body {
    padding-top: 76px; /* Account for fixed navbar */
}

.section-padding {
    padding: 80px 0;
}

/* Buttons */
.btn {
    border-radius: 0;
    font-weight: 600;
    padding: 15px 35px;
    transition: var(--transition);
    border: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(13, 56, 88, 0.3);
}

.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: var(--transition);
}

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

.btn-primary:hover {
    background: #1a4a6b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 56, 88, 0.4);
}

.btn-outline-primary {
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFF;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.btn-outline-light {
    border: 3px solid #FFF;
    color: #FFF;
    background: transparent;
}

.btn-outline-light:hover {
    background: #FFF;
    border-color: #FFF;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(13, 56, 88, 0.3);
    background: var(--primary-color) !important;
    padding: 1rem 0;
    border-bottom: 3px solid #ffffff;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFF !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Arial', sans-serif;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-height: 70px;
    width: auto;
    filter: brightness(1.1);
    transition: var(--transition);
}

.navbar-brand:hover img {
    filter: brightness(1.3);
    transform: scale(1.05);
}

.nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    color: #FFF !important;
    transition: var(--transition);
    padding: 0.8rem 1.2rem !important;
    margin: 0 0.2rem;
    border-radius: 0;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    background: rgba(255,255,255,0.1);
    transform: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Slider Section */
.carousel-item {
    height: 70vh;
    min-height: 500px;
}

.slider-bg {
    position: relative;
    background-attachment: fixed;
}

.slider-overlay {
    background: linear-gradient(45deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}

.slider-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.slider-content p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 50vh;
        min-height: 400px;
    }
    
    .slider-content h1 {
        font-size: 2.5rem;
    }
    
    .slider-content p {
        font-size: 1.1rem;
    }
}

/* Cards */
.card {
    border: 2px solid var(--border-color);
    border-radius: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    background: #ffffff;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(13, 56, 88, 0.25);
    border-color: var(--primary-color);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
    filter: sepia(10%) saturate(1.1);
}

.card:hover .card-img-top {
    transform: scale(1.08);
    filter: sepia(0%) saturate(1.2);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.service-card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Team Cards */
.team-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-card .social-links {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.9);
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.team-card:hover .social-links {
    transform: translateY(0);
}

.team-card .social-links a {
    color: white;
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.team-card .social-links a:hover {
    color: var(--secondary-color);
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    padding: 12px 15px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
}

/* Pagination */
.pagination .page-link {
    border-radius: var(--border-radius);
    margin: 0 2px;
    border: none;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer,
.footer-custom {
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}



footer .container {
    position: relative;
    z-index: 2;
}

footer h5, footer h6 {
    color: #FFF;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

footer a {
    transition: var(--transition);
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: var(--accent-color) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

footer .text-light,
.footer-custom .text-light,
footer p,
.footer-custom p,
footer h5,
.footer-custom h5,
footer h6,
.footer-custom h6,
footer li,
.footer-custom li,
footer small,
.footer-custom small {
    color: #ffffff !important;
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    margin: 0 5px;
    font-size: 1.2rem;
    border: 2px solid transparent;
}

.social-links a:hover {
    background: var(--accent-color);
    border-color: #FFF;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

footer hr {
    border-color: rgba(255,255,255,0.2);
    border-width: 2px;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-light-custom {
    background-color: var(--light-color) !important;
    background-image: linear-gradient(45deg, rgba(139, 69, 19, 0.03) 25%, transparent 25%), 
                      linear-gradient(-45deg, rgba(139, 69, 19, 0.03) 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, rgba(139, 69, 19, 0.03) 75%), 
                      linear-gradient(-45deg, transparent 75%, rgba(139, 69, 19, 0.03) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.bg-primary {
    background: var(--wood-gradient) !important;
}

.border-radius {
    border-radius: 0;
}

.shadow-custom {
    box-shadow: var(--shadow);
}

/* Section Styling */
.section-padding {
    padding: 100px 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--wood-gradient);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Section */
.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.stat-item h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #FFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Wood Texture Elements */
.wood-accent {
    position: relative;
}

.wood-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--wood-gradient);
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--wood-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
    transition: var(--transition);
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.feature-icon i {
    font-size: 2rem;
    color: #FFF;
}

/* Team Cards Enhancement */
.team-card {
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--wood-gradient);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
        min-height: 60vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.6rem 1rem !important;
    }
    
    .stat-item h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* File Upload */
.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.file-upload input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-upload-label {
    display: inline-block;
    padding: 12px 30px;
    background: var(--light-color);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
}

.file-upload:hover .file-upload-label {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
}

/* Admin Styles */
.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--secondary-color);
    color: white;
}

.admin-content {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
}

/* Table Styles */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th {
    background: var(--light-color);
    border: none;
    font-weight: 600;
    color: var(--text-color);
}

.table td {
    border-color: rgba(0,0,0,0.05);
    vertical-align: middle;
}

/* Status Badges */
.badge {
    font-weight: 500;
    padding: 6px 12px;
}

/* Image Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

/* Product Detail Page Styles */
.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.main-image:hover {
    transform: scale(1.02);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #28a745;
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.product-info {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: fit-content;
    border: 1px solid #e9ecef;
}

.breadcrumb-custom {
    background: none;
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb-custom .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-custom .breadcrumb-item {
    font-size: 1rem;
    color: #6c757d;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

.breadcrumb-custom .breadcrumb-item a {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: #1e7e34;
    text-decoration: underline;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

.back-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.back-btn:hover {
    background: #218838;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    text-decoration: none;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.product-feature {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.product-feature:hover {
    background: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-feature i {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 0.5rem;
    display: block;
}

.product-feature div {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Related Products Section */
.related-products .product-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    height: 280px;
    position: relative;
    border: 1px solid #e9ecef;
}

.related-products .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.related-products .product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.related-products .product-card:hover img {
    transform: scale(1.1);
}

.related-products .product-info {
    padding: 1rem;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.related-products .product-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-transform: capitalize;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-image {
        height: 300px;
    }
    
    .product-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .thumbnail-images {
        justify-content: center;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-products .product-card {
        height: 250px;
    }
    
    .related-products .product-card img {
        height: 170px;
    }
}

@media (max-width: 576px) {
    .main-image {
        height: 250px;
        border-radius: 10px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-info h1 {
        font-size: 1.8rem;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .back-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}