/* Performance Architect Project Styling */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.stacked-card {
    position: sticky;
    top: 80px; /* Small default for mobile */
}

@media (min-width: 768px) {
    .stacked-card {
        top: 120px; /* Higher offset for tablet/desktop */
    }
}

::selection {
    background-color: #000000;
    color: #ffffff;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 25s linear infinite;
}

@keyframes marquee-fast {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

.animate-marquee-fast {
    animation: marquee-fast 12s linear infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-sticky {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-sticky.active {
    opacity: 1;
}

.shrink-reveal {
    opacity: 0;
    transform: scale(1.15) translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.shrink-reveal.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@media (max-width: 1024px) {
    .mobile-menu-active {
        overflow: hidden;
    }
    #systems-hud {
        display: none !important;
    }
}

/* Premium Navigation Styles */
.nav-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid #000000;
}

.nav-link {
    position: relative;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: #555555;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #000000;
}

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

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

.nav-link-active {
    color: #000000 !important;
    border-bottom: 4px solid #000000;
    padding-bottom: 4px;
}

/* Floating HUD refinement */
.hud-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Services Overhaul Utilities */
.dot-grid {
    background-image: radial-gradient(#000 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

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

.animate-float-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

/* Service Card Interactive States */
.service-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: 8px 8px 0px 0px rgba(0,0,0,1);
    background-color: #ffffff;
}

/* Scanning Line Animation */
.scanline {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.05), transparent);
    background-size: 100% 200%;
    animation: scan 4s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Digital Glitch Typography */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch-hover:hover {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

/* Glass Shine Overlay */
.glass-shine {
    position: relative;
    overflow: hidden;
}

.glass-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.7s ease;
    opacity: 0;
    pointer-events: none;
}

.glass-shine:hover::after {
    left: 100%;
    opacity: 1;
}

/* Modal System Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.95);
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    background: white;
    border: 4px solid #000000;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 20px 20px 0px 0px rgba(0,0,0,1);
}

.modal-overlay.active + .modal-content,
.modal-content.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    width: 100%;
    background: white;
    border-bottom: 2px solid #000000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

/* Dashboard Card Specifics */
.dash-card-blue { background-color: #f0f7ff; }
.dash-card-purple { background-color: #f5f3ff; }
.dash-card-yellow { background-color: #fffbeb; }
.dash-card-green { background-color: #f0fdf4; }

