/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fafbfc;
}

/* Page Background */
.page-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Card Backgrounds */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.section-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Green Theme Variables */
:root {
    --primary-green: #4CAF50;
    --primary-green-dark: #388E3C;
    --primary-green-light: #81C784;
    --secondary-green: #6c757d;
    --accent-green: #66BB6A;
    --success-green: #43A047;
    --warning-green: #ffc107;
    --danger-green: #dc3545;
    --light-green: #f8f9fa;
    --dark-green: #212529;
}

/* Header & Navigation */
.navbar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
    transition: all 0.3s ease;
}

.navbar.sticky-top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateY(0);
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-nav {
    margin-left: auto;
}

.navbar-nav .nav-item {
    margin: 0 0.2rem;
}

.navbar-nav .nav-link {
    border-radius: 8px;
    padding: 0.6rem 1rem !important;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.7);
    margin: 0 0.1rem;
    backdrop-filter: blur(5px);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(76, 175, 80, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.navbar-nav .nav-link.active {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--primary-green) !important;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.2);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.2);
}

.navbar-brand img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--dark-green) !important;
    transition: color 0.3s ease;
}

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

.nav-link.active {
    color: var(--primary-green) !important;
    font-weight: 600;
}

/* Navigation Icons */
.nav-link i {
    transition: transform 0.2s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

/* Footer Links */
footer .list-unstyled li a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

footer .list-unstyled li a:hover {
    color: var(--primary-green) !important;
    transform: translateX(5px);
}

footer .list-unstyled li a i {
    transition: transform 0.2s ease;
}

footer .list-unstyled li a:hover i {
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    height: 80vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: block;
}

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

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero Slider Navigation */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
}

.slider-nav-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.slider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-nav-btn.prev {
    left: 20px;
}

.slider-nav-btn.next {
    right: 20px;
}

/* Hero Slider Indicators */
.hero-slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.agent-card .card-img-top {
    height: 280px;
    object-fit: cover;
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Buttons - Green Theme */
.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
}

.btn-outline-primary {
    color: var(--primary-green);
    border-color: var(--primary-green);
}

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

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

/* Page Headers */
.page-header {
    padding: 3rem 0 2rem 0;
    background: linear-gradient(135deg, var(--light-green) 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Account for fixed navbar height */
}

.page-header h1 {
    font-size: 2.5rem !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .lead {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Ensure page header is above navbar when not sticky */
.page-header:first-of-type {
    margin-top: 0;
    transition: margin-top 0.3s ease;
}

/* When navbar is sticky, add margin to first section */
.navbar.sticky-top + main .page-header:first-of-type {
    margin-top: 80px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

/* Blog */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 1.5rem 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    font-size: 0.95rem;
}

footer h5 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-green);
}

footer p {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.6;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-green);
    text-decoration: none;
}

footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 1rem;
}

footer .social-icons a:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

footer .list-unstyled li {
    margin-bottom: 0.8rem;
}

footer .list-unstyled li a {
    font-size: 0.9rem;
    padding: 0.3rem 0;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

footer .list-unstyled li a:hover {
    color: var(--primary-green) !important;
    transform: translateX(5px);
    padding-left: 5px;
}

footer .list-unstyled li a i {
    font-size: 0.85rem;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
}

footer .list-unstyled li a:hover i {
    transform: scale(1.1);
}

footer .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.9rem;
}

footer .form-control::placeholder {
    color: #bdc3c7;
}

footer .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.2);
}

footer .btn-primary {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
}

footer address {
    font-size: 0.9rem;
    color: #bdc3c7;
}

footer address p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

footer address i {
    color: var(--primary-green);
    margin-right: 0.5rem;
    width: 16px;
}

/* Footer Contact Links */
footer address a {
    transition: all 0.3s ease;
}

footer address a:hover {
    color: var(--primary-green) !important;
    text-decoration: underline !important;
    transform: translateX(5px);
}

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-image {
    max-width: 200px;
    height: 60px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.captcha-container .btn {
    white-space: nowrap;
    font-size: 0.875rem;
}

.captcha-container .btn i {
    margin-right: 0.25rem;
}

/* Breadcrumb Styles */
.breadcrumb {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--primary-green);
    font-weight: bold;
}

.breadcrumb-item a {
    color: var(--primary-green);
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-green-dark);
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* Project Featured Image */
.project-featured-image {
    max-height: 500px;
    object-fit: contain;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Timeline styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #dee2e6;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #dee2e6;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 20px;
    margin-left: -10px;
    z-index: 1;
}

.timeline-item.completed .timeline-dot {
    background-color: var(--primary-green);
}

.timeline-date {
    width: 50%;
    padding-right: 70px;
    text-align: right;
    font-weight: bold;
}

.timeline-content {
    width: 50%;
    padding-left: 70px;
    background-color: var(--light-green);
    border-radius: 5px;
    padding: 20px;
    margin-left: 50%;
}

.timeline-item:nth-child(even) .timeline-date {
    left: 50%;
    text-align: left;
    padding-left: 70px;
    padding-right: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 70px;
    padding-left: 20px;
}

/* Alert styles for green theme */
.alert-success {
    background-color: var(--success-green);
    border-color: var(--success-green);
    color: white;
}

/* Text colors for green theme */
.text-primary {
    color: var(--primary-green) !important;
}

.text-success {
    color: var(--success-green) !important;
}

/* Background colors for green theme */
.bg-primary {
    background-color: var(--primary-green) !important;
}

.bg-success {
    background-color: var(--success-green) !important;
}

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

/* Section Backgrounds */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='50' cy='50' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* Container Background */
.container {
    position: relative;
    z-index: 1;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .navbar-brand img {
        width: 80px;
        height: 80px;
    }
    
    .navbar {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }
    .hero-section {
        height: 60vh;
    }

    .project-card .card-img-top,
    .agent-card .card-img-top,
    .blog-card .card-img-top {
        height: 200px;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-dot {
        left: 40px;
    }

    .timeline-date {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(even) .timeline-date {
        left: 0;
        padding-right: 0;
        padding-left: 70px;
        text-align: left;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
        padding-right: 20px;
        padding-left: 70px;
    }
}
