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

:root {
    --primary-color: #1f77e6;
    --primary-dark: #1563c0;
    --primary-light: #4a9eff;
    --secondary-color: #2c3e50;
    --secondary-light: #34495e;
    --accent-color: #00d9ff;
    --accent-light: #3ef5ff;
    --hover-color: #9d4edd;
    --hover-light: #c77dff;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
    --bg-dark: #1a1a1a;
    --bg-darker: #0f0f0f;
    --border-color: #404040;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============ NAVBAR ============ */
.navbar {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--secondary-color) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    border-bottom: 3px solid var(--primary-color);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-logo {
    max-height: 40px;
    max-width: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-darker) 0%, #2a2a2a 50%, var(--secondary-color) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(31, 119, 230, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.1) 0%, transparent 50%);
    animation: gradient-shift 15s ease infinite;
    z-index: 1;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.hero-decoration-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero-decoration-2 {
    width: 300px;
    height: 300px;
    background: var(--hover-color);
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

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

@keyframes gradient-shift {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, -20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    max-width: 800px;
}

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

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: slideDown 0.8s ease-out;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    opacity: 0.85;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-light);
    font-weight: 600;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(31, 119, 230, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.jellyfin-backup-btn {
    animation: slideInDown 0.3s ease-out forwards;
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============ CONTAINER ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* ============ SERVICES SECTION ============ */
.services {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1f1f1f 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, #262626 0%, #1f1f1f 100%);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--hover-color);
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.service-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.card-header h3 {
    font-size: 1.8rem;
    color: var(--text-light);
}

.jellyfin-card .card-header i {
    color: #00a4ef;
}

.jellyseerr-card .card-header i {
    color: var(--accent-light);
}

.card-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    opacity: 0.85;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.9;
}

.features-list i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* ============ GUIDE SECTION ============ */
.guide {
    padding: 6rem 0;
    background: linear-gradient(180deg, #1f1f1f 0%, var(--bg-dark) 100%);
    border-top: 3px solid var(--primary-color);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    margin-top: 3rem;
}

.step {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #262626 0%, #1f1f1f 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.2);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

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

.step-content p {
    color: var(--text-light);
    opacity: 0.85;
    line-height: 1.8;
}

.quick-tips {
    margin-top: 4rem;
}

.quick-tips h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-light);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip {
    background: linear-gradient(135deg, #262626 0%, #1f1f1f 100%);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.tip:hover {
    border-color: var(--hover-light);
    background: linear-gradient(135deg, #2a2a2a 0%, #242424 100%);
}

.tip i {
    font-size: 2rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.tip p {
    color: var(--text-light);
    opacity: 0.9;
}

/* ============ ACCESS URLS ============ */
.access-urls {
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #262626 0%, #1f1f1f 100%);
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}

.access-urls h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.url-info {
    text-align: center;
}

.url-info > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.url-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.url-item {
    background: linear-gradient(135deg, #1f1f1f 0%, #1a1a1a 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    text-align: left;
}

.url-item.primary {
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.url-item.secondary {
    border-left-color: var(--secondary-light);
    opacity: 0.85;
}

.url-item strong {
    color: var(--primary-light);
    display: block;
    margin-bottom: 0.5rem;
}

.url-item code {
    background: var(--bg-darker);
    color: var(--accent-light);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.url-note {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.75;
    margin-top: 0.5rem;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0;
    text-align: center;
    border-top: 3px solid var(--primary-color);
    color: var(--text-light);
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

.footer-note i {
    color: var(--primary-color);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        align-items: center;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-brand i {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 0.8rem;
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .card-header i {
        font-size: 2rem;
    }

    .card-header h3 {
        font-size: 1.3rem;
    }
}

/* ============ SCROLLBAR STYLING ============ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}
