* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --gradient-start: rgb(88.2%, 82%, 95.3%);
    --gradient-end: rgb(71.1%, 68.1%, 90.2%);
    --accent: rgb(53%, 30%, 102%);
    --beige: rgb(245, 235, 224);
    --nav-bg: rgba(255, 255, 255, 0.1);
}

body {
    font-family: "DM Mono", system-ui, -apple-system, sans-serif;
}

.header {
    height: 80vh;
    background: linear-gradient(135deg,
            var(--gradient-start),
            var(--gradient-end));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.header.scrolled::before {
    opacity: 1;
}

.logo {
    width: 400px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.2));
    animation: float 6s ease-in-out infinite;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    }

    50% {
        transform: translateY(-20px) rotate(2deg) scale(1.05);
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
    }
}

.header.scrolled .logo {
    transform: scale(0.8) translateY(10px);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    opacity: 0.9;
}

.clouds-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.cloud {
    position: absolute;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0.6) 100%);
    border-radius: 100px;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3),
        inset 0 -5px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to bottom,
            rgba(245, 235, 224, 0.95) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(245, 235, 224, 0.7) 100%);
    transform: scale(1.5);
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    background: inherit;
    border-radius: 50%;
    box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.1);
}

.cloud-1 {
    width: 300px;
    height: 100px;
    bottom: -20px;
    left: -100px;
}

.cloud-1::before {
    width: 100px;
    height: 100px;
    top: -50px;
    left: 50px;
}

.cloud-1::after {
    width: 120px;
    height: 120px;
    top: -60px;
    right: 50px;
}

.cloud-2 {
    width: 250px;
    height: 80px;
    bottom: -10px;
    right: -80px;
}

.cloud-2::before {
    width: 90px;
    height: 90px;
    top: -45px;
    left: 40px;
}

.cloud-2::after {
    width: 100px;
    height: 100px;
    top: -50px;
    right: 40px;
}

.header.scrolled .clouds-container {
    transform: translateZ(-100px);
}

.header.scrolled .cloud-1 {
    transform: translateX(-120%) rotate(-10deg);
    opacity: 0.7;
}

.header.scrolled .cloud-2 {
    transform: translateX(120%) rotate(10deg);
    opacity: 0.7;
}

.content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    padding-top: 2rem;
}

.content h2 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.stars {
    position: absolute;
    width: 120%;
    height: 120%;
    background: transparent;
    animation: twinkle 4s infinite;
}

.stars::before,
.stars::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, #fff, transparent),
        radial-gradient(2px 2px at 50px 160px, #fff, transparent),
        radial-gradient(2px 2px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0;
    animation: twinkle 4s infinite;
    transform: translateZ(0);
    background-image: radial-gradient(2px 2px at 20px 30px, #ffe5b4, transparent),
        radial-gradient(3px 3px at 40px 70px, #fff4d6, transparent),
        radial-gradient(2px 2px at 50px 160px, #ffe5b4, transparent),
        radial-gradient(4px 4px at 90px 40px, #fff4d6, transparent),
        radial-gradient(3px 3px at 130px 80px, #ffe5b4, transparent),
        radial-gradient(3px 3px at 160px 120px, #fff4d6, transparent);
    background-size: 400px 400px;
}

.stars::after {
    animation-delay: 2s;
}

.aurora {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(88, 82, 95, 0.2) 20%,
            rgba(71, 68, 90, 0.1) 40%,
            transparent 70%);
    filter: blur(40px);
    animation: aurora 15s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes aurora {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.7;
    }
}

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

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(-500px) translateY(500px) rotate(-45deg);
        opacity: 0;
    }
}

.header.scrolled .cloud-mid {
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
}

.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background: var(--nav-bg);
    transition: all 0.3s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--beige);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 8px;
    background-color: rgb(209, 160, 221);
}

.nav-links a:hover {
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    background-color: rgb(169, 113, 211);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
}

.cloud-far {
    position: absolute;
    width: 400px;
    height: 120px;
    top: 20%;
    opacity: 0.4;
    filter: blur(4px);
    transform: scale(2);
}

.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #fff4d6, transparent);
    animation: shooting 4s linear infinite;
}

section {
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 2rem 0;
    text-align: center;
    font-weight: 300;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8e44ad);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

#server-link {
    color: #49007a !important;
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

#server img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f0f0f0;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    perspective: 1000px;
}

.member-card {
    position: relative;
    height: 100%;
    background: linear-gradient(135deg, #ffe4e1 0%, #fff 50%, #ffe4e1 100%);
    border-radius: 15px;
    padding: 12px;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: all 0.3s ease;
    border: 8px solid #ffd700;
    box-shadow: 
        0 0 0 4px #fff,
        0 0 0 8px #daa520,
        0 10px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(255,255,255,0.7) 50%,
        transparent 100%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.member-card:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.member-avatar {
    width: calc(100% - 24px);
    height: 220px;
    margin: 12px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 4px solid #ffd700;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.member-info {
    padding: 1rem;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    border: 2px solid #daa520;
    margin-top: 1rem;
}

.member-name {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.member-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    text-align: center;
    font-style: italic;
}

.member-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.stat {
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(169,113,211,0.2), rgba(169,113,211,0.1));
    border-radius: 8px;
    border: 1px solid rgba(169,113,211,0.3);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
}

.stat-value {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--accent), #8e44ad);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.stat-label {
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-card:hover {
    transform: perspective(1000px) rotateY(10deg) scale(1.02);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        var(--gradient-start),
        var(--gradient-end)
    );
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--beige);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(169, 113, 211, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}