/* css/zorld.css */
:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Dynamic Sections */
.content-section {
    display: none; /* Hidden by default */
    min-height: 60vh;
    padding: 40px 0;
    animation: fadeIn 0.4s ease-in-out;
}

.content-section.active-section {
    display: block; /* Shown when active */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-content h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
}

.btn:not(.btn-primary) {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

/* Stats */
.stats { background: var(--white); padding: 40px 0; }
.stats-container { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; }
.stat-number { font-size: 2.5rem; font-weight: bold; color: var(--secondary-color); }
.stat-text { color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

/* Grids */
.features-grid, .language-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}
.features-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.language-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); text-align: center; }

.feature-card, .language-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.language-icon { font-size: 2rem; color: var(--primary-color); margin-bottom: 10px; }

/* Web Apps Specific */
.app-card {
    border: 1px solid #e5e7eb;
    border-left: 5px solid var(--secondary-color);
    padding: 20px;
    margin-top: 20px;
    background-color: #f9fafb;
}

.warning-text {
    color: #b45309;
    font-size: 0.9rem;
    margin: 15px 0;
    font-weight: 600;
}

.external-app-btn {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}
.external-app-btn:hover { background-color: var(--secondary-color) !important; }

/* Footer */
footer {
    background-color: #1f2937;
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 { margin-bottom: 20px; border-bottom: 2px solid var(--secondary-color); padding-bottom: 10px; display: inline-block; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #d1d5db; text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.social-links a { font-size: 1.5rem; margin-right: 15px; }

.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #374151; color: #9ca3af; }

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    nav ul { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: var(--white); padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
    nav ul.show { display: flex; }
}