/* Variables */
:root {
    --primary-green: #0a2f18; /* Dark green */
    --secondary-green: #14582f; /* Hover/lighter green */
    --accent-green: #1e7a42;
    --gold: #b28a52; /* Footer button color */
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #f4f6f5;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
}

.fs-7 { font-size: 0.875rem; }
.fs-8 { font-size: 0.75rem; }
.tracking-wide { letter-spacing: 0.05em; }

.bg-primary-green { background-color: var(--primary-green) !important; }
.text-primary-green { color: var(--primary-green) !important; }
.bg-light-gray { background-color: var(--bg-light); }
.text-gold { color: var(--gold) !important; }

/* Buttons */
.btn-primary-green {
    background-color: var(--primary-green);
    color: white;
    border: 1px solid var(--primary-green);
    transition: all 0.3s ease;
}
.btn-primary-green:hover {
    background-color: var(--secondary-green);
    color: white;
}
.btn-gold {
    background-color: var(--gold);
    border: 1px solid var(--gold);
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background-color: #9e7a48;
    color: white;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-green);
}
.top-bar a {
    color: white;
    transition: 0.3s;
}
.top-bar a:hover {
    color: var(--gold);
}

/* Navbar */
.navbar-brand .logo-red {
    color: #e31837; /* Match BSB red */
}
.navbar-nav .nav-link {
    color: var(--text-dark);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active-link {
    color: var(--primary-green);
}
.navbar-nav .nav-link.active-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-green);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
}
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1590846406792-0adc7f938f1d?auto=format&fit=crop&q=80&w=1920&h=800');
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,1) 40%, rgba(255,255,255,0.9) 70%, transparent 100%);
    z-index: 1;
}
.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.3s;
}
.hero-control:hover {
    background: var(--primary-green);
    color: white;
}
.hero-control.prev { left: 20px; }
.hero-control.next { right: 20px; }
.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.hero-indicators span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    background: transparent;
    cursor: pointer;
}
.hero-indicators span.active {
    background: var(--primary-green);
}

/* Section Dividers */
.section-divider {
    width: 20px;
    height: 20px;
    background-color: var(--primary-green);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* Cards */
.solution-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

/* Industry Icons */
.icon-box {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0 auto;
    transition: 0.3s;
}
.industry-icon:hover .icon-box {
    border-color: var(--primary-green) !important;
    color: var(--primary-green);
}
.collage-container {
    height: 400px;
    position: relative;
    padding-left: 50px;
}
.collage-img {
    height: 100%;
    width: 30%;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.3s;
}
.slanted-left { clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%); }
.slanted-center { clip-path: polygon(20% 0, 100% 0, 80% 100%, 0% 100%); margin-left: -15%; }
.slanted-right { clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%); margin-left: -15%; }

/* Experience Badge */
.experience-badge {
    position: absolute;
    bottom: -30px;
    right: 20px;
    max-width: 200px;
    z-index: 5;
}

/* Carousel / Projects */
.project-carousel {
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.project-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.project-img {
    width: calc(20% - 12px);
    min-width: 250px;
    height: 200px;
    object-fit: cover;
    scroll-snap-align: start;
    flex-shrink: 0;
}
.project-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-green);
    border: none;
    color: white;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.project-control.prev { left: -20px; }
.project-control.next { right: -20px; }

/* Responsive Adjustments */
@media (max-width: 991px) {
    .top-bar { display: none; } /* Hide top bar on mobile as per standard practice unless requested */
    .hero-gradient-overlay {
        width: 100%;
        background: rgba(255, 255, 255, 0.9);
    }
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 80px 0;
    }
    .hero-features { flex-direction: column; }
    
    .collage-container {
        padding-left: 0;
        height: 200px;
    }
    .collage-img { width: 33%; margin-left: 0 !important; clip-path: none !important; }
    
    .experience-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        max-width: 100%;
    }
    
    .project-control.prev { left: 0; }
    .project-control.next { right: 0; }
}

@media (max-width: 576px) {
    .project-img { width: 85%; }
     .hero-control.prev{
        display: none;
    }
    .hero-control.next{
        display: none;
    }
}