/* Custom styles for Arbro Stump Removal */

/* Sunday Font Style */
* {
    font-family: 'Nunito Sans', sans-serif;
}

/* Body background with real bokeh photo */
body {
    background-image: url('/static/background-bokeh.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Subtle overlay to enhance readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
}

/* Main container styling */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Content card styling */
.content-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    min-height: 500px;
}

/* Sidebar styling */
.sidebar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px 0 0 20px;
    padding: 30px 20px;
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo section */
.logo-section {
    margin-bottom: 30px;
}

.main-logo {
    width: 150px;
    height: auto;
    background: transparent;
    border-radius: 10px;
    padding: 5px;
}

/* Navigation menu */
.navigation-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.nav-button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 15px;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    width: 100%;
    text-align: center;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.nav-button:hover,
.nav-button.active {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: #2c5f41;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c5f41;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.2;
    font-family: 'Nunito Sans', sans-serif;
}

.main-description {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 30px;
    text-align: justify;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 400;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-btn.primary {
    background: #2c5f41;
    color: white;
}

.action-btn.primary:hover {
    background: #1e4129;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(44, 95, 65, 0.3);
}

.action-btn.secondary {
    background: transparent;
    color: #2c5f41;
    border-color: #2c5f41;
}

.action-btn.secondary:hover {
    background: #2c5f41;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(44, 95, 65, 0.3);
}

/* Hide original navbar */
.navbar {
    display: none;
}

/* Services and About sections */
.services-section,
.about-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10;
}

.services-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.service-item {
    text-align: center;
    padding: 20px;
    flex: 1;
    max-width: 200px;
    min-width: 150px;
}

.service-item i {
    font-size: 2rem;
    color: #2c5f41;
    margin-bottom: 10px;
}

.service-item h3 {
    color: #2c5f41;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-item p {
    color: #000;
}

/* Services section styling */
.services-section .content-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.services-section h2 {
    color: #000;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Nunito Sans', sans-serif;
}

/* About section styling */
.about-content {
    padding: 40px;
    text-align: center;
}

.about-title {
    color: #000;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Nunito Sans', sans-serif;
}

.about-description {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 20px;
    text-align: justify;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 400;
}

/* Close button styling */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 100;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    transform: scale(1.1);
}

.content-card {
    position: relative;
}

/* Page-level close button styling */
.close-btn-page {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #2c5f41;
    font-size: 24px;
    color: #2c5f41;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1000;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close-btn-page:hover {
    background: #2c5f41;
    color: #fff;
    transform: scale(1.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .content-card {
        flex-direction: column;
        margin: 10px;
        min-height: auto;
    }
    
    .sidebar {
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 20px;
    }
    
    .navigation-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-button {
        flex: 1;
        min-width: 120px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Hero section styling */
.hero-section {
    background: rgba(var(--bs-secondary-rgb), 0.9);
    backdrop-filter: blur(10px);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

/* Form styling */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Photo preview styling */
#photoPreview {
    border: 2px dashed var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 1rem;
    text-align: center;
    background-color: var(--bs-body-bg);
}

/* Button styling */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Footer styling */
footer {
    margin-top: auto;
    background: rgba(34, 80, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Loading state for form submission */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success page animations */
.fa-check-circle {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Service cards styling */
.service-card {
    border: none;
    background: rgba(var(--bs-body-bg-rgb), 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Card background transparency */
.card {
    background: rgba(var(--bs-body-bg-rgb), 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation enhancements */
.navbar {
    background: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

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

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
}

/* File input styling */
.form-control[type="file"] {
    padding: 0.5rem 0.75rem;
}

/* Image thumbnail styling */
.img-thumbnail {
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section spacing */
section {
    position: relative;
}

/* CTA section styling */
.bg-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%) !important;
}

/* Card body padding adjustments */
.card-body {
    padding: 1.5rem;
}

/* List styling */
.list-unstyled li {
    padding: 0.25rem 0;
}

/* Badge styling */
.badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Error state styling */
.is-invalid {
    border-color: var(--bs-danger);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--bs-danger);
}

/* Success state styling */
.is-valid {
    border-color: var(--bs-success);
}

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

/* Utility classes */
.text-muted {
    color: var(--bs-secondary) !important;
}

.border-dashed {
    border-style: dashed !important;
}

/* Mobile-specific adjustments */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
