/* --- 1. LUXURY VARIABLES --- */
:root {
    /* --bg-dark: #0F1115; */
    --bg-dark: #080808;
    --bg-panel: #16181D;
    --accent-bronze: #C5A059;
    --text-white: #FFFFFF;
    --text-grey: #A0A0A0;
    --border-thin: 1px solid rgba(255,255,255,0.03);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}


h1, h2, h3, .brand-font {
    font-family: 'Raleway', serif;
    font-weight: 300;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- 2. HEADER & NAV --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(15,17,21,0.95), transparent);
    backdrop-filter: blur(5px);
}

.logo-container { display: flex; align-items: center; z-index: 1001; }
.logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}
.logo-container:hover .logo-img { transform: scale(1.05); }

.nav-links { display: flex; gap: 50px; }
.nav-item {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-grey);
    position: relative;
    font-family:'Raleway', serif ;
}
.nav-item:hover { color: var(--accent-bronze); }

/* HAMBURGER */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 20px;
    position: relative;
}
.bar {
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    transition: 0.4s;
}
.bar:nth-child(1) { top: 0; }
.bar:nth-child(2) { bottom: 0; }
.hamburger.active .bar:nth-child(1) { transform: rotate(45deg); top: 9px; }
.hamburger.active .bar:nth-child(2) { transform: rotate(-45deg); bottom: 9px; }

/* --- 3. HERO SLIDER --- */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

/* Grid Overlay */
/* ====================================================
   UNIVERSAL IMAGE GRID OVERLAY (MATCHES HERO GRID)
   Use class: .img-grid-wrapper
=====================================================*/

.img-grid-wrapper {
    position: relative;
    width: 100%;
    height: 500px;          /* change height if needed */
    overflow: hidden;
}

.img-grid-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Grid overlay */
.img-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    pointer-events: none;
}

.img-grid-block {
    border: 1px solid rgba(255,255,255,0.04);     /* soft elegant grid */
    transition: background-color 1s ease;
}

.img-grid-block.active-glow {
    background-color: rgba(197, 160, 89, 0.06);   /* same bronze glow tone */
}

/* Mobile – grid OFF for performance */
@media (max-width: 768px) {
    .img-grid-overlay { display: none; }
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-template-rows: repeat(7, 1fr);
    pointer-events: none;
}
.grid-block {
    border: 1px solid rgba(200, 200, 200, 0.03);
    transition: background-color 1s ease;
}
.grid-block.active-glow {
    background-color: rgba(53, 52, 52, 0.08);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}
.slide.active { opacity: 1; }
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 60%);
    background-color: rgba(0,0,0,0.3);
}
.slider-progress {
    display: none !important;
}

.hero-content {
    position: absolute;
    bottom: 15%;
    left: 60px;
    z-index: 10;
    max-width: 800px;
}
.hero-subtitle {
    color: var(--accent-bronze);
    letter-spacing: 6px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}
.hero-title {
    font-size: 4rem;
    font-family: 'Raleway',serif;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out 0.5s;

}
.slide.active .hero-title {
    opacity: 1;
    transform: translateY(0);
}

.slider-progress {
    position: absolute;
    bottom: 60px;
    right: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    z-index: 20;
}
.progress-bar {
    width: 100px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    position: relative;
}
.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--accent-bronze);
    width: 0%;
    transition: width 5s linear;
}
/* HERO BUTTON – VIEW PORTFOLIO */
.portfolio-btn {
    display: inline-block;
    padding: 0px 34px 14px 0px;
    /* margin-top: 25px; */

    /* border: 1px solid rgba(197, 160, 89, 0.8); */
    color: var(--accent-bronze);

    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;

    background: transparent;
    transition: all 0.3s ease;
}

.portfolio-btn:hover {
    /* background: var(--accent-bronze); */
    color: #FFFFFF; 
}

/* Fix button flowing outside hero on large screens */
.hero-content {
    position: absolute;
    bottom: 18%;
    left: 60px;
    z-index: 10;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .portfolio-btn {
        padding: 12px 28px;
        font-size: 11px;
    }
    a.portfolio-btn {
    margin-left: -21px;
}
    
}

/* --- 4. ABOUT --- */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    border-bottom: var(--border-thin);
}
.about-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-image {
    background-image: url('img/png-1.png');
    background-size: contain;
      background-repeat: no-repeat;

    background-position: center;
    filter: grayscale(100%) contrast(110%);
    min-height: 400px;
    background-color: #131313;
}

.section-label {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--accent-bronze);
    text-transform: uppercase;
    margin-bottom: 30px;
}
.about-heading {
    font-size: 3rem;
    margin-bottom: 40px;
    line-height: 1.2;
}

.about-text {
    color: var(--text-grey);
    font-weight: 300;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 500px;
}
/*Read more button of About*/
.read-btn {
     display: inline-flex;              
    align-items: center;
    justify-content: center;

    padding: 12px 32px 12px 0px;
    /* border: 1px solid #b89856;   */
    /* background: transparent; */
    color: #b89856;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;

    text-decoration: none;
    cursor: pointer;

    width: auto !important;            
    max-width: fit-content;            

}
.read-btn:hover {
    /* background: var(--accent-bronze); */
    color: #FFFFFF;
}

/* --- 5. VERTICALS --- */
.verticals-wrapper {
    padding: 100px 60px;
}
.verticals-header {
    text-align: center;
    margin-bottom: 40px;
}
.verticals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 600px;
    gap: 2px;
    background: rgba(255,255,255,0.05);
}
.v-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}
.v-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    filter: brightness(0.4) grayscale(20%);
}
.v-card:hover .v-img {
    transform: scale(1.1);
    filter: brightness(0.6) grayscale(0%);
}

.bg-1 { background-image: url('img/trinity_construction.jpg'); }
.bg-2 { background-image: url('img/trinity_realty.jpg'); }
.bg-3 { background-image: url('img/trinity_arte.jpg'); }

.v-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 40px;
    width: 100%;
    z-index: 2;
}
.v-num {
    font-size: 12px;
    color: var(--accent-bronze);
    border-bottom: 1px solid var(--accent-bronze);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}
.v-title {
    font-size: 2rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: 0.4s;
    font-family:'Raleway',serif ;
}
.v-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s 0.1s;
    font-weight: 300;
    font-family: 'Raleway',serif;
}
.v-card:hover .v-title,
.v-card:hover .v-desc {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 900px) {

    /* Fix vertical cards on mobile */
    .verticals-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .v-card {
        height: 300px;             /* reduce height for mobile */
        position: relative;
        overflow: hidden;
    }

    .v-img {
        transform: scale(1.1);     /* zoom slightly for better crop */
        filter: brightness(0.5);   /* darken background */
    }

    .v-content {
        position: absolute;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .v-title {
        font-size: 1.6rem;  
        line-height: 1.2;
        padding-bottom: 10px;
    }

    .v-desc {
        font-size: 0.85rem;
        margin-top: 5px;
        opacity: 1 !important;     /* always visible on mobile */
        transform: translateY(0) !important;
    }

    .v-num {
        margin-bottom: 10px;
    }
}


/* --- 6. IMPACTFUL SERVICES (DETAILED) --- */
.detailed-services {
    /* background: var(--bg-panel); */
        padding-top: 80px !important;
}

.service-row {
    display: flex;
    min-height: 500px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    scroll-margin-top: 100px;
}
.service-row:last-child { border-bottom: none; }
.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.s-text-col {
    flex: 1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.s-img-col {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}
.s-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}
.service-row:hover .s-img-col img {
    transform: scale(1.05);
}

.s-tag {
    color: var(--accent-bronze);
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}
.s-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #fff;
    font-family: 'Raleway', serif;
}
.s-desc {
    color: var(--text-grey);
    line-height: 1.7;
    font-size: 1rem;
    max-width: 90%;
    margin-bottom: 30px;
}
.s-list {
    list-style: none;
    margin-bottom: 30px;
}
.s-list li {
    margin-bottom: 10px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}
.s-list li::before {
    content: '•';
    color: var(--accent-bronze);
    font-size: 20px;
}

/* --- 7. CLIENTS SCROLL (MARQUEE) --- */
.clients-section {
    padding: 80px 0;
    background: var(--bg-dark);
    border-top: var(--border-thin);
    overflow: hidden;
}
.clients-header {
    text-align: center;
    margin-bottom: 50px;
}
.marquee-container {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.marquee-track {
    display: flex;
    gap: 80px;
    animation: scroll 25s linear infinite;
    width: max-content;
}

.client-logo {
    height: 50px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: 0.3s;
    color: #666;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    color: #fff;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- 8. FOOTER --- */
footer {
    border-top: var(--border-thin);
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-grey);
    background: var(--bg-dark);
}




.right-align { text-align: center; }

/* ============================
    SCROLL TO TOP BUTTON
============================ */
#scrollTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;

    background: transparent;
    border: 1px solid var(--accent-bronze);
    color: var(--accent-bronze);

    font-size: 22px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    border-radius: 50%;
    transition: all 0.3s ease;

    opacity: 0;
    visibility: hidden;
    z-index: 2000;
}

#scrollTopBtn:hover {
    background: var(--accent-bronze);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

    header { padding: 20px 30px; }

    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
    }
    .nav-links.mobile-active {
        transform: translateX(0);
    }

    .nav-item {
        font-size: 24px;
        font-family: 'Raleway', serif;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-content { left: 30px; bottom: 20%; }
    .slider-progress { bottom: 30px; right: 30px; }

    .about-section { grid-template-columns: 1fr; }
    .about-image { height: 300px; order: -1; }
    .about-content { padding: 0px 30px; }


   


    .verticals-wrapper { padding: 60px 20px; }
    .verticals-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .v-card { height: 350px; }
    .v-desc {
        opacity: 1;
        transform: translateY(0);
    }

    .service-row {
        flex-direction: column !important;
    }
    .s-img-col { height: 300px; }
    .s-text-col { padding: 20px 30px; }

    footer {
        flex-direction: column;
        gap: 40px;
        padding: 40px 30px;
    }

    .hero-grid-overlay { display: none; }
}
