/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-image: url("../img/factory.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    margin: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #1e3a8a;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.hero-button:hover {
    background: #f0f9ff;
}

@media (max-width: 480px) { 
    .hero {
        padding: 2rem 1rem;
        padding-top:5rem ;
    }
    .hero h1{
        font-size: 1.5rem;
    }
    .hero p{
        max-width: 400px;
        font-size: 1rem;
    }
    .hero-button{
        padding: 5px 8px;
        font-size: 13px;
    }
}
/* About-Us Section */
.aboutus-section {
    padding: 2rem 0;
    background: whitesmoke;
    overflow: hidden;
    position: relative;
}

.aboutus-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
}

.aboutus-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: fadeIn 1s ease forwards;
}

.section-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.aboutus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.aboutus-content {
    font-size: 1.1rem;
    color: #555;            
    text-align: justify;
    animation: slideRight 1s ease forwards;

}

.aboutus-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    animation: slideLeft 1s ease forwards;
}

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

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

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.achievement-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .aboutus-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .aboutus-image-wrapper {
        order: -1;
    }

    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .aboutus-section {
        padding: 4rem 0;
    }
}
@media (max-width:480px){
    .section-title{
        font-size: 1.5rem;
    }
    .aboutus-grid{
        gap: 0;
    }
}

/* Blog Section Styles */
.blog {
  padding: 3rem;
  background: white;
  width: 100%;
  box-sizing: border-box;
}
.blog .section-title{
    font-size: 2rem;
}
/* Image Grid Layout */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 0 auto;
}

/* Individual Image Items */
.image-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Image Overlay - Hidden by default */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 1rem;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.image-overlay h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Hover Effects */
.image-item:hover img {
  transform: scale(1.05);
}

.image-item:hover .image-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
/* Responsive Design with Breakpoints */
@media screen and (min-width: 1400px) {
  .image-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 1200px) {
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .blog {
    padding: 3rem 1.5rem;
  }
  
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media screen and (max-width: 600px) {
  .blog {
    padding: 2rem 1rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .image-overlay h3 {
    font-size: 1rem;
  }
}
@media (max-width:480px){
    .blog .section-title{
        font-size: 1.5rem;
    }
    .blog {
        padding: 2rem;
    }
    .image-grid{
        gap: 1.5rem;
    }
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}
