/* Custom Variables */
:root {
    --primary-color: #059669;
    --primary-dark: #047857;
    --light-bg: #f8f9fa;
    --dark-bg: #111827;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.search-box {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(to bottom, #f0fdf4, white);
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: #d1fae5;
    border-radius: 50%;
}

/* Land Cards */
.land-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

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

.land-card-img {
    height: 12rem;
    object-fit: cover;
}

.land-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.land-card-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: bold;
}

.land-card-acres {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* Land Types */
.land-type-card {
    background: var(--light-bg);
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: background-color 0.3s;
    cursor: pointer;
}

.land-type-card:hover {
    background-color: #d1fae5;
}

.land-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: #d1fae5;
    border-radius: 50%;
    color: var(--primary-color);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #d1fae5;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: #d1fae5;
    border-radius: 0.75rem;
    color: var(--primary-color);
}

/* Use Case Cards */
.use-case-card {
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.use-case-card:hover {
    transform: scale(1.05);
}

.bg-teal {
    background-color: #14b8a6;
}

.text-teal {
    color: #14b8a6;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.testimonial-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    margin: 0 0.25rem;
    padding: 0;
}

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-container {
    background: white;
    border-radius: 1.5rem;
    max-width: 28rem;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.modal-close-btn:hover {
    color: #374151;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
}

.mobile-menu-content {
    height: 100%;
    overflow-y: auto;
}

.mobile-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
}

.mobile-menu-item:hover {
    color: var(--primary-color);
}

/* User Profile Styles */
.user-initials-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid white;
}

.user-initials-circle:hover {
    background-color: #059669;
    transform: scale(1.05);
}

.user-initials-circle.mobile-initials {
    width: 50px;
    height: 50px;
    font-size: 18px;
}

.dropdown-initials {
    width: 45px;
    height: 45px;
    font-size: 16px;
}

.user-profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    cursor: pointer;
}

.user-profile-image:hover {
    transform: scale(1.05);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    min-width: 250px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin: 0.2rem 0;
}

.dropdown-item:hover {
    background-color: #f0fdf4;
}

/* Edit Profile Modal */
.profile-modal {
    max-width: 500px;
}

.form-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section h6 {
    color: #374151;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #10b981;
}

.readonly-input {
    background-color: #e5e7eb;
    cursor: not-allowed;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    z-index: 99999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification-content {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.notification.success .notification-content {
    color: #065f46;
}

.notification.error .notification-content {
    color: #b91c1c;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 6rem;
    }
    
    .search-box .row > div:not(:last-child) {
        margin-bottom: 1rem;
    }
    
    .land-card-img {
        height: 10rem;
    }
    
    .dropdown-menu {
        min-width: 200px;
    }
}

/* Custom Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* About Page Specific Styles */
.team-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.mission-item {
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

/* Contact Page Specific Styles */
.accordion-button {
    font-weight: 600;
    color: #374151;
}

.accordion-button:not(.collapsed) {
    background-color: #f0fdf4;
    color: #065f46;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

/* Active Navigation Item */
.nav-link.active {
    color: #10b981 !important;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-image img {
        width: 120px !important;
        height: 120px !important;
    }
    
    .office-card {
        margin-bottom: 1.5rem;
    }
}

/* Animation for accordion */
.accordion-collapse {
    transition: all 0.3s ease;
}

/* Testimonial Image Styles */
.testimonial-image img {
    transition: transform 0.3s ease;
}

.testimonial-image img:hover {
    transform: scale(1.05);
}

/* Testimonial dots container */
.testimonial-dot-container {
    margin: 0 1rem;
}

.testimonial-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    margin: 0 0.25rem;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.testimonial-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}