/* Custom CSS for Constructivist Creations Website */

/* CSS Custom Properties for Brand Colors */
:root {
    --brand-white: #FFFFFF;
    --brand-blue: #002D62;
    --brand-gray: #595A5A;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Body base styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--brand-gray);
}

/* Header backdrop blur fallback */
header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Active navigation link styling */
.nav-link.active {
    color: var(--brand-blue);
    font-weight: 600;
}

/* Smooth transitions for navigation links */
.nav-link, .mobile-nav-link {
    position: relative;
    transition: all 0.3s ease;
}

/* Hover effect for navigation links */
.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-blue);
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Button hover effects */
.btn-primary {
    background-color: var(--brand-blue);
    color: var(--brand-white);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #001e44;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.3);
}

.btn-secondary {
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--brand-blue);
    color: var(--brand-white);
    transform: translateY(-2px);
}

/* Section padding adjustments */
section {
    scroll-margin-top: 80px; /* Account for fixed header */
}

/* Hero section gradient enhancement */
#home {
    background: linear-gradient(135deg, var(--brand-white) 0%, #f8fafc 100%);
}

/* Service cards hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 45, 98, 0.15);
}

/* Icon styling */
.icon-wrapper {
    background-color: var(--brand-blue);
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background-color: #001e44;
    transform: scale(1.1);
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--brand-blue);
}

/* Prose styling for mission statement */
.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Contact section styling */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 45, 98, 0.1);
}

/* Footer styling */
footer {
    background-color: var(--brand-blue);
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Loading animation for smooth page transitions */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

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

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--brand-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue);
}

/* Focus states for accessibility */
.nav-link:focus,
.mobile-nav-link:focus,
button:focus,
a:focus {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header {
        position: static !important;
    }
    
    .no-print {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --brand-gray: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Blog-specific styles */
.blog-content {
    animation: slideDown 0.3s ease-out;
}

.blog-content.hidden {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 1000px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

.prose h3 {
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.prose h4 {
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.prose strong {
    color: var(--brand-blue);
    font-weight: 600;
}

.prose em {
    color: var(--brand-gray);
    font-style: italic;
}

.blog-tag {
    transition: all 0.2s ease;
}

.blog-tag:hover {
    background-color: var(--brand-blue);
    color: var(--brand-white);
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}
