/* ============================================
   CSS Variables - Theme Colors
   ============================================ */
   :root {
    /* Background Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-card: #1a1a2e;
    
    /* Accent Colors */
    --accent-primary: #00d4ff;
    --accent-secondary: #0066ff;
    --accent-tertiary: #ff0066;
    --accent-glow: rgba(0, 212, 255, 0.5);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    
    /* Border & Glow */
    --border-color: rgba(0, 212, 255, 0.3);
    --glow-intensity: 0 0 20px;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transform: translateZ(0);
    will-change: scroll-position;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: none !important;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    will-change: background, box-shadow;
    transform: translateZ(0);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
    border-bottom: none !important;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    max-width: 100%;
    width: 100%;
    gap: 2rem;
}

.nav-wrapper > * {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem !important;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
    margin: 0;
}

.logo-icon {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    font-size: 1.4rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex !important;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-menu li {
    padding: 0;
    margin: 0;
    margin-right: 4rem;
}

.nav-menu li:last-child {
    margin-right: 0;
}

.nav-menu li#authNavItem {
    margin-right: 4rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem !important;
    position: relative;
    transition: color 0.2s ease;
    padding: 0;
    display: block;
    line-height: 1.5;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.3rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 0 5px var(--accent-primary);
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    will-change: transform;
    transform: translateZ(0);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(50px, 50px, 0); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--accent-glow);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3),
                0 0 20px var(--accent-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4),
                0 0 30px var(--accent-glow);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 10px var(--accent-primary);
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* State Codes Grid - 3 columns layout on desktop, 1 on mobile */
#stateCodesContainer.services-grid,
#stateCodesContainer {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    #stateCodesContainer.services-grid,
    #stateCodesContainer {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translate3d(0, -10px, 0);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* State Code Card Styles */
.state-code-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.state-code-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.state-code-card:hover::before {
    opacity: 0.6;
}

.state-code-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* State Code Border Colors - Based on reference image pattern */
/* Row 1: Pink(0), Green(1), Blue(2) | Row 2: Orange(3), Pink(4), Green(5) | Row 3: Blue(6), Orange(7), Pink(8) | Row 4: Green(9), Blue(10), Orange(11) */

/* Pink/Magenta: State 0, 4, 8 */
.state-code-card.state-0,
.state-code-card.state-4,
.state-code-card.state-8 {
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.state-code-card.state-0::before,
.state-code-card.state-4::before,
.state-code-card.state-8::before {
    background: #ff00ff;
}

.state-code-card.state-0:hover,
.state-code-card.state-4:hover,
.state-code-card.state-8:hover {
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.5);
}

.state-code-card.state-0 .state-code-icon,
.state-code-card.state-4 .state-code-icon,
.state-code-card.state-8 .state-code-icon {
    color: #ff00ff;
}

/* Green: State 1, 5, 9 */
.state-code-card.state-1,
.state-code-card.state-5,
.state-code-card.state-9 {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.state-code-card.state-1::before,
.state-code-card.state-5::before,
.state-code-card.state-9::before {
    background: #00ff00;
}

.state-code-card.state-1:hover,
.state-code-card.state-5:hover,
.state-code-card.state-9:hover {
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
}

.state-code-card.state-1 .state-code-icon,
.state-code-card.state-5 .state-code-icon,
.state-code-card.state-9 .state-code-icon {
    color: #00ff00;
}

/* Blue: State 2, 6, 10 */
.state-code-card.state-2,
.state-code-card.state-6,
.state-code-card.state-10 {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.state-code-card.state-2::before,
.state-code-card.state-6::before,
.state-code-card.state-10::before {
    background: #00d4ff;
}

.state-code-card.state-2:hover,
.state-code-card.state-6:hover,
.state-code-card.state-10:hover {
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
}

.state-code-card.state-2 .state-code-icon,
.state-code-card.state-6 .state-code-icon,
.state-code-card.state-10 .state-code-icon {
    color: #00d4ff;
}

/* Orange/Yellow: State 3, 7, 11 */
.state-code-card.state-3,
.state-code-card.state-7,
.state-code-card.state-11 {
    border-color: #ffaa00;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

.state-code-card.state-3::before,
.state-code-card.state-7::before,
.state-code-card.state-11::before {
    background: #ffaa00;
}

.state-code-card.state-3:hover,
.state-code-card.state-7:hover,
.state-code-card.state-11:hover {
    box-shadow: 0 0 25px rgba(255, 170, 0, 0.5);
}

.state-code-card.state-3 .state-code-icon,
.state-code-card.state-7 .state-code-icon,
.state-code-card.state-11 .state-code-icon {
    color: #ffaa00;
}

.state-code-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 0 8px currentColor);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: filter 0.3s ease;
}

.state-code-card:hover .state-code-icon {
    filter: drop-shadow(0 0 12px currentColor);
}

.state-code-icon svg {
    width: 100%;
    height: 100%;
}

.state-code-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.state-code-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.state-code-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 10px var(--accent-primary));
    transition: transform 0.3s ease, filter 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px var(--accent-primary));
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/10;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

.gallery-item:hover {
    transform: scale3d(1.05, 1.05, 1);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.gallery-image {
    width: 100%;
    height: 100%;
    position: relative;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-image {
    filter: brightness(1.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.gallery-overlay p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

.stat-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: translate3d(0, -5px, 0);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-contact li {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-primary);
    transform: translate3d(5px, 0, 0);
    text-shadow: 0 0 10px var(--accent-glow);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translate3d(0, -3px, 0);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Gold Command Section
   ============================================ */
.gold-command {
    padding: var(--section-padding);
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.gold-command::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.03) 50%, transparent 100%),
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.gold-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.gold-command-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow, border-color;
    transform: translateZ(0);
}

.gold-command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 102, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gold-command-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 15px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(10px);
}

.gold-command-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 
        0 10px 40px rgba(0, 212, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.gold-command-card:hover::before {
    opacity: 1;
}

.gold-command-card:hover::after {
    opacity: 0.6;
}

.gold-command-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--border-color);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    transition: all 0.4s ease;
    will-change: transform, border-color, box-shadow;
    transform: translateZ(0);
}

.gold-command-card:hover .gold-command-photo {
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.5),
        0 0 40px rgba(0, 102, 255, 0.3);
    transform: scale(1.05);
}

.gold-command-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gold-command-card:hover .gold-command-photo img {
    transform: scale(1.1);
}

.gold-command-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 102, 255, 0.2));
    color: var(--accent-primary);
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.gold-command-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.gold-command-card:hover .gold-command-name {
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.gold-command-rank {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.gold-command-card:hover .gold-command-rank {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        border-top: 1px solid var(--border-color);
        transition: left 0.3s ease;
        gap: 0;
        will-change: left;
        transform: translateZ(0);
    }
    
    .nav-menu li {
        padding: 0.75rem 0;
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu li:last-child {
        margin-right: 0 !important;
        border-bottom: none;
    }
    
    .nav-menu #authNavItem {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .container {
        padding: 0 20px;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .search-modal-content {
        margin: 5vh auto;
        max-height: 90vh;
    }
    
    .search-header,
    .search-input-wrapper {
        padding: 1rem 1.5rem;
    }
    
    .search-results {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    #stateCodesContainer.services-grid,
    #stateCodesContainer {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .gold-command-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gold-command-photo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .service-card,
    .stat-item {
        padding: 1.5rem;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(0, 212, 255, 0.8);
        --text-secondary: #ffffff;
    }
}

/* ============================================
   Button Small Variant
   ============================================ */
.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* ============================================
   Authentication Modal
   ============================================ */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-modal-content {
    background: rgba(26, 26, 46, 0.98);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(0, 212, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-normal);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.auth-modal-close:hover {
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
    transform: rotate(90deg);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-modal-header .logo {
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.auth-tab:hover {
    color: var(--accent-primary);
}

.auth-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(10, 10, 10, 0.6);
    border: 1.5px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition-normal);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1),
                inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-full {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
}

.error-message {
    color: var(--accent-tertiary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 0, 102, 0.1);
    border: 1px solid rgba(255, 0, 102, 0.3);
    border-radius: 8px;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

/* Navigation actions (search button, etc.) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: auto;
}

.search-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.search-toggle:hover {
    color: var(--accent-primary);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
}

/* Navigation auth button styles */
#authNavItem {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 4rem;
}

#authNavItem .btn {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

/* Search Modal */
.search-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    visibility: hidden;
    opacity: 0;
}

.search-modal.active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 10vh auto;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    z-index: 2001;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.search-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.search-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.search-close:hover {
    color: var(--accent-primary);
}

.search-close svg {
    width: 24px;
    height: 24px;
}

.search-input-wrapper {
    position: relative;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.search-icon {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-primary);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 2rem 2rem;
    max-height: calc(80vh - 200px);
}

.search-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.search-placeholder p {
    margin: 0;
    font-size: 1rem;
}

.search-result-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.search-result-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-result-title mark {
    background: rgba(0, 212, 255, 0.3);
    color: var(--accent-primary);
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.search-result-description mark {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-primary);
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-category {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.search-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.search-no-results p {
    margin: 0;
    font-size: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#userInfo {
    display: flex;
    align-items: center;
    gap: 10px;
}

#usernameDisplay {
    color: var(--text-primary);
    font-weight: 500;
}

/* Responsive styles for auth modal */
@media (max-width: 768px) {
    .auth-modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .auth-modal-header h2 {
        font-size: 1.75rem;
    }
    
    #authNavItem {
        flex-direction: column;
        align-items: stretch;
    }
    
    #userInfo {
        flex-direction: column;
        align-items: stretch;
    }
    
    #userInfo button,
    #userInfo a {
        width: 100%;
        margin-left: 0 !important;
    }
}

/* ============================================
   Admin Dashboard Section
   ============================================ */
.admin-dashboard-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(10, 10, 10, 0.9));
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.admin-dashboard-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.admin-dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.admin-dashboard-card:hover::before {
    left: 100%;
}

.admin-dashboard-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3),
                0 0 40px rgba(0, 212, 255, 0.1);
}

.admin-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.admin-card-icon svg {
    width: 30px;
    height: 30px;
}

.admin-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.admin-card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.admin-card-link {
    color: var(--accent-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.admin-dashboard-card:hover .admin-card-link {
    gap: 1rem;
}

.admin-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.admin-stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-stat-value {
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-form .form-group {
    margin-bottom: 2rem;
}

.contact-form label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.contact-form input[type="email"],
.contact-form input[type="text"],
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.6);
    border: 1.5px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition-normal);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-form input[type="email"]:focus,
.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1),
                inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-full {
    width: 100%;
    margin-top: 1rem;
}

.form-messages {
    margin-bottom: 1rem;
    min-height: 20px;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: block;
}

.form-message.success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.form-message.error {
    background: rgba(255, 0, 102, 0.1);
    border: 1px solid rgba(255, 0, 102, 0.3);
    color: var(--accent-tertiary);
}

.btn-loading {
    display: inline-block;
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem 1.5rem;
    }
}