@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-size: 1rem;
    /* Default font size */
    overflow-x: hidden;
}

header {
    background-color: #f0f0f0;
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 120px;
}

.logo {
    text-decoration: none;
    color: darkcyan;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.8em;
}

.navigation a {
    color: #3766e6;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    padding-left: 30px;
    transition: 0.5s;
}

.navigation a:hover {
    color: rgba(2, 156, 156, 0.815);
    transform: scale(1.1);
}

section {
    padding: 100px 100px;
}

.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* background-image: url(img/backtesttop3.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; */
}

/* Animation */
.wrap {
    position: absolute;
    top: 300px;
    left: 55vw;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 100px;
    height: 300px;
    transform: scale(1.8);
    z-index: 99;
}

.cat {
    position: relative;
    width: 100px;
    height: 120px;
    background: linear-gradient(to top right, #3766e6, #4e9eff);
    border-radius: 10px 30px 50px 50px;
    animation: move 5s infinite;
}

.eyes {
    position: absolute;
    top: 20px;
    width: 50px;
    height: 10px;
    left: 25px;
    overflow: hidden;
    animation: eyes 3s infinite;
}

.eye {
    position: absolute;
    width: 10px;
    height: 100%;
    border-radius: 10px;
    background: whitesmoke;
}

.eye.two {
    right: 0;
}

.mouth {
    position: absolute;
    width: 40px;
    height: 25px;
    background: #c0392b;
    left: 30px;
    top: 50px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    animation: laugh 2s;
    transition: 0.5s;
}

.wrap:hover .mouth {
    height: 0.4px;
}

.lezu {
    position: absolute;
    bottom: -30px;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    background: #e74c3c;
}

.shadow {
    position: absolute;
    left: 0;
    top: 10px;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 100px;
    height: 20px;
    border-radius: 100%;
    background: rgba(0, 0, 0, 0.7);
    filter: blur(2px);
    animation: shadow 5s infinite;
}

@keyframes laugh {
    0% {
        height: 0px;
    }

    100% {
        height: 25px;
    }
}

@keyframes eyes {

    0%,
    100% {
        height: 0px;
    }

    10%,
    90% {
        height: 10px;
    }
}

@keyframes move {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes shadow {

    0%,
    100% {
        filter: blur(5px);
    }

    50% {
        filter: blur(20px);
    }
}

.main h2 {
    color: rgb(182, 234, 238);
    font-size: 1.4em;
    font-weight: 500;
    width: 90%;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.main h2 span {
    display: inline-block;
    margin-top: 10px;
    color: #4e9eff;
    font-size: 2.8em;
    font-weight: 600;
}

.main h3 {
    color: white;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.main-btn {
    color: #fff;
    background-color: #3a6cf4;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    padding: 0.9375em 2.1875em;
    letter-spacing: 1px;
    border-radius: 15px;
    margin-bottom: 40px;
    transition: 0.7s ease;
    min-width: 200px;
    max-height: 70px;
}



.prw {
    color: #f0f0f0;
    padding: 10px 40%;
    font-size: 24px;
}

a {
    text-decoration: none;
}

.amail {
    color: #6281e4;
}

.main-btn:hover {
    background-color: #0a49f6;
    transform: scale(1.1);
}

.social-icons a {
    color: #fff;
    font-size: 1.7em;
    padding-right: 30px;
    transition: 0.5s;
}

.social-icons a i {
    transition: 0.5s;
    transition-delay: 0.2s;
}

.social-icons a i:hover {
    color: #468fe7;
    transform: scale(1.2);
}

.title {
    display: flex;
    justify-content: center;
    color: #3a6cf4;
    font-size: 3.2em;
    font-weight: 800;
    margin-bottom: 30px;
}

.content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3px;
}

.cards {
    background-color: rgb(22 31 45);
}

.card {
    background-color: #fff;
    width: 18.25em;
    box-shadow: 0 5px 25px rgba(1 1 1 / 15%);
    border-radius: 10px;
    padding: 25px;
    margin: 15px;
    transition: 0.7s ease;
}

.card:hover {
    transform: scale(1.1);
}

.card .icon {
    color: #3a6cf4;
    font-size: 8em;
    text-align: center;
}

.card .icon img {
    border-radius: 20px;
    min-height: 140px;
}

.info {
    text-align: center;
}

.info h3 {
    color: #3a6cf4;
    font-size: 1.2em;
    font-weight: 700;
    margin: 10px;
}

.projects {
    background-image: url(img/test6.jpg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    background-attachment: fixed;
}

.projects .card {
    width: 19.5em;
}

.projects .content {
    margin-top: 30px;
}

.project-card {
    background-color: #fff;
    border: 1px solid #fff;
    min-height: 14em;
    width: 23em;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px;
    transition: 0.7s ease;
}

.project-card:hover {
    transform: scale(1.1);
}

.project .card:hover .project-image {
    opacity: 0.9;
}

.projects img {
    width: 100%;
    height: 100%;
}

.project-info {
    padding: 1em;
}

.project-category {
    font-size: 0.8em;
    color: #000;
}

.project-title {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 10px;
}

.propa {
    color: #6281e4;
    font-size: 2rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.more-details {
    text-decoration: none;
    color: #3a6cf4;
}

.more-details:hover {
    color: #601cfc;
}

.contact .icon {
    font-size: 4.5em;
}

#contact {
    background-color: rgb(174, 200, 242);
}

.contact .info h3 {
    color: #000;
}

.contact .info p {
    font-size: 1.5em;
}

.footer {
    background-color: #000016;
    color: #fff;
    padding: 2em;
    display: flex;
    justify-content: space-between;
}

.footer-title {
    font-size: 1.3em;
    font-weight: 600;
}

.footer-title span {
    color: #3a6cf4;
}

.footer .social-icons a {
    font-size: 1.3em;
    padding: 0 12px 0 0;
}

@media (max-width: 1023px) {
    header {
        padding: 12px 20px;
    }

    .navigation a {
        padding-left: 10px;
    }

    .title {
        font-size: 1.8em;
    }

    section {
        padding: 80px 20px;
    }

    .main h2 {
        font-size: 1em;
    }

    .main h3 {
        font-size: 1.6em;
    }

    .content {
        /* flex-direction: column; */
        align-items: center;
    }
}

@media (max-width: 795px) {
    .wrap {
        top: 500px;
    }
}

@media (max-width: 641px) {
    body {
        font-size: 0.75rem;
        /* Scale font size for smaller screens */
    }

    .main h2 span {
        margin-right: 1%;
        font-size: 40px;
    }

    .main h2 {
        font-size: 0.8em;
    }

    .main h3 {
        font-size: 1.4em;

    }

    .main-btn {
        max-height: 50px;
        min-width: 150px;
        max-width: 155px;
        text-align: center;
        margin-bottom: 20px;

    }

    .propa {
        font-size: 14px;
    }

    .wrap {
        top: 400px;
        left: 300px;
        transform: scale(1);
    }
}

@media (max-width: 410px) {
    .wrap {
        left: 200px;
    }

    .main h2 span {
        font-size: 10vw;
        position: relative;
        top: -20px;
    }

    .navigation {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 334px) {
    .wrap {
        left: 0;
        top: 690px;
    }

    .social-icons {
        margin-left: 2px;
    }

    .main h3 {
        font-size: 1.8em;
    }

    .main h2 {
        width: 100%;
    }

    .main h2 span {
        font-size: 3.9em;
        position: relative;
        top: -20px;
    }

    .card {
        margin: 0;
    }

    .main-btn {
        margin-left: 40px;
    }
}

@media (max-width: 310px) {
    .main h2 span {
        font-size: 1.7em;
        position: relative;
        top: -20px;
    }

    .main-btn {
        padding: 10px;
        font-size: 1.2em;
    }

    .card {
        width: 14em;
    }

    .logo {
        font-size: 6.6vw;
    }

    header {
        width: 100vw;
    }

    .projects .card {
        width: 14.5em;
    }

    .md-mop {
        display: none;
    }

    .footer-title {
        font-size: 1.4em;
    }

    .mill-card {
        display: inline-block;
    }

    .main-btn {
        margin-left: 0;
    }

    .main h2 span {
        font-size: 10vw;
    }

    .content {
        flex-wrap: wrap;
        align-content: center;
    }

    .title {
        font-size: 1.2em;
    }
}

body,
html {
    cursor: none;
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: #e0dad5;
    flex-wrap: nowrap;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.Cursor {
    pointer-events: none;
    position: fixed;
    display: block;
    border-radius: 0;
    transform-origin: center center;
    mix-blend-mode: difference;
    top: 0;
    left: 0;
    z-index: 1000;
    filter: url("#goo");
}

.Cursor span {
    position: absolute;
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 20px;
    background-color: white;
    transform-origin: center center;
    transform: translate(-50%, -50%);
}


.Cursor {
    pointer-events: none;
    position: fixed;
    display: block;
    border-radius: 0;
    transform-origin: center center;
    mix-blend-mode: difference;
    top: 0;
    left: 0;
    z-index: 1000;
    filter: url("#goo");

    span {
        position: absolute;
        display: block;
        width: 26px;
        height: 26px;
        border-radius: 20px;
        background-color: white;
        transform-origin: center center;
        transform: translate(-50%, -50%);
    }
}
@for $i from 1 through 28 {
    .char#{$i} {
        transform: rotate(#{$i * 13}deg);
    }
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}







/* =========================================================
   الملف: css2.css  —  Card v2 (تحسين العرض والرؤية والتغذية البصرية)
   ضع هذا المقطع في **نهاية** css2.css ليعلو على الأنماط السابقة
   ========================================================= */

   :root{
    --card-radius: 18px;
    --card-bg: rgba(250,250,255,0.66);
    --card-bg-dark: rgba(16,22,32,0.46);
    --card-border: rgba(255,255,255,0.28);
    --card-shadow: 0 20px 40px rgba(0,0,0,.22);
    --card-accent1: #5b95ae;
    --card-accent2: #3a6cf4;
  }
  
  /* حدد خلفية أقرب للوضع (خلفيات الأقسام الفاتحة/الداكنة) */
  .cards, #contact { --card-surface: var(--card-bg); }
  .projects        { --card-surface: var(--card-bg-dark); }
  
  .card{
    position: relative;
    isolation: isolate;
    width: min(22rem, 92vw);
    padding: 22px 18px 20px;
    border-radius: var(--card-radius);
    background: var(--card-surface) !important; /* يتجاوز أي inline background-color */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transform-style: preserve-3d;
    transition:
      transform .55s cubic-bezier(.2,.8,.2,1),
      box-shadow .45s ease,
      background .45s ease, border-color .45s ease;
      height: -webkit-fill-available;

  }
  
  /* هالة/حد متدرج ناعم حول الكرت */
  .card::before{
    content:"";
    position: absolute; inset: -1px;
    border-radius: inherit;
    background:
      conic-gradient(from 160deg,
        color-mix(in oklab, var(--card-accent2) 86%, white) 0%,
        transparent 22%,
        color-mix(in oklab, var(--card-accent1) 86%, white) 45%,
        transparent 70%,
        var(--card-accent2) 100%);
    filter: blur(18px);
    opacity: .35;
    z-index: -1;
    pointer-events: none;
  }
  
  /* لمعة تتبع المؤشر */
  .card::after{
    content:"";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(600px 240px at var(--mx,50%) -20%,
                rgba(255,255,255,.26), transparent 60%);
    mix-blend-mode: screen;
    opacity: .75;
    pointer-events: none;
    
  }
  
  /* ميل ثلاثي الأبعاد ناعم */
  .card:hover{
    transform:
      translateY(-6px)
      rotateX(calc(var(--ty, 0) * .45deg))
      rotateY(calc(var(--tx, 0) * .65deg));
    box-shadow: 0 30px 60px rgba(0,0,0,.33);
  }
  .card:focus-within{
    outline: 2px solid color-mix(in oklab, var(--card-accent2) 60%, white);
    outline-offset: 2px;
  }
  
  /* طبقة الـ three.js */
  .card .card-canvas{
    position: absolute; inset: -1px;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
  }
  
  /* محتوى أعلى الـ canvas */
  .card .icon,
  .card .info{ position: relative; z-index: 2; transform: translateZ(32px); }
  
  .card .icon{
    display: grid; place-items: center;
    width: 100%; min-height: 112px; margin-bottom: 12px;
  }
  .card .icon i,
  .card .icon img{
    font-size: clamp(2.2rem, 4vw, 3rem);
    max-width: 92%; height: auto; opacity: .96;
  }
  
  .card .info h3{
    color: color-mix(in oklab, var(--card-accent2) 86%, black);
    font-weight: 800; letter-spacing: .2px; margin-bottom: 8px;
  }
  .card .info p{
    color: rgba(20,26,38,.86);
    line-height: 1.45; font-weight: 500;
  }
  
  /* عندما تكون الخلفية داكنة (قسم المشاريع) اجعل النص فاتح */
  .projects .card .info h3{ color: #e7efff; }
  .projects .card .info p { color: rgba(255,255,255,.86); }
  
  /* أحجام كروت المشاريع */
  .projects .card{ width: min(22.5rem, 92vw); }
  .projects .card .info .propa{
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 700;
  }
  
  /* لمسة حركة بسيطة عند التركيز على أي رابط بداخل الكرت */
  .card a:focus-visible{ outline: 2px dashed var(--card-accent2); outline-offset: 3px; }
  