/* === Custom Styles for The Earnest Agency === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #1e3659;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f5d88a;
}

/* === Floating animations for hero cards === */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}
@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-0.5deg); }
}
@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.3deg); }
}

.animate-float-1 {
    animation: float-1 6s ease-in-out infinite;
}
.animate-float-2 {
    animation: float-2 5s ease-in-out infinite;
}
.animate-float-3 {
    animation: float-3 7s ease-in-out infinite;
}

/* === Service card hover effects === */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.service-card:hover::before {
    opacity: 1;
}

/* === Approach card hover === */
.approach-card {
    position: relative;
    overflow: hidden;
}
.approach-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 16px;
}
.approach-card:hover::after {
    opacity: 1;
}

/* === Navbar scroll state === */
.navbar-scrolled {
    background: rgba(4, 13, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Scroll reveal animations (below fold only) === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Mobile menu transitions === */
#mobileMenu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* === Gold shimmer on CTA === */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* === Image hover zoom === */
img {
    transition: transform 0.6s ease;
}

/* === Focus styles for accessibility === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.15;
    }
}
