/* Design System Variables */
:root {
    --color-bg: #0F1419;
    --color-accent-primary: #1E4B70;
    --color-accent-secondary: #C5A572;
    --color-text: #E8E8E8;
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Source Sans Pro', sans-serif;
}

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

/* Navbar Scrolled State */
.navbar-scrolled {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(197, 165, 114, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Navigation Links */
.nav-link {
    position: relative;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #E8E8E8;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent-secondary);
    transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent-secondary);
}

/* Background Animations */
.scales-of-justice-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.03;
    pointer-events: none;
}

.scales-of-justice-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10v30M30 40h40M30 40l-10 20h20zM70 40l-10 20h20z" stroke="%23C5A572" fill="none" stroke-width="0.5"/></svg>') no-repeat center;
    animation: balance-sway 12s ease-in-out infinite;
}

@keyframes balance-sway {
    0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); }
    50% { transform: translate(-50%, -50%) rotate(3deg); }
}

/* Buttons */
.cta-primary {
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #1E4B70, #2A5A84);
    border: 1px solid rgba(197, 165, 114, 0.3);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 75, 112, 0.4);
    border-color: var(--color-accent-secondary);
}

.cta-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(197, 165, 114, 0.3), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: all 0.6s;
}

.cta-primary:hover .cta-shine {
    animation: shine-sweep 0.8s ease;
}

@keyframes shine-sweep {
    0% { transform: rotate(45deg) translate(-100%, -100%); }
    100% { transform: rotate(45deg) translate(100%, 100%); }
}

.cta-secondary {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid rgba(197, 165, 114, 0.5);
    color: var(--color-accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-secondary:hover {
    background: rgba(197, 165, 114, 0.1);
    border-color: var(--color-accent-secondary);
    color: #fff;
}

/* Glass Card */
.glass-card {
    background: rgba(30, 75, 112, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Expertise Card */
.expertise-card {
    position: relative;
    padding: 2.5rem;
    background: rgba(30, 75, 112, 0.05);
    border: 1px solid rgba(197, 165, 114, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
    display: block;
}

.expertise-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 75, 112, 0.15);
    border-color: rgba(197, 165, 114, 0.4);
    box-shadow: 0 20px 40px rgba(30, 75, 112, 0.2);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 75, 112, 0.2), rgba(197, 165, 114, 0.1));
    border: 1px solid rgba(197, 165, 114, 0.3);
    border-radius: 12px;
    color: var(--color-accent-secondary);
    transition: all 0.3s ease;
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.1);
    border-color: var(--color-accent-secondary);
}

.expertise-hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.expertise-card:hover .expertise-hover-line {
    transform: scaleX(1);
}

/* Floating Notification */
.floating-notification {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    padding: 1rem 1.5rem;
    background: rgba(15, 20, 25, 0.9);
    border-left: 3px solid var(--color-accent-secondary);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slide-in-right 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    z-index: 30;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-secondary);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(197, 165, 114, 0.7); }
    50% { opacity: 0.6; transform: scale(1.2); box-shadow: 0 0 0 10px rgba(197, 165, 114, 0); }
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Utility Animations */
.animate-fade-up {
    animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-left {
    animation: fade-left 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fade-left {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-float-slow {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slower {
    animation: float 8s ease-in-out infinite reverse;
}

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

.animate-pulse-slow {
    animation: pulse 4s infinite;
}

.animate-pulse-slower {
    animation: pulse 6s infinite;
}

/* Pattern Grid */
.pattern-grid {
    background-image: radial-gradient(var(--color-accent-primary) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Mobile Menu Specifics */
.nav-link-mobile {
    color: #E8E8E8;
    transition: color 0.3s;
}
.nav-link-mobile:hover {
    color: var(--color-accent-secondary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0F1419;
}
::-webkit-scrollbar-thumb {
    background: #1E4B70;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C5A572;
}
