/* Modern CSS Variables */
:root {
    --primary: #ff6b35;
    --secondary: #f7931e;
    --accent: #00ff41;
    --dark: #0a0a0a;
    --dark-alt: #1a1a1a;
    --dark-light: #2a2a2a;
    --light: #ffffff;
    --text-muted: #888;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-accent: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.3);
    --shadow-intense: 0 0 50px rgba(255, 107, 53, 0.6);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(247, 147, 30, 0.1) 0%, transparent 50%);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    animation: float var(--duration) var(--delay) infinite;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) translateX(-10px) scale(1);
    }
    100% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
}

/* REMOVED: Navigation styles - now handled in sidebar-nav.css with higher specificity */

.navbar-brand {
    display: flex;
    align-items: center;
    color: var(--light) !important;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-icon {
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
}

.navbar-toggler span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--light);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-toggler:not(.collapsed) span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler:not(.collapsed) span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--light) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent);
    margin-right: 1rem;
}

.status-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light);
    box-shadow: var(--shadow-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-intense);
    color: var(--light);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 2px solid rgba(255, 107, 53, 0.5);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: var(--light);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    transition: var(--transition);
}

.btn:hover .btn-icon {
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        var(--gradient-dark);
    padding-top: 2rem; /* Reduced padding since no fixed navbar */
    box-sizing: border-box;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    width: 100%;
}

.hero-section .col-lg-6 .hero-text,
.hero-section .hero-text {
    text-align: center !important;
}

.hero-section .col-lg-6 {
    text-align: center !important;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    animation: slideInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.5));
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    animation: fadeIn 1s ease-out 0.8s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    animation: float-card 6s ease-in-out infinite;
    box-shadow: var(--shadow-glow);
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.card-content h3 {
    font-family: 'Orbitron', monospace;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    letter-spacing: 2px;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-item svg {
    filter: drop-shadow(0 0 10px currentColor);
}

.status-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    color: var(--light);
}

.status-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--dark-alt);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.feature-card {
    background: rgba(42, 42, 42, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(
        from 0deg,
        rgba(255, 107, 53, 0.1),
        rgba(247, 147, 30, 0.1),
        rgba(0, 255, 65, 0.1),
        rgba(255, 107, 53, 0.1)
    );
    border-radius: var(--border-radius);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    animation: none !important;
    transform: rotate(0deg) !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
}

@keyframes rotate {
    /* Static - no rotation */
    to { transform: rotate(0deg); }
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature-icon svg {
    color: var(--light);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.feature-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light);
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: 
        radial-gradient(circle at center, rgba(255, 107, 53, 0.1) 0%, transparent 70%),
        var(--dark);
    text-align: center;
}

.cta-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--dark-alt);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-brand span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-divider {
    border: none;
    height: 1px;
    background: rgba(255, 107, 53, 0.2);
    margin: 2rem 0 1rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-section {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding-top: 120px;
        padding-bottom: 40px;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .floating-card {
        padding: 1.5rem;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .features-section,
    .cta-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-section {
        padding-top: 100px;
        padding-bottom: 30px;
        min-height: 70vh;
    }
    
    .title-line {
        display: block;
        margin-bottom: 0.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* ENHANCED MOBILE OPTIMIZATIONS */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .btn {
        min-height: 48px; /* Touch-friendly size */
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
    
    /* Better card layouts on mobile */
    .feature-card,
    .floating-card {
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    /* Improved text readability */
    h1 { font-size: 1.75rem; line-height: 1.2; }
    h2 { font-size: 1.5rem; line-height: 1.3; }
    h3 { font-size: 1.25rem; line-height: 1.4; }
    
    /* Mobile-friendly spacing */
    .section-title {
        margin-bottom: 2rem;
        font-size: 1.5rem;
    }
}

/* ULTRA-MOBILE OPTIMIZATIONS */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .floating-card {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .btn {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }
    
    /* Compact hero on very small screens */
    .hero-section {
        padding-top: 80px;
        padding-bottom: 20px;
        min-height: 60vh;
    }
}

/* User Welcome Styling for Authenticated Header */
.user-welcome {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 1rem;
}

.user-welcome #dashboardUsername {
    color: var(--primary);
    font-weight: 600;
}