:root {
    --cream: #fffccf;
    --deep-green: #1d3621;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--deep-green);
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Reset */
* {
    box-sizing: border-box;
    border-radius: 0 !important;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Bootstrap row fix */
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    margin-right: 0;
    margin-left: 0;
}

/* Navigation */
.custom-navbar {
    background-color: rgba(255, 252, 207, 0.95);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--deep-green);
    z-index: 999;
}

.logo h2{
    color:  var(--deep-green);

    
} 

.logo img {
    height: 80px;
    width: auto;
}

.logo,
.logo:hover {
    text-decoration: none;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    padding: 6px;
    text-decoration: none;
    color: var(--deep-green) !important;
}

.nav-toggle:hover {
    color: var(--deep-green) !important;
}

.custom-dropdown {
    min-width: 240px;
}

.custom-dropdown .dropdown-item:hover,
.custom-dropdown .dropdown-item:focus {
    background-color: var(--deep-green);
    color: var(--white);
}

/* Hero */
.hero {
    min-height: 90vh;
    background:
        linear-gradient(rgba(29, 54, 33, 0.6), rgba(29, 54, 33, 0.6)),
        url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&q=80&w=2070') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--cream);
}

.hero-label {
    letter-spacing: 3px;
}

.hero-text-box {
    border-left: 5px solid var(--cream);
    padding-left: 30px;
}

.btn-tech {
    background-color: var(--cream);
    color: var(--deep-green);
    font-weight: 600;
    padding: 15px 40px;
    border: 1px solid var(--cream);
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn-tech:hover {
    background-color: transparent;
    color: var(--cream);
}

/* Sector Grid */
.sector-controls {
    padding: 80px 0;
}

.portfolio-group {
    display: block;
    opacity: 1;
    visibility: visible;
    margin-bottom: 80px;
    transition: opacity 0.4s ease;
    scroll-margin-top: 100px;
}

.section-title {
    letter-spacing: 2px;
    border-left: 4px solid var(--deep-green);
    padding-left: 15px;
    color: var(--deep-green);
    margin-bottom: 2rem;
}

.sector-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    display: block;
}

.sector-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    /* filter: grayscale(100%); */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.sector-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.card-content {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--deep-green);
    transition: all 0.3s ease;
    gap: 12px;
}

.card-content h4 {
    font-size: 1.1rem;
}

.sector-card:hover .card-content {
    border-bottom-width: 2px;
}

.arrow-link {
    font-size: 1.3rem;
    color: var(--deep-green);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sector-card:hover .arrow-link {
    transform: translateX(8px);
}

/* Utility class */
.hidden-card {
    display: none !important;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.card-actions .btn {
    font-size: 0.75rem;
    padding: 6px 12px;
}

/* Parallax */
.parallax-about {
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&q=80&w=2071');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
}

.parallax-overlay {
    background-color: var(--deep-green);
    color: var(--cream);
    padding: 60px;
    max-width: 600px;
    margin-left: 10%;
}

/* Footer */
footer {
    background-color: var(--cream);
    padding: 80px 0 40px;
    color: var(--deep-green);
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.footer-link {
    text-decoration: none;
    color: var(--deep-green);
    font-weight: 300;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: var(--deep-green);
    opacity: 0.8;
}

.footer-copy {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 991px) {
    .logo img {
        height: 60px;
    }

    .hero {
        min-height: 75vh;
    }

    .parallax-overlay {
        margin: 0 5%;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .sector-card img {
        height: 300px;
    }

    .portfolio-group {
        margin-bottom: 40px;
        scroll-margin-top: 85px;
    }

    .parallax-about {
        background-attachment: scroll;
        min-height: 450px;
    }

    .parallax-overlay {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero-text-box {
        padding-left: 15px;
        border-left-width: 3px;
    }

    .display-2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .btn-tech {
        width: 100%;
        text-align: center;
    }

    .logo img {
        height: 46px;
    }

    .nav-toggle {
        font-size: 1.8rem;
    }

    .custom-dropdown {
        min-width: 200px;
        max-width: 90vw;
    }

    .card-content h4 {
        font-size: 1rem;
    }
}