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

body {
    font-family: 'Cinzel', serif;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 69, 19, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(101, 67, 33, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a1a 0%, #2d1b0e 50%, #1a0f05 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #d4af37;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
    pointer-events: none;
}

.container {
    max-width: 1200px;
    width: 100%;
    background: 
        linear-gradient(135deg, rgba(45, 27, 14, 0.95) 0%, rgba(26, 15, 5, 0.95) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="%231a0f05"/><path d="M0 0L100 100M100 0L0 100" stroke="%23332211" stroke-width="0.5" opacity="0.3"/></svg>');
    border: 3px solid #8b4513;
    border-radius: 12px;
    box-shadow: 
        0 0 40px rgba(139, 69, 19, 0.5),
        inset 0 0 60px rgba(0, 0, 0, 0.5),
        0 20px 60px rgba(0, 0, 0, 0.8);
    padding: 60px 40px;
    position: relative;
    backdrop-filter: blur(2px);
}

.container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #d4af37, #8b4513, #d4af37, #8b4513);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.shield-icon, .sword-icon {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.sword-icon {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #d4af37;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.8),
        0 0 20px rgba(212, 175, 55, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.8),
        2px 2px 0px #8b4513;
    margin: 0;
    letter-spacing: 0.05em;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.subtitle {
    font-size: 1.25rem;
    color: #c9a961;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 24px;
    font-style: italic;
}

.description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e5d4a3;
    background: rgba(0, 0, 0, 0.3);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.5);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.screenshots-section {
    margin: 60px auto 50px;
    max-width: 1200px;
}

.screenshots-title {
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #d4af37;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.8),
        0 0 20px rgba(212, 175, 55, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.8),
        2px 2px 0px #8b4513;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.screenshots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.screenshot-item {
    background: 
        linear-gradient(135deg, rgba(45, 27, 14, 0.9) 0%, rgba(26, 15, 5, 0.9) 100%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="%231a0f05"/><path d="M0 0L60 60M60 0L0 60" stroke="%23332211" stroke-width="0.5" opacity="0.2"/></svg>');
    border: 2px solid #8b4513;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.screenshot-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #8b4513, #d4af37);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 12px 40px rgba(212, 175, 55, 0.3),
        0 0 30px rgba(139, 69, 19, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.screenshot-item:hover::before {
    transform: scaleX(1);
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.screenshot-item:hover .screenshot-img {
    transform: scale(1.02);
}

.screenshot-caption {
    text-align: center;
    margin-top: 16px;
    font-size: 1rem;
    color: #d4af37;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Cinzel', serif;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
    gap: 20px;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b4513, #d4af37, #8b4513, transparent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    max-width: 300px;
}

.divider-icon {
    font-size: 2rem;
    color: #d4af37;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.8),
        0 0 20px rgba(212, 175, 55, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 3px solid #d4af37;
    border-radius: 12px;
    box-shadow: 
        0 0 40px rgba(212, 175, 55, 0.6),
        0 20px 60px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
    cursor: default;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #d4af37;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.8),
        0 0 20px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
    z-index: 1001;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
    transform: scale(1.2);
    text-shadow: 
        0 0 15px rgba(212, 175, 55, 1),
        0 0 30px rgba(212, 175, 55, 0.8);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #d4af37;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.8),
        0 0 20px rgba(212, 175, 55, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Cinzel', serif;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    backdrop-filter: blur(5px);
    cursor: default;
}

.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.link-card {
    background: 
        linear-gradient(135deg, rgba(45, 27, 14, 0.9) 0%, rgba(26, 15, 5, 0.9) 100%),
        url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="%231a0f05"/><path d="M0 0L60 60M60 0L0 60" stroke="%23332211" stroke-width="0.5" opacity="0.2"/></svg>');
    border: 2px solid #8b4513;
    border-radius: 12px;
    padding: 32px 24px;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.link-card > * {
    position: relative;
    z-index: 1;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #8b4513, #d4af37);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    pointer-events: none;
    z-index: 0;
}

.link-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.link-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(212, 175, 55, 0.3),
        0 0 30px rgba(139, 69, 19, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

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

.link-card:hover::after {
    opacity: 1;
}

.icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chrome-icon svg,
.firefox-icon svg,
.firefox-icon img,
.github-icon svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.link-card:hover .icon {
    transform: scale(1.15) rotate(10deg);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
}

.link-card.chrome:hover .chrome-icon svg {
    filter: drop-shadow(0 0 15px rgba(66, 133, 244, 0.8));
}

.link-card.firefox:hover .firefox-icon svg,
.link-card.firefox:hover .firefox-icon img {
    filter: drop-shadow(0 0 15px rgba(255, 113, 57, 0.8));
}

.link-card.github:hover .github-icon svg {
    filter: drop-shadow(0 0 15px rgba(36, 41, 47, 0.8));
}

.link-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #d4af37;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Cinzel', serif;
}

.link-card p {
    font-size: 0.95rem;
    color: #c9a961;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    flex-grow: 1;
}

.install-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a0f05;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Cinzel', serif;
    border: 2px solid #8b4513;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-shadow: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
    pointer-events: auto;
}

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

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #e5c158 0%, #c9a428 100%);
    cursor: pointer;
}

.install-btn:hover::before {
    left: 100%;
}

.install-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

footer {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid rgba(139, 69, 19, 0.5);
    color: #c9a961;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    font-style: italic;
}

@media (max-width: 768px) {
    .container {
        padding: 40px 24px;
    }

    .title {
        font-size: 2.5rem;
    }

    .title-container {
        flex-direction: column;
        gap: 10px;
    }

    .shield-icon, .sword-icon {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .description {
        font-size: 1rem;
        margin-bottom: 40px;
        padding: 20px;
    }

    .screenshots-section {
        margin: 40px auto 40px;
    }

    .screenshots-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .screenshots-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .screenshot-item {
        padding: 12px;
    }

    .section-divider {
        margin: 40px 0;
    }

    .divider-icon {
        font-size: 1.5rem;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 2.5rem;
    }

    .modal-caption {
        font-size: 1.2rem;
        bottom: 20px;
        padding: 10px 20px;
    }

    .links-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .link-card {
        padding: 28px 20px;
    }
}

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

    .subtitle {
        font-size: 1rem;
    }

    .icon {
        font-size: 3rem;
        width: 56px;
        height: 56px;
    }

    .install-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}
