/* Fontlar */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Playfair+Display:wght@700&family=Roboto:wght@300;400;500;700&family=ZCOOL+XiaoWei&display=swap');

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #0c0c0c;
    color: #f0f0f0;
    overflow-x: hidden;
    cursor: auto;
}

#fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    object-fit: cover;
    filter: brightness(0.4);
}

#language-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c0c0c;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

#language-selection-box {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    padding-top: 50px;
}

.language-flags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.lang-option img {
    width: 70px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.lang-option:hover img {
    transform: scale(1.1);
    border-color: #e4d59f;
}

.page-language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: none;
}

.current-lang-btn {
    background: rgba(0,0,0,0.5);
    border: 1px solid #e4d59f;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    display: block;
}

.current-lang-btn img {
    width: 40px;
    height: auto;
    display: block;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(12, 12, 12, 0.9);
    border: 1px solid #e4d59f;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.lang-dropdown.visible {
    max-height: 700px;
}

.lang-dropdown .lang-option img {
    width: 40px;
    padding: 8px;
    display: block;
    transition: background-color 0.2s ease;
}

.lang-dropdown .lang-option:hover {
    background-color: rgba(228, 213, 159, 0.2);
}

.video-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: transparent;
    padding: 50px 0;
}

.header-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
    filter: brightness(0.6);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.header-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-content img {
    width: 100%;
    height: auto;
}

/* Countdown Timer Styles */
#countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #e4d59f;
    border-radius: 12px;
    box-shadow:
        0 0 30px rgba(228, 213, 159, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

/* Sticky countdown at bottom left */
#countdown-container.sticky {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    gap: 6px;
    padding: 15px 20px;
    transform: scale(0.75);
    transform-origin: bottom left;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(
        to bottom,
        #fff9c4 0%,
        #ffecb3 30%,
        #e4d59f 50%,
        #d4a017 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(228, 213, 159, 0.5);
    line-height: 1;
}

.countdown-label {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #e4d59f;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.countdown-separator {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 3.5rem;
    color: #e4d59f;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(228, 213, 159, 0.5);
}

@media (max-width: 768px) {
    #countdown-container {
        gap: 5px;
        padding: 20px 15px;
    }

    .countdown-item {
        min-width: 50px;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .countdown-separator {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    #countdown-container.sticky {
        bottom: 15px;
        left: 15px;
        padding: 10px 12px;
        transform: scale(0.65);
    }
}

.background-wrapper {
    position: relative;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: brightness(0.5) contrast(1.1);
    pointer-events: none;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 80px;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(
        to bottom,
        #fff9c4 0%,
        #ffecb3 30%,
        #e4d59f 50%,
        #d4a017 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 10px rgba(228, 213, 159, 0.5),
        0 0 20px rgba(212, 160, 23, 0.3);
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.8) 50%, transparent 55%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shineText 4s infinite linear;
    opacity: 0.5;
    z-index: 1;
}

@keyframes shineText {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #fff8e1;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-shadow: 0 2px 4px rgba(0,0,0, 0.9);
    font-weight: 500;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}

.info-card {
    background-color: rgba(42, 33, 28, 0.85);
    border: 1px solid #4a3a2a;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.info-card-icon {
    height: 40px;
    width: 40px;
    margin-bottom: 20px;
    fill: #e4d59f;
}

.info-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #e4d59f;
    margin: 0 0 15px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.info-card-text {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px #000000;
    font-weight: 400;
}

.features-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text-block {
    flex: 1;
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-image-block {
    flex: 1;
}

.feature-image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image-block img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px #e4d59f;
}

.feature-image {
    cursor: pointer;
}

.feature-image-block,
.feature-image-item {
    position: relative;
    overflow: hidden;
    animation: imageFloat 6s ease-in-out infinite;
}

.feature-image-block::after,
.feature-image-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 25%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.02) 75%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: imageSweep 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes imageSweep {
    0% { left: -100%; }
    40% { left: 150%; }
    100% { left: 150%; }
}

.feature-row:nth-child(3n + 1) .feature-image-block::after { animation-delay: 0.6s; }
.feature-row:nth-child(3n + 2) .feature-image-block::after { animation-delay: 1.4s; }
.feature-row:nth-child(3n) .feature-image-block::after { animation-delay: 2.2s; }

.feature-image-item:nth-child(1)::after { animation-delay: 0.4s; }
.feature-image-item:nth-child(2)::after { animation-delay: 0.9s; }
.feature-image-item:nth-child(3)::after { animation-delay: 1.4s; }
.feature-image-item:nth-child(4)::after { animation-delay: 1.9s; }
.feature-image-item:nth-child(5)::after { animation-delay: 2.4s; }
.feature-image-item:nth-child(6)::after { animation-delay: 2.9s; }
.feature-image-item:nth-child(7)::after { animation-delay: 3.4s; }
.feature-image-item:nth-child(8)::after { animation-delay: 3.9s; }

.feature-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.feature-image-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.feature-image-item {
    background: rgba(0, 0, 0, 0.35);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-image-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px #e4d59f;
}

#image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 10002;
}

#image-lightbox.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 10px;
    border: 2px solid #e4d59f;
    box-shadow: 0 0 30px rgba(228, 213, 159, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e4d59f;
    background: rgba(0, 0, 0, 0.8);
    color: #e4d59f;
    font-size: 24px;
    cursor: pointer;
}

.feature-image-caption {
    display: block;
    margin-top: 8px;
    font-size: 0.95rem;
    color: #e4d59f;
    text-align: center;
    font-family: 'Cinzel', serif;
}

.feature-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: #e4d59f;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    border-bottom: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #555;
    transition: width 4s cubic-bezier(0.25, 1, 0.5, 1);
}

.feature-title.visible::after {
    width: 100%;
}

.feature-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #ffffff;
    text-shadow: 2px 2px 5px #000000;
    font-weight: 500;
}

.passive-skills-row {
    display: block;
}

.passive-skills-block {
    width: 100%;
}

.passive-skills-subtitle {
    margin-bottom: 28px;
}

.passive-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.passive-skill-card {
    background: linear-gradient(145deg, rgba(53, 42, 36, 0.7) 0%, rgba(36, 28, 24, 0.9) 100%);
    border: 1px solid rgba(212, 99, 58, 0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    transition: all 0.3s ease;
}

.passive-skill-card:hover {
    border-color: rgba(212, 99, 58, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.passive-skill-card.full-width {
    grid-column: 1 / -1;
}

.passive-skill-card.full-width .passive-skill-header {
    justify-content: center;
}

.passive-skill-card.full-width .passive-skill-desc {
    text-align: center;
}

.passive-skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.passive-skill-header .icon-item {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(212, 99, 58, 0.35);
    background: rgba(0, 0, 0, 0.25);
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease;
}

.passive-skill-header .icon-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.passive-skill-header .icon-item:hover {
    border-color: rgba(212, 99, 58, 0.75);
    box-shadow: 0 0 14px rgba(212, 99, 58, 0.35);
}

.passive-skill-header .icon-item:hover img {
    transform: scale(1.08);
}

.passive-skills-grid .icon-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 12, 10, 0.96);
    color: #f1e5bf;
    border: 1px solid rgba(212, 99, 58, 0.45);
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
}

.passive-skills-grid .icon-item::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(212, 99, 58, 0.45) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 20;
}

.passive-skills-grid .icon-item:hover::after,
.passive-skills-grid .icon-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}

.passive-skill-name {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: #e4d59f;
    margin: 0;
}

.passive-skill-desc {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.passive-skill-desc strong {
    color: #fff1bd;
}

.footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #080808;
    position: relative;
    z-index: 1;
}

.footer p {
    margin: 0;
    color: #999;
}

.action-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.action-btn {
    font-family: 'ZCOOL XiaoWei', serif;
    text-decoration: none;
    color: #e4d59f;
    background-color: rgba(12, 12, 12, 0.9);
    border: 2px solid #e4d59f;
    padding: 12px 25px;
    border-radius: 4px;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(228, 213, 159, 0.2);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.action-btn:hover {
    color: #fff;
    background-color: rgba(228, 213, 159, 0.1);
    box-shadow:
        0 0 20px rgba(228, 213, 159, 0.6),
        inset 0 0 10px rgba(228, 213, 159, 0.3);
    border-color: #fff;
    text-shadow: 0 0 5px #e4d59f;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    filter: drop-shadow(0 0 2px rgba(228, 213, 159, 0.5));
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 75px;
    height: 75px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 9998;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 35px rgba(37, 211, 102, 0.7);
    animation: none;
}

.whatsapp-float svg {
    width: 42px;
    height: 42px;
    fill: #ffffff;
}

.whatsapp-tooltip {
    position: absolute;
    right: 85px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    animation: tooltipBounce 2s ease-in-out infinite;
}

@keyframes tooltipBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent #128C7E;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 65px;
        height: 65px;
    }

    .whatsapp-float svg {
        width: 36px;
        height: 36px;
    }

    .whatsapp-tooltip {
        right: auto;
        bottom: 75px;
        left: 50%;
        white-space: normal;
        width: 200px;
        text-align: center;
        animation: tooltipBounceMobile 2s ease-in-out infinite;
    }

    @keyframes tooltipBounceMobile {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(-5px); }
    }

    .whatsapp-tooltip::after {
        right: auto;
        top: auto;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        border-color: #128C7E transparent transparent transparent;
    }
}

@media (max-width: 768px) {
    .background-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    .video-container {
        height: auto;
        min-height: 300px;
        padding: 30px 0;
    }
    .section-title {
        font-size: 2.8rem;
    }
    .content-section {
        padding: 60px 20px;
    }
    .feature-row, .feature-row:nth-child(even) {
        flex-direction: column;
    }
    .feature-text-block {
        text-align: center;
        background: rgba(0,0,0,0.6);
    }
    .language-flags {
        justify-content: center;
        gap: 10px;
        padding: 0 10px;
    }
    .lang-option img {
        width: 50px;
    }
    .action-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .action-btn {
        justify-content: center;
        padding: 12px 5px;
        font-size: 1rem;
        white-space: nowrap;
    }
    .passive-skills-grid {
        grid-template-columns: 1fr;
    }
    .feature-image-grid,
    .feature-image-grid.compact {
        grid-template-columns: 1fr;
    }
}
