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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a237e;
    color: #64b5f6;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background-color: #0d47a1;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1976d2;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #90caf9;
}

.nav-logo img {
    height: 40px;
    width: 40px;
    margin-right: 12px;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #64b5f6;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-link {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #90caf9;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #42a5f5;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #1a237e 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="a"><stop offset="0%" stop-color="%2342a5f5" stop-opacity="0.1"/><stop offset="100%" stop-color="%2342a5f5" stop-opacity="0"/></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23a)"/><circle cx="80" cy="80" r="2" fill="url(%23a)"/><circle cx="40" cy="70" r="1" fill="url(%23a)"/><circle cx="90" cy="10" r="1" fill="url(%23a)"/><circle cx="10" cy="90" r="1" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e3f2fd;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #90caf9;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #64b5f6;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* New Hero Buttons */
.download-btn, .gallery-btn {
    display: inline-block;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.download-btn {
    background: linear-gradient(45deg, #2196f3, #42a5f5);
    color: white;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1976d2, #2196f3);
    transition: left 0.4s ease;
    z-index: -1;
}

.download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.6);
}

.download-btn:hover::before {
    left: 0;
}

.gallery-btn {
    background: transparent;
    color: #64b5f6;
    border: 3px solid #64b5f6;
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.2);
}

.gallery-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #64b5f6;
    transition: left 0.4s ease;
    z-index: -1;
}

.gallery-btn:hover {
    color: #1a237e;
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(100, 181, 246, 0.4);
}

.gallery-btn:hover::before {
    left: 0;
}

/* Old button styles for other sections */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #2196f3;
    color: white;
    border-color: #2196f3;
}

.btn-primary:hover {
    background-color: #1976d2;
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #64b5f6;
    border-color: #64b5f6;
}

.btn-secondary:hover {
    background-color: #64b5f6;
    color: #1a237e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 181, 246, 0.3);
}

/* Sections */
section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #e3f2fd;
}

/* About Section */
.about {
    background-color: #0d47a1;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #90caf9;
}

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

.feature {
    text-align: center;
    padding: 2rem 1rem;
    background-color: rgba(25, 118, 210, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #90caf9;
}

.feature p {
    color: #64b5f6;
}

/* Docs Section */
.docs {
    background-color: #0d47a1;
}

.docs-content {
    max-width: 800px;
    margin: 0 auto;
}

.doc-item {
    margin-bottom: 1rem;
    background-color: rgba(25, 118, 210, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(100, 181, 246, 0.2);
    overflow: hidden;
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.doc-header:hover {
    background-color: rgba(25, 118, 210, 0.2);
}

.doc-header h3 {
    margin: 0;
    color: #90caf9;
    font-size: 1.3rem;
}

.doc-toggle {
    font-size: 1.5rem;
    color: #64b5f6;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.doc-content {
    display: none;
    padding: 0 2rem 2rem 2rem;
    color: #64b5f6;
    line-height: 1.7;
}

.doc-content p {
    margin-bottom: 1rem;
}

.doc-content ul, .doc-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
    color: #90caf9;
}

.doc-content strong {
    color: #e3f2fd;
}

/* Gallery Section */
.gallery {
    background-color: #1a237e;
}

.gallery-description {
    text-align: center;
    font-size: 1.1rem;
    color: #90caf9;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #0d47a1;
    border: 2px solid rgba(100, 181, 246, 0.3);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(66, 165, 245, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 35, 126, 0.9));
    color: #e3f2fd;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    border: 2px dashed rgba(100, 181, 246, 0.5);
}

.placeholder-content {
    text-align: center;
    color: #90caf9;
}

.placeholder-content span {
    font-size: 3rem;
    font-weight: 300;
    display: block;
    margin-bottom: 0.5rem;
}

/* Download Section */
.download {
    background-color: #0d47a1;
}

.download-description {
    text-align: center;
    font-size: 1.1rem;
    color: #90caf9;
    margin-bottom: 3rem;
}

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

.download-card {
    background-color: rgba(25, 118, 210, 0.1);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid rgba(100, 181, 246, 0.3);
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 181, 246, 0.6);
}

.download-card h3 {
    color: #90caf9;
    margin-bottom: 1rem;
}

.version {
    font-size: 1.2rem;
    font-weight: 600;
    color: #42a5f5;
    margin-bottom: 1rem;
}

.download-card p {
    color: #64b5f6;
    margin-bottom: 2rem;
}

.system-requirements {
    background-color: rgba(25, 118, 210, 0.1);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.system-requirements h3 {
    color: #90caf9;
    margin-bottom: 1rem;
    text-align: center;
}

.system-requirements ul {
    list-style: none;
    max-width: 400px;
    margin: 0 auto;
}

.system-requirements li {
    color: #64b5f6;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(100, 181, 246, 0.1);
}

.system-requirements li:before {
    content: '✓';
    color: #42a5f5;
    margin-right: 10px;
}

/* Developer Section */
.developer {
    background-color: #1a237e;
}

.dev-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

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

.dev-info h3 {
    color: #90caf9;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.dev-info p {
    color: #64b5f6;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.dev-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.footer {
    background-color: #0d47a1;
    padding: 3rem 0;
    border-top: 1px solid rgba(100, 181, 246, 0.2);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #90caf9;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 32px;
    width: 32px;
    margin-right: 10px;
}

.footer p {
    color: #64b5f6;
    opacity: 0.8;
}

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

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
    margin-top: 5%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #e3f2fd;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal-close:hover {
    color: #90caf9;
}

.modal-caption {
    text-align: center;
    color: #90caf9;
    padding: 20px;
    font-size: 1.2rem;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(13, 71, 161, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        text-align: center;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 10px;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
        padding: 0 20px;
    }
    
    .download-btn, .gallery-btn {
        width: 100%;
        max-width: 280px;
        padding: 18px 24px;
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* About Section */
    .about-text p {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 1.2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .feature {
        padding: 1.5rem 1rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    /* Docs */
    .doc-header {
        padding: 1.2rem 1.5rem;
    }
    
    .doc-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Download */
    .download-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .system-requirements {
        padding: 1.5rem;
    }
    
    /* Developer */
    .dev-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dev-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .dev-links .btn {
        width: 200px;
        text-align: center;
    }
    
    /* Modal */
    .modal-content {
        max-width: 95%;
        max-height: 70%;
        margin-top: 10%;
    }
    
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .download-btn, .gallery-btn {
        padding: 16px 20px;
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo img {
        height: 32px;
        width: 32px;
    }
}

/* Smooth animations */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d47a1;
}

::-webkit-scrollbar-thumb {
    background: #42a5f5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1976d2;
}
