* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary-red: #ff0328;
    --light-red: #ff8596;
    --primary-glow: 0 0 20px rgba(255, 3, 40, 0.5);
    --gradient-dark: linear-gradient(140deg, #000000, #1a0000);
}

body {
    background: linear-gradient(140deg, #000000, #1a0000);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Elements */
.background-gradient {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(
        ellipse at 70% 50%,
        rgba(255, 3, 40, 0.2) 0%,
        rgba(255, 3, 40, 0.12) 25%,
        rgba(255, 3, 40, 0.05) 50%,
        rgba(0, 0, 0, 0) 70%
    );
    pointer-events: none;
    z-index: -3;
    opacity: 0.8;
}

.mouse-gradient {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(
        circle at 80% 60%, 
        rgba(255, 3, 40, 0.15) 0%, 
        rgba(255, 3, 40, 0.08) 30%,
        rgba(255, 3, 40, 0.03) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: -2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 60%,
        rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 60%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* Floating Icons with enhanced visibility */
.background-icon {
    position: absolute;
    background: rgba(255, 3, 40, 0.15);
    border: 1px solid rgba(255, 3, 40, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: floatingIcon 20s infinite ease-in-out;
    box-shadow: 0 0 30px rgba(255, 3, 40, 0.1);
}

/* 각 아이콘별 회전 각도 설정 */
.background-icon:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    --rotation: 15deg;
    width: 80px;
    height: 80px;
}

.background-icon:nth-child(2) {
    top: 60%;
    left: 75%;
    animation-delay: -5s;
    --rotation: -20deg;
    width: 100px;
    height: 100px;
}

.background-icon:nth-child(3) {
    top: 75%;
    left: 20%;
    animation-delay: -10s;
    --rotation: 30deg;
    width: 60px;
    height: 60px;
}

.background-icon:nth-child(4) {
    top: 25%;
    left: 85%;
    animation-delay: -15s;
    --rotation: -10deg;
    width: 70px;
    height: 70px;
}

.background-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 3, 40, 0.1), transparent);
    border-radius: inherit;
}

/* Floating Background Icons */
.background-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

@keyframes floatingIcon {
    0% {
        transform: translateY(0) rotate(var(--rotation));
    }
    50% {
        transform: translateY(20px) rotate(calc(var(--rotation) + 5deg));
    }
    100% {
        transform: translateY(0) rotate(var(--rotation));
    }
}

/* Additional ambient glow effects */
.ambient-glow {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
}

.glow-spot {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    animation: pulseGlow 8s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.15; }
}

.glow-spot:nth-child(1) {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 3, 40, 0.3);
}

.glow-spot:nth-child(2) {
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 3, 40, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 4rem;
    transition: all 0.3s ease;
}

.navbar-initial {
    background: transparent;
    padding: 2rem 4rem;
}

.navbar-scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem 4rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 3, 40, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.navbar-scrolled .logo {
    transform: scale(0.95);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
    opacity: 0;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
    opacity: 1;
}

/* 현재 활성화된 메뉴 스타일 */
.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    width: 100%;
    opacity: 1;
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    padding: 0.5rem;
    cursor: pointer;
    width: 48px;  /* 높이와 동일하게 설정 */
    height: 48px;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-close-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    padding: 0.5rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2rem;
}

.hero-section h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
}


.gradient-shift {
    animation: gradientMove 8s ease-in-out infinite;
}

/* 그라데이션 이동 애니메이션 수정 */
@keyframes gradientMove {
    0% {
        background: linear-gradient(
            to right,
            rgba(255, 133, 150, 1) 0%,
            rgba(255, 3, 40, 1) 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
    }
    50% {
        background: linear-gradient(
            to right,
            rgba(255, 133, 150, 1) -50%,
            rgba(255, 3, 40, 1) 50%
        );
        -webkit-background-clip: text;
        background-clip: text;
    }
    100% {
        background: linear-gradient(
            to right,
            rgba(255, 133, 150, 1) -100%,
            rgba(255, 3, 40, 1) 0%
        );
        -webkit-background-clip: text;
        background-clip: text;
    }
}

.main-title {
    color: #ffffff;
    font-size: 5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.sub-title {
    color: #ffffff;
    font-size: 3.5rem;
    opacity: 0.9;
    letter-spacing: -0.02em;
}

#changing-word,
#changing-word-mobile {
    display: inline-block;
    background: linear-gradient(
        to right,
        rgba(255, 133, 150, 1) 0%,
        rgba(255, 3, 40, 1) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-section p {
    font-size: 1.1rem;
    color: #676767;
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.mobile-title {
    display: none;
}

/* Search Section */
.search-section {
    margin-top: -1rem;
    margin-bottom: 4rem;
}

.search-box {
    display: flex;
    gap: 0.75rem;
    max-width: 700px;  /* 검색창 길이 증가 */
    align-items: center;
}

input {
    flex: 1;
    padding: 1.1rem 1.5rem;
    background: rgba(17, 17, 17, 0.7);
    border: 1px solid rgba(255, 3, 40, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

input::placeholder {
    color: #666;
}

input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 20px rgba(255, 3, 40, 0.1);
    background: rgba(17, 17, 17, 0.9);
}

button {
    padding: 1.1rem 2.5rem;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(255, 3, 40, 0.2);
    letter-spacing: 0.5px;
}

button:hover {
    background: #ff1f41;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 3, 40, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 3, 40, 0.2);
}

.user-info {
    margin-bottom: 0.8rem;
    color: #676767;
    font-size: 0.9rem;
}

.status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 3, 40, 0.1);
    border: 1px solid rgba(255, 3, 40, 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 1rem;
    color: var(--primary-red);
}

/* Footer */
footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem;
    color: #676767;
    font-size: 0.9rem;
    margin-top: 4rem;
}

@media screen and (max-width: 768px) {
    /* 네비게이션 */
    .navbar {
        padding: 0;
    }

    .navbar-content {
        padding: 1rem;
        position: relative;
    }

    .logo {
        margin-left: 0.5rem;
    }

    /* 모바일 메뉴 버튼 */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .mobile-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1003;
    }

    /* 네비게이션 링크 */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: all 0.3s ease;
        z-index: 1002;
    }

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

    .nav-links a {
        margin: 1rem 0;
        font-size: 1.2rem;
    }

    /* 메인 컨텐츠 */
    .main-content {
        padding: 0 2rem;
    }

    /* 히어로 섹션 */
    .hero-section h1 {
        font-size: 3rem;
    }

    /* 타이틀 스타일 */
    .desktop-title {
        display: none !important;
    }

    .mobile-title {
        display: block !important;
        font-size: 3.2rem;
        line-height: 1.2;
        color: #ffffff;
    }

    .mobile-title br {
        display: block;
    }

    #changing-word-mobile {
        font-size: 3.2rem;
        display: inline-block;
        background: linear-gradient(to right, #ff8596, #ff0328);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .sub-title {
        display: block !important;
        font-size: 2rem;
        margin-top: 1rem;
        opacity: 0.9;
    }

    /* 검색 섹션 */
    .search-box {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    input, button {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    /* 유저 리스트 */
    .user-list {
        grid-template-columns: 1fr;
    }

    /* 푸터 */
    footer {
        padding: 2rem;
    }

    /* 배경 요소 */
    .background-icon {
        transform: scale(0.7);
    }

    .background-icon:nth-child(1),
    .background-icon:nth-child(2),
    .background-icon:nth-child(3),
    .background-icon:nth-child(4) {
        transform-origin: center;
    }

    .background-gradient {
        background: radial-gradient(
            circle at 50% 30%,
            rgba(255, 3, 40, 0.2) 0%,
            rgba(255, 3, 40, 0.12) 30%,
            rgba(255, 3, 40, 0.05) 60%,
            rgba(0, 0, 0, 0) 80%
        );
    }
}

/* 태블릿 크기 */
@media screen and (max-width: 480px) {
    .nav-links {
        width: 50%;
    }

    .mobile-title {
        font-size: 2.8rem;
    }

    #changing-word-mobile {
        font-size: 2.8rem;
    }

    .sub-title {
        font-size: 1.8rem;
    }
}

/* 작은 모바일 화면 */
@media screen and (max-width: 360px) {
    .mobile-title {
        font-size: 2.4rem;
    }

    #changing-word-mobile {
        font-size: 2.4rem;
    }

    .sub-title {
        font-size: 1.6rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
