:root {
    --iot-primary: #00b4d8; /* Electric Blue */
    --iot-secondary: #03045e; /* Deep Navy */
    --iot-accent: #90e0ef; /* Light Blue Accent */
    --iot-success: #48cae4;
    --iot-dark: #023e8a;
    --iot-dark-alt: #0077b6;
    --iot-light-bg: #caf0f8;
    --iot-text-muted: #5c677d;
    --iot-text-dark: #1d3557;
    --iot-text-light: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.05);
    --card-border-dark: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--iot-text-dark);
    overflow: hidden; /* Prevent default scroll for fullpage */
}

/* FullPage Nav Dots */
#fp-nav {
    position: fixed;
    z-index: 100;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#fp-nav li {
    position: relative;
    width: 14px;
    height: 14px;
    cursor: pointer;
    list-style: none;
}

#fp-nav li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    outline: none;
}

#fp-nav li .nav-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Dark mode dots for dark sections */
body.dark-nav #fp-nav li .nav-dot {
    background-color: rgba(255, 255, 255, 0.3);
}

#fp-nav li.active .nav-dot {
    background-color: var(--iot-primary);
    transform: scale(1.2);
    border-color: #fff;
}

#fp-nav li .fp-tooltip {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background-color: var(--iot-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#fp-nav li:hover .fp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Sections Common */
.fp-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.section-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--iot-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Section 1: Hero */
.hero-section {
    background: linear-gradient(135deg, #023e8a 0%, #0096c7 100%);
    color: var(--iot-text-light);
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/charging-bg.jpg') no-repeat center center/cover;
    opacity: 0.2;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content .subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.hero-features span {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.hero-features i {
    color: var(--iot-accent);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

/* Section 2: Tech */
.tech-section {
    background-color: #fff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.tech-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 180, 216, 0.15);
    border-color: var(--iot-primary);
}

.tech-card .card-icon {
    font-size: 40px;
    background: linear-gradient(135deg, var(--iot-primary), var(--iot-dark-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.tech-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--iot-text-dark);
}

.tech-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Section 3: Industry */
.industry-section {
    background-color: #f0f9ff;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.industry-item {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s;
    border-left: 5px solid var(--iot-primary);
}

.industry-item:hover {
    transform: translateX(10px);
}

.industry-icon {
    color: var(--iot-primary);
    font-size: 40px;
    flex-shrink: 0;
}

.industry-item h3 {
    margin-bottom: 8px;
    color: var(--iot-secondary);
    font-size: 20px;
}

.industry-item p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Section 4: Comparison */
.comparison-section {
    background-color: #fff;
}

.comparison-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.comparison-box {
    flex: 1;
    padding: 40px;
    border-radius: 16px;
    height: 100%;
}

.comparison-box.old {
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
}

.comparison-box.new {
    background: linear-gradient(135deg, var(--iot-dark) 0%, var(--iot-secondary) 100%);
    color: #fff;
    box-shadow: 0 20px 40px rgba(3, 4, 94, 0.2);
}

.comparison-box h3 {
    font-size: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comparison-box ul {
    list-style: none;
    padding: 0;
}

.comparison-box ul li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.comparison-box.old i { color: #dc3545; margin-top: 4px; }
.comparison-box.new i { color: var(--iot-success); margin-top: 4px; }

.vs-badge {
    background: var(--iot-primary);
    color: #fff;
    font-weight: 800;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.8);
    z-index: 2;
}

/* Section 5: Problems */
.problem-section {
    background: url('../images/pattern-bg.png'); /* Fallback or pattern */
    background-color: var(--iot-secondary);
    color: #fff;
}

.problem-section .section-title { color: #fff; }
.problem-section .section-title::after { background: var(--iot-success); }

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.problem-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.problem-number {
    font-size: 50px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 15px;
    right: 20px;
}

.problem-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--iot-success);
}

.problem-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* Section 6: Advantages */
.advantage-section {
    background-color: #fff;
}

.advantage-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.adv-card {
    flex: 1;
    text-align: center;
    padding: 40px 20px;
    background: #f8fdff;
    border-radius: 16px;
    transition: all 0.3s;
}

.adv-card:hover {
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 180, 216, 0.15);
    transform: translateY(-5px);
}

.adv-icon {
    width: 70px;
    height: 70px;
    background: var(--iot-primary);
    color: #fff;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin: 0 auto 25px;
    transform: rotate(45deg);
    transition: all 0.5s;
}

.adv-icon i { transform: rotate(-45deg); }

.adv-card:hover .adv-icon {
    transform: rotate(0deg) scale(1.1);
    background: var(--iot-secondary);
}
.adv-card:hover .adv-icon i { transform: rotate(0deg); }

.adv-card h3 {
    margin-bottom: 15px;
    color: var(--iot-text-dark);
}

.adv-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Section 7: Architecture */
.architecture-section {
    background: #f8f9fa;
}

.arch-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.arch-layer {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.layer-title {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 140px;
    background: linear-gradient(135deg, var(--iot-dark-alt), var(--iot-dark));
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.layer-content {
    margin-left: 150px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px;
}

.layer-content span {
    background: #e0f7fa;
    color: #0077b6;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.arch-arrow {
    color: var(--iot-primary);
    font-size: 24px;
    animation: fadeInDown 2s infinite;
}

@keyframes fadeInDown {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(5px); }
}

/* Section 8: Footer */
/* Footer styles are handled globally by style.css and LayoutManager */
#contact {
    padding: 0 !important;
    width: 100% !important;
}

#contact .fp-tableCell {
    width: 100% !important;
    display: flex !important; /* Use flex to align content to bottom */
    flex-direction: column !important;
    justify-content: flex-end !important;
}

#global-footer {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Allow container to be centered but ensure footer background is full width */
#global-footer .container {
    width: 100% !important;
    max-width: 1200px !important; /* Keep content centered and reasonable width */
    margin: 0 auto !important;
    padding: 0 20px !important;
}


/* Animations */
.animate-up, .animate-in, .animate-left, .animate-right {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in { transform: scale(0.9); }
.animate-left { transform: translateX(-50px); }
.animate-right { transform: translateX(50px); }

.active .animate-up { opacity: 1; transform: translateY(0); }
.active .animate-in { opacity: 1; transform: scale(1); }
.active .animate-left { opacity: 1; transform: translateX(0); }
.active .animate-right { opacity: 1; transform: translateX(0); }

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Responsive */
@media (max-width: 1024px) {
    /* Enable native scroll on mobile/tablet */
    body { overflow: auto; }
    #fullpage-container { height: auto; }
    .fp-section { height: auto; min-height: 100vh; padding: 60px 0; overflow: visible; }
    #contact { height: auto; min-height: 50vh; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 32px; }
    .tech-grid, .industry-grid, .advantage-cards, .problem-grid {
        grid-template-columns: 1fr;
    }
    .comparison-container {
        flex-direction: column;
        padding: 20px;
    }
    .vs-badge {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    #fp-nav { display: none; }
    
    .tech-card, .industry-item, .problem-card, .adv-card {
        margin-bottom: 20px;
    }
    
    .layer-title {
        position: relative;
        width: 100%;
        padding: 10px;
    }
    
    .layer-content {
        margin-left: 0;
        padding: 15px;
    }
}