@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold-primary: #ffd700;
    --gold-secondary: #ff8c00;
    --gold-light: #ffb347;
    --gold-dark: #b8860b;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-dark);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-secondary));
    border-radius: 10px;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    filter: saturate(1.2);
}

.background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 15, 0.4) 50%, rgba(10, 10, 15, 0.85) 100%),
        linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.3) 100%);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.9) 0%, rgba(255, 140, 0, 0.6) 50%, transparent 100%);
    border-radius: 50%;
    animation: floatParticle 20s infinite;
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 30px rgba(255, 140, 0, 0.4);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
        transform: translateY(90vh) rotate(45deg) scale(1);
    }
    95% {
        opacity: 1;
        transform: translateY(-10vh) rotate(675deg) scale(1);
    }
    100% {
        transform: translateY(-100vh) rotate(720deg) scale(0);
        opacity: 0;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.logo-container {
    perspective: 1500px;
    margin-bottom: 40px;
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.logo {
    width: 280px;
    height: 280px;
    object-fit: contain;
    animation: logo3D 8s ease-in-out infinite;
    filter: 
        drop-shadow(0 0 40px rgba(255, 215, 0, 0.6))
        drop-shadow(0 0 80px rgba(255, 140, 0, 0.4))
        drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
}

@keyframes logo3D {
    0%, 100% {
        transform: rotateY(-8deg) rotateX(5deg) scale(1);
    }
    25% {
        transform: rotateY(8deg) rotateX(-5deg) scale(1.05);
    }
    50% {
        transform: rotateY(-4deg) rotateX(8deg) scale(1.02);
    }
    75% {
        transform: rotateY(4deg) rotateX(-8deg) scale(1.07);
    }
}

.title {
    font-family: 'Cinzel', serif;
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #fff5cc 25%, #ffd700 50%, #ff8c00 75%, #ffd700 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s ease infinite;
    letter-spacing: 15px;
    margin-bottom: 15px;
    text-shadow: none;
    position: relative;
    filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.3));
}

.title::after {
    content: 'VIKING';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s ease infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.subtitle {
    font-size: 1.4rem;
    color: rgba(255, 215, 0, 0.8);
    margin-bottom: 60px;
    letter-spacing: 12px;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    position: relative;
}

.subtitle::before,
.subtitle::after {
    content: '⚔';
    margin: 0 20px;
    opacity: 0.7;
}

.buttons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    padding: 20px 55px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::after {
    opacity: 1;
}

.btn-fivem {
    background: linear-gradient(135deg, #f40552 0%, #ff2d75 50%, #ff6b35 100%);
    color: white;
    box-shadow: 
        0 10px 40px rgba(244, 5, 82, 0.5),
        0 0 0 0 rgba(244, 5, 82, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-fivem:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 25px 60px rgba(244, 5, 82, 0.6),
        0 0 40px rgba(244, 5, 82, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2 0%, #7289da 50%, #99aab5 100%);
    color: white;
    box-shadow: 
        0 10px 40px rgba(88, 101, 242, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-discord:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 25px 60px rgba(88, 101, 242, 0.6),
        0 0 40px rgba(88, 101, 242, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-store {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #ff8c00 100%);
    color: #1a1a1a;
    box-shadow: 
        0 10px 40px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-store:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 25px 60px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.team-section {
    padding: 120px 20px;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 215, 0, 0.02) 50%, transparent 100%);
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 80px;
    background: linear-gradient(135deg, #ffd700, #fff5cc, #ffd700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease infinite;
    position: relative;
    display: inline-block;
    letter-spacing: 5px;
}

.section-title::before,
.section-title::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    font-size: 1rem;
    opacity: 0.6;
}

.section-title::before {
    right: calc(100% + 30px);
}

.section-title::after {
    left: calc(100% + 30px);
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 2000px;
}

.team-card {
    background: 
        linear-gradient(145deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 30px;
    padding: 50px 40px;
    width: 320px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
}

.team-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(255, 215, 0, 0.15), transparent 30%);
    animation: rotateCard 10s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
}

.team-card:hover::before {
    opacity: 1;
}

@keyframes rotateCard {
    100% { transform: rotate(360deg); }
}

.team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5), transparent, rgba(255, 215, 0, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
}

.team-card:hover::after {
    opacity: 1;
}

.team-card:hover {
    transform: translateY(-25px) rotateX(5deg) scale(1.03);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 40px 100px rgba(255, 215, 0, 0.25),
        0 0 60px rgba(255, 215, 0, 0.1),
        0 0 0 1px rgba(255, 215, 0, 0.3);
}

.team-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 30px;
    position: relative;
    overflow: visible;
    padding: 5px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary), var(--gold-primary));
    box-shadow: 
        0 15px 50px rgba(255, 215, 0, 0.4),
        inset 0 0 20px rgba(255, 215, 0, 0.2);
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 15px 50px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 20px 60px rgba(255, 215, 0, 0.6), inset 0 0 30px rgba(255, 215, 0, 0.3); }
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover .team-avatar img {
    transform: scale(1.1) rotate(5deg);
}

.team-role {
    font-size: 0.95rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.team-name {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.crown-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
    animation: crownFloat 2s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-4px) rotate(5deg); }
}

.owner .team-avatar {
    background: linear-gradient(135deg, #ffd700, #fff5cc, #ffd700, #ff8c00);
    background-size: 300% 300%;
    animation: ownerGlow 4s ease infinite, avatarGlow 3s ease-in-out infinite;
}

@keyframes ownerGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer {
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.footer span {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

@media (max-width: 768px) {
    .title {
        font-size: 3.5rem;
        letter-spacing: 8px;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 6px;
    }

    .subtitle::before,
    .subtitle::after {
        display: none;
    }

    .logo {
        width: 200px;
        height: 200px;
    }

    .buttons {
        flex-direction: column;
        gap: 18px;
        width: 100%;
        padding: 0 20px;
    }

    .btn {
        padding: 18px 35px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-title::before,
    .section-title::after {
        display: none;
    }

    .team-card {
        width: 300px;
        padding: 40px 30px;
    }

    .team-grid {
        gap: 40px;
    }
}

.glow-orb {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: orbFloat 20s ease-in-out infinite;
}

.glow-orb:nth-child(1) {
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.glow-orb:nth-child(2) {
    bottom: -200px;
    left: -200px;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 30px) scale(1.1); }
    50% { transform: translate(-30px, 60px) scale(0.9); }
    75% { transform: translate(-50px, -30px) scale(1.05); }
}
