/* ----------------------------------------------------------------------------
   Adel Portfolio — Black × Gold (original fancy version)
   - Separate file
   - Dark + Light mode ready
   - Smooth, subtle animations
---------------------------------------------------------------------------- */

:root {
  --gold: #d4af37;
  --bg-dark: #0b0b0b;
  --section-dark: #141414;
  --text-light: #f1f1f1;
  --text-muted: #d0d0d0;
  --light-bg: #ffffff;
  --light-section: #f7f7f7;
  --transition: 0.35s ease;
}

/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  background: rgba(10, 10, 10, 0.94);
  padding: 0.6rem 1rem;
  backdrop-filter: blur(6px);
}
.brand-name {
  font-weight: 700;
}
.brand-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Buttons */
.btn-gold {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 0.6rem 1.05rem;
  transition: all 0.33s ease;
}
.btn-gold:hover {
  background: #c9a234;
  transform: translateY(-3px);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  transition: all 0.33s ease;
  text-align: center;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: #000;
  transform: none;
  transition: all 0.33s ease;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, #0b0b0b, #151515 60%, #1c1c1c);
  padding-top: 5rem;
  font-family: "Poppins", sans-serif;
}
.hero-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.6rem;
  color: var(--gold);
  margin: 0;
}
.hero-subtitle {
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.hero-desc {
  color: var(--text-muted);
  max-width: 680px;
  margin: 1rem auto 1.4rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}
.section-heading {
  font-family: "Poppins", serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* About */
.about {
  background: linear-gradient(180deg, var(--section-dark), #161616);
}
.profile-img {
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  max-width: 340px;
}
.about-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Skills */
.skills {
  background: #0f0f0f;
  padding: 7.9rem;
}
.skill {
  transition: transform var(--transition);
  padding: 10px;
}
.skill:hover {
  transform: translateY(-8px);
}
.skill-icon {
  font-size: 2rem;
  color: var(--gold);
  display: block;
}

/* Projects */
.projects {
  background: linear-gradient(180deg, #0b0b0b, #131313);
}
.project-card {
  background: var(--section-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  transition: all var(--transition);
  border: 2px solid #524620;
}
.project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.35s;
}
.project-card:hover {
  transform: translateY(-6px);
}
.project-card:hover img {
  transform: scale(1.05);
  opacity: 1;
}
.project-body {
  padding: 1rem;
}
.project-title {
  color: var(--gold);
  margin: 0;
}
.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

/* Certificates */
.certificates {
  background: #0d0d0d;
}
.cert-card {
  background: #161616;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  transition: all var(--transition);
  border: 2px solid #524620;
}
/* shine effect */
.cert-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -80%;
  width: 250%;
  height: 250%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(212, 175, 55, 0.18) 50%,
    transparent 60%
  );
  transform: rotate(22deg);
  opacity: 0;
  transition: all 0.7s ease;
  z-index: 2;
}
.cert-card:hover::before {
  opacity: 1;
  top: 110%;
  left: 110%;
}
.cert-card img {
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}
.cert-info {
  padding: 1rem;
  color: var(--text-muted);
}
.cert-info h5 {
  color: var(--gold);
  margin: 0 0 0.25rem;
}

/* Contact */
.contact {
  background: linear-gradient(180deg, #141414, #0f0f0f);
}
.contact .section-heading {
  text-align: center;
}
.form-control {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: var(--text-light);
  border-radius: 8px;
}
.form-control:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
}

/* Footer */
.footer {
  background: #070707;
  color: var(--text-muted);
  padding: 1rem 0;
}

/* Light mode */
body.light-mode {
  background: var(--light-bg);
  color: var(--text-dark);
}
body.light-mode .navbar {
  background: #fff;
}
body.light-mode .brand-mark {
  background: #fff;
  color: var(--gold);
}
body.light-mode .hero {
  background: linear-gradient(145deg, #fff, #f6f6f6);
}
body.light-mode .hero .hero-subtitle,
body.light-mode .hero .hero-desc {
  color: var(--bg-dark);
}
body.light-mode .about .about-intro {
  color: var(--bg-dark);
}
body.light-mode .skills .skill-name {
  color: var(--text-light);
}
body.light-mode .about,
body.light-mode .projects,
body.light-mode .certificates,
body.light-mode .contact {
  background: var(--light-section);
}
body.light-mode .profile-img {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
body.light-mode .project-card,
body.light-mode .cert-card {
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
body.light-mode .project-desc,
body.light-mode .cert-info {
  color: var(--muted-light);
}
/* Dark mode */
.navbar .brand-name,
.navbar .nav-link {
  color: var(--gold);
}
.certificates .section-heading,
.projects .section-heading {
  text-align: center;
}

/* ==========================================================
   Smooth Theme Transition
========================================================== */

* {
  transition: background-color 0.4s ease, color 0.4s ease,
    border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Optional – make images fade softly when mode changes */
img,
.project-card,
.cert-card,
.profile-img {
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease,
    background-color 0.4s ease;
}
/* ==========================================================
   🌙 Theme Toggle Button Animation
========================================================== */

#themeToggle {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#themeToggle:hover {
  background-color: rgba(212, 175, 55, 0.1);
  transform: rotate(8deg);
}

#themeIcon {
  font-size: 1.2rem;
  transition: transform 0.5s ease;
}

/* Animation when toggled */
#themeIcon.rotate {
  transform: rotate(360deg);
}

/* --------------------------------------------------------------------------
   WhatsApp Floating Button
   - Fixed at bottom-right
   - Customize the phone number in the anchor href in index.html
---------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  background:var(--gold);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 1050;
  text-decoration: none;
  font-size: 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.whatsapp-float:active {
  transform: translateY(-2px) scale(0.98);
}
.whatsapp-float i {
  pointer-events: none;
}

@media (max-width: 576px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* --------------------------------------------------------------------------
   Scroll-to-top button
---------------------------------------------------------------------------- */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 92px; /* placed above WhatsApp button */
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 1060;
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
}
.scroll-top i {
  pointer-events: none;
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

@media (max-width: 576px) {
  .scroll-top {
    right: 14px;
    bottom: 86px;
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }
}
