/* ==================== CSS Variables ==================== */
:root {
    --bg-black: #0a0a0a;
    --bg-dark: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #9e9e9e;
    --accent-red: #e94560;
    --accent-pink: #ff6b9d;
    --green-badge: #00c853;
    --hover-bg: #2a2a2a;
    --gradient-red: linear-gradient(135deg, #e94560 0%, #ff6b9d 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
}

/* ==================== Header Styles ==================== */
.main-header {
    background-color: var(--bg-dark);
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--accent-red);
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.user-info:hover {
    background-color: var(--hover-bg);
}

.user-icon {
    font-size: 28px;
    color: var(--text-white);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-white);
    line-height: 1.2;
}

.user-uuid {
    display: flex;
    align-items: center;
    gap: 6px;
}

.uuid-text {
    font-size: 11px;
    color: var(--text-gray);
    font-family: 'Courier New', monospace;
    line-height: 1.2;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 2px;
    font-size: 11px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    color: var(--text-white);
}

/* Badge Counter */
.badge-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--green-badge);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-counter:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.badge-counter i {
    font-size: 16px;
    color: var(--text-white);
}

.badge-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    min-width: 20px;
    text-align: center;
}

/* Exit Button */
.exit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-pink) 100%);
    color: var(--text-white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 77, 109, 0.4);
}

.exit-btn:active {
    transform: translateY(0);
}

.exit-btn i {
    font-size: 14px;
}

/* ==================== Hero Section ==================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background-color: var(--bg-black);
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Main Title */
.hero-title {
    font-size: 80px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text-white);
    margin: 0;
}

.hero-title .highlight {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.hero-subtitle {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subtitle-line {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-white);
    margin: 0;
}

.subtitle-bold {
    font-weight: 600;
    font-size: 22px;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-red);
    color: var(--text-white);
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.3);
    min-width: 360px;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(233, 69, 96, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(4px);
}

/* Bottom Section */
.hero-bottom {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bottom-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.bottom-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-white);
    margin: 0;
}

/* ==================== Video Gallery Section ==================== */
.video-gallery {
    padding: 60px 40px;
    background-color: var(--bg-black);
}

.gallery-container {
    max-width: 1280px;
    margin: 0 auto;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.video-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #1a1a1a;
    aspect-ratio: 3/4;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.3);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-red);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button i {
    color: var(--text-white);
    font-size: 24px;
    margin-left: 3px;
}

.video-card.playing .play-button i::before {
    content: "\f04c";
}

/* ==================== Features Section ==================== */
.features-section {
    padding: 100px 40px;
    background-color: var(--bg-black);
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
}

.features-title {
    font-size: 56px;
    font-weight: 700;
    text-align: center;
    color: var(--text-white);
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-dark);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(157, 78, 221, 0.2);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    background-color: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: #333333;
}

.feature-icon i {
    font-size: 40px;
    color: #9d4edd;
}

.feature-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 16px;
}

.feature-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* ==================== Footer Section ==================== */
.main-footer {
    background-color: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    padding: 60px 40px 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-column h3 .highlight {
    color: var(--accent-red);
}

.footer-about p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.footer-about .company-name {
    font-weight: 600;
    color: var(--text-white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 15px;
}

.footer-contact i {
    color: var(--accent-red);
    font-size: 16px;
}

.footer-contact a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 30px 0;
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-gray);
}

.footer-copyright a {
    color: var(--accent-red);
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title,
.hero-subtitle,
.cta-button,
.hero-bottom {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.cta-button {
    animation-delay: 0.4s;
}

.hero-bottom {
    animation-delay: 0.6s;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 64px;
        letter-spacing: -1.5px;
    }

    .subtitle-bold {
        font-size: 20px;
    }

    .subtitle-line {
        font-size: 18px;
    }

    .cta-button {
        min-width: 320px;
        font-size: 18px;
        padding: 16px 40px;
    }

    .bottom-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 60px 30px;
    }

    .features-title {
        font-size: 40px;
        margin-bottom: 50px;
    }

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

    .feature-card {
        padding: 32px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .main-footer {
        padding: 40px 30px 0;
    }

    .header-container {
        padding: 0 20px;
        height: 56px;
    }

    .logo-text {
        font-size: 18px;
    }

    .header-nav {
        gap: 12px;
    }

    .user-info {
        padding: 6px 12px;
    }

    .user-icon {
        font-size: 24px;
    }

    .user-name {
        font-size: 13px;
    }

    .uuid-text {
        font-size: 10px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .badge-counter {
        padding: 6px 12px;
    }

    .badge-counter i {
        font-size: 14px;
    }

    .badge-number {
        font-size: 14px;
    }

    .exit-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .hero-section {
        padding: 60px 30px;
        min-height: auto;
    }

    .hero-container {
        gap: 32px;
    }

    .hero-title {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .subtitle-bold {
        font-size: 18px;
    }

    .subtitle-line {
        font-size: 16px;
    }

    .cta-button {
        min-width: 280px;
        font-size: 16px;
        padding: 14px 32px;
    }

    .hero-bottom {
        margin-top: 40px;
    }

    .bottom-title {
        font-size: 22px;
    }

    .bottom-subtitle {
        font-size: 14px;
    }
}

/* ==================== Login Modal Styles ==================== */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.login-modal.active {
    display: flex;
}

.login-modal-content {
    background-color: #2a2a2a;
    border-radius: 20px;
    padding: 50px 40px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-white);
}

.login-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 40px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    background-color: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    color: var(--text-white);
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-red);
    background-color: #1f1f1f;
}

.form-input::placeholder {
    color: var(--text-gray);
}

.form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 16px;
}

.verification-group {
    display: flex;
    gap: 12px;
}

.verification-input {
    flex: 1;
}

.send-code-btn {
    padding: 16px 24px;
    background-color: #3a3a3a;
    border: none;
    border-radius: 12px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.send-code-btn:hover {
    background-color: #4a4a4a;
    color: var(--text-white);
}

.send-code-btn.sent {
    background-color: var(--accent-red);
    color: var(--text-white);
}

.login-submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #4a4a4a;
    border: none;
    border-radius: 12px;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-submit-btn:hover {
    background-color: #5a5a5a;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #3a3a3a;
}

.login-divider span {
    color: var(--text-gray);
    font-size: 14px;
}

.guest-login-btn,
.google-login-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.guest-login-btn {
    background-color: #3a3a3a;
    color: var(--text-white);
    margin-bottom: 12px;
}

.guest-login-btn:hover {
    background-color: #4a4a4a;
}

.google-login-btn {
    background-color: #1a1a1a;
    color: var(--text-white);
    border: 1px solid #3a3a3a;
}

.google-login-btn:hover {
    background-color: #2a2a2a;
}

.google-icon {
    width: 20px;
    height: 20px;
}

.login-terms {
    text-align: center;
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-top: 25px;
}

.login-terms a {
    color: var(--text-white);
    text-decoration: none;
}

.login-terms a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-modal-content {
        padding: 40px 30px;
        width: 95%;
    }

    .login-modal-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .form-input {
        padding: 14px 14px 14px 40px;
        font-size: 14px;
    }

    .send-code-btn {
        padding: 14px 20px;
        font-size: 13px;
    }

    .features-section {
        padding: 40px 20px;
    }

    .features-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon i {
        font-size: 32px;
    }

    .feature-name {
        font-size: 20px;
    }

    .feature-description {
        font-size: 14px;
    }

    .main-footer {
        padding: 30px 20px 0;
    }

    .footer-content {
        gap: 32px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .user-details {
        display: none;
    }

    .exit-btn span {
        display: none;
    }

    .exit-btn {
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-container {
        gap: 24px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: -0.5px;
    }

    .hero-title br {
        display: none;
    }

    .subtitle-bold {
        font-size: 16px;
    }

    .subtitle-line {
        font-size: 14px;
    }

    .cta-button {
        min-width: 100%;
        font-size: 16px;
        padding: 14px 28px;
    }

    .hero-bottom {
        margin-top: 32px;
    }

    .bottom-title {
        font-size: 20px;
    }

    .bottom-subtitle {
        font-size: 13px;
    }

    .video-gallery {
        padding: 40px 20px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}