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

:root {
    --primary-color: #2D5A27;
    --secondary-color: #FFF8E7;
    --accent-color: #FF8C42;
    --text-color: #1A1A1A;
    --light-accent: #E8B4B8;
    --white: #ffffff;
    --shadow-light: rgba(45, 90, 39, 0.1);
    --shadow-medium: rgba(45, 90, 39, 0.2);
    --shadow-heavy: rgba(45, 90, 39, 0.3);
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f9f5e8 50%, var(--secondary-color) 100%);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Floating Background Patterns */
.floating-patterns {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.pattern {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    animation: float 20s infinite ease-in-out;
}

.pattern-1 {
    width: 200px;
    height: 200px;
    background: conic-gradient(from 0deg, var(--primary-color), var(--accent-color), var(--primary-color));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.pattern-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    top: 60%;
    right: 15%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.pattern-3 {
    width: 300px;
    height: 300px;
    background: conic-gradient(from 45deg, var(--light-accent), transparent, var(--light-accent));
    bottom: 20%;
    left: 5%;
    animation-delay: -10s;
    animation-duration: 35s;
}

.pattern-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    top: 30%;
    right: 30%;
    animation-delay: -15s;
    animation-duration: 20s;
}

.pattern-5 {
    width: 250px;
    height: 250px;
    background: radial-gradient(ellipse, var(--light-accent), transparent);
    bottom: 50%;
    right: 5%;
    animation-delay: -20s;
    animation-duration: 40s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(-60px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(-30px) rotate(270deg) scale(1.05);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: rgba(255, 248, 231, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo {
    animation: fadeInLeft 1s ease-out 0.3s both;
}

.logo-text {
    font-family: 'Crimson Text', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.tagline {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-style: italic;
    font-weight: 300;
    animation: fadeIn 1s ease-out 0.8s both;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 1.2s ease-out 0.5s both;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: typewriter 2s steps(30) 1s both;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--accent-color);
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 1.5s both;
}

/* Mandala Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1.2s ease-out 0.7s both;
}

.mandala-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.mandala {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mandala-outer {
    width: 400px;
    height: 400px;
    background: conic-gradient(from 0deg, var(--primary-color), var(--accent-color), var(--light-accent), var(--primary-color));
    opacity: 0.2;
    animation: rotateClockwise 30s linear infinite;
}

.mandala-middle {
    width: 280px;
    height: 280px;
    background: conic-gradient(from 45deg, var(--accent-color), var(--light-accent), var(--primary-color), var(--accent-color));
    opacity: 0.3;
    animation: rotateCounterClockwise 25s linear infinite;
}

.mandala-inner {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--primary-color), var(--accent-color), transparent);
    opacity: 0.4;
    animation: rotateClockwise 20s linear infinite;
}

@keyframes rotateClockwise {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Blog Section */
.blog-section {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}

.blog-article {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-light);
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.blog-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--light-accent));
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.article-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 4rem 3rem 3rem;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 30deg,
        rgba(255,255,255,0.05) 30deg 60deg
    );
    animation: rotateBackground 40s linear infinite;
}

@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.article-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    animation: slideInFromTop 1s ease-out 0.3s both;
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: slideInFromBottom 1s ease-out 0.5s both;
}

.decorative-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--white), transparent);
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    animation: expandWidth 1.5s ease-out 0.8s both;
}

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

.article-content {
    padding: 4rem 3rem;
    line-height: 1.8;
    animation: fadeInContent 1.2s ease-out 0.5s both;
}

.intro-paragraph {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), rgba(255, 248, 231, 0.5));
    border-left: 4px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
    position: relative;
    animation: slideInFromLeft 1s ease-out 0.7s both;
}

.section-heading {
    color: var(--primary-color);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    animation: slideInFromRight 0.8s ease-out both;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    animation: expandUnderline 1s ease-out 0.3s both;
}

@keyframes expandUnderline {
    from { width: 0; }
    to { width: 60px; }
}

.article-content p {
    text-align: justify;
    margin-bottom: 1.8rem;
    animation: fadeInUp 0.8s ease-out both;
}

.article-content a {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-content a:hover {
    border-bottom-color: var(--accent-color);
    transform: translateY(-1px);
}

.article-content a::after {
    content: '↗';
    font-size: 0.8em;
    margin-left: 0.3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-content a:hover::after {
    opacity: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4a1a 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.02) 20px,
        rgba(255,255,255,0.02) 40px
    );
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    from { transform: translateX(0); }
    to { transform: translateX(40px); }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    animation: fadeInUp 0.8s ease-out both;
}

.footer-title,
.footer-heading {
    color: var(--light-accent);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after,
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    animation: expandFooterLine 1s ease-out 0.5s both;
}

@keyframes expandFooterLine {
    from { width: 0; }
    to { width: 40px; }
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1rem;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.footer-link:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 1.5rem;
}

.footer-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--light-accent), transparent);
    margin: 2rem 0;
    animation: fadeIn 1s ease-out 1s both;
}

.footer-bottom {
    text-align: center;
    position: relative;
    z-index: 1;
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 1.2s both;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        white-space: normal;
        border-right: none;
        animation: fadeInUp 1s ease-out 0.5s both;
    }
    
    .mandala-container {
        width: 300px;
        height: 300px;
    }
    
    .mandala-outer { width: 300px; height: 300px; }
    .mandala-middle { width: 210px; height: 210px; }
    .mandala-inner { width: 120px; height: 120px; }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .article-content {
        padding: 3rem 2rem;
    }
    
    .intro-paragraph {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mandala-container {
        width: 250px;
        height: 250px;
    }
    
    .mandala-outer { width: 250px; height: 250px; }
    .mandala-middle { width: 175px; height: 175px; }
    .mandala-inner { width: 100px; height: 100px; }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .floating-patterns {
        display: none;
    }
    
    .blog-article {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .article-header {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
    
    * {
        animation: none !important;
    }
}

