/* Global Styles */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #1e40af;
    --accent-blue: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #f3f4f6;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Base Typography Enhancements */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation Enhancements */
.nav-link-hover {
    position: relative;
}

.nav-link-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease-in-out;
}

.nav-link-hover:hover::after,
.nav-link-hover.active::after {
    width: 100%;
}

/* Fixed Header Styling */
#main-navigation {
    transition: all 0.3s ease;
}

#main-navigation.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#main-navigation .logo-container {
    transition: all 0.3s ease;
}

#main-navigation.scrolled .logo-container {
    transform: scale(0.9);
}

/* Active Navigation Link */
.nav-link-hover.active {
    color: var(--accent-blue) !important;
    font-weight: 500;
}

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

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

.hero-content p {
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: backwards;
}

.hero-content .cta-button {
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: backwards;
}

/* Service Cards Hover Effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-card i {
    transition: transform 0.3s ease;
}

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

/* Resource Section Card Effects */
.resource-card {
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-3px);
}

.resource-card .icon {
    transition: color 0.3s ease;
}

.resource-card:hover .icon {
    color: var(--accent-blue);
}

/* Contact Form Enhancements */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Custom Button Styles */
.custom-button {
    position: relative;
    overflow: hidden;
}

.custom-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.5s ease;
}

.custom-button:hover::after {
    left: 100%;
}

/* Footer Link Hover Effects */
.footer-link {
    transition: color 0.3s ease;
    position: relative;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-link:hover::before {
    opacity: 1;
    transform: translateX(10px);
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .footer-content {
        text-align: center;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #f8f8f8 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Accessibility Enhancements */
.focus-visible:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .dark-mode-support {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .dark-mode-support .card {
        background-color: #2d2d2d;
    }
}