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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 { 
    font-size: 2.5rem; 
    font-weight: 800;
}
h2 { 
    font-size: 2rem; 
    margin-bottom: 2rem;
}
h3 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem;
}
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #34495e;
}

a {
    text-decoration: none;
    color: #3498db;
    transition: all 0.2s ease;
}

a:hover {
    color: #2980b9;
}

/* Header */
.header {
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #ecf0f1;
}

.nav {
    padding: 1rem 0;
}

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

.brand-link {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: #7f8c8d;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #2c3e50;
}

.language-toggle {
    display: none;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: #bdc3c7;
}

.lang-btn.active {
    border-color: #2c3e50;
    background: rgba(44, 62, 80, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #7f8c8d;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: #ffffff;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #2c3e50;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #7f8c8d;
    font-weight: 400;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto;
}

.hero-description p {
    font-size: 1.1rem;
    color: #34495e;
    line-height: 1.6;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

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

.section-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 700px;
    line-height: 1.6;
}

/* Philosophy Section */
.philosophy-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.philosophy-story {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
}

.philosophy-story p {
    color: #34495e;
    margin-bottom: 1.8rem;
    text-align: justify;
}

.philosophy-story p:first-child {
    font-size: 1.15rem;
    color: #2c3e50;
}

.philosophy-story p:last-child {
    font-style: italic;
    color: #5a6c7d;
}

@media (max-width: 768px) {
    .philosophy-section {
        padding: 3rem 0;
    }
    
    .philosophy-story {
        font-size: 1rem;
    }
    
    .philosophy-story p {
        text-align: left;
    }
    
    .philosophy-story p:first-child {
        font-size: 1.05rem;
    }
}

/* Why Section */
.why-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.problem-block, .solution-block {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.solution-block {
    border-left-color: #27ae60;
}

.problem-block h3, .solution-block h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.problem-block ul, .solution-block ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.problem-block li, .solution-block li {
    margin-bottom: 0.5rem;
    color: #34495e;
}

/* Principles Section */
.principles {
    padding: 4rem 0;
    background: white;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .principles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.principle-card {
    padding: 2rem;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.principle-card:hover {
    border-color: #bdc3c7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.principle-number {
    font-size: 2rem;
    font-weight: 800;
    color: #3498db;
    margin-bottom: 1rem;
}

.principle-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.principle-description {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 0.95rem;
}



/* Blog Section */
.blog {
    background: #f9fafb;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.blog-date {
    background: #e5e7eb;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.blog-category {
    color: #2563eb;
    font-weight: 500;
}

.blog-title {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blog-excerpt {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-link {
    color: #2563eb;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.blog-link:hover {
    gap: 1rem;
}

.blog-load-more {
    text-align: center;
}

.load-more-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background: #f8f9fa;
    padding: 4rem 0;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.contact-item {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
    text-align: left;
    color: #34495e;
}

.contact-item a {
    color: #34495e;
    text-decoration: none;
    border-bottom: 1px solid #bdc3c7;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-item a:hover {
    color: #2c3e50;
    border-color: #2c3e50;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-brand p {
    color: #bdc3c7;
    font-size: 0.95rem;
}

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

.footer-section h4 {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-item {
        padding: 1rem 0;
    }

    .language-toggle {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .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-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .problem-solution {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .problem-block, .solution-block {
        padding: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .problem-block, .solution-block {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .problem-solution {
        gap: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .about-grid,
    .expertise-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}