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

:root {
    --primary-color: #2E8B57; /* Sea Green */
    --primary-dark: #236b42;
    --secondary-color: #f8f9fa;
    --text-dark: #2c3e50;
    --blob-color: rgba(46, 139, 87, 0.1);
}

/* 2. Base Settings */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #fff; /* Ensure white background so blobs look right */
}

/* --- Components --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white; /* Explicitly set text color */
}

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

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    /* Fix: Ensure navbar stays on top of hero blobs */
    position: sticky;
    top: 0;
    z-index: 1000; 
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important; /* Force override */
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    margin-left: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 120px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1; /* Create stacking context */
}

/* Abstract Blobs Background */
.blob-bg {
    position: absolute;
    z-index: -1; /* Behind content */
    pointer-events: none; /* Prevent blobs from blocking clicks */
}

.blob-1 { 
    top: -10%; 
    right: -10%; 
    width: 600px; 
    opacity: 0.6; 
    animation: float 8s ease-in-out infinite; 
}

.blob-2 { 
    bottom: -10%; 
    left: -10%; 
    width: 500px; 
    opacity: 0.4; 
    animation: float 10s ease-in-out infinite reverse; 
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, 30px); }
    100% { transform: translate(0, 0); }
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subhead {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Hero Core Services Card */
.core-services-card {
    background: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(46, 139, 87, 0.15);
    padding: 2rem;
    height: 100%;
}

.core-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.core-list-item i {
    color: var(--primary-color);
    margin-right: 15px;
    background: rgba(46, 139, 87, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* --- Services Section --- */
.section-padding {
    padding: 80px 0;
}

.service-card {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: white;
    height: 100%; 
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.service-card .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1; 
}

.service-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-desc {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.service-link {
    margin-top: auto; 
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.service-link i {
    margin-left: 8px;
    transition: margin 0.2s;
}

.service-card:hover .service-link i {
    margin-left: 12px;
}

/* --- Enhanced Modal Styling --- */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(46, 139, 87, 0.15);
    overflow: hidden;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.modal-footer {
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem 2rem;
}

/* --- About Section --- */
.bg-light-blob {
    background-color: #fcfdfd;
    position: relative;
}

.team-carousel {
    max-width: 600px;
    margin: 0 auto;
}

.team-member-card {
    text-align: center;
    padding: 2rem;
}

.team-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-color);
    padding: 3px;
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.carousel-control-prev, .carousel-control-next {
    display: none;
}

/* --- Contact Section --- */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Footer --- */
footer {
    background: linear-gradient(to left, rgba(46, 139, 87, 0.15) 0%, #ffffff 100%);
    color: var(--text-dark);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,0.05);
}

footer h4, footer h5 {
    color: var(--primary-color);
    font-weight: 700;
}

footer a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

footer a:hover {
    color: var(--primary-color);
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(46, 139, 87, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* --- Mobile / Responsiveness --- */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    .hero-section {
        padding-top: 100px;
        text-align: left;
    }
    
    .service-card, .contact-card, .nav-link {
        min-height: 44px;
    }
}

/* --- Print Styles --- */
@media print {
    .blob-bg, .btn, .social-links, .carousel-controls {
        display: none !important;
    }
    
    .hero-section, .section-padding {
        padding: 20px 0 !important;
    }
    
    .service-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
