/* Custom Styles */
:root {
    --color-primary: #0A3D62;
    --color-accent: #FFC857;
    --color-background: #FFFFFF;
    --color-text: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--color-background);
    color: var(--color-text);
    font-family: 'Open Sans', 'Lato', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
    line-height: 1.75;
}

blockquote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
.section-spacing {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 40px 0;
    }
}

/* Header Scrolled State */
.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #f3f4f6;
}

.header-scrolled #logo {
    filter: brightness(0) saturate(100%) invert(17%) sepia(45%) saturate(1832%) hue-rotate(176deg) brightness(93%) contrast(95%);
}

.header-scrolled #desktop-nav {
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.header-scrolled .nav-link {
    color: #374151;
}

.header-scrolled .nav-link:hover {
    color: var(--color-primary);
}

.header-scrolled .nav-link.active {
    color: white;
    background: var(--color-primary);
}

.header-scrolled #mobile-menu-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.header-scrolled #mobile-menu-btn svg {
    color: var(--color-primary);
}

.header-scrolled #mobile-menu {
    background: white;
    border-top-color: #f3f4f6;
}

.header-scrolled .mobile-nav-link {
    color: #4b5563;
}

/* Default Header State (on hero) */
#logo {
    filter: brightness(0) invert(1);
}

#desktop-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    color: white;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link.active {
    color: var(--color-primary);
    background: white;
}

#mobile-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#mobile-menu-btn svg {
    color: white;
}

#mobile-menu {
    background: rgba(10, 61, 98, 0.95);
    backdrop-filter: blur(12px);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    color: white;
}

/* Page Transitions */
.page-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d5a8f;
}

/* Image hover effects */
.image-hover {
    overflow: hidden;
}

.image-hover img {
    transition: transform 0.3s ease;
}

.image-hover:hover img {
    transform: scale(1.1);
}

/* Card hover effects */
.card-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* Button animations */
button, a {
    transition: all 0.3s ease;
}

/* Fade in animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Tab active state */
.tab-active {
    background: var(--color-primary) !important;
    color: white !important;
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1);
}

/* Calendar styles */
.calendar-day {
    padding: 0.5rem;
    text-align: center;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: rgba(10, 61, 98, 0.1);
}

.calendar-day.selected {
    background: var(--color-primary);
    color: white;
}

.calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.calendar-day.disabled:hover {
    background: transparent;
}

/* Progress indicator */
.progress-step {
    position: relative;
}

.progress-step.active .step-circle {
    background: var(--color-primary);
    color: white;
}

.progress-step.completed .step-circle {
    background: #10b981;
    color: white;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    blockquote {
        font-size: 1.125rem;
    }
}

/* Utility Classes */
.text-balance {
    text-wrap: balance;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), #0d5a8f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Print styles */
@media print {
    header, footer, button {
        display: none;
    }
}
/* Filter Buttons Styles */
.filter-btn {
    background-color: #f3f4f6;
    color: var(--color-text);
    border: 2px solid transparent;
    cursor: pointer;
}

.filter-btn:hover {
    background-color: #e5e7eb;
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Tab Filter Buttons */
.filter-btn-tab {
    background-color: transparent;
    color: var(--color-text);
    cursor: pointer;
}

.filter-btn-tab.active {
    background-color: var(--color-primary);
    color: white;
}

/* Tab Styles */
.tab-active {
    background-color: var(--color-primary);
    color: white;
}

/* Animation for page loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}