@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@100;400;700&display=swap');

:root {
    --primary-color: #3b82f6;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.8);
    --accent-color: #2563eb;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --card-bg: #1e293b;
    --header-bg: rgba(15, 23, 42, 0.8);
    --primary-color: #60a5fa;
    --accent-color: #93c5fd;
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--card-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
    background-size: 200% 200%;
    animation: gradientMove 10s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--primary-color);
    opacity: 0.2;
    z-index: -1;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.6;
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    margin-top: 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--text-color);
    border-radius: 2px;
    animation: scrollMove 2s infinite;
}

@keyframes scrollMove {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* Sections */
section {
    padding: 8rem 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

h2::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.9;
}

.stat-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.6;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-card h3 {
    font-size: 1rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.info-card p {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.interest-item {
    background: var(--card-bg);
    padding: 4rem 3rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.interest-item:hover {
    transform: scale(1.02);
}

.interest-item .icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.interest-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Market Section */
.market-widget-wrapper {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

body.dark-mode .tradingview-widget-container {
    filter: invert(0) hue-rotate(0deg) brightness(1.2);
}

/* Guestbook Section */
.section-desc {
    text-align: center;
    margin-top: -3rem;
    margin-bottom: 3rem;
    opacity: 0.7;
    font-size: 1.1rem;
}

.guestbook-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.guestbook-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.8rem;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

body.dark-mode .input-group input,
body.dark-mode .input-group textarea {
    border: 1px solid rgba(255,255,255,0.1);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.guestbook-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
}

.guestbook-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.guestbook-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.5s ease forwards;
    border-left: 5px solid var(--primary-color);
}

.guestbook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.guestbook-name {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sentiment-emoji {
    font-size: 1.3rem;
}

.guestbook-date {
    font-size: 0.8rem;
    opacity: 0.5;
}

.guestbook-message {
    font-size: 1rem;
    opacity: 0.9;
    white-space: pre-wrap;
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-down {
    animation: fadeInDown 1s ease forwards;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode footer {
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .about-grid, .info-cards, .interests-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
