/* ===== Custom Styles for The Bentley Group ===== */

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(17, 31, 56, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a017;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar.scrolled .nav-link {
    color: #2e4f8a;
}

#navbar.scrolled .nav-link:hover {
    color: #111f38;
}

/* ===== Hero ===== */
.hero-gradient {
    background: linear-gradient(135deg, #111f38 0%, #233d6d 30%, #2e4f8a 55%, #3d64aa 75%, #5c80c2 100%);
}

.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.05) 1px, transparent 1px),
                      radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
}

.hero-orb {
    background: radial-gradient(circle, rgba(244, 203, 110, 0.4), transparent 70%);
}

.hero-orb-1 {
    background: radial-gradient(circle, rgba(244, 203, 110, 0.3), transparent 70%);
}

.hero-orb-2 {
    background: radial-gradient(circle, rgba(92, 128, 194, 0.3), transparent 70%);
}

/* ===== CTA Section ===== */
.cta-gradient {
    background: linear-gradient(135deg, #1a2d50 0%, #233d6d 40%, #2e4f8a 70%, #3d64aa 100%);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 1;
    transform: none;
    transition: color 0.3s ease;
}

/* ===== Form Focus States ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #adbee0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #849fd1;
}

/* ===== Selection ===== */
::selection {
    background: rgba(212, 160, 23, 0.2);
    color: #111f38;
}
