/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-teal: #00d4ff;
    --primary-teal-dark: #00a8cc;
    --primary-teal-light: #00ffd4;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --border-color: rgba(0, 212, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-teal);
    font-weight: 600;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-teal);
    text-decoration: none;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid var(--primary-teal);
}

.logo-circle.large {
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
    background: var(--primary-teal-dark);
    border: 3px solid var(--primary-teal);
}

.logo-circle.small {
    width: 30px;
    height: 30px;
}

.logo-icon {
    width: 60%;
    height: 60%;
    background: var(--primary-teal);
    border-radius: 50%;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--bg-dark);
    border-radius: 50%;
    box-shadow: -7px 0 0 var(--bg-dark), 7px 0 0 var(--bg-dark);
}

.logo-icon::after {
    content: '';
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 3px;
    background: var(--bg-dark);
    border-radius: 2px;
}

.logo-circle.large .logo-icon {
    width: 55%;
    height: 55%;
}

.logo-circle.large .logo-icon::before {
    width: 14px;
    height: 14px;
    box-shadow: -9px 0 0 var(--bg-dark), 9px 0 0 var(--bg-dark);
}

.logo-circle.large .logo-icon::after {
    width: 18px;
    height: 4px;
}

/* Antenna for large logo */
.logo-circle.large::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 12px;
    background: var(--primary-teal);
    border-radius: 2px;
}

.logo-circle.large::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-teal);
    border-radius: 50%;
    box-shadow: -20px 0 0 var(--primary-teal), 20px 0 0 var(--primary-teal);
}

.brand-text {
    color: var(--primary-teal);
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.logo-img.small {
    width: 30px;
    height: 30px;
}

.hero-logo-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 30px;
    display: block;
    border-radius: 50%;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
    transition: filter 0.3s;
}

.hero-logo-img:hover {
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.7));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-teal);
    transition: width 0.2s;
}

.nav-link:hover {
    color: var(--primary-teal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-teal);
}

.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-teal);
    transition: all 0.2s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Animated Stars Background */
.stars-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: transparent;
}

.stars-background::before,
.stars-background::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-teal);
    border-radius: 50%;
    box-shadow: 
        10vw 20vh 0 0 rgba(0, 212, 255, 0.5),
        30vw 40vh 0 0 rgba(0, 212, 255, 0.4),
        50vw 10vh 0 0 rgba(0, 212, 255, 0.6),
        70vw 60vh 0 0 rgba(0, 212, 255, 0.5),
        90vw 30vh 0 0 rgba(0, 212, 255, 0.4),
        20vw 80vh 0 0 rgba(0, 212, 255, 0.5),
        40vw 70vh 0 0 rgba(0, 212, 255, 0.4),
        60vw 90vh 0 0 rgba(0, 212, 255, 0.6),
        80vw 50vh 0 0 rgba(0, 212, 255, 0.5),
        15vw 15vh 0 0 rgba(0, 212, 255, 0.4),
        35vw 25vh 0 0 rgba(0, 212, 255, 0.5),
        55vw 35vh 0 0 rgba(0, 212, 255, 0.4),
        75vw 45vh 0 0 rgba(0, 212, 255, 0.6),
        95vw 55vh 0 0 rgba(0, 212, 255, 0.5),
        25vw 65vh 0 0 rgba(0, 212, 255, 0.4),
        45vw 75vh 0 0 rgba(0, 212, 255, 0.5),
        65vw 85vh 0 0 rgba(0, 212, 255, 0.4),
        85vw 95vh 0 0 rgba(0, 212, 255, 0.6);
    animation: twinkle 3s ease-in-out infinite;
}

.stars-background::after {
    animation-delay: 1.5s;
    box-shadow: 
        5vw 15vh 0 0 rgba(0, 212, 255, 0.4),
        25vw 35vh 0 0 rgba(0, 212, 255, 0.5),
        45vw 5vh 0 0 rgba(0, 212, 255, 0.4),
        65vw 55vh 0 0 rgba(0, 212, 255, 0.6),
        85vw 25vh 0 0 rgba(0, 212, 255, 0.5),
        15vw 75vh 0 0 rgba(0, 212, 255, 0.4),
        35vw 65vh 0 0 rgba(0, 212, 255, 0.5),
        55vw 85vh 0 0 rgba(0, 212, 255, 0.4),
        75vw 40vh 0 0 rgba(0, 212, 255, 0.6),
        95vw 60vh 0 0 rgba(0, 212, 255, 0.5);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Glow Circles */
.glow-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite;
}

.glow-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.glow-2 {
    width: 400px;
    height: 400px;
    top: 60%;
    right: 15%;
    animation-delay: 1.3s;
}

.glow-3 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 50%;
    animation-delay: 2.6s;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.hero-background {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--primary-teal);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        filter: brightness(1);
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
    }
    50% { 
        filter: brightness(1.2);
        text-shadow: 0 0 30px rgba(0, 212, 255, 0.7), 0 0 60px rgba(0, 212, 255, 0.5);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.hero-microcopy {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    font-style: italic;
    animation: fadeIn 1.5s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    display: inline-block;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary-teal);
    color: var(--bg-dark);
    border-color: var(--primary-teal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    background: var(--primary-teal);
    border-color: var(--primary-teal);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6), 0 0 50px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
    animation: buttonPulse 2s ease-in-out infinite;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

@keyframes buttonPulse {
    0%, 100% { 
        box-shadow: 0 0 25px rgba(0, 212, 255, 0.6), 0 0 50px rgba(0, 212, 255, 0.4);
    }
    50% { 
        box-shadow: 0 0 35px rgba(0, 212, 255, 0.8), 0 0 70px rgba(0, 212, 255, 0.6);
    }
}

.btn-secondary {
    background: transparent;
    color: var(--primary-teal);
    border-color: var(--primary-teal);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-secondary:hover {
    background: var(--primary-teal);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* About Section */
.about {
    background: var(--bg-darker);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: left;
}

.team-member {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 25px;
    transition: border-color 0.2s;
}

.team-member:hover {
    border-color: var(--primary-teal);
}

.team-member:last-child {
    margin-bottom: 0;
}

.member-name {
    color: var(--primary-teal);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.team-member p {
    margin-bottom: 15px;
    text-align: left;
}

.team-member p:last-child {
    margin-bottom: 0;
}

.placeholder-text {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Commands Section */
.commands {
    background: var(--bg-dark);
}

.search-box {
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-input {
    width: 100%;
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.command-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 18px;
    transition: border-color 0.2s;
    cursor: pointer;
}

.command-card:hover {
    border-color: var(--primary-teal);
}

.command-name {
    font-size: 1.2rem;
    color: var(--primary-teal);
    margin-bottom: 10px;
    font-weight: 600;
}

.command-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.command-category {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 212, 255, 0.08);
    color: var(--primary-teal);
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Stats Section */
.stats {
    background: var(--bg-darker);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px;
    text-align: center;
    transition: border-color 0.2s;
}

.stat-card:hover {
    border-color: var(--primary-teal);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-teal);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Links Section */
.links {
    background: var(--bg-dark);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.link-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s;
    display: block;
}

.link-card:hover {
    border-color: var(--primary-teal);
}

.link-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.link-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.link-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Legal Links Section */
.legal-links-section {
    background: var(--bg-dark);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.legal-links a:hover {
    color: var(--primary-teal);
}

.legal-links .separator {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-teal);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer Legal Links */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--primary-teal);
}

.footer-legal span {
    color: var(--text-muted);
}

/* Quick Links */
.quick-links {
    background: var(--bg-darker);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.quick-link-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
    display: block;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.quick-link-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.quick-link-card:hover {
    border-color: var(--primary-teal);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.2);
}

.quick-link-card:hover::before {
    opacity: 1;
}

.quick-link-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
    transition: color 0.3s;
}

.quick-link-card:hover .quick-link-desc {
    color: var(--text-secondary);
}

/* Star Sparkle Effect */
.star-link {
    position: relative;
}

.star-link::after {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    font-size: 1.2rem;
    transition: opacity 0.3s, transform 0.3s;
    transform: scale(0) rotate(0deg);
}

.star-link:hover::after {
    opacity: 1;
    transform: scale(1) rotate(360deg);
    animation: sparkle 0.6s ease-out;
}

@keyframes sparkle {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.quick-link-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.quick-link-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Page Layout Styles */
.page-main {
    min-height: calc(100vh - 200px);
    padding-top: 80px;
}

.page-hero {
    background: var(--bg-darker);
    padding: 100px 0 60px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-teal);
    font-weight: 600;
}

.page-content {
    background: var(--bg-dark);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 30px;
}

.legal-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-text h2 {
    color: var(--primary-teal);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.legal-text h3 {
    color: var(--text-primary);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.legal-text p {
    margin-bottom: 15px;
}

.legal-text ul, .legal-text ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.legal-text li {
    margin-bottom: 8px;
}

.legal-text h4 {
    color: var(--primary-teal);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.legal-text code {
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-teal);
    font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 40px 20px;
        transition: left 0.3s;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .commands-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-legal {
        justify-content: center;
        margin-top: 10px;
    }

    .legal-content {
        padding: 25px;
    }

}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 20px;
    }
}

/* Hidden class for search */
.hidden {
    display: none;
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced Typography */
.section-title {
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-teal), transparent);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Command Cards Enhanced */
.command-card {
    position: relative;
    transition: all 0.3s ease;
}

.command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 6px;
    pointer-events: none;
}

.command-card:hover::before {
    opacity: 1;
}

.command-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

/* Link Cards Enhanced */
.link-card {
    position: relative;
    transition: all 0.3s ease;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 6px;
    pointer-events: none;
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

/* Stat Cards Enhanced */
.stat-card {
    position: relative;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 6px;
    pointer-events: none;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}
