/* --- RESET & BASICS --- */
:root {
    /* NEW PALETTE: Deep Gunmetal & Vibrant Orange */
    --primary: #1e293b; /* Dark Slate / Gunmetal */
    --primary-dark: #0f172a; /* Darker shade for contrast */
    --accent: #f97316; /* Bright Safety Orange */
    --accent-hover: #ea580c; /* Darker Orange for hover */
    --light-bg: #f1f5f9; /* Light Grey-Blue for sections */
    --white: #ffffff;
    --text-dark: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
}

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

body { 
    font-family: 'Inter', sans-serif; /* Clean, modern body font */
    line-height: 1.6; 
    color: var(--text-dark); 
    background-color: var(--white); 
    overflow-x: hidden;
}

h1, h2, h3, h4 { 
    font-family: 'Montserrat', sans-serif; /* Geometric, strong header font */
    text-transform: uppercase; 
    letter-spacing: -0.5px; /* Tighter tracking for modern look */
    font-weight: 800;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; } /* Increased breathing room */
.bg-light { background-color: var(--light-bg); }
.text-center { text-align: center; }

/* IMPROVED BUTTONS */
.btn { 
    display: inline-block; 
    padding: 16px 36px; /* Larger touch targets */
    border-radius: 6px; 
    font-weight: 700; 
    text-transform: uppercase; 
    cursor: pointer; 
    border: none; 
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.btn-primary { 
    background-color: var(--accent); 
    color: var(--white); 
}
.btn-primary:hover { 
    background-color: var(--accent-hover); 
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 10px 15px rgba(249, 115, 22, 0.3);
}
.btn-outline { 
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3); 
    color: var(--white); 
    margin-left: 10px; 
}
.btn-outline:hover { 
    background-color: var(--white); 
    color: var(--primary); 
    border-color: var(--white);
}
.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}
.btn-outline-dark:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    border-color: var(--accent-hover);
}

/* --- HEADER & NAV --- */
header { 
    background: rgba(15, 23, 42, 0.95); /* Semi-transparent dark header */
    backdrop-filter: blur(10px); /* Modern frosted glass effect */
    color: var(--white); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }

/* Logo Styles from previous step */
.logo-img { height: 45px; width: auto; display: block; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 55px; width: auto; }

.nav-links { display: flex; gap: 30px; align-items: center;}
.nav-links a { color: rgba(255,255,255,0.9); font-size: 0.95rem; font-weight: 600; }
.nav-links a:hover { color: var(--accent); }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: white;}

/* --- HERO SECTION (THE BIG CHANGE) --- */
.hero { 
    /* Background is now set by JavaScript. This is a fallback. */
    background-color: var(--primary-dark);
    background-size: cover; 
    background-position: center; 
    min-height: 90vh; /* Changed to min-height for better mobile scaling */
    display: flex;
    align-items: center; 
    justify-content: center; /* Center content horizontally */
    color: var(--white); 
    padding-top: 80px;
}
.hero-content { max-width: 850px; margin: 0 auto; /* Center the content block */ }
.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 24px; 
    line-height: 1.1; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero p { 
    font-size: 1.25rem; 
    margin-bottom: 40px; 
    opacity: 0.9; 
    font-weight: 300; 
    max-width: 600px;
    margin-left: auto; /* Center the paragraph block */
    margin-right: auto; /* Center the paragraph block */
    line-height: 1.6;
}

/* --- ABOUT & FEATURES --- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-card { 
    background: var(--white); 
    padding: 40px 30px; 
    border-radius: 12px; 
    /* Enhanced default shadow for better depth */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
    text-align: left; 
    border-bottom: 4px solid var(--accent); 
    /* Ensure shadow transition is smooth */
    transition: all 0.3s ease;
}
.feature-card:hover { 
    transform: translateY(-8px); /* Slightly more pronounced lift */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}
.feature-card h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.25rem;}
.icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; display: block; }

/* --- PRODUCTS --- */
.product-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.spec-list li { margin-bottom: 25px; display: flex; align-items: flex-start; font-weight: 500; line-height: 1.6; }
.spec-list li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 20px; background: rgba(249, 115, 22, 0.1); padding: 4px 8px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; font-size: 0.9em; }
.spec-list li strong {
    margin-right: 6px; /* Adds consistent spacing after the colon */
    color: var(--primary); /* Optional: Keeps the title dark and sharp */
}

/* --- STATS SECTION (REDESIGNED) --- */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    margin: 0;
}
.stat-item {
    background: var(--light-bg); /* Use the light grey-blue background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}
.stat-item .stat-icon { 
    font-size: 2.5rem; 
    color: var(--accent); 
    margin-bottom: 15px; 
    display: block; 
}
.stat-item .stat-value { 
    font-size: 2.8rem; /* Slightly smaller */
    font-weight: 800; 
    color: var(--primary-dark); /* Dark color for text */
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.1; 
}
.stat-item .stat-label { 
    font-size: 1rem; 
    font-weight: 600; 
    color: var(--text-light); /* Lighter text for the label */
    margin-top: 5px; 
}


/* --- LIGHTBOX --- */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 2000; display: none; justify-content: center; align-items: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: var(--white); cursor: pointer; line-height: 1; }
.lightbox-close:hover { color: var(--accent); }
.lightbox-nav { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 2.5rem; /* Adjusted icon size for proportion */
    color: var(--white); 
    cursor: pointer; 
    width: 60px; /* Increased size */
    height: 60px; /* Increased size */
    background: rgba(0,0,0,0.4); 
    border-radius: 50%; 
    user-select: none; 
    /* Replaced flexbox with line-height for more precise character centering */
    text-align: center;
    line-height: 60px;
    transition: background-color 0.3s ease;
}
.lightbox-nav:hover { background: rgba(0,0,0,0.6); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Lightbox Loader */
.lightbox-loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
    animation: spin 1s linear infinite;
    display: none; /* Hidden by default */
    z-index: 2001; /* Above the image */
}
.lightbox.loading .lightbox-loader {
    display: block; /* Show when loading */
}
.lightbox.loading #lightbox-img {
    opacity: 0.5; /* Dim the old image while new one loads */
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- PORTFOLIO --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.project-item { position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.project-item img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.5s; }
.project-item:hover img { transform: scale(1.05); }
.project-info { padding: 25px; background: var(--white); }
.project-info h4 { color: var(--primary); margin-bottom: 8px; }
.project-item { cursor: pointer; }
.show-more-hint {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

/* --- COMPARISON TABLE --- */
/* --- COMPARISON REDESIGN --- */
.comparison-container {
    max-width: 900px;
    margin: 0 auto;
}
.comparison-card {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid var(--border);
}
.comparison-card-header {
    padding: 15px 25px;
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
}
.comparison-card-header h4 {
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}
.comparison-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.comparison-item {
    padding: 25px;
    text-align: center;
}
.comparison-item h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 700;
}
.comparison-item p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}
.comparison-item.crossblocks {
    background: #fffaf5; /* Very light orange */
    border-right: 1px solid var(--border);
}
.comparison-item.crossblocks h5 {
    color: var(--accent);
}
.comparison-item.crossblocks p {
    font-weight: 600;
    color: var(--text-dark);
}
.comparison-item.traditional p {
    color: var(--text-light);
}

/* --- CONTACT --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.form-group input, .form-group textarea, .form-group select { 
    width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; background: #f8fafc; transition: border 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); outline: none; background: white; }
.form-group textarea { height: 140px; resize: vertical; }

/* --- FOOTER --- */
footer { background: var(--primary-dark); color: var(--text-light); padding: 60px 0 30px; text-align: center; border-top: 5px solid var(--accent); }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--white); font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.copyright { font-size: 0.9rem; opacity: 0.6; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 20px; padding-top: 20px; }
.social-media-footer {
    margin: 30px 0;
}
.social-media-footer h4 {
    margin-bottom: 15px;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px; /* Increased gap for better spacing */
}
.social-icons a {
    color: var(--text-light); /* Lighter color for non-hover state */
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--white); /* Brighter on hover */
}
.social-icons svg {
    width: 28px;
    height: 28px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links { position: fixed; top: 80px; left: 0; width: 100%; height: calc(100vh - 80px); background: var(--primary-dark); flex-direction: column; justify-content: flex-start; padding: 40px 30px; display: none; border-top: 1px solid rgba(255,255,255,0.1); overflow-y: auto; }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; text-align: center; margin-bottom: 20px; }
    .nav-links a { font-size: 1.2rem; display: block; }
    .menu-toggle { display: block; }
    .container { padding: 0 20px; }
    
    .section { padding: 60px 0; }
    .hero { min-height: auto; padding: 140px 0 80px; text-align: center; justify-content: center; }
    .hero h1 { font-size: 2rem; }
    .btn { width: 100%; margin: 10px 0 0 0; }
    
    .stat-item .stat-value { font-size: 2.5rem; }

    .comparison-card-body {
        grid-template-columns: 1fr;
    }
    .comparison-item.crossblocks {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .product-specs, .contact-wrapper { grid-template-columns: 1fr; }
    .product-specs { gap: 40px; }
    .form-group input, .form-group textarea, .form-group select { font-size: 16px; } /* Prevent iOS zoom */

    .feature-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .stat-item { padding: 20px 15px; }
    .stat-item .stat-value { font-size: 2rem; }
    .stat-item .stat-label { font-size: 0.85rem; }

    .lightbox-nav { width: 44px; height: 44px; font-size: 1.8rem; line-height: 44px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 15px; font-size: 2.5rem; }

    .footer-links { flex-direction: column; gap: 12px; align-items: center; }
    .social-icons { gap: 20px; }

    .contact-info iframe { height: 200px; }

    .promo-content { padding: 30px 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 1rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
}

/* --- PROMO POPUP --- */
.promo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8); /* Dark overlay matching theme */
    backdrop-filter: blur(5px); /* Modern blur effect */
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.promo-popup.active {
    display: flex;
    opacity: 1;
}

.promo-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
}

.promo-popup.active .promo-content {
    transform: scale(1);
}

.promo-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    transition: color 0.2s;
}

.promo-close:hover {
    color: var(--accent);
}
