/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #333333;
    line-height: 1.6;
}

.font-fallback {
    font-family: 'Open Sans', Helvetica, sans-serif;
}

/* Typography Hierarchy */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
@media (min-width: 768px) { h1 { font-size: 3.5rem; } }

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}
@media (min-width: 768px) { h2 { font-size: 2.5rem; } }

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) { p { font-size: 1.125rem; } }

/* Animations & Transitions */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}
.ripple-effect::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}
.ripple-effect:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Service Card Hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to bottom, #ffffff, #f0f7ff);
}
.service-card svg, .service-card img {
    transition: transform 0.3s ease;
}
.service-card:hover svg, .service-card:hover img {
    transform: scale(1.05);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Custom wave texture overlay */
.wave-texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q25 20 50 10 T100 10' fill='none' stroke='%23003366' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 100px 20px;
}
@media (max-width: 640px) {
    .wave-texture-overlay {
        opacity: 0.01;
    }
}

/* Form Input Line Fill */
.input-field-container {
    position: relative;
}
.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #1A75BB;
    transition: width 0.3s ease;
}
.input-field:focus ~ .input-line {
    width: 100%;
}

/* Custom Scrollbar (optional but adds polish) */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #F8F8F8;
}
::-webkit-scrollbar-thumb {
    background: #1A75BB;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #003366;
}

/* Focus States for Accessibility */
*:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}