  /* Energy Page Styles */
    :root {
        --primary: #0056b3;
        --primary-dark: #003366;
        --accent: #00a0e1;
        --light: #f8f9fa;
        --dark: #212529;
        --text-light: #ffffff;
        --text-dark: #333333;
    }
    
    /* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    overflow-x: hidden;
    width: 100%;
}

body.menu-open {
    overflow: hidden;
}

    
   /* Hero Section - Responsive */
.energy-hero {
    position: relative;
    width: 100%;
    height: auto; /* Changed from fixed height */
    min-height: 100vh; /* Full viewport height minimum */
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 86, 179, 0.7)), 
                url('../assets/MAFINA/mafina-images-pack/img4.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    padding: 4rem 1rem; /* Added padding for mobile */
}

.hero-conten {
    max-width: 90%; /* More flexible max-width */
    width: 100%;
    padding: 2rem 1rem; /* Better padding for mobile */
    z-index: 2;
}

.hero-conten .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem); /* Fluid typography */
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-conten .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem); /* Fluid typography */
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.4;
}

.hero-conten .hero-scroll {
    position: absolute;
    bottom: 20px;
    font-size: clamp(1.2rem, 4vw, 1.5rem); /* Fluid size */
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* Tablet View (768px and up) */
@media (min-width: 768px) {
    .energy-hero {
        padding: 4rem 2rem;
    }
    
    .hero-conten {
        max-width: 800px;
    }
    
    .hero-conten .hero-title {
        margin-bottom: 1.5rem;
    }
}

/* Desktop View (992px and up) */
@media (min-width: 992px) {
    .energy-hero {
        min-height: 80vh;
    }
}

/* Large Screens (1200px and up) */
@media (min-width: 1200px) {
    .hero-conten {
        padding: 0 2rem;
    }
}

/* Very Small Devices (below 400px) */
@media (max-width: 400px) {
    .energy-hero {
        padding: 3rem 1rem;
    }
    
    .hero-conten .hero-scroll {
        bottom: 15px;
    }
}

/* Maintain bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}
    
    /* Mission Section */
    .energy-mission {
        padding: 5rem 0;
        background-color: var(--light);
    }
    
    .mission-content {
        max-width: 900px;
        margin: 0 auto;
        text-align: center;
    }
    
    .mission-content h2 {
        font-size: 2.2rem;
        color: var(--primary-dark);
        margin-bottom: 1.5rem;
    }
    
    .mission-content p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .mission-statement {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--accent);
        margin-top: 2rem;
        position: relative;
        display: inline-block;
    }
    
    .mission-statement:before,
    .mission-statement:after {
        content: '"';
        font-size: 3rem;
        color: var(--accent);
        opacity: 0.3;
        position: absolute;
    }
    
    .mission-statement:before {
        top: -15px;
        left: -30px;
    }
    
    .mission-statement:after {
        bottom: -35px;
        right: -30px;
    }
    
    /* Solutions Section */
    .energy-solutions {
        padding: 6rem 0;
        background-color: white;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
        color: var(--primary-dark);
        margin-bottom: 1rem;
    }
    
    .section-divider {
        width: 80px;
        height: 4px;
        background: var(--accent);
        margin: 0 auto 1.5rem;
    }
    
    .section-description {
        font-size: 1.2rem;
        color: var(--text-dark);
        max-width: 700px;
        margin: 0 auto;
    }
    
    .solutions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .solution-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    
    .solution-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }
    
    .card-image {
        position: relative;
        height: 220px;
        overflow: hidden;
    }
    
    .image-zoom {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .solution-card:hover .image-zoom {
        transform: scale(1.1);
    }
    
    .solution-icon {
        width: 60px;
        height: 60px;
        background: var(--accent);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: -30px auto 1.5rem;
        color: white;
        font-size: 1.5rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .card-content {
        padding: 0 1.5rem 2rem;
        text-align: center;
    }
    
    .card-content h3 {
        color: var(--primary-dark);
        margin-bottom: 1rem;
    }
    
    .solution-features {
        margin-top: 1.5rem;
        text-align: left;
    }
    
    .solution-features li {
        display: flex;
        align-items: center;
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
    }
    
    .solution-features i {
        margin-right: 0.8rem;
        color: var(--accent);
    }
    
    /* Projects Section */
    .energy-projects {
        padding: 6rem 0;
        background-color: var(--light);
    }
    
    .project-item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        margin-bottom: 5rem;
    }
    
    .project-image {
        height: 400px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .image-parallax {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .project-item:hover .image-parallax {
        transform: scale(1.05);
    }
    
    .project-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .project-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }
    
    .project-header h3 {
        color: var(--primary-dark);
        font-size: 1.8rem;
    }
    
    .project-status {
        background: var(--accent);
        color: white;
        padding: 0.3rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .project-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .stat {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        text-align: center;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    
    .stat-number {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--accent);
    }
    
    .stat-label {
        font-size: 0.8rem;
        color: var(--text-dark);
    }
    
    .project-features {
        margin-top: 1rem;
    }
    
    .project-features h4 {
        color: var(--primary-dark);
        margin-bottom: 0.8rem;
    }
    
    .project-features li {
        margin-bottom: 0.5rem;
        position: relative;
        padding-left: 1.5rem;
    }
    
    .project-features li:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.6rem;
        width: 8px;
        height: 8px;
        background: var(--accent);
        border-radius: 50%;
    }


/* Projects Section - Mobile-First Responsive Fixes */
.energy-projects {
    padding: 3rem 1rem; /* Reduced padding with side margins */
    background-color: var(--light);
    overflow: hidden; /* Prevent any overflow */
}

.project-item {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%; /* Ensure full width */
}

.project-image {
    height: 220px; /* Reduced height for mobile */
    width: 100%; /* Full width */
    border-radius: 8px;
    overflow: hidden;
}

.project-content {
    width: 100%; /* Full width */
    padding: 0; /* Remove padding on mobile */
}

.project-header {
    flex-direction: column; /* Stack title and status */
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.project-header h3 {
    font-size: 1.4rem; /* Smaller heading */
    line-height: 1.3;
    color: var(--primary-dark);
    width: 100%; /* Full width */
    word-break: break-word; /* Prevent overflow */
}

.project-status {
    font-size: 0.8rem; /* Smaller status badge */
    padding: 0.2rem 0.8rem;
    align-self: flex-start; /* Keep left-aligned */
}

.project-stats {
    grid-template-columns: 1fr; /* Single column */
    gap: 0.8rem;
    margin: 1rem 0;
}

.stat {
    padding: 0.8rem; /* Reduced padding */
}

.stat-number {
    font-size: 1.4rem; /* Smaller numbers */
}

.stat-label {
    font-size: 0.75rem; /* Smaller labels */
}

.project-features li {
    font-size: 0.9rem; /* Slightly smaller text */
    margin-bottom: 0.4rem;
    padding-left: 1.2rem;
    line-height: 1.4;
}

.project-features li:before {
    top: 0.5rem; /* Better dot alignment */
}

/* Location badge adjustments */
.project-location {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    bottom: 10px;
    left: 10px;
}

/* Partner logos adjustments */
.partner-logos {
    flex-wrap: wrap; /* Allow wrapping */
    gap: 0.5rem; /* Reduced gap */
}

.partner-logo {
    height: 30px; /* Smaller logos */
    max-width: 80px; /* Prevent overflow */
}

/* Material tags adjustments */
.material-tags {
    gap: 0.4rem; /* Reduced gap */
}

.material-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
}

/* Tablet View (768px and up) */
@media (min-width: 768px) {
    .energy-projects {
        padding: 4rem 2rem;
    }
    
    .project-item {
        flex-direction: row; /* Side by side */
        gap: 2rem;
    }
    
    .project-image {
        height: 300px;
        flex: 1; /* Take available space */
    }
    
    .project-content {
        flex: 1; /* Take available space */
        padding: 0 1rem;
    }
    
    .project-header {
        flex-direction: row; /* Title and status inline */
        justify-content: space-between;
    }
    
    .project-stats {
        grid-template-columns: repeat(2, 1fr); /* Two columns */
    }
}

/* Desktop View (992px and up) */
@media (min-width: 992px) {
    .energy-projects {
        padding: 5rem;
    }
    
    .project-item {
        gap: 3rem;
        margin-bottom: 4rem;
    }
    
    .project-image {
        height: 350px;
    }
    
    .project-stats {
        grid-template-columns: repeat(3, 1fr); /* Three columns */
    }
    
    .project-header h3 {
        font-size: 1.6rem;
    }
}

/* Large Desktop View (1200px and up) */
@media (min-width: 1200px) {
    .project-image {
        height: 400px;
    }
    
    .project-header h3 {
        font-size: 1.8rem;
    }
}

.project-type {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.type-badge {
    background: var(--light);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-partners {
    margin-top: 1.5rem;
}

.project-partners h4 {
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.partner-logos {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.partner-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.project-materials {
    margin-top: 1.5rem;
}

.project-materials h4 {
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.material-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.material-tag {
    background: var(--light);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #ddd;
}

/* Animation Adjustments for New Projects */
.project-item:nth-child(3) {
    animation-delay: 0.2s;
}

.project-item:nth-child(4) {
    animation-delay: 0.4s;
}

    
    /* Technology Section */
    .energy-technology {
        padding: 6rem 0;
        background: white;
    }
    
    .tech-tabs {
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .tab-header {
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
        border-bottom: 1px solid #eee;
    }
    
    .tab-link {
        padding: 0.8rem 2rem;
        background: none;
        border: none;
        border-bottom: 3px solid transparent;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-dark);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .tab-link:hover {
        color: var(--primary);
    }
    
    .tab-link.active {
        color: var(--primary);
        border-bottom: 3px solid var(--accent);
    }
    
    .tab-content {
        background: var(--light);
        border-radius: 8px;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .tab-pane {
        display: none;
    }
    
    .tab-pane.active {
        display: block;
    }
    
    .tech-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }
    
    .tech-text h3 {
        color: var(--primary-dark);
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
    }
    
    .tech-features {
        margin-top: 1.5rem;
    }
    
    .tech-features li {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .tech-features i {
        margin-right: 0.8rem;
        color: var(--accent);
        font-size: 1.2rem;
    }
    
    .tech-image {
        height: 300px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    /* CTA Section */
    /* Mobile-First CTA Section */
.energy-cta {
    position: relative;
    width: 100%;
    min-height: 300px; /* Reduced height for mobile */
    padding: 2rem 1rem; /* More compact padding */
    background: url('../assets/MAFINA/mafina-images-pack/img4.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7);
}

.cta-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 95%; /* More narrow on mobile */
    padding: 1rem;
}

.cta-content h2 {
    font-size: 1.5rem; /* Smaller heading */
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-content p {
    font-size: 0.9rem; /* Smaller paragraph */
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.btn {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem; /* More compact buttons */
    font-size: 0.9rem; /* Smaller button text */
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Small Phones (up to 375px) */
@media (max-width: 375px) {
    .energy-cta {
        min-height: 280px;
        padding: 1.5rem 0.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* Tablet View (768px and up) */
@media (min-width: 768px) {
    .energy-cta {
        min-height: 350px;
        padding: 3rem 2rem;
    }
    
    .cta-content {
        max-width: 85%;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn {
        width: auto;
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
}

/* Desktop View (992px and up) */
@media (min-width: 992px) {
    .energy-cta {
        min-height: 400px;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-content p {
        font-size: 1.2rem;
    }
}

/* Button States (for devices that support hover) */
@media (hover: hover) {
    .btn-primary:hover {
        background: transparent;
        color: white;
    }
    
    .btn-outline:hover {
        background: white;
        color: var(--primary-dark);
    }
}
    
    .btn-primary {
        background: var(--accent);
        color: white;
        border: 2px solid var(--accent);
    }
    
    .btn-primary:hover {
        background: transparent;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    .btn-outline {
        background: transparent;
        color: white;
        border: 2px solid white;
    }
    
    .btn-outline:hover {
        background: white;
        color: var(--primary-dark);
        transform: translateY(-3px);
    }
    
    .btn-pulse {
        animation: pulse 2s infinite;
    }
    
    /* Animations */
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    @keyframes slideUp {
        from { 
            opacity: 0;
            transform: translateY(30px);
        }
        to { 
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes slideLeft {
        from { 
            opacity: 0;
            transform: translateX(30px);
        }
        to { 
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes slideRight {
        from { 
            opacity: 0;
            transform: translateX(-30px);
        }
        to { 
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes grow {
        from { transform: scaleX(0); }
        to { transform: scaleX(1); }
    }
    
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
        40% { transform: translateY(-20px); }
        60% { transform: translateY(-10px); }
    }
    
    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(0, 160, 225, 0.7); }
        70% { box-shadow: 0 0 0 15px rgba(0, 160, 225, 0); }
        100% { box-shadow: 0 0 0 0 rgba(0, 160, 225, 0); }
    }
    
    /* Animation Classes */
    .animate-fade-in {
        opacity: 0;
        animation: fadeIn 1s ease-out forwards;
    }
    
    .animate-delay-1 {
        animation-delay: 0.3s;
    }
    
    .animate-delay-2 {
        animation-delay: 0.6s;
    }
    
    .animate-slide-up {
        opacity: 0;
        animation: slideUp 0.8s ease-out forwards;
    }
    
    .animate-slide-left {
        opacity: 0;
        animation: slideLeft 0.8s ease-out forwards;
    }
    
    .animate-slide-right {
        opacity: 0;
        animation: slideRight 0.8s ease-out forwards;
    }
    
    .animate-grow {
        transform-origin: center;
        animation: grow 0.8s ease-out forwards;
    }
    
    .animate-bounce {
        animation: bounce 2s infinite;
    }
    
    /* Responsive Design */
    @media (max-width: 992px) {
        .project-item {
            grid-template-columns: 1fr;
        }
        
        .project-image {
            order: -1;
            height: 300px;
        }
        
        .tech-content {
            grid-template-columns: 1fr;
        }
        
        .tech-image {
            order: -1;
            height: 250px;
        }
    }
    
    @media (max-width: 768px) {
        .hero-content .hero-title {
            font-size: 2.5rem;
        }

        .hero-content .hero-subtitle {
            font-size: 1.2rem;
        }
        
        .section-title {
            font-size: 2rem;
        }
        
        .cta-buttons {
            flex-direction: column;
            gap: 1rem;
        }
        
        .tab-header {
            flex-direction: column;
        }
        
        .tab-link {
            border-bottom: none;
            border-left: 3px solid transparent;
            text-align: left;
        }
        
        .tab-link.active {
            border-bottom: none;
            border-left: 3px solid var(--accent);
        }
    }