/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-top: 70px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb ol li {
    display: flex;
    align-items: center;
}

.breadcrumb ol li a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb ol li a:hover {
    color: #666;
    text-decoration: underline;
}

.breadcrumb ol li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #999;
    font-weight: bold;
}

.breadcrumb ol li:last-child {
    color: #666;
    font-weight: 500;
}

/* Header */
.header {
    background-color: #000000;
    color: #ffffff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #cccccc;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

/* Converter Section */
.converter-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.converter-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #000000;
}

.input-label,
.output-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
    font-size: 1.1rem;
}

.text-input,
.text-output {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #000000;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    background-color: #ffffff;
    color: #000000;
    transition: border-color 0.3s ease;
}

.text-input:focus,
.text-output:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.text-output {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.converter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.convert-btn {
    padding: 12px 20px;
    border: 2px solid #000000;
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.convert-btn:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.convert-btn:active {
    transform: translateY(0);
}

.copy-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    width: 100%;
}

.copy-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #000000;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #000000;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000000;
}

.feature-card h3 a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-card h3 a:hover {
    color: #333333;
    text-decoration: underline;
}

.feature-card p {
    color: #666666;
    line-height: 1.6;
}

/* Case Styles Section */
.case-styles-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.style-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #000000;
}

.style-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
}

.style-item p {
    color: #666666;
    line-height: 1.5;
}

/* Why Use Section */
.why-use-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.benefits-list {
    max-width: 600px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #000000;
}

.benefit-icon {
    font-size: 1.5rem;
    color: #000000;
    margin-right: 15px;
    font-weight: bold;
}

.benefit-item p {
    color: #333333;
    font-weight: 500;
}

/* Example Section */
.example-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.example-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    border: 2px solid #000000;
}

.example-input,
.example-output {
    margin-bottom: 25px;
}

.example-input h4,
.example-output h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
}

.example-text {
    font-size: 1.1rem;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #cccccc;
    font-family: 'Courier New', monospace;
}

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.title-case {
    text-transform: capitalize;
}

.sentence-case {
    text-transform: none;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 2px solid #000000;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 20px;
}

.faq-answer p {
    color: #333333;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 10px 0;
    }
    
    .breadcrumb ol {
        font-size: 13px;
        gap: 6px;
    }
    
    .breadcrumb ol li:not(:last-child)::after {
        margin-left: 6px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #000000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .converter-wrapper {
        padding: 20px;
        margin: 0 10px;
    }

    .converter-controls {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .styles-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .converter-section,
    .features-section,
    .case-styles-section,
    .why-use-section,
    .example-section,
    .faq-section {
        padding: 60px 0;
    }

    .converter-wrapper {
        padding: 15px;
    }

    .text-input,
    .text-output {
        min-height: 100px;
        font-size: 0.9rem;
    }
}

/* Performance Optimizations */
.convert-btn,
.copy-btn,
.faq-question {
    will-change: transform;
}

.feature-card,
.style-item {
    will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
.convert-btn:focus,
.copy-btn:focus,
.faq-question:focus,
.nav-link:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #000000;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000000;
}

.benefit-card p {
    color: #666666;
    line-height: 1.6;
}

/* Internal Links Section */
.internal-links-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.link-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #000000;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.link-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000000;
}

.link-card p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.link-btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background-color: #333333;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Active button styling */
.convert-btn.active {
    background-color: #000000;
    color: #ffffff;
}

/* Blog Styles */
.blog-hero {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    padding: 120px 0 80px;
    text-align: center;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.blog-hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

.blog-categories {
    padding: 80px 0;
    background-color: #ffffff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #000000;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000000;
}

.category-card p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-link {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-link:hover {
    background-color: #333333;
    transform: translateY(-2px);
    color: #ffffff;
}

.featured-posts {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background-color: #ffffff;
    border-radius: 10px;
    border: 2px solid #000000;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-post-card.featured {
    grid-column: span 2;
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.post-category {
    background-color: #000000;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.post-date {
    color: #666666;
    font-weight: 500;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #333333;
}

.post-excerpt {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: #333333;
    transform: translateY(-2px);
    color: #ffffff;
}

.all-posts {
    padding: 80px 0;
    background-color: #ffffff;
}

.blog-posts-list {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-item {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.blog-post-item:hover {
    background-color: #f8f9fa;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 8px;
}

.blog-post-item .post-meta {
    margin-bottom: 10px;
}

.blog-post-item .post-title {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.blog-post-item .post-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-item .post-title a:hover {
    color: #333333;
}

/* Blog Post Page Styles */
.blog-post-header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    padding: 120px 0 60px;
    text-align: center;
}

.blog-post-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-post-meta {
    font-size: 1.1rem;
    opacity: 0.9;
}

.blog-post-content {
    padding: 60px 0;
    background-color: #ffffff;
}

.blog-post-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-body h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #000000;
}

.blog-post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #000000;
}

.blog-post-body p {
    margin-bottom: 20px;
    color: #333333;
}

.blog-post-body ul,
.blog-post-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-post-body li {
    margin-bottom: 10px;
    color: #333333;
}

.blog-post-body blockquote {
    border-left: 4px solid #000000;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666666;
}

.blog-post-body code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #000000;
}

.blog-post-body pre {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.blog-post-body pre code {
    background: none;
    padding: 0;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-hero-title,
    .blog-post-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-description {
        font-size: 1.1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-card.featured {
        grid-column: span 1;
    }
    
    .post-image {
        height: 150px;
    }
    
    .blog-post-body {
        font-size: 1rem;
    }
    
    .blog-post-body h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-body h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .blog-hero,
    .blog-post-header {
        padding: 100px 0 60px;
    }
    
    .blog-categories,
    .featured-posts,
    .all-posts,
    .blog-post-content {
        padding: 60px 0;
    }
    
    .blog-hero-title,
    .blog-post-title {
        font-size: 2rem;
    }
    
    .post-content {
        padding: 20px;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .nav-toggle {
        display: none;
    }
    
    .hero {
        padding-top: 20px;
    }
    
    body {
        color: #000000;
        background-color: #ffffff;
    }
}
