@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Outfit:wght@100..900&display=swap');

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

*{
    margin: 0;
    padding: 0;
}

:root{
    --black: #141414 ; 
    --dark-grey: #333333;
    --medium-grey: #636363;
    --light-grey: #eeeeee;
    --light-red: #ffadb7;
    --dark-red:#cc0000 ;
    --light-yallow: #fae994;
    --ash: #F5F7F8;
    --primary-color: #ff0000;
    --red : #cf3030;
    --yallow: #e88a1a ;
    --white: white;
    --bleu : #66e6ff;
    --grid-grey: linear-gradient(#eeeeee, #e0e0e0);
    --grid-red: linear-gradient(#cc0000 3%, #e0e0e0 3%, #eeeeee 100%);
    --titel-grey: linear-gradient(#3b3b3b 10%, #e0e0e0 50%, #eeeeee 80%);
    --titel-red: linear-gradient(#ff0000 -20%, #eeeeee 80%);
    --titel-black: linear-gradient(#eeeeee -20%, #141414 80%) ;
    --gradient-one: linear-gradient(90deg, rgba(84, 54, 115, 1) 0%, rgba(217, 62, 48, 1) 35%, rgba(163, 242, 101, 1) 100%);
    --gradient-tow: linear-gradient(90deg, rgba(242, 41, 152, 1) 0%, rgba(91, 68, 242, 1) 35%, rgba(4, 217, 96, 1) 100%);
    --gradient-three: linear-gradient(90deg, #640D5F 0%, #D91656 50%, #FFB200 100%);
     --gradient-four: linear-gradient(90deg, rgba(242, 41, 152, 1) 0%, rgba(217, 62, 48, 1) 100%);
}

html,section {
    background-color: var(--light-grey);
    font-family: "Outfit", sans-serif;
    transition: background-color 600ms ease;
    color: var(--black);
    letter-spacing: -0.4px;
    width: 100%;

}
  
body {
    font-family: "Outfit", sans-serif;
    background-color: var(--light-grey);
    transition: background-color 600ms ease;
    color: var(--black);
    letter-spacing: -0.4px;
    width: 100%;
    cursor: url("../img/cursor.svg"), auto;
}

a{
    font-family: "Chakra Petch", sans-serif;
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}
/*--------------------------------------------------------------
# Background Colors
--------------------------------------------------------------*/
.gery-grad-bg{
    background: var(--grid-grey);
}
.color-grad-bg{
    background: var(--titel-grey);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grey-col-bg{
    background: var(--ash);
    backdrop-filter: blur(20px);
}

.red-grad-bg{
    background: var(--titel-red);
}

.one-grad-gb{
    background:  var(--gradient-one);
}

.tow-grad-gb{
    background:  var(--gradient-tow);
}

.three-grad-gb{
    background:  var(--gradient-three);
}

.four-grad-gb{
    background:  var(--gradient-four);
}
/*--------------------------------------------------------------
# header
--------------------------------------------------------------*/
.navbar__item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--red));
    border-radius: 15px;
    opacity: 0;
    transition: all 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: -1;
}

.navbar__item:hover::before,
.navbar__item:focus-within::before,
.navbar__item.active::before {
    opacity: 1;
    animation: gooeyPulse 300ms ease-out;
    box-shadow: 0 5px 25px rgba(243, 64, 64, 0.4);
}

@keyframes gooeyPulse {
    0% { 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        transform: translate(-50%, -50%) scale(0.85, 1.3);
    }
    100% { 
        transform: translate(-50%, -50%) scale(1); 
    }
}

.tooltip {
    position: absolute;
    left: 310%;
    margin-right: 15px;
    opacity: 0;
    pointer-events: none;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 300ms ease;
    white-space: nowrap;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    font-weight: 600;
    transform: translateX(10px);
    z-index: 20;
}

.navbar__item:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

.navbar-bg {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.navbar-bg-mobile {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .navbar__item::before {
        width: 80%;
        height: 90%;
        border-radius: 20px;
    }
      
    .mobile-label {
        font-size: 0.65rem;
        line-height: 1.1;
        margin-top: 3px;
        opacity: 0.7;
        transition: all 300ms ease;
        font-weight: 500;
    }
      
    .navbar__item:hover .mobile-label,
    .navbar__item:focus-within .mobile-label,
    .navbar__item.active .mobile-label {
        opacity: 1;
        color: white;
    }

    .navbar__item:hover .navbar__link,
    .navbar__item:focus-within .navbar__link,
    .navbar__item.active .navbar__link {
        color: white;
    }

    .mobile-navbar {
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }
  }

.navbar__item.active .navbar__link {
    color: white;
}

.navbar__item.active .mobile-label {
    color: white;
    opacity: 1;
}
/*--------------------------------------------------------------
# hero
--------------------------------------------------------------*/
.hero-img img{
    max-height: 40vh;
    border-radius: 50%;
    z-index: 1;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.top-wave span,
.but-wave span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40vh; 
  height: 40vh;
  transform: translate(-50%, -50%) scale(0);
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  opacity: 0.6;
  animation: ripple 3s infinite ease-out;
  z-index: 0; 
}

.top-wave span:nth-child(1) { animation-delay: 0s; }
.top-wave span:nth-child(2) { animation-delay: 0.6s; }
.top-wave span:nth-child(3) { animation-delay: 1.2s; }
.top-wave span:nth-child(4) { animation-delay: 1.8s; }

.but-wave span:nth-child(1) { animation-delay: 0s; }
.but-wave span:nth-child(2) { animation-delay: 0.6s; }
.but-wave span:nth-child(3) { animation-delay: 1.2s; }
.but-wave span:nth-child(4) { animation-delay: 1.8s; }

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scaleY(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scaleY(1.7); /* امتداد أكبر */
    opacity: 0;
  }
}

.cursor {
  display: inline-block;
  width: 8px ;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.click-spark-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #eee;
    display: flex;
    align-items: center;
    color: #000;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    user-select: none;
}

.center-content {
    position: relative;
    font-family: sans-serif;
    font-size: 24px;
}

.main-container {
    padding: 8px 16px;
    background-color: #22d3ee;
    color: #000;
    overflow: hidden;
    border-radius: 12px;
    display: inline-flex;
    justify-content: center;
    font-size: 2rem;
    transition: width 0.4s ease, height 0.4s ease;
    transform: translateX(-50%);
}

.split-level {
    display: flex;
    overflow: hidden;
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.letter.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-float {
    font-size: 3rem;
    overflow: hidden;
    line-height: 1.2;
}

.scroll-float-text {
    display: inline-block;
}

.char {
    display: inline-block;
}


.classic-card {
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.3s ease;
}
.classic-card:hover {
    transform: translateY(40px) scale(1.03);
}

.blur-classic-card {
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.3s ease;
}
.blur-classic-card:hover {
    transform: translateY(40px) scale(1.03);
}

.sidebar-widget {
    border: 1px solid #e5e7eb;
}
.tag {
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}
.prose-custom p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.prose-custom h2 {
    font-size: 1.875rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}
.prose-custom blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--black);
    margin: 2rem 0;
}