/* style.css - Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #250344ea;
    --secondary-color: #d8880fea;
    --accent-color: #00A86B;
    --dark-color: #333333;
    --light-color: #F8F9FA;
    --gray-color: #6C757D;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;500;600&display=swap');

/* Update body font */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

/* Update headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Make h1 more dramatic */
h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section headers */
.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text h1 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--secondary-color);
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
/* ===== MODERN HERO SLIDER ===== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 700px;
    overflow: hidden;
    color: var(--white);
    display: flex;
    align-items: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: slideShow 16s infinite;
    background-size: cover;
    background-position: center;
}

/* ====== MINIMAL & BRIGHT HERO (Recommended) ====== */
.about-hero, .services-hero, .projects-hero, 
.certifications-hero, .contact-hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
    position: relative;
    overflow: hidden;
}

/* Add decorative elements */
.about-hero::before, .services-hero::before, 
.projects-hero::before, .certifications-hero::before,
.contact-hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 87, 146, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.about-hero::after, .services-hero::after, 
.projects-hero::after, .certifications-hero::after,
.contact-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
}

.about-hero .container, .services-hero .container, 
.projects-hero .container, .certifications-hero .container,
.contact-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero h1, .services-hero h1, .projects-hero h1, 
.certifications-hero h1, .contact-hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: rgba(37, 3, 68, 0.9);
    font-weight: 700;
    
    /* For text gradient - with all vendor prefixes */
    background: linear-gradient(90deg, rgba(37, 3, 68, 0.9), #d4af37);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.about-hero h1 span, .services-hero h1 span, 
.projects-hero h1 span, .certifications-hero h1 span,
.contact-hero h1 span {
    color: #d4af37;
    position: relative;
}

.about-hero h1 span::after, .services-hero h1 span::after, 
.projects-hero h1 span::after, .certifications-hero h1 span::after,
.contact-hero h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, transparent);
}

.about-hero p, .services-hero p, .projects-hero p, 
.certifications-hero p, .contact-hero p {
    font-size: 1.3rem;
   
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Slide Animation */
@keyframes slideShow {
    0%, 20% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

/* Content Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation delays */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }

/* Floating elements */
.floating-element {
    position: absolute;
    z-index: 2;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
/* Section Styling */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    display: inline-block;
}

.section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Stats Section */
.stats {
    background-color: var(--light-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}
/* Animated Counter */
.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}



/* Pulse animation for stats */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stat-item:hover h3 {
    animation: pulse 1s ease infinite;
}
/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service card hover effects */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--secondary-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Project card hover */
.project-card {
    transition: all 0.4s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-image {
    transition: transform 0.6s ease;
}

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}
.project-image {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}

.project-content {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cert-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--secondary-color);
}
/* ====== SOCIAL MEDIA ICONS ====== */
.social-section {
    margin-top: 1rem;
}

.social-section h4 {
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* LinkedIn - Blue */
.social-icon.linkedin {
    background-color: #0077B5;
    color: white;
}

.social-icon.linkedin:hover {
    background-color: #005582;
}

/* X (formerly Twitter) - Black */
.social-icon.x-twitter {
    background-color: #000000;
    color: white;
}

.social-icon.x-twitter:hover {
    background-color: #333333;
}

/* Facebook - Blue */
.social-icon.facebook {
    background-color: #1877F2;
    color: white;
}

.social-icon.facebook:hover {
    background-color: #0d5cb6;
}

/* Instagram - Gradient */
.social-icon.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #3048C4, #4838C0, #72299B, #A8246B, #C02759, #E00D0D);
}

@media (max-width: 768px) {
    .social-icons {
        justify-content: center;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
}

/* KEEP YOUR EXISTING FOOTER-BOTTOM STYLES */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(rgba(37, 3, 68, 0.9), rgba(37, 3, 68, 0.9)), url('../images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 140px 0 60px;
    text-align: center;
}

.about-hero h1 {
    color: var(--white);
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.management-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.facility-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
/* ===== HERO SLIDER STYLES ===== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: var(--white);
    padding-top: 120px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: slideShow 20s infinite;
}

/* Slide 1 - Construction Site */
.hero-slide:nth-child(1) {
    background: linear-gradient(rgba(0, 71, 171, 0.7), rgba(0, 71, 171, 0.7)),
                linear-gradient(45deg, #0047AB, #00A86B);
    animation-delay: 0s;
}

/* Slide 2 - Engineering */
.hero-slide:nth-child(2) {
    background: linear-gradient(rgba(0, 71, 171, 0.7), rgba(0, 71, 171, 0.7)),
                linear-gradient(45deg, #FF6B00, #FFD700);
    animation-delay: 5s;
}

/* Slide 3 - Oil & Gas */
.hero-slide:nth-child(3) {
    background: linear-gradient(rgba(0, 71, 171, 0.7), rgba(0, 71, 171, 0.7)),
                linear-gradient(45deg, #333333, #666666);
    animation-delay: 10s;
}

/* Slide 4 - Road Construction */
.hero-slide:nth-child(4) {
    background: linear-gradient(rgba(0, 71, 171, 0.7), rgba(0, 71, 171, 0.7)),
                linear-gradient(45deg, #00A86B, #0047AB);
    animation-delay: 15s;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
}

/* Slide Animation */
@keyframes slideShow {
    0%, 20% {
        opacity: 1;
    }
    25%, 100% {
        opacity: 0;
    }
}

/* Animation for each slide */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: var(--transition);
        gap: 1rem;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}
/* Add all of this at the very end of your style.css file, after all other CSS */

/* ===== PROJECT IMAGE FIXES ===== */
.project-image {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image:has(img) {
    background-color: transparent;
}

.project-image:has(img) i,
.project-image:has(img) p {
    display: none;
}

.image-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    z-index: 2;
}

.project-image-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 10px;
}

.project-image-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.project-image-nav button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.project-image i.fa-image {
    font-size: 3rem;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.project-image:not(:has(img)) p {
    font-size: 0.9rem;
    margin-top: 10px;
}

.project-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid #ddd;
    transition: var(--transition);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.filter-btn:hover:not(.active) {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}
/* In your css/style.css file, update the services-grid class */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Make sure the cards are responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}
/* Facilities Grid - 2x2 Layout */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 2rem;
    margin-top: 2rem;
}

.facility-item {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.facility-item i {
    display: block;
    margin-bottom: 1rem;
}

/* Management Team Grid - 2x2 Layout */
.management-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 2rem;
    margin-top: 2rem;
}

.management-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.management-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.management-icon {
    margin-bottom: 1.5rem;
}

/* Make responsive for mobile */
@media (max-width: 768px) {
    .facilities-grid,
    .management-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
    }
    
    .facility-item,
    .management-card {
        padding: 1.5rem;
    }
}

/* Optional: If you want to maintain the stats grid as 4 items in a row */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Keep 4 columns for stats */
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 for stats on mobile */
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr; /* Single column for very small screens */
    }
}
/* Dark Mode Styles */
.dark-mode {
    --primary-color: #3a86ff;
    --secondary-color: #ff9e00;
    --accent-color: #06d6a0;
    --dark-color: #f8f9fa;
    --light-color: #212529;
    --white: #121212;
    background-color: var(--white);
    color: var(--dark-color);
}

.dark-mode .service-card,
.dark-mode .project-card,
.dark-mode .cert-card,
.dark-mode .contact-form {
    background-color: #1e1e1e;
    color: var(--dark-color);
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(30deg) scale(1.1);
}
/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Mobile Optimization */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-hero h1,
    .services-hero h1,
    .projects-hero h1,
    .certifications-hero h1,
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .btn, .filter-btn {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    .project-image-nav button {
        width: 40px;
        height: 40px;
    }
}

/* Touch-friendly improvements */
.btn, .filter-btn, .project-image-nav button {
    cursor: pointer;
}

/* Prevent text size adjustment on mobile */
html {
    -webkit-text-size-adjust: 100%;
}
/* Timber Products Preview Styles */
.timber-quote {
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.material-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.material-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timber-preview-grid {
        grid-template-columns: 1fr !important;
    }
    
    .timber-features-grid {
        grid-template-columns: 1fr !important;
    }
}
/* ===== NAVIGATION FIXES ===== */
/* Prevent menu items from wrapping */
.nav-links li {
    white-space: nowrap;
}

/* Adjust spacing for medium-large screens */
@media (min-width: 992px) and (max-width: 1200px) {
    .navbar {
        padding: 0.7rem 0;
    }
    
    .logo {
        gap: 8px;
    }
    
    .logo img.logo-image {
        max-width: 45px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    
    .logo-text h1:first-child {
        font-size: 0.95rem;
    }
    
    .logo-text h1:last-of-type {
        font-size: 0.9rem;
    }
    
    .logo-text p {
        font-size: 0.6rem;
        margin-top: 0;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-links a {
        font-size: 0.82rem;
        padding: 0.4rem 0;
    }
}

/* For smaller desktops */
@media (max-width: 1050px) and (min-width: 992px) {
    .nav-links {
        gap: 0.6rem;
    }
    
    .nav-links a {
        font-size: 0.78rem;
    }
}

/* Ensure text doesn't wrap */
.nav-links a {
    white-space: nowrap;
}
/* Responsive image containers */
.image-container {
    position: relative;
    width: 100%;
    background-color: #f5f5f5;
    overflow: hidden;
}

.image-container.portrait {
    height: 300px;
}

.image-container.landscape {
    height: 250px;
}

.image-container.square {
    height: 250px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container img.contain {
    object-fit: contain;
    background-color: #f5f5f5;
}

.image-container:hover img {
    transform: scale(1.05);
}
/* ===== ENHANCED TIMBER PRODUCTS STYLES ===== */

/* Improved image container */
.image-container {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.image-container.portrait {
    height: 350px;
}

.image-container.landscape {
    height: 280px;
}

.image-container.square {
    height: 280px;
}

.image-container.machinery {
    height: 220px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container img.contain {
    object-fit: contain;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* Hover overlay effect */
.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(37, 3, 68, 0.1), rgba(216, 136, 15, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-container:hover::after {
    opacity: 1;
}

/* Image counter styling */
.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Material badges improved */
.material-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.3rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 3, 68, 0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.material-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(37, 3, 68, 0.2);
    border-color: transparent;
}

/* Category headings for materials */
.material-category {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin: 1rem 0 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Button styles */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 3, 68, 0.2);
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn i {
    font-size: 0.9rem;
}

/* Features grid */
.features-grid {
    background: var(--light-color);
    padding: 1.2rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 1px solid rgba(37, 3, 68, 0.05);
}

.features-grid h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.features-list li i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Showcase item improvements */
.timber-showcase-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(37, 3, 68, 0.05);
}

.timber-showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 3, 68, 0.12);
}

.timber-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
}

/* Navigation container */
.navigation-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Quote button */
.quote-button {
    margin-top: 1.5rem;
    width: 100%;
}

.quote-button .btn-secondary {
    width: 100%;
    justify-content: center;
    background: var(--secondary-color);
    border: none;
    color: white;
    padding: 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quote-button .btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 3, 68, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .timber-showcase-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .image-container.portrait {
        height: 300px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .navigation-container {
        flex-wrap: wrap;
    }
    
    .btn, .btn-outline {
        width: 100%;
        justify-content: center;
    }
}
/* Timber Category Cards */
.timber-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(37, 3, 68, 0.15);
}

.timber-category-card:hover img {
    transform: scale(1.1);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
}

.btn-small:hover {
    background: var(--primary-color);
    color: white;
}

.material-badge {
    transition: all 0.3s ease;
    cursor: default;
}

.material-badge:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

