

.nav-link {
    @apply text-white hover:text-[#D4AF37] transition-colors duration-300 text-sm tracking-widest uppercase font-medium;
}

.navbar-scrolled {
    background-color: white !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.navbar-scrolled .nav-link {
    color: #111 !important;
}

.navbar-scrolled .nav-link:hover {
    color: #B8941F !important;
}

.navbar-scrolled .nav-text {
    color: #111 !important;
}

.navbar-scrolled .nav-subtext {
    color: #555 !important;
}

.navbar-scrolled .nav-icon {
    color: #111 !important;
}

/* Estado normal (fundo escuro) */
.nav-name {
    color: white;
}

.nav-consulta {
    color: #D4AF37;
}

/* Quando navbar fica branca */
.navbar-scrolled .nav-name {
    color: #111 !important;
}

.navbar-scrolled .nav-consulta {
    color: #111 !important;
    border-color: #111 !important;
}

.navbar-scrolled .nav-consulta:hover {
    background-color: #111;
    color: white !important;
}


/* Custom Styles for Luxury Law Firm Website */

:root {
    --navy-deep: #ffffff;
    --navy-medium: #112240;
    --gold-primary: #D4AF37;
    --gold-secondary: #C9B037;
    --charcoal: #36454F;
    --charcoal-600: #2C3E50;
}

/* Connection Lines Animation */
.connection-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-in-out forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Gold Shimmer Effect */
.gold-shimmer {
    background: linear-gradient(
        90deg,
        var(--gold-primary) 0%,
        #FFF8DC 50%,
        var(--gold-primary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--navy-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Selection Color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--navy-deep);
}

/* Input Autofill Styling */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.05) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.15);
}

/* Navigation Transition */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
    transform-origin: top;
}

/* Parallax Effect for Hero */
.parallax-element {
    will-change: transform;
}

/* Image Loading State */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

img[src] {
    animation: none;
    background: transparent;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Responsive Typography Adjustments */
@media (max-width: 768px) {
    .font-serif.text-8xl {
        font-size: 3.5rem;
        line-height: 1.1;
    }
    
    .font-serif.text-6xl {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu,
    .animate-float,
    .animate-pulse-slow {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}