/**
 * ============================================================
 *  DIHAN · Main Stylesheet
 *  Table of Contents:
 *    1. Reset & Base
 *    2. Layout
 *    3. Hero Section
 *    4. Profile Section
 *    5. Social Icons
 *    6. Contact Section
 *    7. Bottom Bar (Add to Contact)
 *    8. Footer
 *    9. Modals
 *   10. Preloader
 *   11. Background Animation
 * ============================================================
 */

/* ══════════════════════════════════════════════
   1. Reset & Base
   ══════════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  height: 100%;
}

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

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

a,
a:focus {
  outline: none;
  text-decoration: none;
  cursor: pointer;
}

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

input {
  outline: none;
  border: none;
  width: 100%;
}

textarea {
  outline: none;
  resize: none;
}

svg {
  vertical-align: middle;
}

img {
  max-width: 100%;
}

/* Hide scrollbar */
::-webkit-scrollbar {
  display: none;
}

/* ══════════════════════════════════════════════
   2. Layout
   ══════════════════════════════════════════════ */

body {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  background: var(--color-bg-dark);
  font-family: var(--font-family);
}

.site-content {
  width: 100%;
  height: 100%;
}

.container {
  padding: 0 16px;
}

/* Utility spacing */
.mt-5  { margin-top: var(--space-xs)  !important; }
.mt-10 { margin-top: var(--space-sm); }
.mt-15 { margin-top: var(--space-md); }
.mt-20 { margin-top: var(--space-lg); }
.mt-30 { margin-top: var(--space-xl); }
.pt-20 { padding-top: var(--space-lg); }
.mlr-auto { margin-left: auto; margin-right: auto; }

/* Page wrapper */
.ceo-content {
  position: relative;
  background: var(--color-bg-page);
  width: 100%;
  overflow: hidden;
  padding-bottom: var(--space-lg);
  min-height: 100vh;
}

/* Color utility (SVG filter to primary color) */
.blue-color {
  filter: brightness(0) saturate(100%) invert(49%) sepia(92%) saturate(425%)
          hue-rotate(147deg) brightness(96%) contrast(86%);
}

/* ══════════════════════════════════════════════
   3. Hero Section
   ══════════════════════════════════════════════ */

.hero-sec {
  background: url(../images/main-img/banner-img.jpg) center / cover no-repeat;
  position: relative;
  width: 100%;
  height: 200px;
}

.bottom-shape {
  position: absolute;
  bottom: -15px;
  width: 100%;
  filter: brightness(0) saturate(100%) invert(99%) sepia(1%) saturate(981%)
          hue-rotate(124deg) brightness(99%) contrast(98%);
}

/* ══════════════════════════════════════════════
   4. Profile Section
   ══════════════════════════════════════════════ */

.profile-sec-content {
  margin-top: -100px;
  z-index: 99;
  position: relative;
}

.profile-sec {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.oval-frame {
  border: 5px solid var(--color-text-white);
  border-radius: var(--radius-circle);
}

.profile-name h1 {
  color: var(--color-primary);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: 36px;
}

.profile-name p {
  color: var(--color-text-heading);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: 20px;
}

/* Section titles */
.top-titile h2 {
  color: var(--color-primary);
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: 30px;
  text-transform: uppercase;
  border-bottom: 2px solid;
  width: fit-content;
  margin: 0 auto;
}

.top-titile h3 {
  color: var(--color-text-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: 30px;
  text-align: center;
}

.top-titile p {
  color: var(--color-text-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 24px;
  text-align: center;
}

/* ══════════════════════════════════════════════
   5. Social Icons
   ══════════════════════════════════════════════ */
.social-icon-content-wrap img,
.contact-icon img {
  filter: var(--filter-icon);
}
.social-icon-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon-content-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: var(--color-primary);
  border-radius: var(--radius-circle);
  border-bottom-left-radius: 0;
  padding: 8px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.social-icon-content-wrap:hover {
  border-radius: var(--radius-circle);
}

.social-icon-para p {
  color: var(--color-text-body);
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 24px;
}

/* ══════════════════════════════════════════════
   6. Contact Section
   ══════════════════════════════════════════════ */

.contact-details {
  display: flex;
  gap: 12px;
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-contact);
  padding: 12px;
}

.contact-icon {
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  padding: 10px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.contact-content {
  width: 90%;
}

.contact-content h4 {
  color: var(--color-text-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 14px;
  text-transform: uppercase;
}

.contact-content p {
  color: var(--color-text-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
  transition: var(--transition);
}

.contact-content p:hover {
  color: var(--color-primary) !important;
  text-decoration: underline;
}

/* ══════════════════════════════════════════════
   7. Bottom Bar (Add to Contact)
   ══════════════════════════════════════════════ */

.add-to-contact {
  position: fixed;
  width: 100%;
  bottom: 0;
  max-width: var(--max-width);
  left: 0;
  right: 0;
  padding-bottom: 20px;
}

.add-to-contact-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.add-to-btn {
  margin-left: auto;
}

.add-to-btn-sec {
  display: flex;
  align-items: center;
  border-radius: 30px;
  background-color: var(--color-primary);
  box-shadow: var(--shadow-btn);
  padding: 6px 6px 6px 30px;
  justify-content: end;
  width: fit-content;
  gap: 8px;
}

.add-txt {
  color: var(--color-text-white);
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 24px;
}

.plus-btn {
  border-radius: var(--radius-xl);
  background: var(--color-text-white);
  padding: 12px;
}

/* ══════════════════════════════════════════════
   8. Footer
   ══════════════════════════════════════════════ */

.footer p {
  color: var(--color-text-heading);
  text-align: center;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  line-height: 20px;
}

/* ══════════════════════════════════════════════
   9. Modals
   ══════════════════════════════════════════════ */

#share-media-modal {
  background: linear-gradient(180deg, rgba(18,21,28,0) 0%, rgba(18,21,28,0) 100%);
  backdrop-filter: blur(4px);
}

#share-media-modal .modal-content {
  border-radius: var(--radius-xl);
}

.modal-title {
  color: var(--color-text-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: 30px;
}

.social-media-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.social-media-img {
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-media-img:hover {
  background: var(--color-primary);
}

.social-media-img img {
  filter: brightness(0) saturate(100%) invert(0%) sepia(99%) saturate(3%) hue-rotate(13deg) brightness(99%) contrast(100%);
  width: 30px;
  height: 30px;
}

.social-media-img:hover img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(2%) saturate(7%) hue-rotate(323deg) brightness(104%) contrast(102%);
}

.btn-close {
  opacity: 1;
}

.btn-close:focus {
  box-shadow: none;
}
.map-sec {
  padding: 0 !important;
}

.map-img iframe {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  border: none;
  display: block;
}
/* ══════════════════════════════════════════════
   10. Preloader
   ══════════════════════════════════════════════ */

.preloader {
  background: radial-gradient(circle, #333, #000) no-repeat;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  inset: 0;
  transition: opacity 0.8s ease;
}

.design {
  width: 150px;
  height: 150px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  justify-content: center;
  align-items: center;
}

.square {
  width: 60px;
  height: 60px;
}

.design1 .square {
   background-color: var(--color-preloader);
  animation: squarePulse 1s ease-in-out infinite;
  box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

.design1 .square1 { animation-delay: 200ms; }
.design1 .square2 { animation-delay: 600ms; }
.design1 .square3 { animation-delay: 400ms; }
.design1 .square4 { animation-delay: 800ms; }

@keyframes squarePulse {
  0%, 100% { transform: scale(1);   }
  10%       { transform: scale(0.9); }
  20%       { transform: scale(1);   }
  30%       { transform: scale(0.6); }
  40%       { transform: scale(1);   }
  50%       { transform: scale(0.7); }
}

/* ══════════════════════════════════════════════
   11. Background Animation
   ══════════════════════════════════════════════ */

#accueil {
  position: fixed;
  top: 0;
  z-index: -1;
  height: 100vh;
  inset: 0;
  overflow: hidden;
}

.triangle_vert,
.triangle_rose {
  position: absolute;
  width: 120%;
  height: 300px;
  background: #2d30318f;
  margin-left: -100px;
}

.triangle_vert {
  bottom: 0;
  margin-bottom: -200px;
  animation: triangleV 20s infinite cubic-bezier(0.14, 0.36, 0.59, 0.9);
}

.triangle_rose {
  top: 0;
  height: 250px;
  margin-top: -150px;
  transform: rotate(7deg);
  animation: triangleR 20s infinite cubic-bezier(0.14, 0.36, 0.59, 0.9);
}

@keyframes triangleV {
  0%   { transform: rotate(5deg) rotateZ(0deg)   translate3d(2%, 5%, 0) rotateZ(0deg);    }
  25%  { transform: rotate(8deg) rotateZ(90deg)  translate3d(2%, 5%, 0) rotateZ(-90deg);  }
  50%  { transform: rotate(4deg) rotateZ(180deg) translate3d(2%, 5%, 0) rotateZ(-180deg); }
  75%  { transform: rotate(2deg) rotateZ(270deg) translate3d(2%, 5%, 0) rotateZ(-270deg); }
  100% { transform: rotate(5deg) rotateZ(360deg) translate3d(2%, 5%, 0) rotateZ(-360deg); }
}

@keyframes triangleR {
  0%   { transform: rotate(7deg) rotateZ(0deg)   translate3d(2%, 5%, 0) rotateZ(0deg);    }
  25%  { transform: rotate(3deg) rotateZ(90deg)  translate3d(2%, 5%, 0) rotateZ(-90deg);  }
  50%  { transform: rotate(6deg) rotateZ(180deg) translate3d(2%, 5%, 0) rotateZ(-180deg); }
  75%  { transform: rotate(9deg) rotateZ(270deg) translate3d(2%, 5%, 0) rotateZ(-270deg); }
  100% { transform: rotate(7deg) rotateZ(360deg) translate3d(2%, 5%, 0) rotateZ(-360deg); }
}
