/* Modern Artist Portfolio CSS */

:root {
    --primary-color: #ff7260;
    --secondary-color: #129793;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Base Typography - Optimized for Older Users */
body {
    font-family: 'Inter', sans-serif;
    font-size: 18px; /* Larger base font for readability */
    line-height: 1.6;
    color: var(--text-dark);
}

/* Headings with Artistic Font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Tangerine', cursive;
    font-weight: 700;
    color: var(--primary-color);
}

h1 { font-size: 4rem; }
h2 { font-size: 3.5rem; }
h3 { font-size: 3rem; }
h4 { font-size: 2.5rem; }

/* Navigation Enhancements */
.navbar {
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-family: 'Tangerine', cursive;
}

.nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Button Styling - Touch-Friendly */
.btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    min-height: 44px; /* Touch target minimum */
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #e85845);
    border: none;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #e85845, var(--primary-color));
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8f4f8 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.3rem;
    color: var(--text-light);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-content {
    padding: 1.5rem;
}

.gallery-item h5 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Image Lightbox Styling */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem;
}

.modal-body {
    padding: 0 1.5rem 1.5rem;
}

.modal-body img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Forms - Senior-Friendly */
.form-control, .form-select {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    min-height: 44px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 114, 96, 0.25);
}

.form-label {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Alert Messages */
.alert {
    border-radius: 10px;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Card Components */
.card {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--bg-light), white);
    border-bottom: none;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
}

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

.text-primary {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
    
    .hero {
        padding: 2rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #d63031;
        --secondary-color: #0984e3;
        --text-dark: #000000;
    }
    
    .btn, .card, .gallery-item {
        border: 2px solid var(--text-dark);
    }
}

/* Dropdown Menu Styling */
.dropdown-item {
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.dropdown-item:active,
.dropdown-item.active {
    background-color: transparent !important;
    color: var(--text-dark) !important;
    border: none !important;
    outline: none !important;
}

/* Focus Indicators for Keyboard Navigation */
*:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus, .form-control:focus, .nav-link:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.dropdown-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}