/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #C4DFDF 0%, #D2E9E9 100%);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    overflow: visible;
    position: relative;
}

.name-tag-container {
    position: relative;
    width: 280px;
    animation: containerSwing 6s ease-in-out infinite;
}


.lanyard {
    position: absolute;
    top: -80px;
    left: 50%;
    width: 12px;
    height: 80px;
    background: linear-gradient(180deg, #3b82f6, #1e40af);
    border-radius: 6px 6px 0 0;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Lanyard texture sederhana */
.lanyard-texture {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.2) 2px,
        rgba(255, 255, 255, 0.2) 4px
    );
    pointer-events: none;
}

.name-tag {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    width: 280px;
    border-radius: 1rem;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 2px var(--primary-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 1rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.name-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 1rem;
    pointer-events: none;
}

.tag-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag-header i {
    font-size: 1rem;
}

.tag-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow:
        0 8px 16px rgba(37, 99, 235, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.avatar-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

.tag-info {
    text-align: center;
    margin-bottom: 1rem;
}

.tag-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

.tag-info p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tag-id {
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    border: 1px solid var(--border-color);
}

.tag-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.7rem;
    color: var(--text-light);
}

.tag-valid i {
    color: var(--primary-color);
}

/* Animations */
@keyframes swing {
    0%, 100% {
        transform: translateX(-50%) rotate(-3deg);
    }
    50% {
        transform: translateX(-50%) rotate(3deg);
    }
}

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

@keyframes rotate {
    0%, 100% {
        transform: rotateY(5deg) rotateX(2deg);
    }
    25% {
        transform: rotateY(-5deg) rotateX(5deg);
    }
    75% {
        transform: rotateY(8deg) rotateX(-2deg);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Animasi container bersama */
@keyframes containerSwing {
    0%, 100% {
        transform: translateY(0px) rotate(-1deg);
    }
    25% {
        transform: translateY(-8px) rotate(1deg);
    }
    50% {
        transform: translateY(-12px) rotate(-1deg);
    }
    75% {
        transform: translateY(-4px) rotate(1deg);
    }
}

/* Interactive hover effects */
.name-tag-container:hover {
    animation-play-state: paused;
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dark);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 1rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .name-tag {
        width: 240px;
    }

    .name-tag-container {
        display: none;
    }

    }

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

    .hero-text h2 {
        font-size: 1.2rem;
    }

    /* Hide entire name tag on mobile view */
    .name-tag-container {
        display: none;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}