/* Base styles and custom properties */
:root {
    --navy-900: #0a1628;
    --navy-800: #112240;
    --gold-400: #d4a853;
    --gold-500: #c9a227;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--navy-900);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-400);
    border-radius: 3px;
}

/* Selection color */
::selection {
    background: var(--gold-400);
    color: var(--navy-900);
}

/* Hero animations - visible by default, enhanced with JS */
.reveal-hero {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-image {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-left,
    .reveal-right,
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-left {
        transform: translateX(0);
    }
    
    .reveal-right {
        transform: translateX(0);
    }
    
    /* Data-attribute driven reveals */
    [data-reveal] {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
}

/* Service card hover effects */
.service-card {
    transition: background-color 0.5s ease;
}

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
}

#navbar.scrolled a,
#navbar.scrolled .border {
    color: white;
    border-color: white;
}

/* Mobile menu active state */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Image hover zoom */
.overflow-hidden img {
    transition: transform 0.7s ease;
}

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

/* Prevent layout shift on images */
img {
    image-rendering: auto;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .overflow-hidden img {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
