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

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

body {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    color: #2c1810;
    background: linear-gradient(135deg, #f4f1e8, #e8dcc0);
    overflow-x: hidden;
}

.roman-border {
    border: 3px solid #8b4513;
    border-image: linear-gradient(45deg, #d4af37, #8b4513, #d4af37) 1;
    position: relative;
}

.roman-border::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid #d4af37;
    z-index: -1;
}

header {
    background: linear-gradient(135deg, #8b0000, #cd212a, #8b0000);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><polygon points="0,0 100,0 95,20 5,20" fill="rgba(212,175,55,0.1)"/></svg>') repeat-x;
    background-size: 50px 20px;
}

.family-crest {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    background: radial-gradient(circle, #d4af37, #b8860b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 0 30px rgba(212,175,55,0.5);
    position: relative;
}

.family-crest::before {
    content: 'T';
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #8b0000;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 3px;
}

.motto {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
    letter-spacing: 1px;
}

nav {
    background: linear-gradient(135deg, #2c1810, #5d4e37);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 2rem;
}

nav a {
    color: #d4af37;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(212,175,55,0.2);
    color: #fff;
    transform: translateY(-2px);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
    background: rgba(255,255,255,0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #8b0000, #d4af37);
    border-radius: 10px 10px 0 0;
}

h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #8b0000;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.hero-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(139,0,0,0.1));
}

.hero-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.origins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.origin-card {
    background: linear-gradient(135deg, #f9f6f0, #ede5d8);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #d4af37;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.origin-card h3 {
    font-family: 'Cinzel', serif;
    color: #8b0000;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.stat-box {
    display: inline-block;
    background: linear-gradient(135deg, #8b0000, #cd212a);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(139,0,0,0.3);
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #d4af37, #8b0000, #d4af37);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 15px;
    height: 15px;
    background: #d4af37;
    border-radius: 50%;
    border: 3px solid #8b0000;
}

.timeline-date {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: #8b0000;
    font-size: 1.2rem;
}

.family-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(255,255,255,0.8));
    border-radius: 10px;
    border: 2px solid #d4af37;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #8b0000;
}

.value-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: #8b0000;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Social Media Section */
.social-media-section {
    background: linear-gradient(135deg, #2c1810, #5d4e37);
    padding: 2rem 0;
    text-align: center;
    border-top: 3px solid #d4af37;
}

.social-title {
    font-family: 'Cinzel', serif;
    color: #d4af37;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.social-subtitle {
    color: #f4f1e8;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 1;
}

/* Individual platform colors */
.facebook {
    background: linear-gradient(135deg, #1877f2, #0d5cb8);
}

.instagram {
    background: linear-gradient(135deg, #e4405f, #833ab4, #fcb045);
}

.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.whatsapp {
    background: linear-gradient(135deg, #25d366, #1da851);
}

.telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.discord {
    background: linear-gradient(135deg, #5865f2, #4752c4);
}

footer {
    background: linear-gradient(135deg, #2c1810, #5d4e37);
    color: #d4af37;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-crest {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: radial-gradient(circle, #d4af37, #b8860b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.footer-crest::before {
    content: 'T';
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #8b0000;
}

.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    main {
        padding: 1rem;
    }
    
    .origins-grid {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Animation keyframes */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
    }
}