/* --- Apple-Inspired Light Design System --- */
:root {
    /* Apple-style Light Color Palette */
    --bg-body: #ffffff;
    --bg-card: #f5f5f7;
    --bg-header: rgba(255, 255, 255, 0.8);

    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --text-secondary: #86868b;

    --primary: #0071e3;
    --primary-hover: #0077ed;
    --accent: #06c;

    --border: rgba(0, 0, 0, 0.1);

    /* Apple uses SF Pro Display/Text */
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

    --radius: 18px;
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.24);
}

/* --- Dark Mode --- */
[data-theme="dark"] {
    /* Apple-style Dark Color Palette */
    --bg-body: #000000;
    --bg-card: #1c1c1e;
    --bg-header: rgba(0, 0, 0, 0.8);

    --text-main: #f5f5f7;
    --text-muted: #98989d;
    --text-secondary: #86868b;

    --primary: #0a84ff;
    --primary-hover: #409cff;
    --accent: #0a84ff;

    --border: rgba(255, 255, 255, 0.1);

    --shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] body {
    background: #000000;
}

[data-theme="dark"] header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .select-selected {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .select-selected:hover {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .select-items {
    background: rgba(28, 28, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .select-items div:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle, rgba(10, 132, 255, 0.15) 0%, transparent 70%);
}

[data-theme="dark"] .hero-title {
    background: linear-gradient(90deg, #f5f5f7 0%, #98989d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .stats-bar {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

[data-theme="dark"] .stat-number {
    background: linear-gradient(135deg, #f5f5f7 0%, #0a84ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .service-card {
    background: rgba(28, 28, 30, 0.6);
}

[data-theme="dark"] .service-card:hover {
    background: rgba(28, 28, 30, 0.9);
}

[data-theme="dark"] .mobile-menu {
    background: rgba(0, 0, 0, 0.98);
}

[data-theme="dark"] .mobile-menu a:hover,
[data-theme="dark"] .mobile-menu a.active {
    background: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: -webkit-fill-available;
}

body {
    font-family: var(--font-body);
    background: #ffffff;
    color: var(--text-main);
    line-height: 1.47059;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0em;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.0834933333;
    letter-spacing: -0.003em;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 980px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 17px;
    letter-spacing: 0em;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: rgba(0, 113, 227, 0.08);
    border-color: var(--primary);
}

/* --- Navigation --- */
header {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    min-height: 64px;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: opacity 0.3s ease;
    letter-spacing: -0.01em;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.8;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 36px;
    height: 36px;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}


/* Language Switcher - Custom Dropdown */
.lang-selector {
    position: relative;
}

.custom-select {
    position: relative;
    user-select: none;
}

.select-selected {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 6px 32px 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.select-selected:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-color: var(--text-main) transparent transparent transparent;
    transform: translateY(-25%);
    transition: transform 0.3s ease;
}

.select-selected.select-arrow-active:after {
    transform: translateY(-25%) rotate(180deg);
}

.select-selected:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

.select-items {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    z-index: 99;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select-hide {
    display: none;
}

.select-items div {
    color: var(--text-main);
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    position: relative;
}

.select-items div:hover {
    background: rgba(0, 0, 0, 0.05);
}

.select-items div.same-as-selected {
    background: rgba(0, 113, 227, 0.2);
    color: var(--primary);
}

.select-items div.same-as-selected:hover {
    background: rgba(0, 113, 227, 0.3);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
    padding-top: 20px;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.005em;
    line-height: 1.15;
    background: linear-gradient(90deg, #1d1d1f 0%, #6e6e73 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow: visible;
    padding: 4px 0;
}

.hero-subtitle {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.381;
    letter-spacing: 0.011em;
}

/* --- Stats Trust Bar --- */
.stats-bar {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.02));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
    backdrop-filter: blur(10px);
}

.stats-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 32px;
}

.stat-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: -0.003em;
    background: linear-gradient(135deg, #1d1d1f 0%, #0071e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* --- Sections --- */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: -0.003em;
}

/* --- Mission Section (Homepage) --- */
.mission-section {
    background-color: transparent;
    position: relative;
}

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

.mission-content p {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.381;
    letter-spacing: 0.011em;
    font-weight: 400;
}

/* --- Cards (Services - Non-Profit Page) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 113, 227, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 24px;
    line-height: 1.47059;
}

.price-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.15), rgba(0, 113, 227, 0.05));
    color: var(--primary);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 113, 227, 0.2);
}

.contact-info {
    font-size: 14px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 24px;
}

/* --- Footer --- */
footer {
    background-color: transparent;
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* --- Mobile Menu --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: rgba(0, 0, 0, 0.05);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .lang-selector {
        display: flex;
    }

    header {
        padding: 12px 0;
        min-height: 56px;
    }

    .logo-img {
        height: 36px;
    }

    .hero {
        min-height: 100vh;
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 19px;
    }

    .section-title {
        font-size: 32px;
    }

    .stats-bar .container {
        flex-direction: column;
        gap: 40px;
    }

    .stat-number {
        font-size: 40px;
    }

    .mission-content p {
        font-size: 19px;
    }

    section {
        padding: 48px 0;
    }
}