/* Custom Styles for Deep in the Heart of Denton */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-darker: #000000;
    --bg-card: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px;
}

/* Dark Mode Base Styles */
body.dark-mode {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Dark Mode Background Classes */
.dark-mode .bg-dark {
    background-color: var(--bg-secondary) !important;
}

.dark-mode .bg-darker {
    background-color: var(--bg-darker) !important;
}

.dark-mode .bg-secondary {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color);
}

.dark-mode .bg-black {
    background-color: #000000 !important;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 400px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.dark-mode .hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.hero-image-container {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Mission Box */
.mission-box {
    transition: transform 0.3s ease;
}

.mission-box:hover {
    transform: translateY(-5px);
}

/* Stat Boxes */
.stat-box {
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: scale(1.05);
}

/* Program Cards */
.program-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.program-card .icon-box {
    transition: transform 0.3s ease;
}

.program-card:hover .icon-box {
    transform: scale(1.1);
}

/* Gallery */
.gallery-item {
    overflow: hidden;
    border-radius: 0.5rem;
}

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

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

/* Partner Categories */
.partner-categories {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dark-mode .partner-categories {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Contact Items */
.contact-item {
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item p {
    overflow-wrap: anywhere;
    hyphens: auto;
    font-size: 0.85rem;
    line-height: 1.4;
}

.dark-mode .contact-item {
    background: var(--bg-card);
    color: var(--text-primary);
}

.dark-mode .contact-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* Social Links */
.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-image-container {
        margin-top: 2rem;
        animation: none;
    }
    
    .stat-box {
        margin-bottom: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #donate,
    .social-links {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0,123,255,.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}