/* v=1.0.3 */

@import "layout/header.css";
@import "layout/footer.css";

/* ============================================
   PAGE LOADER
   ============================================ */
#page-loader {
  position: fixed;
  inset: 0;
  background: #fafbfb;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s;
}

.loader {
  --d: 22px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  color: #25b09b;
  box-shadow: calc(1 * var(--d)) calc(0 * var(--d)) 0 0,
    calc(0.707 * var(--d)) calc(0.707 * var(--d)) 0 1px,
    calc(0 * var(--d)) calc(1 * var(--d)) 0 2px,
    calc(-0.707 * var(--d)) calc(0.707 * var(--d)) 0 3px,
    calc(-1 * var(--d)) calc(0 * var(--d)) 0 4px,
    calc(-0.707 * var(--d)) calc(-0.707 * var(--d)) 0 5px,
    calc(0 * var(--d)) calc(-1 * var(--d)) 0 6px;
  animation: rotate 1s infinite steps(8);
}

@keyframes rotate {
  to {
    transform: rotate(1turn);
  }
}

/* ============================================
   PAGE REVEAL
   ============================================ */
.page-content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   UTILITIES
   ============================================ */
.mobile-only {
  display: none;
}

hr {
  border: none;
  border-top: 1px solid rgba(82, 128, 138, 0.3);
  margin: 40px 0;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  .desktop-only {
    display: none;
  }
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal__content {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
  border: 1px solid var(--border-color);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.3s;
  line-height: 1;
}

.modal__close:hover {
  color: var(--text);
}

.modal__content h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--nav);
}

.modal__content p {
  color: var(--gray);
  line-height: 1.7;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  left: 25px;
  /* background: #25d366; */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  transition: all 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 480px) {
  .hero__content h1 {
    font-size: 28px;
  }

  .section__heading p {
    font-size: 24px;
  }

  .about__content h2 {
    font-size: 28px;
  }

  .profile-left h2 {
    font-size: 24px;
  }

  .contact-info h2 {
    font-size: 28px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .header,
  .whatsapp-float,
  .btn,
  #back-to-top {
    display: none !important;
  }

  .page-content {
    animation: none;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
