/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Import Pretendard Font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
/* Import Cute Font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500&family=Gamja+Flower&display=swap');

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #1a1a1e 0%, #15202e 30%, #0f0f1a 70%, #000000 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Add starfield effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    z-index: -1;
    pointer-events: none;
}

/* Top Buttons */
.top-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}

.mypage-btn {
    background: linear-gradient(135deg, #FF1C26 0%, #ff4757 100%);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard', sans-serif;
}

.mypage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 28, 38, 0.3);
}

/* Onboarding Button */
.onboarding-btn {
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.9) 0%, rgba(40, 40, 40, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Pretendard', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
}

.onboarding-btn:hover {
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.95) 0%, rgba(60, 60, 60, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.onboarding-icon {
    font-size: 14px;
    line-height: 1;
}

.onboarding-text {
    font-size: 12px;
    line-height: 1;
}

/* Messenger Container */
.messenger-container {
    width: 100%;
    max-width: none;
    margin: 0;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(15px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Logo Section */
.logo-section {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.logo {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 1;
}

/* Profile and Chat Section */
.profile-chat-section {
    background: linear-gradient(135deg, #1a1a1e 0%, #15202e 30%, #0f0f1a 70%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.profile-chat-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    pointer-events: none;
    z-index: 0;
}

.profile-area {
    text-align: center;
    padding: 60px 20px 25px;
    position: relative;
    z-index: 1;
}

.chat-area {
    padding: 4px 80px 40px;
    position: relative;
    z-index: 1;
}


/* Removed floating stars */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.profile-image {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a3a3a 0%, #5a5a5a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    display: block;
}

.avatar-video {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    display: block;
    transition: opacity 0.5s ease-in-out;
}

/* Removed stars icon */
@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.profile-subtitle {
    font-family: 'Gamja Flower', 'Noto Sans KR', cursive, sans-serif !important;
    font-size: 15px;
    color: #b0b0b0;
    margin: 0px auto 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 300px;
    line-height: 1.5;
    font-weight: 400;
}


.chat-input-container {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.8) 0%, rgba(30, 30, 30, 0.9) 100%);
    border-radius: 25px;
    padding: 15px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #e0e0e0;
    outline: none;
    padding: 5px 0;
}

.search-btn {
    background: linear-gradient(135deg, #4a4a4a 0%, #6a6a6a 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #5a5a5a 0%, #7a7a7a 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.chat-input::placeholder {
    color: #808080;
    font-style: italic;
}

.input-icons {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.icon-btn {
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.8) 0%, rgba(40, 40, 40, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
}

/* First icon button hover effect - same as others */
.icon-btn:first-child:hover {
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.9) 0%, rgba(60, 60, 60, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.icon-btn:not(:first-child):hover {
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.9) 0%, rgba(60, 60, 60, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}


/* Features Section */
.features-section {
    flex-grow: 1;
    padding: 60px 80px;
    background: rgba(20, 20, 20, 0.9);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, max-content));
    row-gap: 25px;
    column-gap: 32px;
    justify-content: center;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.feature-item:hover .feature-icon::before {
    left: 100%;
}

/* Neutral space-themed gradients for feature icons */
.feature-icon.timetable-recommend {
    background: linear-gradient(135deg, #4a4a4a 0%, #6a6a6a 100%);
}

.feature-icon.timetable-advice {
    background: linear-gradient(135deg, #3a3a5a 0%, #5a5a7a 100%);
}

.feature-icon.warm-eta {
    background: linear-gradient(135deg, #5a3a5a 0%, #7a5a7a 100%);
}

.feature-icon.resume-review {
    background: linear-gradient(135deg, #3a5a5a 0%, #5a7a7a 100%);
}

.feature-icon.interview-questions {
    background: linear-gradient(135deg, #5a5a3a 0%, #7a7a5a 100%);
}

.feature-icon.meeting-notes {
    background: linear-gradient(135deg, #4a5a4a 0%, #6a7a6a 100%);
}

.feature-icon.pdf-analyzer {
    background: linear-gradient(135deg, #5a4a3a 0%, #7a6a5a 100%);
}

.feature-icon.presentation-script {
    background: linear-gradient(135deg, #4a3a5a 0%, #6a5a7a 100%);
}

.feature-icon.club-interview {
    background: linear-gradient(135deg, #3a4a5a 0%, #5a6a7a 100%);
}

.feature-icon.email-generator {
    background: linear-gradient(135deg, #5a4a3a 0%, #7a6a5a 100%);
}

/* Feature icon image styling */
.feature-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Send message icon styling */
.send-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.feature-label {
    font-size: 14px;
    font-weight: 500;
    color: #b0b0b0;
    line-height: 1.3;
    transition: color 0.3s ease;
    text-align: center;
    min-height: 2.6em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    word-break: keep-all;
    hyphens: auto;
    max-width: 120px;
    margin: 0 auto;
}

.feature-item:hover .feature-label {
    color: #ffffff;
    font-weight: 600;
}

/* All feature items have same hover effect */

/* Responsive grid adjustments */

/* Add subtle neon glow effects */
@keyframes subtle-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), 0 0 40px rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.15), 0 0 60px rgba(255, 255, 255, 0.08);
    }
}

@keyframes brand-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 28, 38, 0.3), 0 0 40px rgba(255, 28, 38, 0.15);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 28, 38, 0.4), 0 0 60px rgba(255, 28, 38, 0.2);
    }
}

/* Apply glow to container */
.messenger-container {
    animation: subtle-glow 4s ease-in-out infinite;
}

/* No special glow for future-plan anymore */

/* Enhanced chat input focus effect */
.chat-input-container:focus-within {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2), 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: subtle-glow 2s ease-in-out infinite;
}


/* Responsive Design */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, minmax(110px, max-content));
        row-gap: 22px;
        column-gap: 32px;
        justify-content: center;
        align-items: start;
    }

    .chat-area,
    .features-section {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, minmax(100px, max-content));
        row-gap: 20px;
        column-gap: 32px;
        justify-content: center;
        align-items: start;
    }

    .chat-area,
    .features-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .feature-label {
        font-size: 13px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(3, minmax(90px, max-content));
        row-gap: 18px;
        column-gap: 32px;
        justify-content: center;
        align-items: start;
        max-width: 100%;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .feature-label {
        font-size: 12px;
        max-width: 90px;
    }

    .chat-area {
        padding: 20px;
    }

    .features-section {
        padding: 30px 20px;
    }

    /* Top buttons responsive */
    .top-buttons {
        top: 15px;
        right: 15px;
        gap: 8px;
    }

    .onboarding-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .onboarding-icon {
        font-size: 12px;
    }

    .onboarding-text {
        font-size: 11px;
    }

    .mypage-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Reduce glow effects on mobile for performance */
    .messenger-container,
    .chat-input-container:focus-within {
        animation: none;
    }
}