* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Arial', sans-serif; background-color: transparent; }
@keyframes animatedGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.header { position: relative; width: 100%; height: 162px; background: linear-gradient(145deg, rgba(220, 20, 60, 0.7) 0%, rgba(139, 0, 0, 0.6) 10%, rgba(0, 0, 0, 0.9) 35%, rgba(0, 0, 0, 0.95) 100%); background-size: 200% 200%; animation: animatedGradient 12s ease-in-out infinite; backdrop-filter: blur(10px); box-shadow: 0 8px 32px rgba(220, 20, 60, 0.3), 0 0 100px rgba(220, 20, 60, 0.1); z-index: 1000; }
.header::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 100%; height: 20px; background: linear-gradient(45deg, #dc143c 0%, #ff1744 25%, #dc143c 50%, #8b0000 75%, #dc143c 100%); clip-path: polygon(0% 0%, 5% 100%, 10% 0%, 15% 100%, 20% 0%, 25% 100%, 30% 0%, 35% 100%, 40% 0%, 45% 100%, 50% 0%, 55% 100%, 60% 0%, 65% 100%, 70% 0%, 75% 100%, 80% 0%, 85% 100%, 90% 0%, 95% 100%, 100% 0%, 100% 100%, 0% 100%); animation: waveFlow 4s ease-in-out infinite, triangleRotate 3s linear infinite; filter: drop-shadow(0 5px 10px rgba(220, 20, 60, 0.4)); }
@keyframes waveFlow { 0%, 100% { transform: translateX(0) scaleY(1); } 25% { transform: translateX(-8px) scaleY(1.2); } 50% { transform: translateX(0) scaleY(0.8); } 75% { transform: translateX(8px) scaleY(1.3); } }
@keyframes triangleRotate { 0% { clip-path: polygon(0% 0%, 5% 100%, 10% 0%, 15% 100%, 20% 0%, 25% 100%, 30% 0%, 35% 100%, 40% 0%, 45% 100%, 50% 0%, 55% 100%, 60% 0%, 65% 100%, 70% 0%, 75% 100%, 80% 0%, 85% 100%, 90% 0%, 95% 100%, 100% 0%, 100% 100%, 0% 100%); } 25% { clip-path: polygon(0% 50%, 5% 0%, 10% 80%, 15% 20%, 20% 100%, 25% 40%, 30% 60%, 35% 0%, 40% 90%, 45% 30%, 50% 70%, 55% 10%, 60% 100%, 65% 50%, 70% 20%, 75% 80%, 80% 40%, 85% 60%, 90% 100%, 95% 0%, 100% 70%, 100% 100%, 0% 100%); } 50% { clip-path: polygon(0% 100%, 5% 20%, 10% 80%, 15% 0%, 20% 60%, 25% 40%, 30% 100%, 35% 30%, 40% 70%, 45% 10%, 50% 90%, 55% 50%, 60% 20%, 65% 80%, 70% 0%, 75% 60%, 80% 100%, 85% 40%, 90% 80%, 95% 20%, 100% 100%, 100% 100%, 0% 100%); } 75% { clip-path: polygon(0% 30%, 5% 90%, 10% 10%, 15% 70%, 20% 40%, 25% 100%, 30% 20%, 35% 80%, 40% 0%, 45% 60%, 50% 100%, 55% 30%, 60% 70%, 65% 10%, 70% 90%, 75% 50%, 80% 20%, 85% 80%, 90% 40%, 95% 100%, 100% 60%, 100% 100%, 0% 100%); } 100% { clip-path: polygon(0% 0%, 5% 100%, 10% 0%, 15% 100%, 20% 0%, 25% 100%, 30% 0%, 35% 100%, 40% 0%, 45% 100%, 50% 0%, 55% 100%, 60% 0%, 65% 100%, 70% 0%, 75% 100%, 80% 0%, 85% 100%, 90% 0%, 95% 100%, 100% 0%, 100% 100%, 0% 100%); } }
.header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 30%, rgba(220, 20, 60, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), linear-gradient(90deg, transparent 0%, rgba(220, 20, 60, 0.1) 50%, transparent 100%); animation: shimmer 3s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
.header-content { position: relative; display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 5%; z-index: 2; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.header-button { background: rgba(0, 0, 0, 0.4); color: #ffffff; border: 2px solid #dc143c; padding: 15px 38px; font-size: 1.5rem; border-radius: 8px; font-family: 'Orbitron', sans-serif; font-weight: 700; cursor: pointer; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); box-shadow: 0 0 10px rgba(220, 20, 60, 0.5), inset 0 0 5px rgba(220, 20, 60, 0.3); transition: all 0.3s ease; white-space: nowrap; }
.header-button:hover { background: #dc143c; color: #fff; box-shadow: 0 0 20px rgba(220, 20, 60, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.logo-section {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: -1;
}
@keyframes logoAppear { from { opacity: 0; transform: scale(0.5) rotate(-180deg); } to { opacity: 1; transform: scale(1) rotate(0deg); } }
.logo-container { position: relative; width: 250px; height: 250px; border-radius: 50%; box-shadow: none; opacity: 0; transform: scale(0.5) rotate(-180deg); animation: logoAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 0.2s; }
.logo { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; transition: transform 0.3s ease; }
.logo:hover { transform: rotate(360deg) scale(1.1); }
.site-title { font-family: 'Orbitron', sans-serif; font-size: 2.8rem; font-weight: 900; letter-spacing: 2px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(220, 20, 60, 0.6); position: relative; animation: titleFloat 3s ease-in-out infinite; display: flex; }
@keyframes popIn { 0% { opacity: 0; transform: translateY(30px) scale(0.7); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.animated-char { display: inline-block; opacity: 0; animation: popIn 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards; }
@keyframes titleFloat { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-3px); } }
.site-title .red { color: #dc143c; } .site-title .white { color: #ffffff; }
.floating-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.particle { position: absolute; width: 15px; height: 15px; background: #dc143c; border-radius: 50%; opacity: 0.6; animation: float 2s ease-in-out infinite; }
.particle:nth-child(1) { left: 10%; animation-delay: 0s; } .particle:nth-child(2) { left: 20%; animation-delay: 0.3s; } .particle:nth-child(3) { left: 30%; animation-delay: 0.6s; } .particle:nth-child(4) { left: 40%; animation-delay: 0.9s; } .particle:nth-child(5) { left: 50%; animation-delay: 0.5s; } .particle:nth-child(6) { left: 60%; animation-delay: 0.8s; } .particle:nth-child(7) { left: 70%; animation-delay: 0.2s; } .particle:nth-child(8) { left: 80%; animation-delay: 1.1s; } .particle:nth-child(9) { left: 90%; animation-delay: 0.9s; } .particle:nth-child(10) { left: 5%; animation-delay: 0.1s; } .particle:nth-child(11) { left: 15%; animation-delay: 0.4s; } .particle:nth-child(12) { left: 25%; animation-delay: 0.7s; } .particle:nth-child(13) { left: 35%; animation-delay: 1s; } .particle:nth-child(14) { left: 45%; animation-delay: 0.3s; } .particle:nth-child(15) { left: 55%; animation-delay: 0.6s; } .particle:nth-child(16) { left: 65%; animation-delay: 0.9s; } .particle:nth-child(17) { left: 75%; animation-delay: 0.2s; } .particle:nth-child(18) { left: 85%; animation-delay: 0.5s; }
@keyframes float {
    0% { transform: translateY(120px); opacity: 0; }
    10% { opacity: 0.8; }
    50% { transform: translateY(60px) rotate(180deg); opacity: 0.6; }
    100% { transform: translateY(-20px) rotate(360deg); opacity: 0; }
}
.mobile-controls, #wrench-toggle-checkbox, .mobile-nav { display: none; }

@media (max-width: 1200px) {
    .header-button { padding: 12px 25px; font-size: 1.2rem; }
}

@media (max-width: 992px) {
    .header { height: 120px; overflow: visible; }
    .header-content { justify-content: center; }
    .header-actions.desktop-only { display: none; }
    .header::after { display: none; }
    .logo-container { width: 125px; height: 125px; animation: none; opacity: 1; transform: none; }
    .site-title { font-size: 1.8rem; }
    .logo-section {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        gap: 15px;
        z-index: 1;
    }
    .mobile-controls { display: block; position: absolute; bottom: -16px; left: 48%; transform: translateX(-50%); z-index: 1002; }
    .wrench-toggle-label { background: #1a1a1a; border: 3px solid #dc143c; border-radius: 50%; width: 31px; height: 31px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 20px rgba(220, 20, 60, 0.7); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
    .wrench-icon { width: 17px; height: 17px; transition: transform 0.3s ease; }
    .mobile-nav { display: flex; flex-direction: column; align-items: center; background: rgba(10, 0, 0, 0.9); backdrop-filter: blur(15px); position: absolute; top: 136px; left: 0; width: 100%; z-index: 1001; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out, padding 0.5s ease-in-out; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); padding: 0; }
    #wrench-toggle-checkbox:checked + .mobile-controls .wrench-toggle-label { transform: rotate(180deg); background: #dc143c; }
    #wrench-toggle-checkbox:checked + .mobile-controls .wrench-toggle-label .wrench-icon { transform: rotate(-180deg); }
    #wrench-toggle-checkbox:checked ~ .mobile-nav { max-height: 500px; opacity: 1; padding: 25px 0 20px 0; }
    .mobile-nav .header-button { width: 85%; max-width: 280px; margin: 6px 0; padding: 10px; font-size: 0.9rem; text-align: center; position: relative; overflow: hidden; background: linear-gradient(90deg, #5a0815, #1a1a1a, #5a0815); background-size: 250% 100%; background-position: 50% 50%; transition: background-position 0.6s ease-in-out, transform 0.2s ease; border-radius: 50px; }
    .mobile-nav .header-button:hover { background-position: 100% 50%; transform: scale(1.03); }
}

@media (max-width: 520px) {
    .header { height: 100px; }
    .logo-container { width: 100px; height: 100px; }
    .site-title { font-size: 1.3rem; }
    .logo-section { gap: 10px; }
    .mobile-nav { top: 115px; }
}