html {
    scroll-behavior: smooth;
}

body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    font-family: 'Nanum Gothic', sans-serif;
    margin: 0;
    background-image: url('https://www.transparenttextures.com/patterns/subtle-grunge.png');
    padding-top: 80px; /* Space for fixed navbar */
}

/* Navbar */
.navbar {
    background-color: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #444;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1000px;
}

.nav-logo {
    color: #0d6efd;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #0d6efd;
}

/* Container */
.container {
    text-align: center;
    padding: 3rem 2.5rem;
    background-color: #2c2c2c;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    max-width: 900px;
    width: 90%;
    margin: 2rem auto;
}

header {
    margin-bottom: 4rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
}

/* Generator */
#generate-btn {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 8px 0 #0a58ca, 0 20px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    top: 0;
    margin-bottom: 2.5rem;
}

#generate-btn:hover {
    top: 2px;
    box-shadow: 0 6px 0 #0a58ca, 0 15px 25px rgba(0, 0, 0, 0.5);
}

#generate-btn:active {
    top: 6px;
    box-shadow: 0 2px 0 #0a58ca, 0 10px 20px rgba(0, 0, 0, 0.5);
}

#results-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-set {
    background-color: #333;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.6s ease forwards;
}

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

.number {
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.color-yellow { background-color: #fbc400; color: #333; }
.color-blue { background-color: #69c8f2; color: #333; }
.color-red { background-color: #ff7272; color: #fff; }
.color-gray { background-color: #aaa; color: #fff; }
.color-green { background-color: #b0d840; color: #333; }

/* Sections */
.divider {
    margin: 5rem 0;
    border: none;
    border-top: 1px solid #444;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #0d6efd;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.info-item {
    background: #383838;
    padding: 2.5rem 1.5rem 1.5rem;
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item h4 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    color: #fff;
}

.step {
    position: absolute;
    top: -20px;
    left: 20px;
    background: #0d6efd;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

/* Analysis Cards */
.analysis-card {
    background: #333;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    text-align: left;
    border-left: 5px solid #0d6efd;
}

.analysis-card h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.analysis-card p {
    line-height: 1.8;
    color: #bbb;
    margin: 0;
}

/* Form */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #444;
    background-color: #383838;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0d6efd;
    outline: none;
}

.submit-btn {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover { background: #0a58ca; }

/* Footer */
.footer {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #444;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: #777;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

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

.copyright { color: #555; }

.disclaimer-text {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

#disqus_thread {
    margin-top: 2rem;
    background: #eee;
    padding: 2rem;
    border-radius: 16px;
}

@media (max-width: 600px) {
    .nav-menu { display: none; }
    h1 { font-size: 2.5rem; }
    .container { padding: 1.5rem; }
}
