/* ========================================
   AXR MODERN DESIGN - FULLY REDESIGNED
   ======================================== */

/* Root Variables */
:root {
    --primary: #ff4444;
    --primary-dark: #cc3333;
    --primary-light: #ff6666;
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --border-color: #30363d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-tertiary: #6e7681;
    --success: #3fb950;
    --danger: #f85149;
    --radius: 12px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Light Mode */
:root.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #eaeef2;
    --border-color: #d0d7de;
    --text-primary: #24292f;
    --text-secondary: #57606a;
    --text-tertiary: #768390;
}

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

html {
    scroll-behavior: smooth;
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
        "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
        sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 68, 68, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 68, 68, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 30%, rgba(100, 150, 255, 0.05) 0%, transparent 50%);
    animation: bgShift 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

:root.light-mode body::before {
    background: radial-gradient(circle at 20% 50%, rgba(255, 68, 68, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 68, 68, 0.02) 0%, transparent 50%);
}

@keyframes bgShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 68, 68, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 68, 68, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 100, 100, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 68, 68, 0.15), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(100, 150, 255, 0.1), transparent);
    background-size: 200% 200%, 150% 150%, 300% 300%, 250% 250%, 200% 200%;
    background-repeat: repeat;
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

:root.light-mode body::after {
    opacity: 0.2;
}

@keyframes particleFloat {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    50% {
        background-position: 100% 100%, 50% 50%, 100% 50%, 50% 100%, 75% 25%;
    }
}

/* Content layering */
nav, header, main, footer {
    position: relative;
    z-index: 1;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.nav-container {
    background: linear-gradient(180deg, var(--bg-secondary), transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(255, 68, 68, 0.4));
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--primary);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 0 12px rgba(255, 68, 68, 0.3);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 68, 68, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

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

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-emblem {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(255, 68, 68, 0.2));
    animation: emblomBounce 3s ease-in-out infinite;
}

@keyframes emblomBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    animation: slideInDown 0.8s ease-out;
}

.hero-text .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

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

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

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}

/* ========================================
   MAIN CONTENT
   ======================================== */

main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.content {
    display: grid;
    gap: 1.5rem;
}

/* ========================================
   SECTIONS & CARDS
   ======================================== */

section {
    background: rgba(22, 27, 34, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    animation: slideUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

section:hover::before {
    left: 100%;
}

section:hover {
    border-color: rgba(255, 68, 68, 0.6);
    box-shadow: 0 8px 32px rgba(255, 68, 68, 0.15), inset 0 0 20px rgba(255, 68, 68, 0.05);
    transform: translateY(-2px);
}

section h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 68, 68, 0.2);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

section h2:hover {
    border-bottom-color: var(--primary);
    text-shadow: 0 0 12px rgba(255, 68, 68, 0.3);
}

section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

section p strong {
    color: var(--text-primary);
    font-weight: 600;
}

section p i {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ========================================
   LISTS
   ======================================== */

.styled-list {
    list-style: none;
    margin: 1rem 0;
    position: relative;
    z-index: 2;
}

.styled-list li {
    padding: 0.75rem 0 0.75rem 1.5rem;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition);
    border-left: 2px solid transparent;
    margin-left: -2px;
}

.styled-list li:before {
    content: "→";
    position: absolute;
    left: -10px;
    color: var(--primary);
    font-weight: 700;
    transition: var(--transition);
}

.styled-list li:hover {
    color: var(--text-primary);
    padding-left: 2rem;
    border-left-color: var(--primary);
}

.styled-list li:hover::before {
    left: 0;
}

ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
    z-index: 2;
}

ul li {
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    line-height: 1.8;
    transition: var(--transition);
    padding-left: 0.5rem;
    border-left: 2px solid transparent;
}

ul li:hover {
    color: var(--text-primary);
    border-left-color: var(--primary);
    transform: translateX(4px);
}

/* ========================================
   IMAGES
   ======================================== */

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: block;
    margin: 1.5rem auto;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

img:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(255, 68, 68, 0.25);
    transform: translateY(-4px) scale(1.02);
}

.hero-emblem {
    border: none;
    margin: 0;
}

.emblem {
    border: none;
    margin: 0;
    width: 120px;
    height: 120px;
}

.image-wide {
    max-width: 100%;
}

.map-image,
.promo-image {
    max-width: 600px;
}

/* ========================================
   LINKS
   ======================================== */

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px dotted transparent;
    position: relative;
    z-index: 2;
}

a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

footer p {
    margin: 0.5rem 0;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.card {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-tertiary {
    color: var(--text-tertiary);
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(255, 68, 68, 0.1));
    color: var(--primary);
    padding: 0.4rem 0.9rem;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 68, 68, 0.3);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.badge:hover {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.3), rgba(255, 68, 68, 0.2));
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.25);
    transform: scale(1.05);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    section h1 {
        font-size: 1.75rem;
    }

    section h2 {
        font-size: 1.25rem;
    }

    .hero-emblem {
        width: 80px;
        height: 80px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }
}

/* ========================================
   TEXT DECORATIONS
   ======================================== */

strike {
    color: var(--text-tertiary);
    text-decoration-color: var(--text-tertiary);
}

strong {
    font-weight: 600;
}
