/* --- Variables & Reset --- */
:root {
    --bg-color: #1A1E23; /* Deep Slate */
    --bg-darker: #131619;
    --primary: #D65A31;  /* Electric Copper */
    --accent: #4D96FF;   /* Current Blue */
    --text-head: #FFFFFF;
    --text-body: #CCCCCC;
    
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --nav-height: 80px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--text-head);
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 100px 0; }
.bg-darker { background-color: var(--bg-darker); }
.text-copper { color: var(--primary); }
.center { text-align: center; }

.section-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #be4d28;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(214, 90, 49, 0.2);
}

.btn-outline {
    border-color: white;
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background-color: white;
    color: var(--bg-color);
    transform: translateY(-3px);
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(26, 30, 35, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    letter-spacing: -1px;
}

.logo .dot { color: var(--primary); }

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    transition: var(--transition);
}

.nav-link:hover { color: white; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: white;
    transition: var(--transition);
}

/* --- Hero Section (Video Update) --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden; /* Ensures video doesn't spill out */
    background-color: var(--bg-color); /* Fallback color */
}

/* The Video Element */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video fills screen without stretching */
    z-index: 0;
}

/* The Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    /* Slightly darker gradient for video to ensure text legibility */
    background: linear-gradient(135deg, rgba(26,30,35,0.6) 0%, rgba(26,30,35,0.6) 100%);
    z-index: 1;
}

/* Content Layer */
.hero-content {
    position: relative;
    z-index: 2; /* Sits above overlay */
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content .highlight {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.check-list { margin-top: 30px; }
.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}
.check-list span {
    color: var(--primary);
    font-weight: bold;
    margin-right: 15px;
}

.img-wrapper {
    position: relative;
}

.img-wrapper::before {
    content: '';
    position: absolute;
    top: 20px; left: 20px;
    width: 100%; height: 100%;
    border: 2px solid var(--primary);
    z-index: -1;
}

/* --- Services Grid (Symmetrical 3x2) --- */
.services-grid {
    display: grid;
    /* Force exactly 3 columns on desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(255,255,255,0.03);
    padding: 40px 30px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    /* Optional: Ensure cards are same height even if text varies */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* --- Service Icons --- */
.icon-box {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.icon-box svg {
    width: 45px;
    height: 45px;
    /* Default color: Subtle White */
    color: rgba(255, 255, 255, 0.3);
    /* Transition for hover effect */
    transition: all 0.4s ease;
}

/* Hover Effects on Service Card */
.service-card:hover .icon-box svg {
    /* On hover, turn Electric Copper */
    color: var(--primary);
    transform: scale(1.1);
    /* Optional: add a glow */
    filter: drop-shadow(0 0 8px rgba(214, 90, 49, 0.5));
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

/* --- Responsive Adjustments for Services --- */

/* Tablet (Landscape) - Switch to 2 columns */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - Switch to 1 column */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Projects (Zig Zag) --- */
.project-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.project-item:last-child { margin-bottom: 0; }

.project-item:nth-child(even) {
    flex-direction: row-reverse;
}

.project-content { flex: 1; }
.project-image { flex: 1; }

.project-content h3 { font-size: 2rem; margin-bottom: 5px; }
.project-meta {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.project-content p { margin-bottom: 15px; }
.result { color: white; border-left: 2px solid var(--primary); padding-left: 15px; }

/* --- Trust Section --- */
.trust-wrapper {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.trust-number {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}

.trust-item p { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: white;
    text-align: left;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
}

.faq-question .plus {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-bottom: 0;
}

.faq-answer p { padding-bottom: 20px; color: var(--text-body); }

.faq-item.active .faq-answer { max-height: 200px; } /* Adjust based on content */
.faq-item.active .plus { transform: rotate(45deg); }

/* --- Page Headers (Sub-pages) --- */
.page-header {
    height: 60vh; /* Taller for dramatic hero effect */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 50px;
}

/* Background Images */
.header-projects {
    /* Image: Modern home interior / lighting */
    background-image: url('images/projects.jpg');
}

.header-services {
    /* Image: Technical/Detail oriented (e.g., Fuse box or tools) */
    background-image: url('images/services.jpg');
}

/* Dark Overlay for Text Legibility */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26,30,35,0.2) 0%, rgba(26,30,35,0.5) 50%, var(--bg-color) 100%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2; /* Sits above overlay */
    padding-top: var(--nav-height);
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.header-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    color: #e0e0e0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .page-header { height: 50vh; }
    .header-content h1 { font-size: 2.2rem; }
    .header-content p { font-size: 1.1rem; padding: 0 20px; }
}

/* --- Active Nav State --- */
.nav-link.active {
    color: white;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* --- Gallery Grid (Masonry feel) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
}

/* Make some items taller for masonry effect */
.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(20%);
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* --- Process Steps (Services Page) --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 50px;
    text-align: center;
}

.step {
    flex: 1;
    background: rgba(255,255,255,0.02);
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.step-num {
    display: inline-block;
    width: 50px; height: 50px;
    background-color: var(--primary);
    color: white;
    font-weight: 800;
    line-height: 50px;
    border-radius: 50%;
    margin-bottom: 20px;
    font-family: var(--font-head);
}

.step h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .page-header h1 { font-size: 2rem; }
    .process-steps { flex-direction: column; }
    .gallery-item { grid-row: span 1 !important; height: 300px; }
}

/* --- Footer --- */
footer {
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand h2 { font-size: 1.5rem; }
.footer-contact { text-align: right; }
.footer-contact a { color: var(--primary); font-weight: bold; font-size: 1.2rem; }

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* --- Animation Classes --- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].show {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* --- Map Section --- */
.map-section {
    width: 100%;
    height: 500px; /* Adjust height as needed */
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 0; /* Removes potential gap below iframe */
}

.map-section iframe {
    width: 100%;
    height: 100%;
    
    filter: grayscale(100%) invert(92%) contrast(83%);
    
    
    transition: filter 0.5s ease;
}


.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; 
    z-index: 2;

}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-info p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--text-body);
}

.contact-details .c-item {
    margin-bottom: 30px;
}

.c-item h4 {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.c-item a, .c-item p {
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    margin: 0;
}

/* Form Styling */
.contact-form-container {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative; /* For Success Overlay */
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-body);
    margin-bottom: 8px;
    font-family: var(--font-head);
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background-color: rgba(26, 30, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    border-radius: 0; /* Architectural feel */
    appearance: none; /* Remove default browser styling */
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(26, 30, 35, 1);
    box-shadow: 0 0 10px rgba(214, 90, 49, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

/* Custom Select Arrow */
.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.full-width {
    width: 100%;
}

/* Success Message Overlay */
.form-success {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.form-success.active {
    opacity: 1;
    pointer-events: all;
}

.check-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.hidden {
    display: none; /* Semantic Helper */
}

/* Mobile Adjustments for Form */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-form-container {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .map-section {
        height: 350px; 
    }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        padding-top: 50px;
        transition: 0.3s;
    }

    .nav-menu.active { left: 0; }
    
    .nav-menu ul { flex-direction: column; gap: 40px; }

    .mobile-toggle { display: block; }
    
    .mobile-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .btn { display: block; text-align: center; }

    .about-grid { grid-template-columns: 1fr; }
    
    .project-item { flex-direction: column; }
    .project-item:nth-child(even) { flex-direction: column; }

    .trust-wrapper { flex-direction: column; gap: 40px; }
    
    .footer-content { flex-direction: column; gap: 30px; text-align: center; }
    .footer-contact { text-align: center; }
}

/* --- Lightbox / Modal Styles --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Sit on top of navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(26, 30, 35, 0.95); /* Deep Slate with opacity */
    backdrop-filter: blur(5px); /* Premium blur effect */
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--primary); /* Electric Copper */
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    z-index: 2001;
}

.lightbox-close:hover {
    color: white;
    transform: rotate(90deg);
}

/* Update Gallery Items to indicate clickability */
.gallery-item {
    cursor: zoom-in; /* Changes mouse cursor */
}

/* Optional: Add a subtle overlay icon on hover */
.gallery-item::after {
    content: '+';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    font-weight: 300;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
}