/* Variables */
:root {
    --primary-color: #0056b3;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-text: #fff;
    --dark-blue: #003a75;
    --gray: #6c757d;
    --spacing: 1rem;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin-bottom: var(--spacing);
    color: var(--primary-color);
}

p {
    margin-bottom: var(--spacing);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
}

.upcoming-btn {
    background-color: var(--gray);
    cursor: not-allowed;
}

.upcoming-btn:hover {
    background-color: var(--gray);
    transform: none;
    cursor: not-allowed;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto;
}

/* Centered heading for projects */
.centered-heading {
    text-align: center;
}

/* Centered button container */
.centered-button {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--light-text);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
}

/* Hero Section - FIXED: Remove white space */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1516937941344-00b4e0337589?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80') no-repeat center center/cover;
    color: var(--light-text);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--light-text);
    animation: fadeInDown 1.5s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.5s ease;
}

/* About Section - FIXED: Add padding to account for fixed header */
#about {
    background-color: var(--secondary-color);
    padding: 120px 0 80px; /* Added top padding to account for fixed header */
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.05);
}

/* Projects Section - FIXED: Add padding to account for fixed header */
#projects {
    padding: 120px 0 80px; /* Added top padding to account for fixed header */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: center;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.project-img {
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-details-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Contact Section - FIXED: Add padding to account for fixed header */
#contact {
    padding: 120px 0 80px; /* Added top padding to account for fixed header */
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-details i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Methanol Plant Detail Page - FIXED: Add padding to account for fixed header */
#methanol-details {
    padding: 120px 0 80px; /* Added top padding to account for fixed header */
}

.plant-hero {
    color: white;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
}

.plant-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Fix for Key Features indentation */
.plant-content ul {
    padding-left: 40px;
    margin-bottom: var(--spacing);
}

.plant-content li {
    margin-bottom: 10px;
    position: relative;
}

.plant-content li::before {
    content: "•";
    position: absolute;
    left: -20px;
    color: var(--primary-color);
}

.chart-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-btn:hover {
    color: #003a75;
}

/* Footer - FIXED: Remove margin above footer */
footer {
    background-color: var(--dark-blue);
    color: var(--light-text);
    padding: 40px 0 20px;
    text-align: center;
    margin-top: 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo, .footer-links, .footer-social {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-links h4, .footer-social h4 {
    color: var(--light-text);
    margin-bottom: 20px;
}

/* Quick links in a row */
.quick-links-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.quick-links-row a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
    padding: 5px 10px;
}

.quick-links-row a:hover {
    color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
   0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Page Sections - FIXED: Remove padding for home section */
.page-section {
    display: none;
    min-height: 100vh;
}

.page-section.active {
    display: block;
}

/* Specific styling for home section */
#home.page-section {
    padding: 0 !important;
    min-height: 100vh;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .logo-img {
        height: 50px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile adjustments for sections */
    #about, #projects, #contact, #methanol-details {
        padding: 100px 0 60px;
    }
    
    /* Mobile adjustments for quick links */
    .quick-links-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .plant-hero {
        padding: 60px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile adjustments for sections */
    #about, #projects, #contact, #methanol-details {
        padding: 90px 0 50px;
    }
}