* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, sans-serif;
}

:root {
    --bg-color: #000;
    -XD  : #111;
    --text-color: #fff;
    --main-color: #33b8ed;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Header (Navbar) Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 8%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
}

.logo {
  font-size: 4.2rem;
  color: var(--main-color);
  font-weight: 800;
  font-family: var(--second-font);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: 0.3s ease;
}

.logo:hover {
  text-shadow: 0 0 10px var(--main-color), 0 0 20px var(--main-color);
}

.navbar {
  display: flex;
  gap: 30px;
  align-items: center;
  transition: 0.3s ease;
}

.navbar a {
  font-size: 2rem;
  color: #fff;
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--main-color);
  transition: 0.4s ease;
}

.navbar a:hover {
  color: var(--main-color);
}

.navbar a:hover::after {
  width: 100%;
}

.top-btn .nav-btn {
  padding: 10px 22px;
  background: var(--main-color);
  color: #000;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.3s ease;
}

.top-btn .nav-btn:hover {
  background: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 10px var(--main-color);
}

/* Hamburger Menu Icon */
#menu-icon {
  font-size: 1.8rem;
  color: var(--main-color);
  display: none;
  cursor: pointer;
}

@media (max-width: 991px) {
  header {
    padding: 15px 5%;
  }

  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: -100%; /* hidden by default */
    width: 100%;
    background: var(--bg-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease;
  }

  .navbar.active {
    left: 0; /* shown when active */
  }
}


/* Home Section */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000; /* fallback for older browsers */
  color: white;
  text-align: center;
  padding: 5rem 2rem;
}


.home-content h3{
    font-size: 2.5rem;
    font-weight: 500;
}
.home-content span{
    font-size: 4rem;
    font-weight: 550;
}
span{
    color: var(--main-color);
}
.home-content h1{
  margin-bottom: 2rem;
    font-size: 5.7rem;
    font-weight: 700;
    line-height: 1.3;
}
.home-content p{
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}
.home-img img{
    width: 35vw;
    height:85vh;
}

.home-content p{
    font-size: 1.6rem;
    margin-bottom: 2rem;
    margin-top: 2rem;

}
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 1rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.5s ease;
}
.btn:hover{
    color: var(--text-color);
    box-shadow: 0 0 1.6rem var(--main-color);
}

/* Services Section */
.services {
  padding: 50px 8%;
  background:var(--snd-bgcolor);
  text-align: center;
}

.heading {
    text-align: center;
    font-size: 6.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.services .heading span {
  color:var(--main-color);
}

.services-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  justify-items: center;
  margin-top: 30px;
}

.service-card {
  background:var(--bg-color);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: center;
  width: 100%;
  max-width: 280px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.service-card h4 {
  font-size: 20px;
  margin-top: 15px;
  color: #fff;
}

/* Popup Styling */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.popup-content h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--main-color);
}

.popup-content p {
  font-size: 16px;
  color: black;
  font-weight: 700;
}

.close-popup {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-popup:hover {
  color: #f15a24;
}

/* About Section Code */

.about {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    padding: 8rem 8%;
    background-color: var(--bg-color);
}

.about-img {
    flex: 1 1 45%;
    display: flex;
    justify-content: flex-start;
}

.about-img img {
    width: 100%;
    max-width: 500px;
    
}

.about-img img:hover {
    border-color: var(--main-color);
    transform: scale(1.04);
}

.about-content {
    flex: 1 1 50%;
    padding: 0 2rem;
    color: var(--text-color);
}

.about-content .heading {
    font-size: 5.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.8rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: #ccc;
}

.about-content ul {
    margin-bottom: 3rem;
    padding-left: 1.5rem;
}

.about-content ul li {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}


.about-content .btn {
    background: var(--main-color);
    color: var(--bg-color);
    font-size: 1.6rem;
    padding: 1rem 2.8rem;
    border-radius: 1rem;
    transition: 0.3s ease;
    font-weight: 600;
    display: inline-block;
}

.about-content .btn:hover {
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
}

.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  background: var(--snd-bgcolor);
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer .footer-column h2 {
  margin-bottom: 10px;
  color: var(--text-color);
}

.footer .owner {
  font-size: 2rem;
}

.footer .developer {
  font-size: 1.5rem;
}

.footer .social {
  padding-bottom: 20px;
}

.footer .social a {
  font-size: 25px;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: 0.5s ease-in-out;
}

.footer .social.small-icons a {
  font-size: 20px;
  width: 32px;
  height: 32px;
  line-height: 32px;
}

.footer .social a:hover {
  transform: scale(1.2) translateY(-10px);
  background: var(--main-color);
  color: #131313;
  box-shadow: 0 0 25px var(--main-color);
}

.footer .copyright {
  margin-top: 20px;
  font-size: 16px;
  color: var(--text-color);
}


/* clientele.css */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0c0c0c;
  color: #fff;
}

.clientele {
  padding: 5rem 2rem;
  text-align: center;
}

.intro-text {
  font-size: 1.5rem;
  margin-bottom: 4rem;
  color: #aaa;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.client-card {
  background-color: #1c1c1c;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 200px;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.6);
}

.client-card img {
  width: 100px;
  height: `100px;
  margin-bottom: 1rem;
}

.client-card h4 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
  text-align: center;
}

/* Responsive Design for Mobile Devices */

@media (max-width: 768px) {
  html {
    font-size: 69.5%; /* slightly reduced base size */
  }

  header {
    padding: 12px 5%;
  }

  .logo {
    font-size: 4rem;
  }

  .navbar {
    gap: 20px;
    padding: 15px;
  }

  .navbar a {
    font-size: 1.6rem;
  }

  #menu-icon {
    font-size: 2.2rem;
  }

  .home {
    flex-direction: column;
    padding: 3rem 1rem;
  }

  .home-content h1 {
    font-size: 3.5rem;
  }

  .home-content h3 {
    font-size: 2rem;
  }

  .home-content span {
    font-size: 3rem;
  }

  .home-content p {
    font-size: 2rem;
  }

  .home-img img {
    width: 80%;
    height: auto;
    margin-top: 2rem;
  }

  .btn {
    font-size: 1.4rem;
    padding: 0.8rem 2rem;
  }

  .heading {
    font-size: 4.5rem;
  }

  .services-content {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.2rem;
  }

  .service-card h4 {
    font-size: 1.6rem;
  }

  .popup-content h3 {
    font-size: 2rem;
  }

  .popup-content p {
    font-size: 1.4rem;
  }

  .about {
    padding: 4rem 5%;
    flex-direction: column;
    gap: 2rem;
  }

  .about-img img {
    max-width: 90%;
  }

  .about-content .heading {
    font-size: 3.8rem;
  }

  .about-content p,
  .about-content ul li {
    font-size: 1.4rem;
  }

  .about-content .btn {
    font-size: 1.4rem;
    padding: 0.8rem 2rem;
  }

  

  .intro-text {
    font-size: 1.3rem;
  }


  .client-card h4 {
    font-size: 1.3rem;
  }

  .footer .owner {
    font-size: 1.6rem;
  }

  .footer .developer {
    font-size: 1.3rem;
  }

  .footer .social a {
    font-size: 20px;
    width: 36px;
    height: 36px;
    line-height: 36px;
  }

  .footer .social.small-icons a {
    font-size: 16px;
    width: 28px;
    height: 28px;
    line-height: 28px;
  }

  .footer .copyright {
    font-size: 1.3rem;
  }
}

/* View More button styles */
.btn.view-more-services,
.btn.view-more-clients {
  background: var(--main-color);
  color: var(--bg-color);
  font-size: 1.2rem;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* Show only first 4 by default with JS */
.service-card, .client-card { display: none; }
.service-card:nth-child(-n+4) { display: block; }
.client-card:nth-child(-n+4) { display: flex; }
.btn.toggle-services, .btn.toggle-clients { display: block; margin: 12px auto 0 auto; }


.view-more-clients {
  display: none;
  margin: 12px auto 0 auto;
}

/* Small devices: Phones (portrait, less than 576px) */
@media (max-width: 575.98px) {
  html { font-size: 70%; }
  /* ... your other styles ... */

  /* Services section: force 2 columns, but we only show first 4 cards */
  .services-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .service-card {
    display: none;
  }
  .service-card:nth-child(-n+4) {
    display: block; /* Only show first 4 */
  }
  .view-more-services {
    display: block;
    margin: 12px auto 0 auto;
  }

  /* Clients section: similar */
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .client-card {
    display: none;
  }
  .client-card:nth-child(-n+4) {
    display: flex;
  }
  .view-more-clients {
    display: block;
    margin: 12px auto 0 auto;
  }
}


/* Medium devices: Phones (landscape) and small tablets (576px - 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  html {
    font-size: 70.5%;
    font-weight: 90%;
  }

  .logo {
    font-size: 3rem;
    font-weight: 80%;
  }

  .home-content h1 {
    font-size: 3.5rem;
    font-weight: 85%;
  }

  .home-content h3,
  .home-content span {
    font-size: 2.2rem;
  }

  .home-content p {
    font-size: 1.3rem;
  }

  .btn {
    font-size: 1.3rem;
  }

  .heading {
    font-size: 4rem;
  }

  
}

/* Large tablets (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  html {
    font-size: 60%;
    font-weight: 80%;
  }

  .logo {
    font-size: 3.2rem;
    font-weight: 80%;
  }

  .navbar a {
    font-size: 1.7rem;
  }

  .home-content h1 {
    font-size: 4rem;
  }

  .home-content span {
    font-size: 2.5rem;
  }

  .btn {
    font-size: 1.4rem;
  }

  .heading {
    font-size: 4.5rem;
  }
}

/* Laptops (992px - 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  html {
    font-size: 58%;
  }

  .logo {
    font-size: 3.5rem;
  }

  .navbar a {
    font-size: 1.8rem;
  }

  .home-content h1 {
    font-size: 4.5rem;
  }

  .btn {
    font-size: 1.5rem;
  }

  .heading {
    font-size: 5rem;
  }
}

/* Large desktops (1200px and above) */
@media (min-width: 1200px) {
  html {
    font-size: 62.5%; /* 1rem = 10px */
  }

  .logo {
    font-size: 4rem;
  }

  .navbar a {
    font-size: 2rem;
  }

  .home-content h1 {
    font-size: 5rem;
  }

  .home-content span {
    font-size: 3rem;
  }

  .btn {
    font-size: 1.6rem;
  }

  .heading {
    font-size: 5.5rem;
  }
}
