/* ==================== */
/* Base Styles (Desktop) */
/* ==================== */



/* Home Page Styling */
.home-container, .home1-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 150vh; /* Ensures enough height for content */
    padding: 50px;
    
    position: relative;
    overflow: hidden;
    width: 100vw; /* Ensure it does not exceed the viewport width */
    max-width: 100%; /* Prevent horizontal overflow */
    box-sizing: border-box; /* Ensures padding doesn't increase width */
}

.home-container{
    background: linear-gradient(120deg, #1f394d, #1f394d);
}


/* Left Text Section */
.home-text {
    flex: 1;
    max-width: 50%;
    font-size: 1.5rem;
    z-index: 2;
}
.home-text h1 {
    flex: 1;
    max-width: 50%;
    font-size: 4.0rem;
    z-index: 2;
}

/* Right Image Section */
.home-image {
    position: relative;
    display: inline-block;
    text-align: center;
    flex: 1;
}



/* Style for the first image */
.main-content-img {
    width: 100%;
    max-width: 700px;
    border-radius: 20px; /* Rounded corners */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Soft shadow */
}

/* Style for the second image (AWS image) */
.aws-image {
    position: absolute;
    width: 30%; /* Make it smaller */
    height: auto;
    top: 320px;  /* Shift it slightly down */
    right: 40px; /* Move it slightly to the right */
    transform: rotate(-10deg); /* Slight tilt */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}
/* Style for the first image */
.train-content-img {
    width: 90%;
    
    border-radius: 20px; /* Rounded corners */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Soft shadow */
}
/* .home1-container specific override */
.home1-container {
    min-height: auto; /* Allow dynamic expansion */
    background: linear-gradient(120deg, #1e3c72, #0b1019);
}

/* Make the video take full width */
video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    object-fit: cover; /* Ensures it fills the container properly */
    margin-top: 10%;
}

/* Button Styling */
.nav-button {
    background: linear-gradient(135deg, #56454e, #865de4); /* Gradient background */
    color: white;  /* White text */
    padding: 15px 30px;  /* Padding for size */
    font-size: 18px;  /* Larger text size */
    font-weight: bold; /* Bold text */
    text-transform: uppercase; /* Uppercase text */
    border: none;  /* Remove border */
    border-radius: 30px;  /* Fully rounded button */
    cursor: pointer;  /* Pointer cursor */
    transition: all 0.3s ease;  /* Smooth transition */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Prevent stretching */
    box-shadow: 0 4px 10px rgba(255, 117, 140, 0.4); /* Soft shadow */
    letter-spacing: 1px; /* Spacing for better readability */
}

/* Hover Effect */
.nav-button:hover {
    background: linear-gradient(135deg, #e0c1e0, #341966); /* Reverse gradient */
    transform: scale(1.1); /* Slightly increase size */
    box-shadow: 0 6px 15px rgba(255, 117, 140, 0.6); /* Stronger shadow */
}

/* Floating Particle Effect */
@keyframes floating {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* Glowing Background Animation */
@keyframes glowing {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.home-container::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 10%, transparent 70%);
    animation: glowing 10s infinite linear;
}

.iot-icon {
    width: 50px;
    height: 50px;
    animation: pulse 1.5s infinite alternate;
  }

  @keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 1; }
  }

  .iot-glow {
    font-size: 24px;
    color: cyan;
    text-shadow: 0 0 10px cyan, 0 0 20px blue;
    animation: flicker 1.5s infinite alternate;
  }

  @keyframes flicker {
    0% { opacity: 0.7; text-shadow: 0 0 5px cyan, 0 0 10px blue; }
    100% { opacity: 1; text-shadow: 0 0 15px cyan, 0 0 30px blue; }
  }
/* ==================== */
/* Responsive Styles */
/* ==================== */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .header {
        height: 130px;
        padding: 10px 30px;
    }
    .logo-img {
        width: 250px;
        height: 125px;
    }
    .menu ul {
        gap: 15px;
    }
    .home-text {
        max-width: 55%;
        font-size: 1.4rem;
    }
    .home-text h1 {
        font-size: 4.5rem;
        max-width: 55%;
    }
    .home-container, .home1-container {
        padding: 40px;
    }
    .home-image img {
        max-width: 350px;
    }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
    .header {
        height: 100px;
        padding: 10px 20px;
        flex-direction: column;
        justify-content: center;
    }
    .logo-img {
        width: 200px;
        height: 100px;
    }
    .menu {
        margin: 10px 0 0 0;
    }
    .menu ul {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .menu ul li a {
        font-size: 14px;
    }
    .home-container, .home1-container {
        flex-direction: column;
        padding: 20px;
        min-height: auto;
    }
    .home-text {
        max-width: 110%;
        text-align: center;
        
    }
    .home-text h1 {
        font-size: 2rem;
        max-width: 100%;
    }
    .home-text p {
        font-size: 1.2rem;
        max-width: 100%;
    }
    .home-image {
        margin-top: 10px;
    }
    
    .main-content-img {
        width: 100%;
        
        border-radius: 20px; /* Rounded corners */
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Soft shadow */
    }
    .aws-image {
        width: 40%;
        max-width: 50px;
        top: 60%; /* Adjusted for mobile layout */
        right: -10%;
    }
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}


.automation-container {
    text-align: center;
    margin: auto;
    overflow: hidden;
    width: 100vw; /* Full viewport width */
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(120deg, #fafafa, #99cede);
    padding: 20px;
    color: black;
    
}

/* Title Styling */
.automation-container h2 {
    
    font-size: 3em;
    margin-bottom: 10px;
    margin-left: 0px;
}

.automation-container p {
   
    font-size: 1.2em;
    margin: 5px 0;
    margin-left: 5%;
}

ul {
    list-style-type: disc; /* Use bullet points */
    padding-left: 20px; /* Adjust indentation */
}

li {
    margin-bottom: 8px; /* Add spacing between bullet points */
    font-size: 1.2em;
    margin: 5px 0;

}

.grid-container {
    
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 90%;
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.service {
    background: #131e27;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    min-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    
    /* Fade-in Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
    text-decoration: none;  /* Remove underline */
    display: block;  /* Make entire block clickable */
    cursor: pointer;  /* Show pointer on hover */
}
/* Ensure links behave like divs */
.service a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}
/* Individual Card Animation Delay */
.service:nth-child(1) { animation-delay: 0.1s; }
.service:nth-child(2) { animation-delay: 0.2s; }
.service:nth-child(3) { animation-delay: 0.3s; }
.service:nth-child(4) { animation-delay: 0.4s; }
.service:nth-child(5) { animation-delay: 0.5s; }
.service:nth-child(6) { animation-delay: 0.6s; }
.service:nth-child(7) { animation-delay: 0.7s; }
.service:nth-child(8) { animation-delay: 0.8s; }

/* Hover Effect - Scale and Glow */
.service:hover {
    transform: scale(1.05);
    background: #b3c8df;
    color: white;
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.4);
}

.service {
    transition: background 0.3s ease, transform 0.3s ease;
}

.service:hover {
    transform: scale(1.05);
    filter: brightness(1.2); /* Lightens the color on hover */
}
.service h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #060606;
}

.service p {
    font-size: 1em;
    color: #333;
}

/* Icon Styling */
.service .icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 30px; /* Adjust icon size */
    color: rgba(0, 0, 0, 0.7); /* Slightly darker icon for visibility */
}
.service li {
    text-align: left;  /* Ensure list items are aligned to the left */
    list-style-position: inside; /* Make bullet points visible inside the container */
    margin-left: 0; /* Remove any left margin */
    padding-left: 0; /* Remove any padding */
    color: #060606;
    font-size: 1em;
}
#dynamic-last-word {
    color: #FF6347; /* Change this to any color */
    display: flexbox;
    overflow: hidden;
    white-space: wrap;
    
    width: 0; /* Start with width 0 */
    animation: typing 4s steps(30) 1s forwards, blink 0.75s step-end infinite; /* Adjust steps based on the text length */
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}



/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
