@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #F8F5F5;
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color:black;
  min-height: 100vh;
}

/* Animated Background */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color:white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 50px;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: black;
  margin: 4px 0;
  transition: 0.4s;
}

/* Navigation Links */
.all-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.all-links li a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  transition: color 0.3s;
}

.all-links li a:hover {
  color: #ffcc00;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .all-links {
    position: absolute;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color:#717171;
    width: 100%;
    transition: left 0.3s ease-in-out;
    padding: 1rem 0;
  }

  .all-links.active {
    left: 0;
  }
}

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.social-icons {
  text-align: right;
  
}

.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 20px;
  display: inline-block;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #08f328;
}


header a, footer a {
  margin-left: 40px;
  text-decoration: none;
  color: #140202;
  height: 100%;
  padding: 20px 0;
  display: inline-block;
}

header a:hover, footer a:hover {
  color: #08f328;
}
/* Top Heading of Every Component */
.A1 {
    background: rgba(245, 247, 246, 0.2); /* Light transparent background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border: 1px solid rgba(115, 117, 115, 0.3);
   
    box-shadow: 0 4px 6px rgba(0, 100, 0, 0.1);
    
    display: flex;
    align-items: center; /* Vertically center */
    justify-content: flex-start; /* Horizontally left */
    padding: 60px;
    width: 100%;
    box-sizing: border-box;
}

/* Section Title */
.A1 h2 {
    font-size: 3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: black;
    position: relative; /* Required for ::after underline */
    margin: 30px;
    padding: -5px;
    text-align: left;
    display: inline-block; /* Important to fit underline exactly */
}

/* Underline */
.A1 h2::after {
    content: '';
    display: block;
    height: 3px; /* Thickness of underline */
    background-color: rgba(0, 0, 0, 0.7); /* Slightly dark underline */
    width: 100%; /* Exactly the width of text */
    margin-top: -5px; /* Space between text and underline */
}
/* Portfolio Section */
.portfolio {
    padding: 80px;
    background: #f8f9fa;
  }
  
  /* Card Container */
  .cards {
   display: flex;
  flex-direction: column; /* Stack vertically */
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px; /* Optional: control the width of the column */
  }
  
  /* Individual Card */
  .card {
   background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%; /* Full width */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, background 0.5s ease;
  cursor: pointer;
  display: flex;
  align-items: center; /* Align image and text side by side */
  gap: 20px;
  padding: 20px;
  border: 2px solid transparent;
  text-align: left;
  }
  
  /* Card Image */
  .card img {
    width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.5s ease;
  }
  
  /* Card Content */
  .card h3, .card h4 {
  margin: 5px 0;
  padding: 0;
  }
  
  /* Hover Effect */
  .card:hover {
   transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 128, 0, 0.4);
  border: 2px solid green;
  }
  
  /* Also zoom image slightly when hovering */
  .card:hover img {
   transform: scale(1.05);
  }
  
  /* Animate the gradient */
  @keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Responsive Design */
  @media (max-width: 1024px) {
    .card {
      width: calc(50% - 20px); /* 2 cards in a row on tablet */
    }
  }
  
  @media (max-width: 600px) {
    .card {
      width: 100%; /* 1 card in a row on mobile */
    }
  }
  
/*Footer CSS part*/
footer {
    background: #000; /* Black Background */
    color: white; /* White Text */
    padding: 40px 0;
    font-size: 14px;
  }
  
  .footer-top {
    padding-bottom: 30px; /* Fixed padding issue */
    background-color: #000; /* Black */
  }
  
  .footer-top .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .address-section, .contact-section {
    width: 48%;
    padding: 20px;
  }
  
  .address-section {
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-weight:bold;
  
  }
  
  .contact-section {
    text-align: right;
    gap: 5px;
  }
  
  .contact-section h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color:white; /* White Text */
    
  }
  
  .address-section h4{
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color:white; /* White Text */
    
  }
  
  
  
  .contact-section a {
    color: #0bec1e; /* Yellow for visibility */
    text-decoration: none;
  }
  
  .contact-section a:hover, .address-section a:hover {
    text-decoration: underline;
  }
  
  .container-1 {
    background-color: #000; /* Black */
  }
  
  .copyright {
    background: #000; /* Black */
    text-align: center;
    color: white;
    padding: 10px;
    border-top: 1px solid #444;
  }
  
  .credits {
    background: #000; /* Black */
    text-align: center;
    color: white;
    font-size: 13px;
  }
  
  .credits a {
    color: #0bec1e; /* Yellow */
    text-decoration: none;
  }
  
  .credits a:hover {
    text-decoration: underline;
  }
  
  /* Footer section */
  @media (max-width: 768px) {
.A1 h2 {
font-size: 2rem;
letter-spacing: 3px;
}

.slowgen h3 {
font-size: 1.8rem;
}

.card {
  grid-template-columns: 1fr; /* 1 column on smaller screens */
flex-direction: column;
padding: 0 1rem;
}

.card:hover {
   transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 128, 0, 0.4);
  border: 2px solid green;
  }
.card img {
width: 200%;
}
.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%; /* Full width */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease, background 0.5s ease;
  cursor: pointer;
  
  
  border: 2px solid transparent;
  
  }
  
  /* Card Image */
  .card img {
    width: 250px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.5s ease;
  }
  
  /* Card Content */
  .card h3, .card h4 {
  
  padding: 0;
  }
  
  /* Hover Effect */
  .card:hover {
   transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 128, 0, 0.4);
  border: 2px solid green;
  }
  
  /* Also zoom image slightly when hovering */
  .card:hover img {
   transform: scale(1.05);
  }
 
}
