/* Global Variables */
:root {
    --primary-color: #24dfad;
    --secondary-color: #0a192f;
    --accent-color: #e9b44c;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --gradient-primary: linear-gradient(135deg, #0a192f 0%, #1a1a1a 100%);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header {
    background-color: #0c0f15;
    z-index: 9999;
}

/* Hero Section Enhancement */
.tech-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    overflow: hidden;
}

.tech-hero .background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.325) contrast(1.1);
    /* Enhance video appearance */
    -webkit-backface-visibility: hidden;
    /* Prevent flickering */
    backface-visibility: hidden;
    will-change: transform;
    /* Optimize performance */
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.325) contrast(1.1);
    /* Enhance video appearance */
    -webkit-backface-visibility: hidden;
    /* Prevent flickering */
    backface-visibility: hidden;
    will-change: transform;
    /* Optimize performance */
}

.tech-hero .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 1200px;
    opacity: 0;
    animation: fadeInScale 1.2s ease forwards;
}

.tech-hero h1 {
    font-size: 6.4rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(36, 223, 173, 0.3);
    letter-spacing: -1px;
}

.tech-hero p {
    font-size: 2.4rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: 5px;
    line-height: 1.1;
    background: linear-gradient(90deg,
            rgba(36, 223, 173, 0.2),
            rgba(255, 255, 255, 1),
            rgba(36, 223, 173, 0.2));
    background-size: 200% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 3.5s linear infinite;
    /* Increased from 3s to 5s */
}

@keyframes shine {
    0% {
        background-position-x: -200%;
    }

    100% {
        background-position-x: 200%;
    }
}


@keyframes patternFloat {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.dashboard-text {
    padding-right: 30px;
}

.dashboard-text h2 {
    font-size: 4.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.section-desc {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 2.4rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(36, 223, 173, 0.1);
    border-radius: 50%;
}

.dashboard-screen {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-smooth);
}

.dashboard-screen:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.dashboard-screen img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid rgba(36, 223, 173, 0.2);
    border-radius: 15px;
}

.dashboard-cta {
    margin-top: 40px;
}

.dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.dashboard-btn:hover {
    background: #20c69c;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .dashboard-text h2 {
        font-size: 3.6rem;
    }

    .feature-list {
        text-align: left;
    }

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

    .feature-list li {
        font-size: 1.6rem;
    }
}

.dashboard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.feature-points .point {
    position: absolute;
    transform: translate(-50%, -50%);
}

.point .dot {
    width: 20px;
    height: 20px;
    background: #24dfad;
    border-radius: 50%;
    display: block;
    animation: pulse 2s infinite;
}

.point .tooltip {
    position: absolute;
    background: rgba(36, 223, 173, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.4rem;
    white-space: nowrap;
    transform: translateX(-50%);
    top: -40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.point:hover .tooltip {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(36, 223, 173, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(36, 223, 173, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(36, 223, 173, 0);
    }
}

/* Sensor Technologies */
.sensor-tech {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a192f 0%, #1a1a1a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.sensor-tech::before {
    content: '';
    position: absolute;
    top: -30vh;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./images/pattern.png');
    opacity: 0.05;
    animation: parallaxScroll 30s linear infinite;
}

.sensor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 50px;
    padding: 0 20px;
}

.sensor-card {
    background: rgba(36, 223, 173, 0.05);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.card-inner {
    padding: 40px 30px;
    transition: transform 0.5s ease;
    height: 100%;
}

.sensor-card:hover .card-inner {
    transform: translateY(-70px);
}

.card-hover {
    position: absolute;
    bottom: -70px;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(36, 223, 173, 0.9);
    transition: transform 0.5s ease;
}

.sensor-card:hover .card-hover {
    transform: translateY(-70px);
}

.sensor-card i {
    display: flex;
    justify-content: center;
    margin-top: 35px;
    align-items: center;
    font-size: 3.6rem;
    color: #24dfad;
    margin-bottom: 20px;
}

.sensor-card h3 {
    font-size: 2.3rem;
    margin-bottom: 15px;
    text-align: center;
    color: #24dfad;
}

.sensor-card p {
    font-size: 1.6rem;
    color: #ccc;
    margin: 10px;
    margin-top: 45px;
    text-align: center;
}

/* Features Section */
.tech-features {
    padding: 100px 0;
    background: linear-gradient(rgba(10, 25, 47, 0.95), #161a1f),
        url('images/Herbarium.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
    padding: 0 20px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: rgba(36, 223, 173, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(36, 223, 173, 0.1);
}

.feature-item h3 {
    font-size: 2.4rem;
    color: #24dfad;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1.6rem;
    color: #ccc;
}

/* Common Styles */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-size: 3.6rem;
    text-align: center;
    color: #24dfad;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.8rem;
    text-align: center;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tech-hero h1 {
        font-size: 3.6rem;
    }

    .tech-hero p {
        font-size: 1.8rem;
    }

    .sensor-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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

@media (max-width: 480px) {
    .tech-hero h1 {
        font-size: 3rem;
    }

    .tech-hero p {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 2.8rem;
    }

    .section-desc {
        font-size: 1.6rem;
    }
}

/* Sensor Showcase */
.sensor-showcase {
    padding: 100px 0;
    background: #0a192f;
    color: white;
}

.sensor-slider {
    display: flex;
    gap: 30px;
    margin: 50px 0;
    padding: 20px 0;
}

.sensor-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.sensor-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sensor-item:hover img {
    transform: scale(1.1);
}

.sensor-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(36, 223, 173, 0.9);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sensor-item:hover .sensor-info {
    transform: translateY(0);
}

/* Dashboard Preview */
.dashboard-preview {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a192f 100%);
    color: white;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    padding: 0 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.feature-list li {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 85px;
}

.feature-list i {
    color: #24dfad;
    font-size: 2.2rem;
}

.demo-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #24dfad;
    color: #0a192f;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    background: #1fa885;
    transform: translateY(-2px);
}

.dashboard-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-left: -100px;
    margin-top: 100px;
    /* Added negative margin to shift left */
}

.point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #24dfad;
    border-radius: 50%;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.point::after {
    content: attr(data-tooltip);
    position: absolute;
    white-space: nowrap;
    padding: 10px 15px;
    background: rgba(36, 223, 173, 0.9);
    border-radius: 5px;
    font-size: 1.4rem;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.point:hover::after {
    opacity: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(36, 223, 173, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(36, 223, 173, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(36, 223, 173, 0);
    }
}

/* Thêm styles mới cho sensor showcase */
.sensor-showcase {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a192f 0%, #1a1a1a 100%);
    color: white;
}

.light-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a192f 100%);
}

.sensor-card {
    background: rgba(36, 223, 173, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(36, 223, 173, 0.1);
    height: 400px;
}

.sensor-card:hover {
    transform: translateY(-10px);
    border-color: #24dfad;
    box-shadow: 0 10px 30px rgba(36, 223, 173, 0.2);
}

.sensor-image {
    height: 250px;
    overflow: hidden;
}

.sensor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sensor-card:hover .sensor-image img {
    transform: scale(1.1);
}

.sensor-info {
    padding: 20px;
}

.sensor-info h3 {
    color: #24dfad;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.sensor-info ul {
    list-style: none;
    padding: 0;
}

.sensor-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 1.4rem;
}

.sensor-info i {
    color: #24dfad;
}

/* Swiper Customization */
.swiper-container {
    padding: 20px 0 40px;
}

.swiper-pagination-bullet {
    background: #24dfad;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Dashboard Preview Enhancements */
.dashboard-preview {
    position: relative;
}


.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #24dfad;
    color: #0a192f;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    background: #1fa885;
    transform: translateY(-2px);
}

.demo-btn i {
    transition: transform 0.3s ease;
}

.demo-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dashboard-text {
        order: 2;
    }

    .dashboard-image {
        order: 1;
    }
}

/* Sensor Showcase Styles */
.sensor-showcase {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a192f 0%, #1a1a1a 100%);
    color: white;
}

.light-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a192f 100%);
}

.sensor-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sensor-slider::-webkit-scrollbar {
    display: none;
}

.sensor-slide {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
}

.sensor-card-slider {
    background: rgba(36, 223, 173, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(36, 223, 173, 0.1);
    height: 400px;
}

.sensor-card-slider:hover {
    transform: translateY(-10px);
    border-color: #24dfad;
    box-shadow: 0 10px 30px rgba(36, 223, 173, 0.2);
}

.sensor-image {
    height: 200px;
    overflow: hidden;
}

.sensor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sensor-card-slider:hover .sensor-image img {
    transform: scale(1.1);
}

.sensor-info {
    padding: 20px;
}

.sensor-info h3 {
    color: #24dfad;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.sensor-info ul {
    list-style: none;
    padding: 0;
}

.sensor-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 1.4rem;
}

.sensor-info i {
    color: #24dfad;
}

/* Responsive Design */
@media (max-width: 992px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .dashboard-text {
        order: 2;
    }

    .dashboard-image {
        order: 1;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Stats animations */
.stat-item {
    opacity: 0;
    transform: translateY(20px);
}

.stat-item.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Enhanced sensor card styling */
.sensor-card {
    background: rgba(36, 223, 173, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Swiper custom styling */
.swiper-button-next,
.swiper-button-prev {
    color: #24dfad;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.swiper-pagination-bullet {
    background: #24dfad;
}

.dashboard-text .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 20px;
    margin-left: 8rem;
}

.dashboard-text .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.dashboard-text .cta-button:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(36, 223, 173, 0.2);
}

.dashboard-text .cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.dashboard-text .cta-button i {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.dashboard-text .cta-button:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .dashboard-text .cta-button {
        padding: 12px 25px;
        font-size: 1.6rem;
        margin-left: 30px;
    }
}

.dashboard-preview .container .dashboard-content {
    background: linear-gradient(135deg, rgba(36, 223, 173, 0.05) 0%, rgba(10, 25, 47, 0.1) 100%);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(36, 223, 173, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.dashboard-preview .container .dashboard-content h2 {
    color: #24dfad;
    text-shadow: 0 0 20px rgba(36, 223, 173, 0.3);
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.dashboard-preview .container .dashboard-content .section-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 2rem;
    margin-bottom: 40px;
}

.dashboard-preview .container .dashboard-content .feature-list li {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.dashboard-preview .container .dashboard-content .feature-list li:hover {
    color: #24dfad;
}

.dashboard-preview .container .dashboard-content .feature-list i {
    background: rgba(36, 223, 173, 0.1);
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dashboard-preview .container .dashboard-content .feature-list li:hover i {
    background: rgba(36, 223, 173, 0.2);
    transform: scale(1.1);
}

.dashboard-image img {
    width: 100%;
    height: auto;
    max-height: 800px;
    /* Increased from 600px */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    /* Added negative margin to shift image left */
}

.dashboard-image:hover {
    transform: translateY(-15px);
    /* Increased from -10px */
    box-shadow: 0 40px 80px rgba(36, 223, 173, 0.2);
    /* Increased shadow */
}

.dashboard-image:hover img {
    transform: scale(1.03);
    /* Increased from 1.02 */
}

@media (max-width: 768px) {
    .dashboard-preview {
        padding: 60px 0;
    }

    .dashboard-image {
        max-width: 100%;
    }

    .dashboard-image img {
        max-height: 400px;
        margin-left: 0;
        /* Reset margin on mobile */
    }
}

.dashboard-preview .container .dashboard-content .dashboard-text h2 {
    text-align: center;
    font-size: 4.2rem;
    background: linear-gradient(to right, #24dfad, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(36, 223, 173, 0.3);
}

.dashboard-preview .container .dashboard-content .dashboard-text .section-desc {
    text-align: center;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
    position: relative;
}

.dashboard-preview .container .dashboard-content .dashboard-text .section-desc::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #24dfad;
    margin: 25px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(36, 223, 173, 0.5);
}

@media (max-width: 768px) {
    .dashboard-preview .container .dashboard-content .dashboard-text h2 {
        font-size: 3.2rem;
    }

    .dashboard-preview .container .dashboard-content .dashboard-text .section-desc {
        font-size: 1.8rem;
    }
}

/* Responsive Optimizations */
@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px;
    }

    .dashboard-text {
        text-align: center;
        padding: 0;
    }

    .feature-list li {
        justify-content: left;
        margin-left: 2rem;
    }

    .dashboard-image {
        margin-left: 0;
        margin-top: 0;
    }
}

@media (max-width: 992px) {
    .tech-hero h1 {
        font-size: 3.6rem;
    }

    .tech-hero p {
        font-size: 1.8rem;
        padding: 0 20px;
    }

    .dashboard-preview .container .dashboard-content {
        padding: 30px;
    }

    .dashboard-preview .container .dashboard-content h2 {
        font-size: 3rem;
    }

    .sensor-showcase .sensor-card {
        height: auto;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .dashboard-preview {
        padding: 60px 0;
    }

    .dashboard-preview .container .dashboard-content {
        padding: 20px;
    }

    .dashboard-preview .container .dashboard-content h2 {
        font-size: 2.8rem;
    }

    .dashboard-preview .container .dashboard-content .section-desc {
        font-size: 1.6rem;
    }

    .feature-list li {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .feature-list i {
        font-size: 1.8rem;
    }

    .sensor-image {
        height: 200px;
    }

    .sensor-info h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .tech-hero h1 {
        font-size: 3rem;
    }

    .tech-hero p {
        font-size: 1.6rem;
    }

    .dashboard-preview .container .dashboard-content {
        padding: 15px;
    }

    .dashboard-preview .container .dashboard-content h2 {
        font-size: 2.4rem;
    }

    .feature-list li {
        font-size: 1.4rem;
        gap: 10px;
    }

    .sensor-showcase {
        padding: 60px 0;
    }

    .sensor-card {
        margin: 0 15px;
    }
}

/* Carousel Section */
.carousel-section {
    padding: 50px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    max-width: 1200px;
    height: 600px;
    margin: 0 auto;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.cards {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
}

input[type=radio] {
    display: none;
}

.card {
    position: absolute;
    width: 60%;
    height: 100%;
    left: 0;
    right: 0;
    margin: auto;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.card-content {
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(36, 223, 173, 0.05);
    border: 1px solid rgba(36, 223, 173, 0.1);
    backdrop-filter: blur(10px);
}

.card-content img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px 15px 0 0;
}

.card-info {
    padding: 20px;
    color: var(--text-primary);
}

.card-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-info p {
    font-size: 1.4rem;
    color: var(--text-secondary);
}

/* Control visibility based on radio selection */
#item-1:checked~.cards #sensor-3,
#item-2:checked~.cards #sensor-1,
#item-3:checked~.cards #sensor-2 {
    transform: translatex(-40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}

#item-1:checked~.cards #sensor-2,
#item-2:checked~.cards #sensor-3,
#item-3:checked~.cards #sensor-1 {
    transform: translatex(40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}

#item-1:checked~.cards #sensor-1,
#item-2:checked~.cards #sensor-2,
#item-3:checked~.cards #sensor-3 {
    transform: translatex(0) scale(1);
    opacity: 1;
    z-index: 1;
}

.sensor-info-panel {
    background: rgba(36, 223, 173, 0.05);
    border-radius: 15px;
    padding: 20px;
    min-width: 320px;
    border: 1px solid rgba(36, 223, 173, 0.1);
}

.sensor-details {
    display: none;
    color: var(--text-primary);
}

.sensor-details h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.specs {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    color: var(--text-secondary);
}

#item-1:checked~.sensor-info-panel #details-1,
#item-2:checked~.sensor-info-panel #details-2,
#item-3:checked~.sensor-info-panel #details-3 {
    display: block;
}

.progress-bar {
    height: 3px;
    width: 100%;
    background: rgba(36, 223, 173, 0.1);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.progress {
    display: block;
    width: 33.33%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.4s ease-in-out;
}

/* Common styles for all section headings */
.section-heading {
    font-size: 4rem;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

/* Underline effect */
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #e9b44c;
    border-radius: 2px;
}

/* Gradient text effect */
.section-heading span {
    background: linear-gradient(45deg, #24dfad, #4fd1c5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Decorative elements */
.section-heading::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: #ba903b;
    border-radius: 2px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .section-heading {
        font-size: 3rem;
        margin-bottom: 40px;
    }

    .section-heading::before {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .section-heading {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .section-heading::before {
        width: 100px;
    }
}

/* Light Sensors Carousel Controls */
#light-1:checked~.cards #light-sensor-3,
#light-2:checked~.cards #light-sensor-1,
#light-3:checked~.cards #light-sensor-2 {
    transform: translatex(-40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}

#light-1:checked~.cards #light-sensor-2,
#light-2:checked~.cards #light-sensor-3,
#light-3:checked~.cards #light-sensor-1 {
    transform: translatex(40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}

#light-1:checked~.cards #light-sensor-1,
#light-2:checked~.cards #light-sensor-2,
#light-3:checked~.cards #light-sensor-3 {
    transform: translatex(0) scale(1);
    opacity: 1;
    z-index: 1;
}

#light-1:checked~.sensor-info-panel #light-details-1,
#light-2:checked~.sensor-info-panel #light-details-2,
#light-3:checked~.sensor-info-panel #light-details-3 {
    display: block;
}

/* Light Sensor Progress Bar Controls */
#light-1:checked~.sensor-info-panel .progress {
    width: 33.33%;
    transition: width 0.4s ease-in-out;
}

#light-2:checked~.sensor-info-panel .progress {
    width: 66.66%;
    transition: width 0.4s ease-in-out;
}

#light-3:checked~.sensor-info-panel .progress {
    width: 100%;
    transition: width 0.4s ease-in-out;
}

/* Light Sensor Details Display Controls */
#light-1:checked~.sensor-info-panel #light-details-1,
#light-2:checked~.sensor-info-panel #light-details-2,
#light-3:checked~.sensor-info-panel #light-details-3 {
    display: block;
}

.carousel-section .container h2 {
    font-size: 3rem;
    text-align: center;
    color: #46d4c0;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    font-weight: 700;
    padding-bottom: 20px;
}

.carousel-section .container h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #24dfad;
    border-radius: 2px;
}

.carousel-section .container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 120px;
    height: 4px;
    background: #e9b44c;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.carousel-section .container h2:hover::after {
    transform: translateX(-50%) scale(1);
}

.sensor-card {
    position: relative;
    overflow: hidden;
}

.sensor-card .background-video {
    position: absolute;
    top: 50%;
    height: 100%;
    width: auto;
    min-width: 100%;
    object-fit: cover;
    z-index: -1;
    animation: slideVideo 20s linear infinite;
    /* Increased duration from default */
    filter: brightness(0.3) contrast(1.1);
}