:root {
    --primary-color: #a634db;
    --secondary-color: #422c50;
    --accent-color: #a83ce7;
    --bg-light: #f9f9f9;
    --bg-dark: #3f2c50;
    --text-dark: #333;
    --text-light: #fff;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --bg-primary: var(--bg-light);
    --text-primary: var(--text-dark);
    --bg-secondary: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --text-primary: #e0e0e0;
    --bg-secondary: #2d2d2d;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --bg-light: #1a1a1a;
    --text-dark: #e0e0e0;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.btn-download {
    background-color: var(--accent-color);
    color: var(--text-light);
    font-size: 1.2rem;
    padding: 15px 40px;
}

.btn-download:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-primary);
    opacity: 0.8;
}

header {
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--bg-secondary);
}

.control-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.control-select {
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.control-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #7434db 0%, #8e44ad 100%);
    color: var(--text-light);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.features {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(166, 52, 219, 0.1);
}

.feature-icon img {
    width: 32px;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-example {
    margin-top: 1.5rem;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.before, .after {
    text-align: center;
}

.before span, .after span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.gif-example {
    margin-top: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.tutorial {
    padding: 5rem 0;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.tutorial-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tutorial-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.tutorial-step h3 {
    margin-bottom: 1rem;
}

.tutorial-step img {
    margin-top: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.tutorial-video {
    text-align: center;
}

.tutorial-video h3 {
    margin-bottom: 1.5rem;
}

.video-container {
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.download {
    padding: 5rem 0;
    background: linear-gradient(135deg, #7434db 0%, #8e44ad 100%);
    color: var(--text-light);
}

.download .section-title::after {
    background-color: #fff;
}

.download .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    justify-content: center;
    justify-items: center;
}

.download-card {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 8px 32px var(--shadow-color);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    overflow: hidden;
}

.download-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px var(--shadow-color);
    border: 2px solid var(--primary-color);
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8e44ad 100%);
    z-index: 1;
}

.language-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8e44ad 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.download-status {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.download-status .success {
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2rem;
}

.manual-download-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.manual-download-link:hover {
    color: #2980b9;
}

.download-details {
    margin: 1.5rem 0;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.download-details {
    margin: 1.5rem 0;
    padding: 0;
}

.download-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.download-details li strong {
    min-width: 140px;
    color: var(--primary-color);
    font-weight: 600;
}

.security-info {
    display: flex;
    align-items: center;
    background-color: rgba(46, 204, 113, 0.1);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 204, 113, 0.2);
    margin: 1rem 0;
}

[data-theme="dark"] .security-info {
    background-color: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.3);
}

.security-info img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.8;
}

.security-info p {
    font-size: 0.9rem;
    color: #2ecc71;
    font-weight: 500;
    margin: 0;
}

.btn-download {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(183, 60, 231, 0.3);
}

.btn-download:hover {
    background: linear-gradient(135deg, #7d2bc0 0%, #6a26a9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 60, 231, 0.4);
}

.faq {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    background-color: var(--bg-primary);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo h2 {
    font-size: 1.5rem;
}

.footer-links h3 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}



@media (max-width: 991px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
        order: 1;
    }
    
    .hero-image {
        order: 0;
        max-width: 70%;
        margin: 0 auto;
    }
    
    .download-cards {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    nav {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .controls {
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tutorial-steps {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.5rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-card, .tutorial-step, .faq-item {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }
.feature-card:nth-child(4) { animation-delay: 0.6s; }
.feature-card:nth-child(5) { animation-delay: 0.8s; }

.tutorial-step:nth-child(2) { animation-delay: 0.2s; }
.tutorial-step:nth-child(3) { animation-delay: 0.4s; }
.tutorial-step:nth-child(4) { animation-delay: 0.6s; }

.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.3s; }
.faq-item:nth-child(5) { animation-delay: 0.4s; }
.faq-item:nth-child(6) { animation-delay: 0.5s; }

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgb(174, 0, 255);
  border-radius: 5px;
}

/* 404 Error Page Styles */
.error-page {
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.error-illustration {
    text-align: center;
    position: relative;
}

.error-number {
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8e44ad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-icon {
    font-size: 4rem;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

.error-text {
    text-align: left;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.error-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.error-suggestions {
    margin-top: 4rem;
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.error-suggestions h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.suggestion-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestion-links a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
    transition: var(--transition);
    font-weight: 500;
}

.suggestion-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .error-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .error-text {
        text-align: center;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-actions {
        justify-content: center;
    }
    
    .suggestion-links {
        flex-direction: column;
        align-items: center;
    }
    
    .suggestion-links a {
        width: 100%;
        max-width: 250px;
    }
}