/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --color-white: #DFE1E0;
    --color-charcoal: #36454F;
    --color-silver: #C0C0C0;
	--color-dark-charcoal: #2a363f;
    --color-light-silver: #e8e8e8;
}

body {    
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header-top {
    background-color: var(--color-white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-charcoal);
    font-weight: bold;
    font-size: 1.2rem;
}

.logo img {
    height: 80px;
    margin-right: 10px;
}

/* Navigation Styles */
#main-nav ul {
    display: flex;
    list-style: none;
}

#main-nav li {
    position: relative;
    margin-left: 20px;
}

#main-nav a {
    text-decoration: none;
    color: var(--color-charcoal);
    font-weight: 600;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

#main-nav a:hover,
#main-nav a.active {
    color: var(--color-silver);
}
.upstream-dropdown{
	display:none;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    padding: 10px 0;
}

.dropdown-content a {
    padding: 10px 20px;
    white-space: nowrap;
	font-size:0.85em;
}

.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content:hover .upstream-dropdown{
    display: block;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-charcoal);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Cover */
.hero-cover {
    height: 25vw;
    min-height: 200px;
    background-image: url('../images/hero-cover2.jpg');
    background-size: cover;
    background-position: center;
	background-attachment:fixed;
    display: flex;
    align-items: center;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
	
}

.hero-cover h1 {
    font-size: 2.5rem;
}

/* Main Content */
main {
    padding: 40px 0;
}

/* Footer Styles */
footer {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-left img {
    height: 50px;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--color-white);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--color-silver);
}

.thumbnail {
    margin-bottom: 20px;
}

.thumbnail img {
    width: 25%;
    height: auto;
    margin-bottom: 10px;
}

.footer-right h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-right ul {
    list-style: none;
}

.footer-right li {
    margin-bottom: 8px;
}

.footer-right a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: var(--color-silver);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Page Content Styles */
.page-content {
    padding: 40px 0;
}

.page-content h2 {
    margin-bottom: 20px;
    color: var(--color-charcoal);
}

.page-content p {
    margin-bottom: 30px;
}

.service-category, .qhse-category, .about-category {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--color-silver);
}

.service-category h3, .qhse-category h3, .about-category h3 {
    color: var(--color-charcoal);
    margin-bottom: 10px;
}

/* Welcome Section */
.welcome-section {
    padding: 40px 0;
    text-align: center;
}

.welcome-section h2 {
    margin-bottom: 20px;
    color: var(--color-charcoal);
}

/* Features Section */
.features-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--color-white);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.feature i {
    font-size: 2.5rem;
    color: var(--color-silver);
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--color-charcoal);
}

/* Contact Page Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--color-silver);
    margin-bottom: 15px;
}

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--color-charcoal);
}

.contact-form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--color-charcoal);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.btn {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--color-silver);
}

/* Responsive adjustments for new elements */
.section-title {
            text-align: center;
            margin-bottom: 40px;
            padding-top: 30px;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            color: var(--color-dark-charcoal);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }
        
        .section-title h2:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--color-silver);
        }
        
        .section-title p {
            font-size: 1.1rem;
            max-width: 700px;
            margin: 0 auto;
            color: var(--color-charcoal);
        }
        
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 50px;
        }
        
        .tool-card {
            background: var(--color-white);
            border-radius: 10px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        }
        
        .tool-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }
        
        .tool-icon {
            background: var(--color-dark-charcoal);
            height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: var(--color-white);
        }
        
        .tool-content {
            padding: 25px;
        }
        
        .tool-content h3 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: var(--color-dark-charcoal);
        }
        
        .tool-content p {
            color: var(--color-charcoal);
            margin-bottom: 20px;
            min-height: 80px;
        }
        
        .tool-link {
            display: inline-block;
            padding: 10px 20px;
            background: var(--color-silver);
            color: var(--color-dark-charcoal);
            text-decoration: none;
            border-radius: 5px;
            font-weight: 600;
            transition: background 0.3s ease, color 0.3s ease;
        }
        
        .tool-link:hover {
            background: var(--color-dark-charcoal);
            color: var(--color-white);
        }
        
        .tool-link i {
            margin-left: 8px;
            font-size: 0.9rem;
        }
/* Responsive Styles */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-left {
        grid-column: 1 / -1;
        text-align: center;
    }
	.features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    #main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    #main-nav.active {
        right: 0;
    }
    
    #main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    #main-nav li {
        margin: 0 0 15px 0;
    }
    
	.section-title h2 {
                font-size: 2rem;
            }
	
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 20px;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .hero-cover h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cover {
        min-height: 150px;
    }
    
    .hero-cover h1 {
        font-size: 1.5rem;
    }
	.features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .service-category, .qhse-category, .about-category {
        padding: 15px;
    }
}

@media (max-width: 480px) {
            .tool-icon {
                height: 100px;
                font-size: 2rem;
            }
            
            .tool-content {
                padding: 20px;
            }
            
            .section-title h2 {
                font-size: 1.8rem;
            }
        }