/* Professional White, Navy Blue #000080, and Light Grey Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
}

/* Grid Pattern */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Enhanced Navigation */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d1d5db, #ffffff);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #000080, #0000a0);
    border-radius: 10px;
    border: 2px solid #f5f7fa;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0000a0, #0000c0);
}

/* Glass Morphism Navigation */
#mainNav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background-color:#ffffff;
}

#mainNav.scrolled {
    background: rgba(0, 0, 128, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 128, 0.3);
}

/* Professional Input Focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #000080 !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 128, 0.1), 0 8px 16px rgba(0, 0, 128, 0.1);
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Buttons */
.btn-primary {
    background: #000080;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: #0000a0;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 128, 0.4);
}

/* Card Hover Effects */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 128, 0.15);
}

/* Fade In Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }

/* Icon Animations */
.icon-bounce {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.icon-bounce:hover {
    transform: scale(1.3) rotate(5deg);
}

/* Professional Loading State */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f5f7fa;
    border-top-color: #000080;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive Utilities */
@media (max-width: 768px) {
    .fade-in-up {
        animation-delay: 0s !important;
    }
}

/* Accessibility */
.focus-visible:focus {
    outline: 3px solid #000080;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: #000080;
    color: white;
}

::-moz-selection {
    background: #000080;
    color: white;
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Professional Stats Counter */
.stat-number {
    background: linear-gradient(135deg, #000080 0%, #0000a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Footer Gradient */
.footer-gradient {
    background: linear-gradient(180deg, #000080 0%, #000060 100%);
}
