/* Custom styles that extend Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,600&family=Instrument+Sans:wght@400;500;600&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    color: #0A1628;
    background-color: #F8FAF9;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Bricolage Grotesque', sans-serif;
}

/* Smooth fade in for elements below fold */
.fade-in-section {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom selection color */
::selection {
    background-color: #B8E8D5;
    color: #0A1628;
}

/* Form focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: #B8E8D5;
    box-shadow: 0 0 0 1px #B8E8D5;
}

/* Button hover effect */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.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 ease;
}

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

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Line animation */
.line-grow {
    width: 0;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.line-grow.visible {
    width: 80px;
}
