/* css/style.css */

/* ============================================
   BASE STYLES
   ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   IMAGE OPTIMIZATION
   ============================================ */

img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #164E8D;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f3a6a;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #164E8D #f1f1f1;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #164E8D 0%, #1a6bb0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus ring */
.focus-ring:focus {
    outline: none;
    ring: 2px solid #164E8D;
    ring-offset: 2px;
}

/* ============================================
   NAVBAR
   ============================================ */

header.sticky {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

header.sticky.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.98);
}

/* ============================================
   BUTTONS & INTERACTIONS
   ============================================ */

.btn-primary {
    background-color: #164E8D;
    color: #ffffff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0f3a6a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 78, 141, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    background-color: transparent;
    color: #164E8D;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    border: 2px solid #164E8D;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-outline-primary:hover {
    background-color: #164E8D;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ============================================
   CARDS
   ============================================ */

.card-hover {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ============================================
   SERVICE ICON ANIMATIONS
   ============================================ */

.service-icon-wrapper {
    transition: all 0.3s ease;
}

.group:hover .service-icon-wrapper {
    background-color: #164E8D;
    color: #ffffff;
}

/* ============================================
   FOOTER
   ============================================ */

footer a {
    transition: color 0.2s ease;
}

footer .social-icon {
    transition: all 0.3s ease;
}

footer .social-icon:hover {
    background-color: rgba(22, 78, 141, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .container-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

/* ============================================
   LOADING STATE
   ============================================ */

.loading-dots::after {
    content: '...';
    animation: dots 1.4s steps(4, end) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

:focus-visible {
    outline: 2px solid #164E8D;
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #164E8D;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 9999;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
}