@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

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

:root {
    --primary-black: #0a0a0a;
    --soft-black: #1a1a1a;
    --medium-gray: #666;
    --light-gray: #d4d4d4;
    --off-white: #f5f5f0;
    --accent-gold: #c9a961;
}

body {
    font-family: 'Libre Baskerville', serif;
    background: var(--off-white);
    color: var(--primary-black);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 40px;
    right: 60px;
    z-index: 10000;
}

.language-button {
    background: #ffffff;
    border: 2px solid var(--primary-black);
    padding: 12px 20px;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.language-button:hover {
    background: var(--primary-black);
    color: #ffffff;
}

.language-button .flag-icon {
    font-size: 1.3rem;
}

.language-button .lang-name {
    font-weight: 600;
}

.language-button i {
    font-size: 0.7rem;
    margin-left: 5px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: #ffffff;
    border: 2px solid var(--primary-black);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.language-dropdown.show {
    display: block;
}

.lang-form {
    margin: 0;
}

.language-option {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--light-gray);
    padding: 12px 20px;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-align: left;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: var(--off-white);
}

.language-option.active {
    background: var(--accent-gold);
    color: #ffffff;
    font-weight: 600;
}

.language-option .flag-icon {
    font-size: 1.2rem;
}

.language-option i.fa-check {
    margin-left: auto;
    font-size: 0.8rem;
}

/* Decorative border */
.page-border {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 20px solid var(--primary-black);
    pointer-events: none;
    z-index: 9999;
}

.page-border::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--medium-gray);
}

/* Header */
header {
    text-align: center;
    padding: 100px 40px 80px;
    background: linear-gradient(to bottom, var(--off-white), #ffffff);
    position: relative;
}

.back-link {
    position: absolute;
    top: 40px;
    left: 60px;
    text-decoration: none;
    color: var(--primary-black);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 15px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    color: var(--primary-black);
    text-transform: uppercase;
    animation: fadeInDown 1.2s ease-out;
}

.logo-accent {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    margin-top: 10px;
    color: var(--accent-gold);
    font-weight: 400;
}

.tagline {
    font-size: 1.3rem;
    color: var(--medium-gray);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 40px;
    animation: fadeIn 1.5s ease-out 0.3s both;
}

.divider {
    width: 200px;
    height: 1px;
    background: var(--primary-black);
    margin: 40px auto;
    position: relative;
    animation: expandWidth 1s ease-out 0.6s both;
}

.divider::before,
.divider::after {
    content: '◆';
    position: absolute;
    top: -8px;
    font-size: 12px;
    color: var(--accent-gold);
}

.divider::before {
    left: -20px;
}

.divider::after {
    right: -20px;
}

/* Hero section */
.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    animation: fadeIn 1.8s ease-out 0.9s both;
}

.hero-icon {
    text-align: center;
    font-size: 5rem;
    color: var(--accent-gold);
    margin-bottom: 40px;
}

.hero h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.3;
    text-align: center;
}

.content-section {
    margin-bottom: 50px;
}

.content-section p {
    font-size: 1.1rem;
    color: var(--soft-black);
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 2em;
}

.content-section p:first-of-type::first-letter {
    font-size: 4rem;
    font-family: 'Cormorant Garamond', serif;
    float: left;
    line-height: 0.8;
    margin: 10px 10px 0 0;
    color: var(--accent-gold);
}

.key-points {
    background: #ffffff;
    border: 2px solid var(--primary-black);
    padding: 30px 40px;
    margin: 30px 0;
    position: relative;
}

.key-points::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid var(--light-gray);
}

.key-points h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.key-points ul {
    list-style: none;
    padding: 0;
}

.key-points li {
    padding: 10px 0 10px 40px;
    position: relative;
    border-bottom: 1px solid var(--light-gray);
}

.key-points li:last-child {
    border-bottom: none;
}

.key-points li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.summary {
    font-size: 1.2rem !important;
    color: var(--primary-black) !important;
    text-align: center !important;
    margin: 30px 0 !important;
    text-indent: 0 !important;
}

.norwegian-explanation {
    font-size: 1.15rem !important;
    color: var(--soft-black) !important;
    font-style: italic;
    text-align: center !important;
    margin: 30px 0 !important;
    text-indent: 0 !important;
}

.quote-box {
    border-left: 4px solid var(--accent-gold);
    padding: 30px 40px;
    margin: 40px 0;
    background: rgba(201, 169, 97, 0.05);
    font-style: italic;
    font-size: 1.15rem;
    position: relative;
}

.quote-box::before {
    content: '"';
    font-family: 'Cormorant Garamond', serif;
    font-size: 6rem;
    position: absolute;
    top: -20px;
    left: 10px;
    color: var(--accent-gold);
    opacity: 0.3;
}

/* Concepts grid */
.concepts {
    max-width: 1400px;
    margin: 80px auto;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.concept-card {
    background: #ffffff;
    border: 2px solid var(--primary-black);
    padding: 50px 40px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
}

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-black);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.concept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.concept-card::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid var(--light-gray);
    pointer-events: none;
}

.concept-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--accent-gold);
}

.concept-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.concept-latin {
    font-style: italic;
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.concept-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--soft-black);
    margin-bottom: 15px;
    text-indent: 0;
    text-align: left;
}

.concept-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-black);
    font-weight: 700;
    transition: gap 0.3s ease;
}

.concept-card:hover .concept-link {
    gap: 15px;
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 40px 100px;
    background: var(--primary-black);
    color: var(--off-white);
    margin-top: 100px;
}

footer p {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

footer .latin {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 20px;
    color: var(--accent-gold);
}

.footer-credits {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-credits p {
    font-size: 0.85rem;
    color: var(--light-gray);
}

.footer-credits a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: #ffffff;
}

.footer-credits i.fa-heart {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 200px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .page-border {
        border-width: 10px;
    }
    
    .language-selector {
        top: 20px;
        right: 30px;
    }
    
    .language-button {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .language-button .lang-name {
        display: none;
    }
    
    .back-link {
        left: 30px;
        top: 30px;
    }
    
    .logo {
        font-size: 3rem;
        letter-spacing: 0.2em;
    }
    
    .concepts {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .content-section p {
        text-align: left;
    }
}
