/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: #d4900a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b07006;
}

/* Navigation */
.nav-text {
    color: #102a43;
}

.navbar-scrolled .nav-text {
    color: #102a43;
}

#navbar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

#navbar.scrolled .nav-link {
    color: #102a43;
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}

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

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

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #f0c04a;
}

#navbar:not(.scrolled) .nav-text {
    color: #ffffff;
}

/* Mobile Menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f4f8;
}

/* Hero Animations */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Service Cards */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .service-card {
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image Loading */
img {
    loading: lazy;
}

/* Selection Color */
::selection {
    background: #f0c04a;
    color: #102a43;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

/* Gallery hover overlay */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Gold gradient text effect */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0c04a 0%, #d4900a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(212, 144, 10, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Card shine effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

.service-card {
    position: relative;
    overflow: hidden;
}

/* Testimonial card hover */
.border-navy-100\/50:hover {
    border-color: rgba(212, 144, 10, 0.3);
    box-shadow: 0 20px 40px rgba(16, 42, 67, 0.1);
}

/* Contact form input styling */
input::placeholder,
textarea::placeholder {
    color: #9fb3c8;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu button animation */
#menuBtn:hover svg {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* Active nav link */
.nav-link.active {
    color: #d4900a;
}

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

/* Pulse animation for CTA */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(240, 192, 74, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(240, 192, 74, 0);
    }
}

button[type="submit"]:hover {
    animation: pulse-gold 1.5s infinite;
}
