/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #333;
}
body {
    overflow-x: clip; /* Modern alternative to hidden */
    max-width: 100vw;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
  }
  
  /* AOS specific fixes without breaking animations */
  [data-aos], [data-aos-delay], [data-aos-easing], [data-aos-duration] {
    max-width: 100%;
    /* Removed the transform: none !important that was breaking animations */
  }
  
  /* Make sure AOS containers don't add horizontal overflow */
  .aos-init, .aos-animate {
    max-width: 100%;
  }
  
  /* Target AOS wrapper if it exists */
  [data-aos-container], .aos-initialized {
    max-width: 100%;
  }
  
  /* Optional but recommended - prevent AOS animations from causing overflow */
  .aos-animate {
    /* Contains the animations without breaking them */
    overflow-x: hidden;
  }

.container1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* optional: for horizontal nav */
  }
  
  .nav-item {
    list-style: none; /* just in case */
  }
/* write media query for less than 1000px */
@media (min-width: 1000px) {

    .site-header .container{
    padding: 0.8rem 10rem !important;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    background-image: url('https://ik.imagekit.io/b3s3mttie3/Temperature-analyzer/temp-hero1.webp?updatedAt=1750307613252');
    opacity: 0.3; /* More visible */
}

.hero::after {
    background-image: url('https://ik.imagekit.io/b3s3mttie3/Temperature-analyzer/temphero-2.jpg?updatedAt=1750307613691');
    opacity: 0.3; /* Less visible */
    mix-blend-mode: overlay; /* Optional, or try multiply/soft-light */
}
@media (max-width: 768px) {
    .hero {
        min-height: 60vh; /* or adjust to 60vh, or a fixed px value like 400px */
    }

   
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 2rem;
    background: transparent;
    border-radius: 20px;
    transition: all 0.3s ease;
}



.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #60EFFF, #407BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-align: center;
}

.feature-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 800px;
}

.tag {
    background: rgb(0 0 0 / 20%);;
    backdrop-filter: blur(5px);
    padding: 1.2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.tag:hover {
    background:rgb(0 0 0 / 20%);;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-tags-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 800px;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1.5rem;
        margin: 1rem;
    }

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

    .feature-tags,
    .feature-tags-bottom {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tag {
        height: 70px;
        font-size: 0.9rem;
    }
}

.device-preview {
    margin: 3rem 0;
}

.device-preview img {
    max-width: 30%;
    height: auto;
    opacity: 0.5;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.device-preview img:hover {
    transform: scale(1.05);
}

/* Connectivity Section */
.connectivity {
    padding: 5rem 0;
    background: #f8f9fa;
}

.connectivity h2 {
    text-align: center;
    font-size: 2.5rem;
    background: linear-gradient(to bottom, #60EFFF, #407BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.connectivity p {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.connectivity-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.connectivity-item {
    text-align: center;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.connectivity-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    z-index: 1;
    transition: all 0.4s ease;
}

.connectivity-item span {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 1rem;
    transition: all 0.4s ease;
}

.connectivity-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.connectivity-item:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
}

.connectivity-item:hover span {
    transform: scale(1.05);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Add a subtle animation for the background image */
.connectivity-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.connectivity-item:hover::after {
    transform: scale(1.1);
}

/* Remove the old icon styles since we're not using them anymore */
.connectivity-icon {
    display: none;
}

@media (max-width: 1024px) {
    .connectivity-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .connectivity-options {
        grid-template-columns: 1fr;
    }
    
    .connectivity-item {
        height: 180px;
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    background: linear-gradient(to bottom, #60EFFF, #407BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;    margin-bottom: 1rem;
}

.features p {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.features-illustration img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.features-list {
    background: #fff5f5;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #FF6B6B;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.play-icon {
  
    color: #FF6B6B;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Hardware Section */
.hardware {
    position: relative;
    padding: 5rem 0;
    color: white;
    z-index: 1;
    overflow: hidden;
}

.hardware::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://ik.imagekit.io/b3s3mttie3/Temperature-analyzer/abhram-hardware-iot.webp?updatedAt=1750313369765') center center / cover no-repeat fixed;
    opacity: 0.5;
    z-index: -1;
}


.hardware h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hardware p {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hardware-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.hardware-item {
    text-align: center;
    padding: 2rem;
    background: rgb(0 0 0 / 20%);
    backdrop-filter: blur(10px);
        border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.hardware-icon {
    margin-bottom: 1.5rem;
}

.hardware-icon img {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    padding: 10px;
    border: 2px dashed white;
}

.hardware-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #18dd80;
}

.hardware-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}



.cloud-system {
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cloud-system::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://ik.imagekit.io/b3s3mttie3/Temperature-analyzer/cloud-image2.jpg?updatedAt=1750313562970');
    background-position: center;
    background-size: cover;
    opacity: 0.6; /* adjust this value for desired darkness */
    z-index: -1;
}





.container1 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cloud-system h2 {
    text-align: center;
    font-size: 2.5rem;
    background: linear-gradient(to bottom, #60EFFF, #407BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cloud-system p {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #ffffff;
}

/* Mobile and tablet layout - stacked vertically */
.cloud-features {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    min-height: 400px;
}

.cloud-item {
    background: rgb(0 0 0 / 20%);
    backdrop-filter: blur(10px);    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cloud-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: rgba(6, 6, 6, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cloud-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.cloud-icon {
    font-size: 2.5rem;
    color: #60EFFF;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(96, 239, 255, 0.5);
}

.cloud-icon-large {
    font-size: 4rem;
    color: #407BFF;
    transition: all 0.3s ease;
}

.cloud-item:hover .cloud-icon,
.cloud-item:hover .cloud-icon-large {
    transform: scale(1.1);
    color: #60EFFF;
}

.cloud-item span {
    display: block;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.cloud-item:hover span {
    color: #407BFF;
}

.cloud-center {
    text-align: center;
    position: relative;
    z-index: 1;
    order: 2;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    background: transparent;
    border-radius: 50%;
    border: none;
    transition: all 0.3s ease;
    perspective: 1000px;
}

.cloud-image {
    width: 200px !important;
    height: 150px !important;
    border-radius: 25px !important;
    filter: none;
    transition: transform 0.1s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
}

.cloud-center:hover .cloud-image {
    transform: scale(1.05);
}

/* Order items for mobile layout */
.cloud-item:nth-child(1) {
    order: 1;
}

.cloud-item:nth-child(3) {
    order: 1;
}

.cloud-item:nth-child(4) {
    order: 3;
}

.cloud-item:nth-child(5) {
    order: 3;
}

/* Two items per row on top and bottom */
@media (min-width: 480px) and (max-width: 766px) {
    .cloud-features {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
    }

    .top-row,
    .bottom-row {
        display: flex;
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }

    .middle-row {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .cloud-item {
        flex: 1 1 45%;
        max-width: 100%; /* or auto based on design */
        text-align: center;
    }

    .middle-row .cloud-item {
        flex: 0 1 auto;
        max-width: 100%;
    }
}


/* Orbital layout for larger screens */
@media (min-width: 768px) {
    
    .cloud-features {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        width: 600px;
        height: 600px;
        margin: 0 auto;
        background: radial-gradient(circle, rgba(74, 144, 226, 0.05) 0%, transparent 70%);
    }

    .cloud-features::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 400px;
        height: 400px;
        border-radius: 50%;
    }

    .cloud-features::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 320px;
        height: 320px;
        border: 1px dashed rgba(74, 144, 226, 0.15);
        border-radius: 50%;
    }

    .cloud-center {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        padding: 2rem;
        border-radius: 50%;
    }

    .cloud-image {
        width: 445px !important;
        height: 350px !important;
        border-radius: 50% !important;
        z-index: -1;
    }

    /* Position particles around the orbit in static circular formation */
    .cloud-item {
        position: absolute;
        width: 100%;
        padding: 1.2rem;
    }
    .cloud-item:nth-child(1),
    .cloud-item:nth-child(3),
    .cloud-item:nth-child(4),
    .cloud-item:nth-child(5) {
        display: flex;
       gap: 2rem;
        
        text-align: center;
        flex-direction: row;
    }

    .cloud-item:nth-child(1) {
        top: 100px;
        left: 350px;
    }

    .cloud-item:nth-child(3) {
        top: 300px;
        left: 400px;
    }

    .cloud-item:nth-child(4) {
        top: 400px;
        left: 0px;
    }

    .cloud-item:nth-child(5) {
        top: 200px;
        left: -50px;
    }

    .cloud-item:hover {
        transform: translateY(-5px) scale(1.05);
        z-index: 15;
    }

    .cloud-item img {
        width: 50px;
        height: 50px;
        margin: 0 ;
    }

    .cloud-item span {
        font-size: 1rem;
    }

    .cloud-item small {
        font-size: 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
  
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .feature-tags,
    .feature-tags-bottom {
        flex-direction: column;
        align-items: center;
    }
    
    .connectivity-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-content {
        grid-template-columns: 1fr;
    }
    
    .hardware-features {
        grid-template-columns: 1fr;
    }
    
    .cloud-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .cloud-center{
        display: none !important;
    }
    
    /* .cloud-center {
        grid-column: 1;
        order: -1;
    }
    
    .cloud-item.bottom-left,
    .cloud-item.bottom-right {
        grid-column: 1;
        grid-row: auto;
    } */
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .connectivity-options {
        grid-template-columns: 1fr;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .features h2,
    .connectivity h2,
    .hardware h2,
    .cloud-system h2 {
        font-size: 2rem;
    }
}

/* Animation Effects */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-icon img {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.connectivity-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
