@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Premium Color Palette */
    --primary: #1e1e24; /* Deep Charcoal */
    --secondary: #2b2b36; /* Slate */
    --accent: #f59e0b; /* Vibrant Yellow/Orange (Amber) */
    --accent-light: #fde68a; /* Light Gold */
    --accent-gold: #eab308; /* Bright Yellow */
    --bg-light: #f8f9fa; /* Light elegant gray */
    --bg-white: #ffffff;
    --text-main: #333333;
    --text-muted: #6b7280;
    --text-light: #f9fafb;
    
    /* Gradients */
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%); /* Orange/Yellow glow */
    --gradient-silver: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);

    /* UI Elements */
    --font-main: 'Outfit', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 95px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--primary); line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* -- Header Wrapper (New Dark Theme) -- */
.header-wrapper {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10000;
    background: #35343a; /* Dark gray base */
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}
.header-wrapper.scrolled {
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}
.header-bg-right {
    position: absolute;
    top: 0;
    right: -100px;
    bottom: 0;
    width: 65%; /* Adjust depending on logo width vs nav width */
    background: linear-gradient(to right, #1d4ed8 0%, #1e3a8a 100%);
    transform: skewX(-20deg);
    transform-origin: top;
    z-index: 0;
}

/* -- Top Bar -- */
.top-bar {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    padding: 5px 0;
    font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    max-height: 100px;
    overflow: hidden;
}
.header-wrapper.scrolled .top-bar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-bottom-width: 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; }
.top-bar-left { gap: 15px; }
.top-bar-right { justify-content: flex-end; }

.top-bar a, .top-bar span { color: #ddd; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.top-bar a:hover { color: var(--accent-light); }
.top-social-icons { display: inline-flex; gap: 18px; margin-left: 10px; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 20px;}
.top-btn { margin-left: 20px; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 20px; font-weight: 600;}

/* -- Header -- */
.site-header {
    position: relative;
    z-index: 1;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 60px; transition: height 0.4s ease; }
.header-wrapper.scrolled .header-inner { height: 65px; }
.logo-img { height: 42px; object-fit: contain; filter: brightness(0) invert(1); transition: all 0.4s ease; }
.logo-img:hover { transform: scale(1.03); }
.header-wrapper.scrolled .logo-img { height: 42px; }
.logo-text { font-size: 1.8rem; font-weight: 800; color: #fff; letter-spacing:-0.5px; transition: font-size 0.4s ease; }
.header-wrapper.scrolled .logo-text { font-size: 1.5rem; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links > li > a {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 10px 0;
    position: relative;
    letter-spacing: 0px;
    display: flex; align-items: center;
}
.nav-links > li > a::before {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px;
    background: var(--gradient-warm); transition: var(--transition); transform: translateX(-50%); border-radius: 2px;
}
.nav-links > li > a:hover { color: var(--accent-light); }
.nav-links > li > a:hover::before { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; background: var(--gradient-warm); color: var(--bg-white);
    font-weight: 700; font-size: 0.95rem; border-radius: 50px;
    transition: var(--transition); border: none; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.btn:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 12px 25px rgba(245, 158, 11, 0.5); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; }
.btn-outline:hover { background: var(--gradient-warm); color: #fff; border-color: transparent; }
.btn-accent { background: var(--gradient-silver); color: var(--primary); border: none; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: #fff; color: var(--primary); transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 30px rgba(255,255,255,0.4); }

/* Header CTA Button */
.header-cta .btn { padding: 10px 24px; font-size: 0.85rem; }

/* -- Modern Split Hero Section -- */
.modern-hero {
    position: relative;
    padding: 60px 0;
    min-height: 40vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #eaedee 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.modern-hero-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at top right, rgba(29, 78, 216, 0.05) 0%, transparent 60%);
    z-index: 1;
}
.modern-hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
}
.mh-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}
.mh-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(194, 65, 12, 0.1); /* Darker orange bg */
    border: 1px solid rgba(194, 65, 12, 0.3);
    color: #c2410c; /* High contrast dark orange */
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}
.mh-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}
.mh-desc {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 45px;
    font-weight: 400;
}
.mh-actions {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

/* =========================================
   PROJECT & SERVICE DETAILS (TWO COLUMN & LIGHTBOX)
   ========================================= */

/* 2 Column Layout */
.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
@media(max-width: 900px) {
    .project-detail-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Gallery Box */
.pg-main-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.3s;
    user-select: none;
    -webkit-user-select: none;
}
.pg-main-img:hover { transform: scale(1.02); }

.pg-gallery-container {
    margin-top: 15px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    padding: 10px;
    background: #fff;
}
.pg-thumbs-wrapper {
    --col-width: calc((100% - 30px) / 4);
    position: relative;
    overflow: hidden;
    width: 100%;
}
.pg-thumbs {
    display: grid;
    grid-template-rows: 80px 80px;
    grid-auto-flow: column;
    grid-auto-columns: var(--col-width);
    gap: 10px;
    transition: transform 0.3s ease;
}
.pg-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    user-select: none;
    -webkit-user-select: none;
    border: 2px solid transparent;
}
.pg-thumb:hover, .pg-thumb.active {
    opacity: 1;
    border-color: var(--accent);
}
.pg-gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 0 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}
.pg-gallery-controls {
    display: flex;
    gap: 8px;
}
.pg-gallery-controls button {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}
.pg-gallery-controls button:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-color: #9ca3af;
}

/* Base Lightbox */
.custom-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.custom-lightbox.show { display: flex; }
.cl-img { max-width: 90%; max-height: 80vh; border-radius: 10px; box-shadow: 0 0 30px rgba(0,0,0,0.5); user-select: none; -webkit-user-select: none; }
.cl-close { position: absolute; top: 20px; right: 30px; font-size: 2rem; color: #fff; cursor: pointer; transition: 0.3s; user-select: none; -webkit-user-select: none; }
.cl-close:hover { color: var(--accent); transform: scale(1.1); }
.cl-prev, .cl-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 2rem; color: #fff; cursor: pointer; padding: 20px;
    background: rgba(0,0,0,0.5); border-radius: 50%; transition: 0.3s;
    user-select: none; -webkit-user-select: none;
}
.cl-prev:hover, .cl-next:hover { background: var(--accent); }
.cl-prev { left: 20px; }
.cl-next { right: 20px; }
.mh-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(0,0,0,0.3);
}
.mh-btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.mh-stats {
    display: flex;
    gap: 20px;
    border-top: none;
    padding-top: 10px;
}
.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--accent);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}
.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}
.stat-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Imagery Side */
.mh-images {
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: stretch;
    height: 225px;
    animation: fadeInUp 1.2s ease-out;
}
.img-large {
    flex: 2;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.img-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-small-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
}
.img-small-group img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.mh-experience-box {
    background: var(--gradient-warm);
    border-radius: 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
    animation: pulseGlow 3s infinite alternate;
}
@keyframes pulseGlow {
    from { box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3); }
    to { box-shadow: 0 20px 45px rgba(245, 158, 11, 0.6); }
}
.mh-experience-box i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}
.mh-experience-box span {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
}

/* -- Page Header (Inner pages) -- */
.page-header {
    min-height: 40vh;
    display: flex; align-items: center; justify-content: center; position: relative;
    background-size: cover; background-position: center;
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(30,30,36,0.92) 0%, rgba(30,30,36,0.6) 100%);
    z-index: 1;
}
.page-header .container { position: relative; z-index: 2; width: 100%; }
.page-header-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}
.page-header-content h1 {
    font-size: 3.5rem; font-weight: 800; color: var(--bg-white);
    margin-bottom: 10px; letter-spacing: -0.5px;
}
.page-header-content p {
    font-size: 1.2rem; color: var(--accent-light);
    font-weight: 300; max-width: 600px; margin: 0 auto;
}

/* -- Sections & Cards -- */
.section { padding: 100px 0; position: relative; }
.section-alt { background-color: var(--bg-white); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-subtitle { display: block; color: #c2410c; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; }
.section-title { font-size: 3rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; letter-spacing: -0.5px;}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.card {
    background: var(--bg-white); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: var(--transition); border: 1px solid rgba(0,0,0,0.03);
    position: relative; top: 0;
}
.card:hover {
    top: -10px; box-shadow: var(--shadow-hover);
}
.card-img-wrap { position: relative; overflow: hidden; height: 260px; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img-wrap img { transform: scale(1.08); }
.card-badge {
    position: absolute; top: 20px; left: 20px; background: var(--gradient-warm);
    color: white; padding: 5px 15px; border-radius: 30px; font-size: 0.8rem; font-weight: 700;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4); text-transform: uppercase; letter-spacing: 1px;
}
.card-body { padding: 30px; }
.card-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; color: var(--primary); }
.card-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 20px; line-height:1.6; }
.card-link {
    display: inline-flex; align-items: center; gap: 8px; color: var(--accent);
    font-weight: 800; font-size: 0.95rem; text-transform: uppercase; transition: var(--transition);
}
.card-link i { transition: var(--transition); color: var(--accent-gold); }
.card-link:hover { color: #ea580c; transform: translateX(5px); }
.card-link:hover i { transform: translateX(5px); color: #ea580c; }

/* -- Advanced Footer -- */
.site-footer { background: var(--primary); color: #fff; padding: 100px 0 0; position: relative; overflow: hidden; }
.footer-pattern { position: absolute; inset: 0; opacity: 0.03; background-image: radial-gradient(white 1px, transparent 1px); background-size: 30px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; position: relative; z-index: 2; margin-bottom: 60px; }

.footer-widget-about .footer-logo { max-height: 60px; margin-bottom: 25px; filter: brightness(0) invert(1); }
.footer-widget-about p { color: #a1a1aa; font-weight: 300; margin-bottom: 25px; line-height: 1.8; max-width: 90%; }
.footer-socials { display: flex; gap: 15px; }
.footer-socials a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: center; align-items: center; color: #fff; transition: var(--transition);
}
.footer-socials a:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); transform: translateY(-5px); }

.footer-widget h3 { color: #fff; font-size: 1.2rem; font-weight: 600; margin-bottom: 30px; position:relative; padding-bottom:15px; }
.footer-widget h3::after { content:''; position:absolute; left:0; bottom:0; width:40px; height:2px; background:var(--accent); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #a1a1aa; font-weight: 400; display: inline-block; transition: var(--transition); }
.footer-links a:hover { color: #fff; transform: translateX(5px); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; color: #a1a1aa; }
.footer-contact-item i { color: var(--accent); font-size: 1.2rem; margin-top: 4px; }
.footer-contact-item span { line-height: 1.6; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; font-size: 0.9rem; color: #71717a; }
.footer-bottom a { color: #a1a1aa; }
.footer-bottom a:hover { color: #fff; }

/* Admin Live Editor */
.editable { position: relative; border-bottom: 1px dashed rgba(150,150,150,0.5); cursor: pointer; transition: 0.3s; }
.editable:hover { background: rgba(200,200,200,0.1); }
.editable::before {
    content: '\f044'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: -15px; right: -15px; color: var(--bg-white); background: #eab308;
    width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 10px; opacity: 0; transform: scale(0.5); transition: 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index:10;
}
.editable:hover::before { opacity: 1; transform: scale(1); }

/* Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100;
}

@media (max-width: 992px) {
    .header-inner { flex-direction: row; justify-content: space-between; height: 70px; padding: 0 10px 0 20px; gap:0; }
    .menu-toggle { display: block; margin-left: auto; margin-right: 5px; }
    .nav-links { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--secondary); 
        flex-direction: column; 
        padding: 20px 0; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .nav-links.show { display: flex; }
    .nav-links > li > a { justify-content: center; padding: 15px 0; }
    .header-bg-right {
        width: 150px;
        right: -30px;
        transform: skewX(-20deg);
    }
    
    .modern-hero-container { flex-direction: column; text-align: center; }
    .mh-actions { justify-content: center; }
    .mh-stats { justify-content: center; }
    .mh-images { height: auto; flex-direction: column; padding-bottom: 40px; }
    .img-small-group { padding-top: 0; flex-direction: row; }
    .img-small-group img { height: 200px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .top-bar { display:none; }
}
@media (max-width: 768px) {
    .mh-content h1 { font-size: 2.2rem; margin-bottom: 15px; }
    .section-title { font-size: 2rem !important; }
    .mh-badge { font-size: 0.70rem; padding: 6px 14px; display: inline-block; white-space: normal; line-height: 1.4; margin-bottom: 20px; }
    .mh-actions { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto 30px; gap: 15px; }
    .mh-actions .btn { width: 100%; justify-content: center; padding: 14px 0; font-size: 0.9rem; }
    .mh-stats { flex-direction: row; gap: 8px; align-items: stretch; justify-content: center; }
    .stat-item { padding: 12px 10px; border-bottom-width: 3px; align-items: center; text-align: center; }
    .stat-num { font-size: 1.5rem; margin-bottom: 5px; }
    .stat-text { font-size: 0.65rem; }
    .img-small-group { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap:40px; }
    .footer-bottom { flex-direction: column; gap:10px; text-align:center; }
    .pg-thumbs-wrapper { --col-width: calc((100% - 10px) / 2); }
    .pg-thumbs { grid-auto-columns: var(--col-width); }
}

body.menu-open .mobile-action-bar { display: none !important; }
