/* ============================================================
   LEED PROJECTS — Custom Theme Stylesheet
   Colors: #2C302F (dark), #607966 (green), #393E3A (slate)
   Fonts:  Cormorant Garamond (headings), Montserrat (body)
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --primary-color:    #607966;
    --secondary-color:  #2C302F;
    --accent-color:     #393E3A;
    --text-light:       #F8F9FA;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, .font-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.15;
}

body, p, span, button, a, label, input, textarea, .font-body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* --- Base --- */
body {
    background-color: var(--secondary-color);
    color: var(--text-light);
    overflow-x: hidden;
}

section {
    padding: 100px 0;
}

/* --- Utility Classes --- */
.bg-theme-dark  { background-color: var(--secondary-color) !important; }
.bg-theme-green { background-color: var(--primary-color)   !important; }
.text-theme-green { color: var(--primary-color) !important; }

/* --- Buttons --- */
.btn-primary-theme {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    display: inline-block;
}
.btn-primary-theme:hover {
    background-color: #4d6152;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.btn-secondary-theme {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 12px 32px;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    display: inline-block;
}
.btn-secondary-theme:hover {
    background-color: #fff;
    color: var(--secondary-color);
}

/* --- Sticky Glassmorphism Header --- */
.navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.glass-header {
    background: rgba(44, 48, 47, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* --- Navbar Link Hover --- */
.navbar-nav .nav-link {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* --- Service Cards hover --- */
[style*="border: 1px solid rgba(255,255,255,0.05)"]:hover,
.scope-card:hover {
    background: rgba(96, 121, 102, 0.08) !important;
    border-color: rgba(96, 121, 102, 0.3) !important;
    transition: var(--transition-smooth);
}

/* --- Contact Form Inputs --- */
.contact-input {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    padding: 12px 16px;
    transition: border-color 0.3s ease;
}
.contact-input::placeholder {
    color: rgba(255,255,255,0.35);
}
.contact-input:focus {
    outline: none;
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
    background: rgba(255,255,255,0.08) !important;
}

/* --- Scroll Fade-in Animation --- */
.leed-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.leed-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Tweaks --- */
@media (max-width: 991px) {
    .navbar {
        background-color: var(--secondary-color) !important;
        box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    }
    .navbar-collapse {
        background: var(--secondary-color);
        padding-top: 40px;
        padding-bottom: 60px;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.05);
        margin-top: 15px;
    }
    .navbar-nav .nav-item {
        margin: 15px 0;
    }
    .navbar-nav .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    h1.display-3 { font-size: clamp(2rem, 8vw, 3.5rem); }
    h2.display-5, h2.display-4 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .btn-primary-theme, .btn-secondary-theme { padding: 10px 22px; font-size: 0.72rem; }
}

@media (max-width: 480px) {
    section { padding: 48px 0; }
    h1.display-3 { font-size: clamp(1.6rem, 9vw, 2.8rem); }
    .lead { font-size: 0.9rem; }
}

/* --- About Section Interactive Carousel --- */
.about-carousel-section {
    position: relative;
    padding: 0 !important;
    background: #fff;
    min-height: 600px;
}

.about-carousel-wrapper {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    height: 100%;
}

.about-slide {
    flex: 0 0 100%;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: #fff;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.about-slide.active {
    opacity: 1;
}

.about-text-content {
    max-width: 600px;
    margin: 0 auto;
}

.about-text-content h2 {
    color: var(--secondary-color);
    font-weight: 700;
}

.about-text-content p {
    color: #333;
    font-weight: 500;
}

.about-image-frame {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.about-image-frame img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.about-slide.active .about-image-frame img {
    transform: scale(1.05);
}

/* --- Carousel Navigation --- */
.about-nav {
    position: absolute;
    bottom: 40px;
    left: 80px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.about-prev, .about-next {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.about-prev:hover, .about-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* --- Carousel Indicators --- */
.about-indicators {
    position: absolute;
    bottom: 58px;
    left: 220px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 30px;
    height: 2px;
    background: rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
}

/* --- Responsive Carousel --- */
@media (max-width: 991px) {
    .about-carousel-section { min-height: auto; }
    .about-slide { min-height: auto; flex-direction: column; }
    .about-image-frame { height: 400px; }
    .about-nav { display: none; }
    .about-indicators {
        left: 0;
        bottom: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 12px;
    }
    .about-text-content { padding: 40px 20px 80px 20px !important; text-align: center; }
}

/* --- Utility: Contain Image for Screenshots --- */
.img-fit-contain img {
    object-fit: contain !important;
    background: #f8f9fa; /* Light background for screenshots */
}
.about-slide.active .img-fit-contain img {
    transform: scale(1) !important; /* Disable zoom effect for UI screenshots */
}

/* --- Client Section Carousel --- */
.client-slider-viewport {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.client-slider-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    gap: 0;
}

.client-card-item {
    flex: 0 0 33.333%;
    padding: 0 12px;
}

@media (max-width: 991px) {
    .client-card-item { flex: 0 0 50%; }
}

@media (max-width: 768px) {
    .client-card-item { flex: 0 0 100%; }
}

.client-nav-controls {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.client-nav-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.client-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
