/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    color: #8B4513;
    background: linear-gradient(135deg, #F5DEB3 0%, #DEB887 25%, #D2691E 50%, #CD853F 75%, #8B4513 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Elements */
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 1;
}

.sparkle::before {
    content: '✦';
    color: #D2691E;
    font-size: 12px;
    animation: sparkle 3s linear infinite;
}

.sparkle:nth-child(2n)::before {
    content: '✧';
    color: #CD853F;
    animation-delay: -1s;
}

.sparkle:nth-child(3n)::before {
    content: '⋆';
    color: #DEB887;
    animation-delay: -2s;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1) rotate(360deg);
    }
}

.firework {
    position: fixed;
    pointer-events: none;
    z-index: 1;
}

.firework::before {
    content: '✨';
    font-size: 16px;
    animation: firework 4s ease-out infinite;
}

.firework:nth-child(2n)::before {
    content: '💫';
    animation-delay: -2s;
}

@keyframes firework {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    15% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    85% {
        opacity: 1;
        transform: scale(1.2) rotate(360deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(540deg);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel Decorative', serif;
    line-height: 1.2;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(139, 69, 19, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(210, 105, 30, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(139, 69, 19, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #D2691E;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #D2691E;
    font-family: 'Cinzel', serif;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.5rem;
    color: #D2691E;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: #F5DEB3;
    background: rgba(210, 105, 30, 0.2);
    transform: scale(1.1);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D2691E' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    space-y: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(210, 105, 30, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(210, 105, 30, 0.4);
    margin-bottom: 1rem;
}

.badge-icon {
    width: 1rem;
    height: 1rem;
    color: #D2691E;
}

.hero-badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #D2691E;
    font-family: 'Cinzel', serif;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: #D2691E;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Cinzel Decorative', serif;
}

.hero-description {
    font-size: 1.25rem;
    color: #F5DEB3;
    margin: 1.5rem 0;
    line-height: 1.7;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
    font-family: 'Cinzel', serif;
}

.btn-primary {
    background: linear-gradient(135deg, #D2691E, #8B4513);
    color: #F5DEB3;
    box-shadow: 0 4px 14px rgba(210, 105, 30, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #CD853F, #A0522D);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.6);
}

.btn-secondary {
    border: 2px solid #D2691E;
    color: #D2691E;
    background: transparent;
}

.btn-secondary:hover {
    background: #D2691E;
    color: #F5DEB3;
    transform: translateY(-2px);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
}

.portrait-frame {
    position: relative;
    background: linear-gradient(135deg, #D2691E, #CD853F, #8B4513);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.portrait-frame:hover {
    transform: rotate(0deg);
}

.portrait-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.portrait-image-container {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.portrait-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.portrait-label {
    color: #D2691E;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.portrait-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F5DEB3;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel Decorative', serif;
}

.portrait-date {
    font-size: 0.875rem;
    color: #D2691E;
    font-family: 'Cormorant Garamond', serif;
}

/* Story Section */
.story {
    padding: 4rem 0;
    background: rgba(245, 222, 179, 0.1);
    backdrop-filter: blur(10px);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D2691E;
    margin-bottom: 1rem;
    font-family: 'Cinzel Decorative', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: 1.125rem;
    color: #F5DEB3;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.story-divider {
    text-align: center;
    font-size: 2rem;
    color: #D2691E;
    margin: 2rem 0;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5em;
}

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

.story-card {
    background: rgba(245, 222, 179, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(210, 105, 30, 0.3);
    transition: all 0.3s ease;
}

.story-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
    background: rgba(245, 222, 179, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #D2691E;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #D2691E;
    font-family: 'Cinzel', serif;
}

.card-text {
    color: #F5DEB3;
    line-height: 1.7;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
}

/* Virtues Section */
.virtues {
    padding: 4rem 0;
}

.virtues-hero-image {
    margin-bottom: 3rem;
    text-align: center;
}

.virtues-banner {
    width: 100%;
    max-width: 1500px;
    height: 500px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid #D2691E;
}

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

.virtue-item {
    text-align: center;
}

.virtue-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #D2691E, #CD853F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
    border: 2px solid #8B4513;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.virtue-item:hover .virtue-icon {
    transform: scale(1.1);
}

.virtue-icon svg {
    width: 2rem;
    height: 2rem;
    color: #F5DEB3;
}

.virtue-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #D2691E;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.virtue-text {
    color: #F5DEB3;
    line-height: 1.7;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
}

/* Social Media Section */
.social-section {
    padding: 4rem 0;
    background: rgba(139, 69, 19, 0.8);
    backdrop-filter: blur(10px);
    color: white;
}

.social-content {
    text-align: center;
}

.social-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Cinzel Decorative', serif;
    color: #D2691E;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.social-subtitle {
    font-size: 1.125rem;
    color: #F5DEB3;
    margin-bottom: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-button {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.social-button.telegram {
    background: linear-gradient(135deg, #0088cc, #006ba6);
}

.social-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.social-button svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.ca-info {
    margin-top: 2rem;
}

.ca-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #D2691E;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    color: #D2691E;
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
}

.footer-text {
    margin-bottom: 1.5rem;
    color: #F5DEB3;
    font-family: 'Cormorant Garamond', serif;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social-link {
    color: #D2691E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: #F5DEB3;
}

.footer-social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(210, 105, 30, 0.3);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #CD853F;
    font-family: 'Cormorant Garamond', serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .virtues-banner {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .story-grid,
    .virtues-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 0.5rem;
    }
    
    .nav-title {
        font-size: 1rem;
    }
    
    .virtues-banner {
        height: 200px;
    }
}

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

.story-card,
.virtue-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(139, 69, 19, 0.3);
}

::-webkit-scrollbar-thumb {
    background: #D2691E;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #CD853F;
}