/* Red Theme CSS for NetBackup */

:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-tertiary: #2e2e2e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-bg-hover: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --primary-color: #e31937;
    --primary-light: #ff4d4d;
    --primary-dark: #b8152d;
    --accent-color: #ff6b6b;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(227, 25, 55, 0.2);
    --shadow-hover: rgba(227, 25, 55, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation Buttons */
.nav-buttons {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: none;
}

.nav-btn:hover {
    background: var(--primary-light);
    transform: translateX(0) scale(1.1);
}

.nav-btn.visible {
    opacity: 1;
    transform: translateX(0);
}

.nav-btn i {
    font-size: 1.25rem;
}

/* Home button - distinct style */
#homeBtn {
    background: linear-gradient(135deg, #4a90d9, #357abd);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.4);
}

#homeBtn:hover {
    background: linear-gradient(135deg, #5a9fe8, #4a90d9);
}

/* Scroll buttons */
#scrollUpBtn, #scrollDownBtn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

#scrollUpBtn:hover, #scrollDownBtn:hover {
    background: var(--primary-color);
    color: white;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.5rem;
}

.logo-icon {
    height: 24px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1f1f 50%, #1a1a1a 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(227, 25, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(227, 25, 55, 0.1) 0%, transparent 50%);
}

/* Animated Grid Background */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(227, 25, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 25, 55, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: -2s; }
.particle:nth-child(3) { left: 30%; animation-delay: -4s; }
.particle:nth-child(4) { left: 40%; animation-delay: -6s; }
.particle:nth-child(5) { left: 50%; animation-delay: -8s; }
.particle:nth-child(6) { left: 60%; animation-delay: -10s; }
.particle:nth-child(7) { left: 70%; animation-delay: -12s; }
.particle:nth-child(8) { left: 80%; animation-delay: -14s; }
.particle:nth-child(9) { left: 90%; animation-delay: -1s; }
.particle:nth-child(10) { left: 95%; animation-delay: -5s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: translateY(80vh) scale(1);
    }
    90% {
        opacity: 0.6;
        transform: translateY(10vh) scale(1);
    }
    100% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.imple-badge {
    display: inline-block;
    background: rgba(227, 25, 55, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid rgba(227, 25, 55, 0.4);
}

.badge-text {
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.main-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 0 40px rgba(227, 25, 55, 0.3);
}

.main-title .highlight {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: var(--primary-light);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

/* Version Badge */
.version-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow-color);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 120px;
}

.hero-stat:hover {
    background: rgba(227, 25, 55, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Content Sections */
.content-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-section h2 .highlight {
    color: var(--primary-color);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Section with Background */
.section-with-bg {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    max-width: 100%;
    padding: 5rem 2rem;
}

.section-with-bg > *:not(h2):not(.section-intro) {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px var(--shadow-color);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Timeline / Version History */
.version-timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    padding-left: 30px;
}

.version-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark), #333);
    border-radius: 2px;
}

.version-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.version-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--shadow-color);
    z-index: 1;
}

.version-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.version-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.version-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.version-number {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.version-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    flex: 1;
}

.version-toggle {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.version-item.expanded .version-toggle {
    transform: rotate(45deg);
}

.version-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.version-item.expanded .version-features {
    max-height: 1500px;
    padding: 1rem 2rem 2rem;
    opacity: 1;
}

.version-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.version-feature:hover {
    background: rgba(227, 25, 55, 0.1);
    transform: translateX(5px);
}

.version-feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.version-feature span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

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

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(227, 25, 55, 0.1), rgba(227, 25, 55, 0.05));
    border: 1px solid rgba(227, 25, 55, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.highlight-box i {
    font-size: 3rem;
    color: var(--primary-color);
}

.highlight-box-content h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.highlight-box-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-copyright {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .main-title {
        font-size: 2rem;
    }

    .highlight-box {
        flex-direction: column;
        text-align: center;
    }

    .nav-buttons {
        right: 1rem;
        bottom: 1rem;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }
}
