/* =================================================================== */
/*      PROFESSIONAL BIOGRAPHY PAGE - AMI SAUDI ARABIA                 */
/*      Version: 1.0 - Premium Portfolio Design                        */
/* =================================================================== */

:root {
  --bio-primary: #009055;
  --bio-primary-dark: #006b3f;
  --bio-primary-light: #00b36b;
  --bio-secondary: #1a1f36;
  --bio-accent: #00d4aa;
  --bio-gold: #d4af37;
  --bio-white: #ffffff;
  --bio-light: #f8faf9;
  --bio-gray: #6c757d;
  --bio-dark: #1a1a1a;
  --bio-gradient: linear-gradient(135deg, var(--bio-primary) 0%, var(--bio-primary-dark) 100%);
  --bio-gradient-dark: linear-gradient(135deg, var(--bio-secondary) 0%, #0f1219 100%);
  --bio-gradient-gold: linear-gradient(135deg, var(--bio-gold) 0%, #b8962e 100%);
  --bio-shadow-sm: 0 4px 15px rgba(0, 144, 85, 0.1);
  --bio-shadow-md: 0 10px 40px rgba(0, 144, 85, 0.15);
  --bio-shadow-lg: 0 20px 60px rgba(0, 144, 85, 0.2);
  --bio-radius-sm: 12px;
  --bio-radius-md: 20px;
  --bio-radius-lg: 30px;
  --bio-radius-xl: 50px;
  --bio-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================================================== */
/*      BASE STYLES                                                     */
/* =================================================================== */

.biography-page {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #f0f4f3 0%, #e8f0ed 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* =================================================================== */
/*      HEADER                                                          */
/* =================================================================== */

.bio-header {
  background: var(--bio-gradient);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.bio-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bio-logo img {
  height: 50px;
  filter: brightness(0) invert(1);
  transition: var(--bio-transition);
}

.bio-logo:hover img {
  transform: scale(1.05);
}

.bio-header-info {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--bio-white);
}

  .bio-header-info a {
    color: var(--bio-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: var(--bio-transition);
  }

    .bio-header-info a:hover {
      color: var(--bio-accent);
    }

  .bio-header-info i {
    font-size: 16px;
  }

/* =================================================================== */
/*      HERO PROFILE SECTION                                            */
/* =================================================================== */

.bio-hero {
  background: var(--bio-gradient-dark);
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

  .bio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23009055' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
  }

/* Floating Shapes */
.bio-hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.bio-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--bio-gradient);
  opacity: 0.1;
  animation: float-shape 20s infinite ease-in-out;
}

.bio-shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.bio-shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

.bio-shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 10%;
  animation-delay: -10s;
}

@keyframes float-shape {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(30px, -30px) rotate(90deg);
  }

  50% {
    transform: translate(0, -50px) rotate(180deg);
  }

  75% {
    transform: translate(-30px, -30px) rotate(270deg);
  }
}

.bio-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--bio-white);
}

/* Profile Image */
.bio-profile-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
}

.bio-profile-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: linear-gradient(var(--bio-secondary), var(--bio-secondary)) padding-box, var(--bio-gradient) border-box;
  animation: rotate-ring 8s linear infinite;
}

@keyframes rotate-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.bio-profile-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--bio-primary), var(--bio-accent), var(--bio-gold), var(--bio-primary));
  z-index: -1;
  animation: rotate-ring 4s linear infinite reverse;
}

.bio-profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bio-secondary);
  position: relative;
  z-index: 1;
  transition: var(--bio-transition);
}

.bio-profile-wrapper:hover .bio-profile-image {
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(0, 144, 85, 0.4);
}

/* Status Badge */
.bio-status-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: var(--bio-primary);
  border-radius: 50%;
  border: 4px solid var(--bio-secondary);
  z-index: 2;
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 144, 85, 0.7);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(0, 144, 85, 0);
  }
}

.bio-hero-name {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bio-hero-title {
  font-size: 1.3rem;
  color: var(--bio-accent);
  font-weight: 500;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

  .bio-hero-title i {
    color: var(--bio-gold);
  }

/* Social Links */
.bio-social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.bio-social-link {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bio-white);
  font-size: 20px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--bio-transition);
}

  .bio-social-link:hover {
    background: var(--bio-primary);
    transform: translateY(-5px) scale(1.1);
    color: var(--bio-white);
    box-shadow: 0 10px 30px rgba(0, 144, 85, 0.4);
  }

/* =================================================================== */
/*      MAIN CONTENT                                                    */
/* =================================================================== */

.bio-main {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 60px;
}

/* =================================================================== */
/*      CARDS                                                           */
/* =================================================================== */

.bio-card {
  background: var(--bio-white);
  border-radius: var(--bio-radius-md);
  box-shadow: var(--bio-shadow-sm);
  overflow: hidden;
  transition: var(--bio-transition);
  height: 100%;
  border: 1px solid rgba(0, 144, 85, 0.05);
}

  .bio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--bio-shadow-lg);
  }

.bio-card-header {
  background: var(--bio-gradient);
  padding: 20px 25px;
  color: var(--bio-white);
  display: flex;
  align-items: center;
  gap: 15px;
}

.bio-card-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--bio-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.bio-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.bio-card-body {
  padding: 25px;
}

/* =================================================================== */
/*      ABOUT SECTION                                                   */
/* =================================================================== */

.bio-about-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--bio-gray);
}

  .bio-about-text::first-letter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bio-primary);
    float: left;
    line-height: 1;
    margin-right: 10px;
    margin-top: 5px;
  }

/* =================================================================== */
/*      CERTIFICATIONS                                                  */
/* =================================================================== */

.bio-cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bio-cert-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--bio-transition);
}

  .bio-cert-item:last-child {
    border-bottom: none;
  }

  .bio-cert-item:hover {
    padding-left: 10px;
    background: rgba(0, 144, 85, 0.02);
    border-radius: var(--bio-radius-sm);
  }

.bio-cert-icon {
  width: 45px;
  height: 45px;
  background: var(--bio-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bio-white);
  font-size: 18px;
  flex-shrink: 0;
}

.bio-cert-content h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--bio-secondary);
  margin: 0 0 5px 0;
}

.bio-cert-content p {
  font-size: 13px;
  color: var(--bio-gray);
  margin: 0;
}

/* =================================================================== */
/*      SKILLS SECTION                                                  */
/* =================================================================== */

.bio-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
}

.bio-skill-item {
  background: var(--bio-light);
  border-radius: var(--bio-radius-sm);
  padding: 20px 15px;
  text-align: center;
  transition: var(--bio-transition);
  cursor: default;
  border: 2px solid transparent;
}

  .bio-skill-item:hover {
    background: var(--bio-white);
    border-color: var(--bio-primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--bio-shadow-md);
  }

  .bio-skill-item i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    transition: var(--bio-transition);
  }

  .bio-skill-item:hover i {
    transform: scale(1.2);
  }

  .bio-skill-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--bio-secondary);
    display: block;
  }

/* Skill Categories */
.bio-skill-category {
  margin-bottom: 25px;
}

.bio-skill-category-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--bio-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bio-primary);
  display: inline-block;
}

/* =================================================================== */
/*      CONTACT SECTION                                                 */
/* =================================================================== */

.bio-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.bio-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--bio-light);
  border-radius: var(--bio-radius-sm);
  transition: var(--bio-transition);
  text-decoration: none;
  color: inherit;
}

  .bio-contact-item:hover {
    background: var(--bio-gradient);
    color: var(--bio-white);
    transform: translateX(10px);
  }

.bio-contact-icon {
  width: 55px;
  height: 55px;
  background: var(--bio-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bio-white);
  font-size: 22px;
  flex-shrink: 0;
  transition: var(--bio-transition);
}

.bio-contact-item:hover .bio-contact-icon {
  background: var(--bio-white);
  color: var(--bio-primary);
}

.bio-contact-info h5 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 5px 0;
  opacity: 0.7;
}

.bio-contact-info p {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

/* =================================================================== */
/*      FOOTER                                                          */
/* =================================================================== */

.bio-footer {
  background: var(--bio-gradient-dark);
  color: var(--bio-white);
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

  .bio-footer p {
    margin: 0;
    opacity: 0.8;
    font-size: 14px;
  }

  .bio-footer a {
    color: var(--bio-accent);
    text-decoration: none;
  }

/* =================================================================== */
/*      ANIMATIONS                                                      */
/* =================================================================== */

.bio-animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bio-animate-delay-1 {
  animation-delay: 0.1s;
}

.bio-animate-delay-2 {
  animation-delay: 0.2s;
}

.bio-animate-delay-3 {
  animation-delay: 0.3s;
}

.bio-animate-delay-4 {
  animation-delay: 0.4s;
}

/* =================================================================== */
/*      RESPONSIVE                                                      */
/* =================================================================== */

@media (max-width: 992px) {
  .bio-hero-name {
    font-size: 2.5rem;
  }

  .bio-skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

@media (max-width: 768px) {
  .bio-header-info {
    display: none;
  }

  .bio-hero {
    padding: 60px 0 100px;
  }

  .bio-hero-name {
    font-size: 2rem;
  }

  .bio-hero-title {
    font-size: 1.1rem;
  }

  .bio-profile-wrapper {
    width: 160px;
    height: 160px;
  }

  .bio-profile-image {
    width: 160px;
    height: 160px;
  }

  .bio-card-header {
    padding: 15px 20px;
  }

  .bio-card-body {
    padding: 20px;
  }

  .bio-skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .bio-skill-item {
    padding: 15px 10px;
  }

    .bio-skill-item i {
      font-size: 26px;
    }
}

@media (max-width: 576px) {
  .bio-hero-name {
    font-size: 1.75rem;
  }

  .bio-social-links {
    gap: 10px;
  }

  .bio-social-link {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .bio-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================================================== */
/*      DARK MODE                                                       */
/* =================================================================== */

[data-bs-theme="dark"] .biography-page {
  background: linear-gradient(180deg, #0f1219 0%, #1a1f36 100%);
}

[data-bs-theme="dark"] .bio-card {
  background: #1e2432;
  border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .bio-card-body {
  color: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="dark"] .bio-about-text,
[data-bs-theme="dark"] .bio-cert-content p,
[data-bs-theme="dark"] .bio-skill-item span {
  color: rgba(255, 255, 255, 0.7);
}

[data-bs-theme="dark"] .bio-cert-content h5 {
  color: var(--bio-white);
}

[data-bs-theme="dark"] .bio-skill-item {
  background: #252b3d;
}

  [data-bs-theme="dark"] .bio-skill-item:hover {
    background: #1e2432;
  }

[data-bs-theme="dark"] .bio-contact-item {
  background: #252b3d;
}
