/* Custom CSS Variables for Valhalla-Aperture Branding */
:root {
    --valhalla-purple: #6633CC;
    --valhalla-purple-light: #7d4dd8;
    --valhalla-purple-dark: #5528b3;
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --gray-900: #212529;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-3, .display-4, .display-5 {
    font-weight: 700;
}

/* Valhalla Purple Text */
.text-valhalla {
    color: var(--valhalla-purple) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Button Styles */
.btn-valhalla {
    background-color: var(--valhalla-purple);
    border-color: var(--valhalla-purple);
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-valhalla:hover,
.btn-valhalla:focus {
    background-color: var(--valhalla-purple-dark);
    border-color: var(--valhalla-purple-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 33, 84, 0.3);
}

.btn-outline-valhalla {
    border-color: var(--valhalla-purple);
    color: var(--valhalla-purple);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-valhalla:hover,
.btn-outline-valhalla:focus {
    background-color: var(--valhalla-purple);
    border-color: var(--valhalla-purple);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 33, 84, 0.3);
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: var(--gray-900) !important;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.brand-logos {
    display: flex;
    align-items: center;
}

.brand-logos img {
    height: 35px;
    width: auto;
}

.brand-logos img[alt="Valhalla Business Advisors"] {
    height: 70px;
}

.brand-text h5 {
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--white) !important;
}

.brand-text small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray-300) !important;
}

.navbar-dark .nav-link {
    font-weight: 500;
    color: var(--gray-300);
    transition: all 0.3s ease;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: var(--valhalla-purple-light);
}

.navbar-dark .navbar-toggler {
    border-color: var(--gray-600);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--valhalla-purple-dark) 0%, var(--valhalla-purple) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.bg-gradient-valhalla {
    background: linear-gradient(135deg, var(--valhalla-purple-dark) 0%, var(--valhalla-purple) 100%);
}

.min-vh-50 {
    min-height: 50vh;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Tool Cards */
.tool-card {
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 33, 84, 0.15);
    border-color: var(--valhalla-purple);
}

.tool-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card .card-title {
    color: var(--valhalla-purple);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.tool-card .card-text {
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tool-icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon i {
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon i {
    transform: scale(1.1);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-light {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--gray-800);
}

.border-valhalla {
    border: 2px solid var(--valhalla-purple) !important;
}

/* Footer Styles */
footer {
    background-color: var(--gray-900) !important;
}

footer h5 {
    color: var(--valhalla-purple-light) !important;
}

footer .text-light:hover {
    color: var(--white) !important;
    text-decoration: underline !important;
}

/* Coming Soon Page Styles */
.coming-soon-icon {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brand-logos {
        margin-bottom: 0.5rem;
    }
    
    .brand-text h5 {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .tool-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .brand-logos svg {
        width: 30px;
        height: 30px;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.shadow-valhalla {
    box-shadow: 0 4px 12px rgba(59, 33, 84, 0.15);
}

.border-radius-lg {
    border-radius: 12px;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.navbar-brand:focus {
    outline: 2px solid var(--valhalla-purple);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        background: var(--white) !important;
        color: var(--black) !important;
    }
    
    .text-white,
    .text-white-75 {
        color: var(--black) !important;
    }
}
