:root {
  --primary-dark:  #A8FBD3;
  --primary-mid: #4FB7B3;
  --accent-pink: #637AB9;
  --accent-light:  #31326F;
  --card: rgba(255, 255, 255, 0.85);
  --glass: rgba(255, 255, 255, 0.08);
  --text: #0b0b6b;
  --muted: #0a0630;
  --radius: 16px;
  --glass-blur:20px;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0;
  scrollbar-width: 16x;
  scrollbar-color: var(--accent-pink) var(--primary-mid);
  cursor: pointer;
}

html, body { 
  height: 100%; 
}

body {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid), var(--accent-pink), var(--accent-light));
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

small, .muted { 
  color: var(--muted); 
}

.muted {
  font-size: 1.5rem;
  text-align: right;
  direction: rtl;
  line-height: 1.9;
  max-width: 100%;
  margin-top: 12px;
  margin-bottom: 12px;
}


.muted span{
  font-size: 1.8rem;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 24px;
}

.cta-row .btn-primary {
  background-color: var(--muted);
  padding: 15px;
  color: #ffffff;
  text-shadow: #0a063056;
  font-size: 30px;
  border-radius: 18px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.cta-row .btn-primary:hover{
   transform: scale(1.0903);
  transition: 0.5s;
}

.cta-row .btn-ghost{
  background-color:#7a7a7ada;
  padding: 15px;
  color: #ffffff;
  font-size: 30px;
  text-shadow: #0a063056;
  border-radius: 18px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;

}
.cta-row .btn-ghost:hover{
  background-color:#5f5f5f8a;
  transform: scale(1.0903);
  transition: 0.5s;
}




/* ===== Navbar ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 6px;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  direction: rtl;
  padding: 10px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--accent-light);
}

.brand .title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: var(--primary-dark);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: color 0.3s, background 0.3s, border-bottom 0.3s;
  cursor: pointer;
  position: relative;
}

.nav-links a:hover {
  background: var(--glass);
}

.nav-links a.active-nav {
  border-bottom: 3px solid var(--primary-mid);
  color: var(--primary-dark);
}

/* ===== Sections ===== */
section {
  min-height: 100vh;
  padding: 120px 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

section h2 {
  font-size: 2.9rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--accent-light);
}

section p {
  max-width: 1000px;
  font-size: 1.3rem;
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 35px;
  align-items: center;
  margin-top: 100px;
}

.hero-card {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.hero h1 { 
  font-size: 2.5rem; 
  margin-bottom: 16px; 
}

.hero p.lead { 
  color: var(--muted); 
  margin-bottom: 16px; 
}

.cta-row { 
  display: flex; 
  gap: 16px; 
  margin-top: 20px; 
}

.profile-card {
  background: linear-gradient(180deg, var(--accent-pink), var(--accent-light));
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  height: 800px;
}

.avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--primary-dark);
}

.avatar img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.role {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.tag {
  background: var(--glass);
  padding: 12px;
  border-radius: 999px;
  font-weight: 600;
  color:#ffffff;
}

/* ===== Services ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.service:hover { 
  transform: translateY(-6px); 
}

/* ===== Articles ===== */
#articles {
  width: 100%;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.section-title {
  background: var(--card);
  border-radius: var(--radius);
  padding: 15px 25px;
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--accent-light);
  margin-bottom: 30px;
  text-align: center;
  direction: rtl;
}

.accordion-item {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 50%;
  overflow: hidden;
  transition: transform 0.3s ease;
  direction: rtl;
  text-align: right;
}

.accordion-item:hover {
  transform: translateY(-6px);
}

.accordion-button {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-light));
  color: #fff;
  padding: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  text-align: right;
  width: 100%;
  position: relative;
  transition: background 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-button:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-pink));
}

.accordion-button::after {
  content: '+ ';
  font-size: 24px;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-button::after {
  content: '-';
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.5s ease, padding 0.5s ease;
  background: var(--glass);
}

.accordion-item.active .accordion-content {
  max-height: 10000px;
  padding: 15px;
}

.accordion-content p {
  margin: 10px 0;
  line-height: 1.7;
  font-size: 1.3rem;
  color: var(--text);
}

.contact-info strong {
  color: #ffc916;
}

/* ===== WhatsApp Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  z-index: 1000;
}

.whatsapp-float .fa-whatsapp {
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.whatsapp-float .fa-whatsapp:hover {
  transform: scale(1.1);
}

.whatsapp-float span {
  font-size: 1.2rem;
  color: #ffffff;
  font-style: italic;
  white-space: nowrap;
}

/* ===== Responsive ===== */
@media screen and (max-width: 480px) {
  .whatsapp-float {
    gap: 6px;
  }

  .whatsapp-float .fa-whatsapp {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .whatsapp-float span {
    font-size: 1rem;
    color: #ffffff;
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  .whatsapp-float i {
    font-size: 20px;
  }
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-whatsapp i {
  font-size: 20px;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn-whatsapp:active {
  transform: scale(0.95);
}

/* ===== Contact ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text);
  max-width: 600px;
  font-size: 1.7rem;
  background-color: #00000050;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  line-height: 1.8;
  color: #ffffff;
}

.contact-info p {
  margin-bottom: 12px;
  font-size: 1.4rem;
  color: #ffffff;
}

form {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
}

input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 16px;
  background: var(--glass);
  color: var(--text);
}

textarea { 
  min-height: 160px; 
}

/* ===== Footer ===== */
footer {
  padding: 24px;
  text-align: center;
  background: rgba(0,0,0,0.6);
  color: #ffffff;
  font-size: 1.005rem;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  backdrop-filter: blur(var(--glass-blur));
  width: 100%;
}

footer a { 
  color: var(--accent-light); 
  text-decoration: none; 
  font-weight: 600; 
}

footer a:hover { 
  text-decoration: underline; 
}

/* ===== Buttons ===== */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}

.btn-primary {
  background: var(--accent-light);
  color: var(--primary-dark);
}

.btn-primary:hover { 
  background: var(--accent-pink); 
  color: #fff; 
}

.btn {
  background: var(--muted);
  color:rgb(255, 255, 255);
}

#articles p {
  opacity: 1 !important;     
  display: block !important; 
  height: auto !important;   
}

/* ===== Responsive Media Queries ===== */
@media (max-width: 767px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 60px;
  }

  .profile-card {
    height: auto;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  nav {
    flex-direction: column;
    padding: 10px;
    height: auto;
  }

  .brand {
    gap: 10px;
    margin-bottom: 10px;
    height: 50px;
  }

  .muted {
    font-size: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  section {
    padding: 100px 20px 40px;
  }

  section h2 {
    font-size: 2.2rem;
  }

  section p {
    font-size: 1.1rem;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .avatar {
    width: 200px;
    height: 200px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

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

  .avatar {
    width: 250px;
    height: 250px;
  }

  section h2 {
    font-size: 2.5rem;
  }

  section p {
    font-size: 1.2rem;
  }

  nav {
    flex-direction: column;
    padding: 10px;
    height: auto;
  }

  .brand {
    gap: 10px;
    margin-bottom: 10px;
    height: 50px;
  }

  .muted {
    font-size: 1.2rem;
  }
}

@media (min-width: 1025px) {
  .hero {
    grid-template-columns: 1fr 420px;
  }

  .cert-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 15px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: var(--primary-mid);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
      180deg,
      var(--primary-dark),
      var(--accent-pink),
      var(--accent-light)
  );
  border-radius: 10px;
  border: 2px solid var(--primary-mid);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
      45deg,
      var(--accent-pink),
      var(--accent-light),
      var(--primary-dark)
  );
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
      45deg,
      var(--primary-dark),
      var(--accent-pink),
      var(--accent-light)
  );
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1000;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    right: 15px;
    flex-direction: column;
    gap: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(var(--glass-blur));
    padding: 15px;
    border-radius: 12px;
    z-index: 999;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.show {
    display: flex;
  }
}
