/* Base CSS - theme variables below control the whole site look */

:root {
    /* Brand Gradient Colors - customize per project */
    --color-gradient-start: #6B7FDB;
    --color-gradient-mid: #8B6FB8;
    --color-gradient-end: #B55FA5;

    --color-primary: #6B7FDB;
    --color-secondary: #B55FA5;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;

    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-headings: 'Outfit', sans-serif;
    --font-size-base: 16px;

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Gradient definition */
    --gradient-primary: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-mid) 50%, var(--color-gradient-end) 100%);
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: #2d3748;
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: #2d3748;
    letter-spacing: -0.02em;
}

.lead {
    font-family: var(--font-family-base);
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Container adjustments */
.container {
    max-width: 1200px;
}

/* Custom utilities */
.text-primary {
    color: var(--color-primary) !important;
}

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

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

/* Button enhancements */
.btn {
    font-family: var(--font-family-headings);
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(107, 127, 219, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5A6ECB 0%, #7A5FA8 50%, #A54E95 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 127, 219, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 500;
}

.btn-outline-light:hover {
    background: white;
    color: #6B7FDB;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Form enhancements */
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

/* Navbar customization */
.navbar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
}

.navbar-dark .navbar-nav .nav-link {
    color: #333 !important;
}

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

/* Footer styling */
footer {
    margin-top: auto;
}

/* Hero sections - specific styles are in page-specific CSS files */

/* Feature icons */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
}

/* Gradient text */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge gradient */
.badge-gradient {
    background: var(--gradient-primary);
    color: white;
}

/* Logo container */
.logo-container img {
    max-height: 150px;
    width: auto;
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* List group improvements */
.list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem !important;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 !important;
    }

    .display-4,
    .display-5 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    /* Navbar mobile adjustments */
    .navbar-brand img {
        height: 50px !important;
        width: auto;
    }

    /* Body text mobile adjustments */
    body {
        font-size: 17px;
    }

    /* Button mobile adjustments */
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1.1rem;
    }

    /* Form input mobile adjustments */
    .form-control {
        min-height: 48px;
        font-size: 16px;
    }

    textarea.form-control {
        min-height: 120px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}
