/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ffffff;
    --secondary: #e5e5e5;
    --accent: #cccccc;
    --bg-dark: #000000;
    --bg-darker: #000000;
    --bg-light: #0a0a0a;
    --bg-lighter: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --border: rgba(255, 255, 255, 0.15);
    --sidebar-width: 280px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: var(--text-primary);
    overflow-x: hidden;
}

.dark-mode {
    background: #000000;
    background-attachment: fixed;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.5); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 40px 30px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.sidebar-tagline {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-menu {
    flex: 1;
    padding: 30px 0;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 30px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-left-color: var(--primary);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-icon {
    font-size: 24px;
}

.nav-text {
    font-size: 16px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 30px;
    border-top: 1px solid var(--border);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    font-size: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.sidebar-copyright {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

/* Main Content */
.main-content {
    margin-left: 0;
    min-height: 100vh;
    padding: 100px 80px 60px;
    transition: margin-left 0.3s ease;
}

/* Main Brand Logo (Top of Page) */
.main-brand {
    text-align: center;
    padding: 20px 0 15px;
    animation: fadeIn 1s ease;
    margin-bottom: 40px;
}

.main-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: inline-block;
}

.main-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
}

.main-brand-name {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 0;
}

.page {
    display: none;
    animation: fadeIn 0.6s ease;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 71, 87, 0.1), transparent);
    transition: left 0.7s;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.2);
}

.project-card:hover::before {
    left: 100%;
}

.project-card.coming-soon {
    opacity: 0.5;
    cursor: default;
}

.project-card.coming-soon:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}

.project-card-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-card-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    transition: all 0.3s ease;
}

.project-card:hover .project-card-icon img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.7));
}

.project-card-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-card-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card-btn {
    background: linear-gradient(135deg, #ffffff, #e5e5e5);
    color: #000000;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.project-card-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    background: #ffffff;
}

/* Page Title */
.page-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Page */
.about-content {
    max-width: 800px;
}

.about-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
}

.about-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.about-section ul {
    list-style: none;
    padding: 0;
}

.about-section ul li {
    color: var(--text-secondary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    line-height: 1.6;
}

.about-section ul li:last-child {
    border-bottom: none;
}

/* Contact Page */
.contact-intro {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-note {
    max-width: 700px;
    margin: 50px auto 0;
    padding: 30px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
}

.contact-note p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.contact-note p:last-child {
    margin-bottom: 0;
}

/* Blog Page */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

.blog-card.coming-soon {
    opacity: 0.5;
    cursor: default;
}

.blog-card.coming-soon:hover {
    transform: none;
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.blog-date {
    font-size: 13px;
    color: var(--text-muted);
}

.blog-tag {
    background: rgba(220, 38, 38, 0.2);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.blog-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blog-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 15px;
}

.blog-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* Detail Description Box */
.detail-description-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.detail-description-box .detail-description {
    margin-bottom: 20px;
}

.detail-description-box .detail-description:last-child {
    margin-bottom: 0;
}

/* Browser Support */
.browser-support {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
}

.browser-support h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.browser-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.browser-badge {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.browser-badge.supported {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.browser-badge.unsupported {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.browser-note {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 15px;
}

/* Install Method */
.install-method {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.install-method h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--primary);
}

.install-method h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.install-note {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.download-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 16px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Project Detail Modal */
.project-detail {
    display: none;
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    overflow-y: auto;
    animation: fadeIn 0.4s ease;
}

.project-detail.active {
    display: block;
}

.close-detail {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--primary);
    color: #000000;
    border: 2px solid var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-detail:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
    background: #ffffff;
}

.detail-content {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 40px 60px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.detail-icon {
    font-size: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-icon img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.5));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.detail-title {
    font-size: 52px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.detail-subtitle {
    font-size: 18px;
    color: var(--text-muted);
}

.detail-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}

.feature-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px 20px;
    color: #4ade80;
    font-size: 14px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateX(5px);
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.12));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
}

.download-section h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: white;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.download-btn.primary {
    background: linear-gradient(135deg, #ffffff, #e5e5e5);
    color: #000000;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    animation: glow 2s ease-in-out infinite;
    font-weight: 700;
}

.download-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text-primary);
}

.download-btn:hover {
    transform: translateY(-5px);
}

.download-btn.primary:hover {
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.5);
    background: #ffffff;
}

.download-btn.secondary:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon {
    font-size: 36px;
}

.btn-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.btn-subtitle {
    font-size: 13px;
    opacity: 0.8;
}

.download-info {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

/* Install Guide */
.install-guide {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
}

.install-guide h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: white;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffffff, #e5e5e5);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.step-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

.step-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Links Section */
.links-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.link-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.link-icon {
    font-size: 36px;
}

.link-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary);
}

.link-text p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 100px 40px 40px;
    }
    
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 100px 20px 40px;
    }
    
    .project-detail {
        left: 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-title {
        font-size: 36px;
    }
    
    .download-buttons {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}