/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #0f0f1a;
    color: #e0e0e0;
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}
body.light {
    background-color: #f5f5f5;
    color: #222;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, ol {
    list-style: none;
}
img, svg {
    max-width: 100%;
    display: block;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}
input {
    font-family: inherit;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Glass Morphism ===== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}
body.light .glass {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== Typography ===== */
h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
h2 {
    font-size: 2rem;
    margin: 30px 0 20px;
    border-left: 4px solid #ff6b35;
    padding-left: 15px;
    color: #f0f0f0;
    transition: color 0.3s;
}
body.light h2 {
    color: #1a1a2e;
}
h3 {
    font-size: 1.4rem;
    margin: 20px 0 10px;
    color: #f7c948;
    transition: color 0.3s;
}
body.light h3 {
    color: #d35400;
}
p {
    margin-bottom: 15px;
}
blockquote {
    font-style: italic;
    border-left: 4px solid #ff6b35;
    padding-left: 20px;
    margin: 20px 0;
    color: #ccc;
}
body.light blockquote {
    color: #555;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}
.btn-primary:active {
    transform: translateY(-1px);
}
.read-more {
    color: #ff6b35;
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s, transform 0.3s;
}
.read-more:hover {
    color: #f7c948;
    transform: translateX(4px);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: background 0.3s ease, box-shadow 0.3s;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
body.light .navbar {
    background: rgba(245, 245, 245, 0.9);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.nav-logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}
.nav-logo:hover {
    opacity: 0.85;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}
.nav-links a {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f7c948);
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: #ff6b35;
}
.nav-links a:hover::after {
    width: 100%;
}
body.light .nav-links a {
    color: #333;
}
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.nav-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-actions button:hover {
    background: rgba(255, 107, 53, 0.15);
    transform: scale(1.05);
}
.nav-actions button svg {
    width: 20px;
    height: 20px;
    stroke: #e0e0e0;
    transition: stroke 0.3s;
}
body.light .nav-actions button svg {
    stroke: #333;
}
.search-bar {
    display: none;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    backdrop-filter: blur(5px);
}
body.light .search-bar {
    background: rgba(0, 0, 0, 0.05);
}
.search-bar input {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 107, 53, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    width: 300px;
    max-width: 90%;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}
body.light .search-bar input {
    background: #fff;
    color: #222;
    border-color: #ddd;
}
.search-bar input:focus {
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.15);
}
body.light .search-bar input:focus {
    background: #fff;
    border-color: #ff6b35;
}
.search-bar button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    margin-left: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* ===== Banner / Hero ===== */
.banner {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 70px;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease, transform 0.5s;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    will-change: opacity;
}
.slide.active {
    opacity: 1;
}
.slide-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
}
.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
}
.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}
.banner-controls button {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 12px 22px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
    backdrop-filter: blur(4px);
}
.banner-controls button:hover {
    background: rgba(255, 107, 53, 0.6);
    transform: scale(1.1);
}
.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}
.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.banner-dots span:hover {
    transform: scale(1.3);
}
.banner-dots span.active {
    background: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* ===== Sections ===== */
.section {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Grids ===== */
.about-grid,
.products-grid,
.services-grid,
.cases-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.about-grid article,
.services-grid div {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
body.light .about-grid article,
body.light .services-grid div {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.05);
}
.about-grid article:hover,
.services-grid div:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.15);
    background: rgba(255, 107, 53, 0.05);
}

/* ===== Product Cards ===== */
.product-card,
.news-grid article {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
body.light .product-card,
body.light .news-grid article {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.05);
}
.product-card:hover,
.news-grid article:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(255, 107, 53, 0.25);
    background: rgba(255, 107, 53, 0.08);
}
.product-card svg,
.news-grid article svg {
    margin: 0 auto 15px;
    transition: transform 0.4s;
}
.product-card:hover svg,
.news-grid article:hover svg {
    transform: scale(1.1) rotate(-3deg);
}
.product-card h3,
.news-grid article h3 {
    margin-top: 15px;
}
.news-grid article {
    text-align: left;
}
.news-grid article p {
    font-size: 0.95rem;
    color: #b0b0b0;
}
body.light .news-grid article p {
    color: #666;
}

/* ===== FAQ ===== */
.faq-item {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s;
}
body.light .faq-item {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.05);
}
.faq-item:hover {
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
}
.faq-question {
    width: 100%;
    padding: 18px 25px;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.05rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, color 0.3s;
    font-weight: 500;
}
body.light .faq-question {
    color: #333;
}
.faq-question:hover {
    background: rgba(255, 107, 53, 0.1);
}
.faq-question .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
    color: #ff6b35;
}
.faq-answer {
    padding: 0 25px 18px;
    display: none;
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}
body.light .faq-answer {
    color: #555;
}
.faq-answer.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}
.faq-question[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}

/* ===== HowTo Section ===== */
#howto .container {
    max-width: 800px;
}
#howto ol,
#howto ul {
    padding-left: 25px;
    margin-bottom: 20px;
}
#howto li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 5px;
}
#howto ol li {
    list-style: decimal;
    color: #ddd;
}
body.light #howto ol li {
    color: #444;
}
#howto ul li {
    list-style: disc;
    color: #f7c948;
}
body.light #howto ul li {
    color: #d35400;
}

/* ===== Contact ===== */
address p {
    margin-bottom: 8px;
    font-style: normal;
}
.map-placeholder {
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.map-placeholder:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.map-placeholder svg {
    width: 100%;
    height: auto;
}

/* ===== Footer ===== */
footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
body.light footer {
    background: rgba(0, 0, 0, 0.03);
    border-top-color: rgba(0, 0, 0, 0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px 0;
}
.footer-grid h4 {
    color: #f7c948;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
body.light .footer-grid h4 {
    color: #d35400;
}
.footer-grid ul li {
    margin-bottom: 8px;
}
.footer-grid ul li a {
    color: #b0b0b0;
    transition: color 0.3s, padding-left 0.3s;
}
body.light .footer-grid ul li a {
    color: #666;
}
.footer-grid ul li a:hover {
    color: #ff6b35;
    padding-left: 4px;
}
.footer-grid p {
    color: #999;
    font-size: 0.9rem;
}
body.light .footer-grid p {
    color: #777;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    opacity: 0;
}
.back-to-top.show {
    display: block;
    opacity: 1;
}
.back-to-top:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}
.back-to-top:active {
    transform: scale(0.95);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.animate {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    .banner { height: 70vh; min-height: 450px; }
    .nav-links { gap: 18px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 26, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    body.light .nav-links {
        background: rgba(245, 245, 245, 0.95);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    body.light .nav-links a {
        border-bottom-color: rgba(0, 0, 0, 0.05);
    }
    .menu-toggle {
        display: flex !important;
    }
    .banner {
        height: 60vh;
        min-height: 400px;
        margin-top: 60px;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .glass { padding: 20px; border-radius: 16px; }
    .about-grid,
    .products-grid,
    .services-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .banner-controls button {
        font-size: 1.5rem;
        padding: 8px 16px;
    }
    .search-bar input {
        width: 200px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .container { padding: 0 15px; }
    .banner { height: 50vh; min-height: 350px; }
    .slide-content p { font-size: 1rem; }
    .btn-primary { padding: 10px 24px; font-size: 0.9rem; }
    .nav-container { padding: 0 15px; }
    .nav-actions { gap: 8px; }
    .search-bar input { width: 160px; }
    .glass { padding: 15px; }
    .product-card, .news-grid article { padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .back-to-top { width: 44px; height: 44px; font-size: 1.2rem; bottom: 20px; right: 20px; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e;
}
body.light ::-webkit-scrollbar-track {
    background: #e0e0e0;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b35, #f7c948);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff6b35;
}

/* ===== Selection ===== */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: #fff;
}
body.light ::selection {
    background: rgba(255, 107, 53, 0.2);
    color: #1a1a2e;
}