:root {
  --primary-color: #6e56cf;
  --secondary-color: #2e2e48;
  --accent-color: #9f7aea;
  --light-accent: #e9e3ff;
  --background-color: #f8f7fc;
  --card-bg: #ffffff;
  --text-color: #333;
  --text-light: #666;
  --white: #ffffff;
  --shadow: 0 10px 20px rgba(110, 86, 207, 0.12);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  --ink-black: #1a1a1a;
  --paper-beige: #f9f3e9;
}

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

.hero-section {
    text-align: center;
    padding: 4.5rem 2rem;
    background: linear-gradient(135deg, rgba(110, 86, 207, 0.12), rgba(159, 122, 234, 0.08));
    border-radius: var(--border-radius);
    margin: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E"), linear-gradient(135deg, rgba(110, 86, 207, 0.12), rgba(159, 122, 234, 0.08));
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(159, 122, 234, 0.05) 0%, rgba(159, 122, 234, 0) 60%);
    z-index: 0;
}

.hero-section h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.styles-section, .tools-section, .progress-section {
    padding: 4rem 2rem;
}

.styles-section h2, .tools-section h2, .progress-section h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.styles-section h2::after, .tools-section h2::after, .progress-section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.styles-grid, .tools-grid, .progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.style-card, .tool-card, .progress-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(159, 122, 234, 0.1);
}

.style-card::before, .tool-card::before, .progress-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
}

.style-card:hover, .tool-card:hover, .progress-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(110, 86, 207, 0.2);
}

.style-card:hover::before, .tool-card:hover::before, .progress-card:hover::before {
    opacity: 1;
}

.style-icon, .tool-icon, .progress-icon {
    margin-bottom: 1.5rem;
}

.style-icon i, .tool-icon i, .progress-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background: var(--light-accent);
    padding: 1rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 60px;
    transition: var(--transition);
    display: inline-block;
}

.style-card:hover .style-icon i, 
.tool-card:hover .tool-icon i, 
.progress-card:hover .progress-icon i {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.style-card h3, .tool-card h3, .progress-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.style-card p, .tool-card p, .progress-card p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 8px;
    height: 10px;
    margin-top: 1rem;
    overflow: hidden;
    position: relative;
}

.progress {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    height: 100%;
    border-radius: 8px;
    transition: width 1s ease-in-out;
}

.quote-section {
    background: var(--paper-beige);
    padding: 3rem 2rem;
    margin: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.quote-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.quote-section blockquote {
    font-style: italic;
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
    position: relative;
    padding-left: 2rem;
}

.quote-section blockquote p {
    margin: 0;
}

.quote-section cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: right;
    font-weight: 500;
}

.quote-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 1.5rem 0;
    line-height: 1.7;
    padding: 0 2rem;
}

.learning-quote-section {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.learning-quote-section blockquote {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-align: center;
    font-style: italic;
    line-height: 1.7;
    position: relative;
}

.learning-quote-section blockquote p {
    position: relative;
    z-index: 1;
}

.learning-quote-section blockquote::before {
    content: '"';
    font-size: 8rem;
    position: absolute;
    top: -4rem;
    left: -2rem;
    color: var(--accent-color);
    opacity: 0.1;
    z-index: 0;
}

.learning-quote-section cite {
    display: block;
    margin-top: 1.5rem;
    font-style: normal;
    color: var(--text-light);
    font-weight: 500;
}

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

.style-card, .tool-card, .progress-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.style-card:nth-child(1), .tool-card:nth-child(1), .progress-card:nth-child(1) {
    animation-delay: 0.2s;
}

.style-card:nth-child(2), .tool-card:nth-child(2), .progress-card:nth-child(2) {
    animation-delay: 0.3s;
}

.style-card:nth-child(3), .tool-card:nth-child(3), .progress-card:nth-child(3) {
    animation-delay: 0.4s;
}

.style-card:nth-child(4), .tool-card:nth-child(4), .progress-card:nth-child(4) {
    animation-delay: 0.5s;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1.5rem;
        margin: 1.5rem 1rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .styles-section, .tools-section, .progress-section {
        padding: 2.5rem 1.5rem;
    }

    .styles-section h2, .tools-section h2, .progress-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .styles-grid, .tools-grid, .progress-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .style-card, .tool-card, .progress-card {
        padding: 1.75rem;
    }
    
    .style-icon i, .tool-icon i, .progress-icon i {
        font-size: 2rem;
        width: 70px;
        height: 70px;
        line-height: 50px;
    }
    
    .style-card h3, .tool-card h3, .progress-card h3 {
        font-size: 1.4rem;
    }
    
    .quote-section {
        padding: 2rem 1.5rem;
        margin: 1.5rem 1rem;
    }
    
    .quote-section blockquote {
        font-size: 1.2rem;
        padding-left: 1.5rem;
    }
    
    .quote-text {
        font-size: 1rem;
        padding: 0 1.5rem;
    }
    
    .learning-quote-section blockquote {
        font-size: 1.3rem;
    }
    
    .learning-quote-section blockquote::before {
        font-size: 6rem;
        top: -3rem;
        left: -1rem;
    }
}
