/* Color Palette Variables */
:root {
    --primary-color: #152f4b;
    --secondary-color: #4f89f2;
    --dark-text-color: #21364d;
    --light-text-color: #8bb9ec;
    --dark-bg-color: #232838;
    --light-bg-color: #98b8ca;
    --white-color: #DDDDDD;
    --gray-color: #b5bbbe;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    font-family: 'Helvetica', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-text-color);
}

header.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 1050 !important;
    background: var(--light-bg-color) !important;
    border-bottom: 1px solid #ddd; /* Optional: for visual separation */
}

/* Global Styles */
.container {
    max-width: 1200px;
}

/* Custom Primary Button */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: var(--white-color);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(21, 47, 75, 0.8) 0%, rgba(79, 137, 242, 0.6) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-section .fas {
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Section Styling */
section {
    padding: 60px 0;
}

section.bg-light {
    background-color: var(--light-bg-color) !important;
}

/* Card Styles */
.card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,.15) !important;
}



.card-title {
    font-size: 1.35rem;
    color: var(--dark-text-color);
}

.card .card-body .card-title {
    font-size: 1.35rem;
    color: var(--dark-text-color) !important;
}

/* Footer */
footer {
    background-color: var(--dark-bg-color);
    color: var(--white-color);
}

footer a {
    color: var(--light-text-color);
    text-decoration: none;
}

footer a:hover {
    color: var(--white-color);
}

footer .fab {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

footer .fab:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

/* Form Validation */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Utility Classes */
.border-top {
    border-top: 1px solid #dee2e6 !important;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.05) !important;
}

/* Alternating row background for project rows */
.alt-row {
    background-color: #f3f6fa;
}

/* Project Showcase Cards */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.project-image-container {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Default height for project images (not job photos) */
.project-image-container .project-image {
    height: 200px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(21, 101, 192, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.details-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 123, 255, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.project-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.project-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    min-height: 40px;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 500;
    color: #495057;
    text-align: right;
}

.detail-value.price {
    color: #28a745;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Responsive adjustments for project cards */
@media (max-width: 768px) {
    .project-image-container {
        height: 160px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        min-height: 50px;
    }
    
    .detail-value {
        text-align: left;
    }
}

/* How It Works Section */
.how-it-works-section .bi {
    color: var(--primary-color) !important;
}

/* Work/Showcase Page Mobile Styling */
@media (max-width: 767.98px) {
    .hero-section .col-md-4 {
        margin-top: 2rem;
    }
    
    .hero-section .col-md-4 img {
        margin-top: 1.5rem;
    }
}

/* Recommendation Row Styling - Applied to all job cards */
.recommendation-item {
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.recommendation-content {
    width: 100%;
    text-align: left;
    line-height: 1.4;
}

.recommendation-content strong {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
}
