/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
@font-face {
    font-family: "Nastaleeq";
    src: url("/fonts/Nastaleeq.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}



/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  --first-color: #27ae60;
  --first-color-dark: #219653;        
  --first-color-light: #2ecc71;      

  --second-color: #0e1e2f;           

  /*===== Fuente y tipografia =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}

/*===== BASE =====*/
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
}

h1, h2, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}
.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: var(--second-color);
    transition: 0.5s;
  }
}

.nav__item {
  margin-bottom: var(--mb-4);
}
.nav__link {
  position: relative;
  color: #fff;
}
.nav__link:hover {
  position: relative;
}
.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}
.nav__logo {
  color: var(--second-color);
}
.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/*=== Show menu ===*/
.show {
  right: 0;
}
/* HOME SECTION */
.home__container {
  display: flex;
  flex-direction: column; /* Stacked by default for mobile */
  row-gap: 2rem;
  align-items: center;
  text-align: center;
}

.home__title-color {
  font-size: 4.5rem;
  font-weight: bold;
  line-height: 1.1;
  color: var(--first-color);
}

.home__subtitle {
  font-size: 2.2rem;
  font-style: italic;
  opacity: 0.95;
}

.home__description {
  font-size: 1.3rem;
  margin: 1.5rem 0;
  max-width: 500px;
}

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

.home__blob {
  width: 300px; /* Mobile size */
  fill: var(--first-color);
}

/* Responsive Desktop Layout */
@media screen and (min-width: 768px) {
  .home__container {
    flex-direction: row; /* Side-by-side on desktop */
    justify-content: space-between;
    text-align: left;
    column-gap: 4rem;
    padding-top: 4rem;
  }

  .home__data {
    flex: 1;
  }

  .home__img {
    flex: 1;
    justify-content: flex-end; /* Push logo to the right */
  }

  .home__blob {
    width: 450px; /* Desktop size */
  }
}

/* Tablet / small desktop */
@media screen and (min-width: 768px) {
  .home {
    padding: 10rem 0 6rem;
  }
  .home__blob {
    max-width: 460px;
  }
}

/* Large desktop */
@media screen and (min-width: 992px) {
  .home__blob {
    max-width: 520px;           /* feel free to increase */
  }
}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  transition: 0.3s;
}
.button:hover {
  background-color: var(--first-color-dark);
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.15);
}

.support__container {
  row-gap: 2rem;
  text-align: center;
}
.support__subtitle {
  margin-bottom: var(--mb-2);
}
.support__img {
  justify-self: center;
}
.support__img img {
  width: 200px;
  border-radius: 0.5rem;
}

.features__container {

  row-gap: 2rem;

  text-align: center;

}

.features__subtitle {

  margin-bottom: var(--mb-2);
  text-align: center;                        /* ← this makes wrapped lines also right-aligned */

}

.features__text {

  margin-bottom: var(--mb-4);

}

.features__data {

  display: flex;

  justify-content: space-between;

  align-items: center;

  position: relative;

  font-weight: var(--font-semi);

  padding: 0.5rem 1rem;

  margin-bottom: var(--mb-4);

  border-radius: 0.5rem;

  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);

}

.features__icon {

  font-size: 2rem;

  margin-right: var(--mb-2);

  color: var(--first-color);

}

.features__names {

  display: flex;

  align-items: center;

}

.features__bar {

  position: absolute;

  left: 0;

  bottom: 0;

  background-color: var(--first-color);

  height: 0.25rem;

  border-radius: 0.5rem;

  z-index: var(--z-back);

}

.features__html {

  width: 95%;

}

.features__css {

  width: 85%;

}

.features__js {

  width: 65%;

}

.features__ux {

  width: 85%;

}
.features__img {
    width: 65%; /* Shrinks the image further inside its container */
    justify-self: center; /* Centers the smaller image */
    border-radius: 1.5rem;
}
/* For Mobile: Make them stack on top of each other */
@media screen and (max-width: 768px) {
    .features__container {
        grid-template-columns: 1fr;
    }
    
    .features__img {
        width: 95%; /* Keeps it small on mobile too */
        margin-top: 2rem;
    }
}
/* ===== WORK =====*/
.work__container {
  row-gap: 2rem;
}
.work__img {
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
}
.work__img img {
  transition: 1s;
}
.work__img img:hover {
  transform: scale(1.1);
}

/* ===== CONTACT =====*/
.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--second-color);
  outline: none;
}
.contact__input:focus {
  border-color: var(--first-color);
}
.contact__button {
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
  background-color: var(--first-color);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
}
.contact__button:hover {
  background-color: var(--first-color-dark);
}

/* ===== FOOTER =====*/
.footer {
background-color: #000;
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
}
.footer__title {
  font-size: 2rem;
}
.footer__copy {
  font-size: var(--smaller-font-size);
}

/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
  }
  .home__img {
    width: 200px;
  }
}
@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }
  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }
  .home__img {
    width: 300px;
    bottom: 25%;
  }
  .support__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .features__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }
  .contact__form {
    width: 360px;
  }
  .contact__container {
    justify-items: center;
  }
}
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
  }
  .section-title::after {
  display: none;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
    padding-top: 0;
  }
  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .nav__link {
    color: var(--second-color);
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 400px;
    bottom: 10%;
  }
  .support__container {
    padding-top: 2rem;
  }
  .support__img img {
    width: 300px;
  }
  .features__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}
@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home__img {
    width: 450px;
  }
}
/* 1. Define the local font */
@font-face {
    font-family: 'MyNastaleeq';
    src: url('fonts/Nastaleeq.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.quran__card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 2.5rem;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    color: #000;
    background-color: #d6e0d6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
@media screen and (max-width: 768px) {
    .section-title::after,
    .features__bar{
        display: none !important;
    }
}
.quran__card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1609665662783-ac637fd38733?q=80&w=687&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
}

.quran__icon, .quran__content {
    position: relative;
    z-index: 1;
}

/* Icon on the left */
.quran__icon {
    flex: 0 0 150px; /* Bigger icon area */
    margin-right: 2rem;
}

.quran__icon img {
    width: 100%;
    height: auto;
}

/* Content on the right */
.quran__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quran__title {
    font-size: 2.5rem; /* Biggest */
    font-weight: 800;
        text-align: center; /* Moves text to the right side */
    margin-bottom: 0.5rem;
}
.urdu-translator {
    font-family: "Nastaleeq" !important;
    direction: rtl;
    text-align: center;
    font-size: 1.8rem;      /* 👈 increase */
    line-height: 1.6;       /* 👈 VERY IMPORTANT for Nastaleeq */
}


@media screen and (max-width: 768px) {
    .quran__card {
        flex-direction: column; /* Stacks icon on top of text */
        text-align: center;     /* Centers all text */
        padding: 1.5rem;
    }

    .quran__icon {
        margin-right: 0;       /* Removes the side margin */
        margin-bottom: 1.5rem; /* Adds space below the image */
        flex: 0 0 120px;       /* Sets a fixed size for the icon */
    }

    .quran__button {
        align-self: center;    /* Centers the button on mobile */
    }
    
    .quran__title {
        font-size: 1.8rem;     /* Slightly smaller title for mobile screens */
    }
}
.nav__logo {
    font-size: 1.5rem; /* Adjust this value as needed */
    font-weight: bold; /* Optional: makes it stand out more */
}
.quran__button {
        align-self: center;    /* Centers the button on mobile */
    padding: 0.7rem 2rem;
    background-color: #1e8449;
    color: #fff;
   margin-top: 20px;
    border-radius: .5rem;
    font-weight: bold;
}

.whatsapp-contact {
    text-align: center;
    padding: 3rem 1rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    background: #25D366;                /* WhatsApp green */
    color: white;
    padding: 1rem 2rem;
    border-radius: 3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
}

.whatsapp-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.35);
    background: #20b358;
}

.whatsapp-icon {
    font-size: 3.5rem;                  /* big icon */
    color: white;
}

.whatsapp-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.whatsapp-name {
    font-size: 1.4rem;
    font-weight: 600;
}

.whatsapp-number {
    font-size: 1.1rem;
    opacity: 0.95;
}

.whatsapp-message {
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--second-color);
    opacity: 0.8;
}

/* Mobile adjustments */
@media screen and (max-width: 576px) {
    .whatsapp-link {
        padding: 0.9rem 1.8rem;
        flex-direction: column;
        gap: 0.8rem;
        border-radius: 1.5rem;
    }
    
    .whatsapp-icon {
        font-size: 3rem;
    }
    
    .whatsapp-info {
        align-items: center;
    }
}
/* Download Button Style */
.download-btn {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid var(--first-color);
    margin: 1rem 0;
    font-weight: 600;
    padding: 0.9rem 2.2rem;
    border-radius: 3rem;
    transition: all 0.3s;
}

.download-btn:hover {
    background-color: var(--first-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.25);
}

.download-btn i {
    font-size: 1.5rem;
    margin-right: 0.6rem;
}

/* Home buttons container */
.home__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

/* Features download */
.features-download {
    text-align: center;
    margin-top: 3rem;
}

/* Footer download link */
.footer__download {
    margin: 1.5rem 0;
}

.footer-download-link {
    color: var(--first-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-download-link:hover {
    color: var(--first-color-dark);
    text-decoration: underline;
}
:root {
    --body-font: "Poppins", sans-serif;
}

.location {
    padding: 4rem 1rem;
    text-align: center;
    font-weight: bold;
    font-family: var(--body-font);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
}

.location__wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.location__content h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.location__content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.location__btn {
    display: inline-block;
    padding: 12px 25px;
    background: #27ae60;   /* your color only on button */
    color: #fff;
    font-weight: 500;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s ease;
}

.location__btn:hover {
    background: #1a7f43;
}

.location__map {
    margin-top: 2rem;
}

.location__map iframe {
    width: 100%;
    height: 250px;   /* smaller height */
    border: 0;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
/* Base styles */
.img-rounded {
    padding: 25px; 
    background-color: #ffffff; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    
    /* Force the container to take up the full available slide area */
    width: 100%;
    height: 100%;
}

.img-rounded img {
    border-radius: 25px;
    display: block;
    
    /* This makes the image fit inside the screen perfectly */
    max-width: 100%;
    max-height: 80vh; /* Limits height to 80% of the screen */
    object-fit: contain; 
}

/* Specific fix for screens around 720px (Tablets/Small Laptops) */
@media (max-width: 720px) {
    .img-rounded {
        padding: 15px; /* Reduce padding so image has more room */
    }
    
    .img-rounded img {
        max-height: 70vh; /* Adjust height to fit mobile/small LCDs better */
        border-radius: 15px; /* Slightly smaller radius for smaller screens */
    }
}

/* Floating Action Button */
.support-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #000000, #000000);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 999;
  text-decoration: none;
}

/* Image inside button */
/* Image inside button */
.support-fab img {
  width: 32px;
  height: 32px;
  object-fit: contain; /* ensures image fits inside without distortion */
  display: block;      /* removes extra inline spacing */
}

/* Hover effect */
.support-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

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