/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-gradient: linear-gradient(135deg, #667eea, #e06b6b);
    --bg-light: #f5f7fa;
    --bg-dark: #0f0f1a;
    --text-light: #333;
    --text-dark: #e0e0e0;
    --card-light: #ffffff;
    --card-dark: #1a1a2e;
    --glass-light: rgba(255, 255, 255, 0.15);
    --glass-dark: rgba(20, 20, 40, 0.4);
    --border-glass: rgba(255, 255, 255, 0.2);
    --border-glass-dark: rgba(100, 100, 180, 0.2);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-card-dark: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card-dark-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 50px;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.6s ease;
    --font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark {
    background: var(--bg-dark);
    color: var(--text-dark);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass effect */
.glass {
    background: var(--glass-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark .glass {
    background: var(--glass-dark);
    border-color: var(--border-glass-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.dark .section-subtitle {
    color: #aaa;
}

/* Grid & Flex */
.grid {
    display: grid;
    gap: 30px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Cards */
.card {
    background: var(--card-light);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.dark .card {
    background: var(--card-dark);
    box-shadow: var(--shadow-card-dark);
}

.dark .card:hover {
    box-shadow: var(--shadow-card-dark-hover);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s, transform 0.6s;
}

.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background 0.3s, backdrop-filter 0.3s;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.dark header.scrolled {
    background: rgba(15, 15, 26, 0.9);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    padding: 5px;
    line-height: 1;
}

.dark .menu-toggle {
    color: var(--text-dark);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.15), transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(224, 107, 107, 0.1), transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(5%, 5%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #a8b4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    margin-top: 10px;
}

/* ========== ABOUT ========== */
.about .grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 15px;
    color: #666;
}

.dark .about-text p {
    color: #bbb;
}

.about-image {
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1), transparent);
}

.about-image span {
    position: relative;
    z-index: 1;
}

/* ========== CULTURE ========== */
.culture .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.culture-item {
    text-align: center;
    padding: 30px;
}

.culture-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.culture-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

/* ========== TIMELINE ========== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    align-self: flex-end;
    justify-content: flex-start;
    left: 50%;
}

.timeline-item .content {
    background: var(--card-light);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    max-width: 400px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item .content:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.dark .timeline-item .content {
    background: var(--card-dark);
}

.timeline-item .year {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* ========== PRODUCTS ========== */
.products .grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card {
    text-align: center;
    padding: 40px 20px;
}

.product-card .icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
}

.product-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.product-card p {
    color: #666;
    font-size: .95rem;
}

.dark .product-card p {
    color: #bbb;
}

/* ========== ADVANTAGES ========== */
.advantages .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.advantage-item {
    text-align: center;
    padding: 25px;
}

.advantage-item .num {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1.2;
}

.advantage-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ========== SOLUTIONS ========== */
.solutions .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.solutions .card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.solutions .card p {
    color: #666;
}

.dark .solutions .card p {
    color: #bbb;
}

/* ========== SERVICE ========== */
.service .grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.service-item {
    text-align: center;
    padding: 25px;
}

.service-item .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.service-item h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ========== PARTNERS ========== */
.partners .flex {
    justify-content: center;
    gap: 40px;
}

.partner-logo {
    background: var(--card-light);
    border-radius: var(--radius-sm);
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    color: #555;
    transition: transform 0.3s;
    cursor: default;
}

.dark .partner-logo {
    background: var(--card-dark);
    color: #ccc;
}

.partner-logo:hover {
    transform: scale(1.05);
}

/* ========== CASES ========== */
.cases .grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.case-card {
    padding: 25px;
}

.case-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.case-card p {
    color: #666;
    font-size: .95rem;
}

.dark .case-card p {
    color: #bbb;
}

/* ========== TESTIMONIALS ========== */
.testimonials .grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card {
    padding: 25px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: 10px;
    left: 20px;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-color);
}

/* ========== NEWS ========== */
.news .grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.news-card {
    padding: 25px;
}

.news-card .date {
    color: var(--primary-color);
    font-size: .9rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.news-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.news-card p {
    color: #666;
    font-size: .95rem;
}

.dark .news-card p {
    color: #bbb;
}

/* ========== FAQ ========== */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    cursor: pointer;
    transition: border-color 0.3s;
}

.dark .faq-item {
    border-color: #333;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 5px 0;
}

.faq-question .arrow {
    transition: transform 0.3s;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-left: 10px;
}

.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    padding-top: 0;
    color: #666;
    line-height: 1.7;
}

.dark .faq-answer {
    color: #bbb;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 15px;
}

/* ========== HOWTO ========== */
.howto .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.howto-step {
    text-align: center;
    padding: 25px;
}

.howto-step .step-num {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    margin: 0 auto 15px;
    font-size: 1.1rem;
}

.howto-step h3 {
    margin-bottom: 8px;
    font-weight: 700;
}

/* ========== CONTACT ========== */
.contact .grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.contact-info .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--card-light);
    transition: border 0.3s;
    font-family: inherit;
    color: inherit;
}

.dark .contact-form input,
.dark .contact-form textarea {
    background: var(--card-dark);
    border-color: #444;
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========== FOOTER ========== */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 30px;
}

.dark footer {
    background: #0a0a14;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: .9rem;
}

.footer-bottom a {
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ========== BACK TO TOP ========== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* ========== DARK MODE TOGGLE ========== */
#dark-toggle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 999;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#dark-toggle:hover {
    transform: scale(1.1);
}

/* ========== SEARCH MODAL ========== */
#search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

#search-modal.open {
    display: flex;
}

.search-box {
    background: var(--card-light);
    padding: 30px;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dark .search-box {
    background: var(--card-dark);
}

.search-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: inherit;
    color: inherit;
    background: var(--card-light);
}

.dark .search-box input {
    background: #2a2a3e;
    border-color: #444;
    color: var(--text-dark);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    float: right;
    color: inherit;
    padding: 0 5px;
    line-height: 1;
    transition: opacity 0.3s;
}

.search-box .close-btn:hover {
    opacity: 0.7;
}

#search-results {
    max-height: 300px;
    overflow-y: auto;
}

/* ========== BANNER SLIDER ========== */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    height: 400px;
    margin-bottom: 40px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 40px;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.banner-slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.banner-slide h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.banner-slide p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.banner-dots span.active {
    background: #fff;
}

/* ========== STATS ========== */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-item .num {
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-item .label {
    color: #888;
    margin-top: 5px;
    font-size: 1rem;
}

.dark .stat-item .label {
    color: #aaa;
}

/* ========== LAZY LOAD ========== */
.lazy {
    opacity: 0;
    transition: opacity 0.5s;
}

.lazy.loaded {
    opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

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

    .section-subtitle {
        margin-bottom: 30px;
        font-size: 1rem;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }

    .flex {
        flex-direction: column;
    }

    /* Header */
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 20px;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 15px;
    }

    .dark .nav {
        background: rgba(15, 15, 26, 0.95);
    }

    .nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* About */
    .about .grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 200px;
        font-size: 1.2rem;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        justify-content: flex-start;
        padding-left: 50px;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        justify-content: flex-start;
    }

    .timeline-item .content {
        max-width: 100%;
    }

    /* Banner */
    .banner-slider {
        height: 250px;
    }

    .banner-slide h2 {
        font-size: 1.5rem;
    }

    .banner-slide p {
        font-size: 0.95rem;
    }

    /* Contact */
    .contact .grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Stats */
    .stats {
        gap: 30px;
    }

    .stat-item .num {
        font-size: 2.2rem;
    }

    /* Back to top & Dark toggle */
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    #dark-toggle {
        bottom: 72px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .card {
        padding: 20px;
    }

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

    .partner-logo {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

/* ========== UTILITY ========== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========== PRINT ========== */
@media print {
    header,
    footer,
    #back-to-top,
    #dark-toggle,
    #search-modal,
    .menu-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
}