/* Design System */
:root {
    --primary-color: #4a7c82; /* Teal from logo */
    --primary-light: #6a9ba1;
    --secondary-color: #2c3e50; /* Dark Navy from logo */
    --bg-color: #f1f5f5; /* Soft mist blue */
    --text-primary: #2c3e50;
    --text-secondary: #5d7072;
    --accent-color: #d1e1e0;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(74, 124, 130, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(44, 62, 80, 0.03) 0px, transparent 50%);
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

/* Header */
header {
    padding: 6rem 0 3rem;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.logo-container {
    margin-bottom: 2rem;
    display: inline-block;
    animation: logoFloat 6s ease-in-out infinite;
}

.logo-container img {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.08));
}

.tagline {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 4rem;
    opacity: 0.8;
}

/* Sections */
section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s ease-out forwards;
}

section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.4s; }

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

/* Dictionary Grid */
.dictionary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.word-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.word-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.word-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.word-card:hover::before {
    transform: scaleX(1);
}

.word-card h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.word-type {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: block;
    font-family: 'Inter', sans-serif;
    opacity: 0.7;
}

.definition {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.example {
    margin-top: 1.5rem;
    padding-left: 1.25rem;
    border-left: 3px solid var(--accent-color);
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
}

/* Quotes Section */
.quotes-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 850px;
    margin: 0 auto;
}

blockquote {
    position: relative;
    padding: 3rem 4rem;
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

blockquote::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 8rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    opacity: 0.1;
    line-height: 1;
}

blockquote:hover {
    box-shadow: var(--shadow-md);
}

blockquote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--secondary-color);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
    position: relative;
    z-index: 1;
}

cite {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: 'Inter', sans-serif;
}

/* Footer */
footer {
    padding: 3rem 0;
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    font-size: 0.9rem;
    margin-top: 6rem;
}

footer p {
    opacity: 0.6;
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 768px) {
    header { padding: 4rem 0 2rem; }
    .section-title { font-size: 2.5rem; }
    .word-card { padding: 2rem; }
    blockquote { padding: 2rem; }
    blockquote p { font-size: 1.4rem; }
}
