/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-emblem {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(1.2);
}

.brand-text {
    color: #ecf0f1;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #f39c12;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f39c12;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.emblem-container {
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

.main-emblem {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.main-emblem:hover {
    transform: scale(1.05);
}

.household-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.names-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.name-line {
    display: block;
    margin: 0.5rem 0;
}

.and-separator {
    font-size: 2rem;
    opacity: 0.8;
    margin: 1rem 0;
    display: block;
}

.motto {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.emblem-divider {
    margin: 2rem 0;
}

.section-emblem {
    width: 60px;
    height: 60px;
    object-fit: contain;
    opacity: 0.7;
}

/* About Section */
.about {
    background-color: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.heritage-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.heritage-text h3:first-child {
    margin-top: 0;
}

.heritage-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.emblem-showcase {
    text-align: center;
}

.showcase-emblem {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.emblem-description {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

/* Legacy Section */
.legacy {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-marker {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 2rem;
}

.timeline-emblem {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.contact-emblem {
    text-align: center;
}

.contact-emblem-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-emblem-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(1.2);
}

.footer-info {
    text-align: center;
}

.footer-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-motto {
    font-style: italic;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
}

.footer-divider {
    margin-bottom: 1rem;
}

.divider-emblem {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.6;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.5;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #2c3e50;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-emblem {
        width: 150px;
        height: 150px;
    }

    .household-title {
        font-size: 2rem;
    }

    .names-title {
        font-size: 2rem;
    }

    .motto {
        font-size: 1.1rem;
    }

    .content-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-item {
        flex-direction: column !important;
        text-align: center;
    }

    .timeline-item:nth-child(even) .timeline-content {
        text-align: center;
    }

    .timeline-marker {
        margin: 1rem 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main-emblem {
        width: 120px;
        height: 120px;
    }

    .household-title {
        font-size: 1.5rem;
    }

    .names-title {
        font-size: 1.5rem;
    }

    .motto {
        font-size: 1rem;
    }

    .brand-text {
        font-size: 1rem;
    }

    .nav-emblem {
        width: 30px;
        height: 30px;
    }

    .showcase-emblem,
    .contact-emblem-img {
        width: 150px;
        height: 150px;
    }
}
