/* Modern minimal design with Coolors.co palette */

/* Configure Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Set Poppins as default font family */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* Remove blue hover effect from nav links */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: #023047 !important;
    background-color: transparent !important;
    font-weight: 600;
}

.nav-link:hover {
    color: #023047 !important;
    background-color: transparent !important;
}

/* Remove the ::before pseudo-element that was causing blue background */
.nav-link::before {
    display: none;
}

/* Mobile menu animations */
@media (max-width: 1024px) {
    #nav-menu {
        position: fixed;
        top: 4rem;
        right: -100%;
        width: 300px;
        height: calc(100vh - 4rem);
        flex-direction: column;
        background: white;
        padding: 2rem 1rem;
        gap: 1rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid #8ecae6;
        box-shadow: -4px 0 20px rgba(142, 202, 230, 0.2);
    }

    #nav-menu.active {
        right: 0;
    }

    #nav-menu a {
        padding: 1rem 1.5rem;
        border-radius: 0.5rem;
        margin: 0;
        transform: translateX(50px);
        opacity: 0;
        transition: all 0.3s ease;
        text-align: center;
        border: 1px solid transparent;
    }

    #nav-menu a:hover {
        background-color: #8ecae6 !important;
        color: #023047 !important;
        border-color: #219ebc;
    }

    #nav-menu.active a {
        transform: translateX(0);
        opacity: 1;
    }

    #nav-menu.active a:nth-child(1) { transition-delay: 0.1s; }
    #nav-menu.active a:nth-child(2) { transition-delay: 0.2s; }
    #nav-menu.active a:nth-child(3) { transition-delay: 0.3s; }
    #nav-menu.active a:nth-child(4) { transition-delay: 0.4s; }
    #nav-menu.active a:nth-child(5) { transition-delay: 0.5s; }
}

/* Hamburger animation */
#hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #023047;
}

#hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

#hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: #023047;
}

/* Service card animations with clean effects */
.service-card {
    animation: fadeInUp 0.6s ease forwards;
    transition: all 0.3s ease;
}

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

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #219ebc;
    outline-offset: 2px;
}

/* Custom scrollbar with brand colors */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #219ebc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #023047;
}

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

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 48, 71, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Floating Action Button - clean design */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #ffb703;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #023047;
    box-shadow: 0 4px 20px rgba(255, 183, 3, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
}

.fab:hover {
    transform: translateY(0) scale(1.1);
    background: #fb8500;
    box-shadow: 0 8px 30px rgba(251, 133, 0, 0.4);
}

/* Professional button effects */
.btn-primary {
    box-shadow: 0 2px 8px rgba(255, 183, 3, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(251, 133, 0, 0.3);
    transform: translateY(-1px);
}

/* Clean card effects */
.card-hover {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card-hover:hover {
    border-color: #219ebc;
    box-shadow: 0 8px 25px rgba(33, 158, 188, 0.15);
}

/* Stats counter animation */
.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* Contact form styling */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #219ebc;
    box-shadow: 0 0 0 3px rgba(33, 158, 188, 0.1);
}

/* Logo icon animation */
#logo-icon {
    transition: all 0.3s ease;
}

#logo:hover #logo-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(33, 158, 188, 0.4);
}

/* Section dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #8ecae6, transparent);
    margin: 3rem 0;
}

/* Text selection */
::selection {
    background: #8ecae6;
    color: #023047;
}

/* Enhanced typography for modern minimal look */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Minimal button styles */
button, .btn {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Clean link transitions */
a {
    transition: all 0.3s ease;
}

/* Subtle animations for interactive elements */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    * {
        color: #000 !important;
        background: #fff !important;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #000;
    }
    
    button {
        border: 2px solid #000;
    }
}

/* Custom color transitions for smooth palette changes */
* {
    transition-property: color, background-color, border-color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}