/* Custom CSS for Theocratic Desk Hub - Modern Redesign */

/* CSS Variables for consistent theming */
:root {
    --primary-blue: #1e4a72;
    --secondary-blue: #2563eb;
    --light-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
    min-height: 60vh;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Service Cards - Desktop */
.service-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-blue);
}

.card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--light-blue) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05) rotate(5deg);
}

.service-icon i {
    font-size: 2.25rem;
    color: var(--white);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
}

.service-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
    flex: 1;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.875rem;
    padding: 0.625rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.feature-item:hover {
    transform: translateX(4px);
}

.feature-item i {
    color: var(--secondary-blue);
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.btn-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: none;
    width: 100%;
    margin-top: auto;
}

.btn-service:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-service i {
    margin-left: 0.75rem;
    transition: transform 0.3s ease;
}

.btn-service:hover i {
    transform: translateX(4px);
}

/* Mobile Card Header (Collapsed State) */
.card-header-mobile {
    display: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    margin-top: 4rem;
}

footer h5 {
    color: var(--white);
    font-weight: 600;
    font-size: 1.25rem;
}

footer .text-white-50 {
    opacity: 0.85;
}

footer a {
    transition: opacity 0.2s ease;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline !important;
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--light-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.floating-contact-btn i {
    font-size: 1.5rem;
    color: var(--white);
}

/* Contact Modal Styling */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    border-bottom: 2px solid var(--border-color);
    border-radius: 16px 16px 0 0;
    padding: 1.5rem 2rem;
}

.modal-title {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

/* Form Styling */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    outline: none;
}

.text-danger {
    color: #dc3545 !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Responsive Design - Tablet */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-content {
        padding: 2rem;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0 2.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Mobile Card Styles - Collapsed by Default */
    .service-card {
        border-radius: 12px;
        margin-bottom: 1rem;
        height: auto;
        min-height: 80px;
        overflow: visible;
    }
    
    .card-header-mobile {
        display: flex;
        align-items: center;
        padding: 1.25rem 1.5rem;
        cursor: pointer;
        background: var(--white);
        border-radius: 12px;
        position: relative;
        z-index: 2;
        transition: all 0.3s ease;
    }
    
    .card-header-mobile:active {
        background: var(--bg-light);
    }
    
    .service-icon-mobile {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--light-blue) 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1rem;
        flex-shrink: 0;
    }
    
    .service-icon-mobile i {
        font-size: 1.5rem;
        color: var(--white);
    }
    
    .service-title-mobile {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--primary-blue);
        margin: 0;
        flex: 1;
        text-align: left;
        line-height: 1.3;
    }
    
    .expand-icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--secondary-blue);
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }
    
    .expand-icon i {
        font-size: 1rem;
    }
    
    .card-content {
        display: none;
        padding: 0 1.5rem 1.5rem 1.5rem;
        animation: slideDown 0.3s ease;
    }
    
    /* Expanded State */
    .service-card.expanded .card-content {
        display: flex;
    }
    
    .service-card.expanded .expand-icon {
        transform: rotate(180deg);
    }
    
    .service-card.expanded {
        box-shadow: var(--shadow-lg);
    }
    
    /* Hide desktop icon and title in mobile */
    .service-card .service-icon,
    .service-card .service-title {
        display: none;
    }
    
    /* Show mobile icon and title in expanded state */
    .service-card.expanded .service-icon {
        display: flex;
        width: 70px;
        height: 70px;
        margin: 0 auto 1rem;
        border-radius: 16px;
    }
    
    .service-card.expanded .service-title {
        display: block;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .service-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-item i {
        font-size: 1rem;
        width: 20px;
    }
    
    .btn-service {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .floating-contact-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
    
    .floating-contact-btn i {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Focus states for accessibility */
.btn-service:focus,
.service-card:focus-within {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .floating-contact-btn {
        display: none;
    }
    
    .service-card {
        break-inside: avoid;
    }
}
