* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d71921;
    --secondary-color: #1a1a1a;
    --accent-color: #d71921;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --light-bg: #f8f8f8;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

header nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

header nav a:hover {
    color: var(--accent-color);
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/2BD1C51C-AD31-4DEC-9F42-ECC41470FDFF.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 10rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--hero-desc-color, var(--white)) !important;
}

.hero .btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.2rem 3rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.hero .btn:hover {
    background: transparent;
    color: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* About */
.about {
    color: var(--about-text-color, var(--text-dark));
}

.about h2 {
    font-size: 2.5rem;
    color: var(--about-text-color, var(--text-dark));
    margin-bottom: 1.5rem;
}

.about .container {
    max-width: 1200px;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Services */
.services {
    background: var(--light-bg);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
    border-top: 4px solid var(--primary-color);
    flex: 1 1 300px;
    max-width: 380px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

/* Industries */
.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.industry-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid var(--light-bg);
    transition: all 0.3s;
    flex: 1 1 200px;
    max-width: 280px;
}

.industry-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Portfolio */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: var(--white);
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    flex: 1 1 350px;
    max-width: 550px;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Why Choose Us */
.why-choose {
    background: var(--primary-color);
    color: var(--white);
}

.why-choose p {
    color: var(--white);
    opacity: 0.9;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    background: var(--white);
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    flex: 1 1 250px;
    max-width: 350px;
}

/* Process */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 1.1rem;
    border-left: 4px solid var(--accent-color);
}

/* Energy */
.energy {
    background: var(--light-bg);
}

.energy .container {
    max-width: 900px;
}

/* Compliance */
.compliance .container {
    max-width: 900px;
}

.standards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.standards h4 {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

/* Contact */
.contact {
    background: var(--primary-color);
    color: var(--white);
}

.contact h2 {
    color: var(--white);
}

.contact p {
    color: var(--white);
    opacity: 0.9;
}

.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form .btn {
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form .btn:hover {
    background: var(--secondary-color);
}

.contact-info {
    text-align: center;
    margin-top: 2rem;
}

.contact-info a {
    color: var(--accent-color);
}

/* Footer */
footer {
    background: #1a202c;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        padding-top: 80px;
        z-index: 1000;
    }

    header nav.active {
        right: 0;
    }

    header nav ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    header nav li {
        width: 100%;
    }

    header nav a {
        padding: 1.2rem 2rem;
        display: block;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-flex {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    section {
        padding: 4rem 0;
    }

    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   PORTFOLIO OVERLAY STYLES
   ============================================= */

.portfolio-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(215, 25, 33, 0.9), rgba(26, 26, 26, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.portfolio-overlay span {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--white);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.portfolio-item:hover .portfolio-overlay span {
    transform: translateY(0);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* =============================================
   FORM MESSAGE STYLES
   ============================================= */

.form-message {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    animation: slideIn 0.4s ease;
}

.form-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border: 2px solid #4CAF50;
    color: #2E7D32;
}

.form-success h3 {
    color: #2E7D32;
    margin: 1rem 0 0.5rem;
    font-size: 1.5rem;
}

.form-success p {
    color: #388E3C;
    line-height: 1.6;
}

.form-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05));
    border: 2px solid #F44336;
    color: #C62828;
}

.form-error h3 {
    color: #C62828;
    margin: 1rem 0 0.5rem;
    font-size: 1.5rem;
}

.form-error p {
    color: #D32F2F;
    line-height: 1.6;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* =============================================
   LIGHTBOX GALLERY STYLES
   ============================================= */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10001;
}

.lightbox-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    max-width: 60%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    line-height: 1;
}

.lightbox-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.8rem;
    z-index: 10002;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    text-align: center;
    z-index: 10001;
}

.lightbox-caption {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-counter {
    font-size: 0.875rem;
    opacity: 0.7;
}

.lightbox-thumbnail-strip {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    max-width: 80%;
    overflow-x: auto;
    padding: 0.5rem;
    z-index: 10001;
}

.lightbox-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lightbox-thumbnail:hover,
.lightbox-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Lightbox */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-title {
        display: none;
    }
    
    .lightbox-thumbnail-strip {
        bottom: 4rem;
    }
    
    .lightbox-thumbnail {
        width: 50px;
        height: 50px;
    }
}
