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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0b1120;
    color: #e0e7ff;
    line-height: 1.6;
    transition: background 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b1120;
}
::-webkit-scrollbar-thumb {
    background: #1a73e8;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1557b0;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
p { margin-bottom: 1rem; color: #c0c8e0; }
a { color: #1a73e8; text-decoration: none; transition: color 0.3s; }
a:hover { color: #4a9eff; }

/* ===== Header & Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s, backdrop-filter 0.3s;
}

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

.logo-link {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}
.logo-link:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    align-items: center;
}
.nav-menu li a {
    color: #c0c8e0;
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
    position: relative;
}
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-menu li a:hover {
    color: #ffffff;
    background: rgba(26, 115, 232, 0.15);
}
.nav-menu li a:hover::after {
    width: 70%;
    left: 15%;
}

.dark-mode-toggle, .mobile-menu-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e0e7ff;
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    backdrop-filter: blur(4px);
}
.dark-mode-toggle:hover, .mobile-menu-btn:hover {
    background: rgba(26, 115, 232, 0.3);
    transform: scale(1.05);
}
.mobile-menu-btn {
    display: none;
}

/* ===== Hero Section (Gradient Banner) ===== */
.hero-section {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0b1120 0%, #141e3a 40%, #1a3a6a 70%, #0b1120 100%);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-slider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}
.slide {
    display: none;
    animation: fadeSlide 0.6s ease;
}
.slide.active {
    display: block;
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content {
    max-width: 700px;
}
.hero-content h1, .hero-content h2 {
    font-size: 3.2rem;
    background: linear-gradient(135deg, #ffffff, #8ab4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.2rem;
    color: #c0c8e0;
    margin-bottom: 2rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, #1a73e8, #4a9eff);
    color: #fff;
    box-shadow: 0 4px 20px rgba(26,115,232,0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26,115,232,0.6);
    color: #fff;
}
.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #e0e7ff;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    color: #fff;
}

.slider-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}
.slider-prev, .slider-next {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e0e7ff;
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-prev:hover, .slider-next:hover {
    background: #1a73e8;
    color: #fff;
    transform: scale(1.1);
}
.slider-dots {
    display: flex;
    gap: 0.6rem;
}
.slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.slider-dots button[aria-selected="true"] {
    background: #1a73e8;
    border-color: #1a73e8;
    transform: scale(1.2);
}
.slider-dots button:hover {
    border-color: #4a9eff;
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.bg-alt {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ===== About Grid ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.about-text, .about-team {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.about-text:hover, .about-team:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26,115,232,0.15);
}
.team-member {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ===== Services / Products / Features / Testimonials / Case / Insights Grids ===== */
.services-grid, .products-grid, .features-grid, .testimonials-grid, .case-grid, .insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card, .product-card, .feature-item, .case-card, .insight-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
    position: relative;
    overflow: hidden;
}
.service-card::before, .product-card::before, .feature-item::before, .case-card::before, .insight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(26,115,232,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.service-card:hover::before, .product-card:hover::before, .feature-item:hover::before, .case-card:hover::before, .insight-card:hover::before {
    opacity: 1;
}
.service-card:hover, .product-card:hover, .feature-item:hover, .case-card:hover, .insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(26,115,232,0.2);
    background: rgba(255,255,255,0.07);
}

blockquote {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 2rem;
    border-left: 4px solid #1a73e8;
    font-style: italic;
    transition: transform 0.3s, box-shadow 0.3s;
}
blockquote:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(26,115,232,0.12);
}
blockquote footer {
    margin-top: 1rem;
    color: #8ab4ff;
    font-style: normal;
}

.insight-card time {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6b7a99;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    margin-bottom: 1rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s;
}
.faq-item:hover {
    background: rgba(255,255,255,0.07);
}
.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    padding: 0.6rem 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e0e7ff;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: #1a73e8;
    transition: transform 0.3s;
}
.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}
.faq-item p {
    padding: 0.6rem 0 1rem;
    color: #c0c8e0;
}

/* ===== HowTo Steps ===== */
.howto-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.howto-steps li {
    counter-increment: step;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.howto-steps li::before {
    content: counter(step);
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(26,115,232,0.2);
    line-height: 1;
}
.howto-steps li:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26,115,232,0.12);
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.contact-info {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.06);
}
.contact-info p {
    margin-bottom: 0.8rem;
}
.contact-map svg {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.contact-map svg:hover {
    transform: scale(1.02);
}

/* ===== Footer ===== */
footer {
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 3rem 0 1.5rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand p {
    margin-top: 0.6rem;
    color: #6b7a99;
    font-size: 0.9rem;
}
.footer-links h3, .footer-legal h3, .footer-social h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
}
.footer-links ul, .footer-legal ul, .footer-social ul {
    list-style: none;
}
.footer-links li, .footer-legal li, .footer-social li {
    margin-bottom: 0.4rem;
}
.footer-links a, .footer-legal a, .footer-social a {
    color: #8ab4ff;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover, .footer-legal a:hover, .footer-social a:hover {
    color: #ffffff;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #6b7a99;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(26,115,232,0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26,115,232,0.3);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #1a73e8;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(26,115,232,0.5);
}

/* ===== Dark Mode Override (already dark by default, but keep toggle friendly) ===== */
body.light-mode {
    background: #f0f4ff;
    color: #1a1f36;
}
body.light-mode header {
    background: rgba(240, 244, 255, 0.85);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
body.light-mode .nav-menu li a { color: #333; }
body.light-mode .nav-menu li a:hover { color: #1a73e8; background: rgba(26,115,232,0.1); }
body.light-mode h1, body.light-mode h2, body.light-mode h3 { color: #0b1120; }
body.light-mode p { color: #3a4055; }
body.light-mode .hero-section {
    background: linear-gradient(135deg, #e8edf5 0%, #d0ddf0 40%, #b8cce8 70%, #e8edf5 100%);
}
body.light-mode .hero-content h1, body.light-mode .hero-content h2 {
    background: linear-gradient(135deg, #0b1120, #1a73e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.light-mode .hero-content p { color: #3a4055; }
body.light-mode .btn-secondary {
    background: rgba(0,0,0,0.06);
    color: #1a1f36;
    border: 1px solid rgba(0,0,0,0.1);
}
body.light-mode .btn-secondary:hover { background: rgba(0,0,0,0.1); }
body.light-mode .bg-alt { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.04); }
body.light-mode .service-card, body.light-mode .product-card, body.light-mode .feature-item,
body.light-mode .case-card, body.light-mode .insight-card, body.light-mode .about-text,
body.light-mode .about-team, body.light-mode blockquote, body.light-mode .faq-item,
body.light-mode .howto-steps li, body.light-mode .contact-info {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border-color: rgba(0,0,0,0.06);
}
body.light-mode .slider-prev, body.light-mode .slider-next,
body.light-mode .dark-mode-toggle, body.light-mode .mobile-menu-btn {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
    color: #1a1f36;
}
body.light-mode .slider-prev:hover, body.light-mode .slider-next:hover {
    background: #1a73e8;
    color: #fff;
}
body.light-mode footer {
    background: rgba(240, 244, 255, 0.95);
    border-top: 1px solid rgba(0,0,0,0.06);
}
body.light-mode .footer-links a, body.light-mode .footer-legal a, body.light-mode .footer-social a {
    color: #1a73e8;
}
body.light-mode .footer-bottom { color: #6b7a99; border-color: rgba(0,0,0,0.06); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    .hero-content h1, .hero-content h2 { font-size: 2.6rem; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 17, 32, 0.95);
        backdrop-filter: blur(16px);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-menu.open {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-section {
        padding: 120px 0 60px;
        min-height: auto;
    }
    .hero-content h1, .hero-content h2 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .section {
        padding: 60px 0;
    }
    .services-grid, .products-grid, .features-grid, .testimonials-grid, .case-grid, .insights-grid {
        grid-template-columns: 1fr;
    }
    .howto-steps {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    body.light-mode .nav-menu {
        background: rgba(240, 244, 255, 0.95);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.4rem 1rem;
    }
    .hero-content h1, .hero-content h2 {
        font-size: 1.6rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    .btn-primary, .btn-secondary {
        text-align: center;
        width: 100%;
    }
    .slider-controls {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ===== Scroll Animation (already applied via CSS animation on .section) ===== */
/* Additional subtle entrance for cards */
.service-card, .product-card, .feature-item, .case-card, .insight-card, blockquote, .faq-item, .howto-steps li {
    opacity: 0;
    animation: cardFadeIn 0.6s ease forwards;
}
.service-card:nth-child(1), .product-card:nth-child(1), .feature-item:nth-child(1), .case-card:nth-child(1), .insight-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2), .product-card:nth-child(2), .feature-item:nth-child(2), .case-card:nth-child(2), .insight-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3), .product-card:nth-child(3), .feature-item:nth-child(3), .case-card:nth-child(3), .insight-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4), .product-card:nth-child(4), .feature-item:nth-child(4), .case-card:nth-child(4), .insight-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Utility ===== */
[role="button"], button {
    cursor: pointer;
    font-family: inherit;
}
img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}
:focus-visible {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}