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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ff0000;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ff0000;
    object-fit: cover;
}

.logo h1 {
    color: #ff0000;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 0, 0, 0.8); }
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #cccccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.5);
    background: linear-gradient(45deg, #cc0000, #ff0000);
}

/* Tutorials Section */
.tutorials-section {
    padding: 80px 0;
}

.tutorials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tutorial-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.tutorial-card:hover {
    transform: translateY(-10px);
    border-color: #ff0000;
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

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

.card-header h3 {
    font-size: 1.5rem;
    color: #ffffff;
}

.tutorial-card p {
    color: #cccccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.card-actions {
    display: flex;
    gap: 15px;
}

.btn-read,
.btn-download {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-read {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-read:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-download {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
}

.btn-download:hover {
    background: linear-gradient(45deg, #cc0000, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    margin: 5% auto;
    padding: 0;
    border: 2px solid #ff0000;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 0, 0, 0.3);
}

.modal-header {
    background: rgba(255, 0, 0, 0.1);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #ff0000;
    font-size: 1.5rem;
}

.close {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff0000;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

#tutorialContent {
    color: #ffffff;
    line-height: 1.8;
}

#tutorialContent h1,
#tutorialContent h2,
#tutorialContent h3 {
    color: #ff0000;
    margin: 20px 0 10px 0;
}

#tutorialContent p {
    margin-bottom: 15px;
}

#tutorialContent code {
    background: rgba(255, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #ff0000;
}

.modal-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 0, 0, 0.3);
}

.nav-btn {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.nav-btn:disabled {
    background: rgba(100, 100, 100, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#pageInfo {
    color: #cccccc;
    font-weight: 500;
}

/* PDF Modal Styles */
.pdf-options {
    text-align: center;
}

.pdf-options h4 {
    color: #ff0000;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.branding-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.branding-option {
    position: relative;
}

.branding-option input[type="radio"] {
    display: none;
}

.branding-option label {
    display: block;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(20, 20, 20, 0.5);
}

.branding-option label:hover {
    border-color: rgba(255, 0, 0, 0.5);
}

.branding-option input[type="radio"]:checked + label {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.branding-option label i {
    font-size: 1.5rem;
    color: #ff0000;
    margin-bottom: 10px;
    display: block;
}

.branding-option label span {
    display: block;
    color: #cccccc;
    font-size: 0.9rem;
    margin-top: 5px;
}

.custom-options {
    background: rgba(20, 20, 20, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.color-picker-group,
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.color-picker-group label,
.input-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 500;
}

.color-picker-group input[type="color"],
.input-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.download-btn {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.5);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 2px solid #ff0000;
    padding: 30px 0;
    margin-top: 80px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: #cccccc;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff0000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        gap: 15px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .tutorials-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .branding-options {
        gap: 15px;
    }
    
    .card-actions {
        flex-direction: column;
    }
}

