:root {
    --bg-main: #f6f1eb;
    --brown: #9c5a3c;
    --brown-light: #c89b7b;
    --text-dark: #1c1c1c;
}

body {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    background: var(--bg-main);
    color: var(--text-dark);
}

/* images */

.images {
    width: 45%;
    height: 70%;
    position: absolute;
    bottom: 90px;
    right: 100px;
}

.images img {
    height: 100%;
    position: absolute;
    left: 30%;
    bottom: 0;
    transform: bottom 1s, left 1s;
}

.girl {
    width: 60%;
    height: 80%;
}

/*  */
.custom-cursor {
    width: 18px;
    height: 18px;
    border: 2px solid var(--brown);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: 0.08s ease;
    z-index: 9999;
}

/* toggle theme button */
.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    background: none;
    border: 1px solid var(--brown);
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    z-index: 999;
}

/* 🌙 Dark Mode */
body.dark {
    background: #0e0e0e;
    color: #ffffff;
}

body.dark .project-card,
body.dark .skill-card,
body.dark .popup-content {
    background: #1a1a1a;
    color: white;
}

body.dark .filters button {
    color: white;
    border-color: #c89b7b;
}

body.dark .filters .active {
    background: #c89b7b;
    color: black;
}

body.dark .theme-toggle {
    border-color: #c89b7b;
}

/* 🌙 Dark Mode – Skills FIX */
body.dark .skill-card {
    background: #1a1a1a;
    border: 1px solid rgba(200, 155, 123, 0.4);
}

body.dark .skill-card h3 {
    color: #ffffff;
}

body.dark .skill-card span {
    color: #c89b7b;
}

body.dark .contact input,
body.dark .contact textarea {
    background: #1a1a1a;
    color: white;
    border: 1px solid rgba(200, 155, 123, 0.4);
}

body.dark .contact button {
    background: #c89b7b;
    color: black;
}

body.dark .contact button:hover {
    background: var(--brown);
}

body.dark .social-icons a {
    color: white;
}

body.dark .social-icons a:hover {
    color: #c89b7b;
}

body.dark .footer {
    background: #1a1a1a;
    color: white;
}

/* end */

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10%;
    position: relative;
}

.portfolio-word {
    font-family: 'Dancing Script', cursive;
    font-size: 48px;
    color: var(--brown);
    animation: slideDown 1.5s ease;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    line-height: 1.1;
}

.name {
    font-size: 22px;
}

.shapes .circle {
    width: 30px;
    height: 30px;
    background: var(--brown);
    border-radius: 50%;
    position: absolute;
    bottom: 60px;
    left: 60px;
    animation: float 6s infinite ease-in-out;
}

/* skills */
.skills {
    padding: 100px 10%;
    text-align: center;
}

.skills h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 60px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.skill-card {

    background: #ffffff;
    border: 1px solid rgba(156, 90, 60, 0.25);
    padding: 40px 20px;
    border-radius: 16px;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.5s ease;
    cursor: default;
}

.skill-card span {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
    transition: 0.4s;
}

.skill-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--text-dark);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.skill-card:hover span {
    transform: scale(1.2) rotate(5deg);
}

/* لما يطلع بالسكرول */
.skill-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* projects */

.projects {
    padding: 50px 10%;
}

.projects h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;

    padding: 80px 20px;
    text-align: center;
}

.filters button {
    background: none;
    border: 1px solid var(--brown);
    margin-right: 10px;
    padding: 8px 16px;
    cursor: pointer;
}

.filters .active {
    background: var(--brown);
    color: white;
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}


/*  */
.project-card {
    width: 200px;
    height: 120px;
    background: white;
    padding: 20px;
    overflow: hidden;
    /* مهم حتى لا يطلع الصورة من الكارد عند hover */
    border-radius: 16px;
    transition: transform 0.4s;
    cursor: pointer;
    text-align: center;


    /* إزالة البادينغ القديم */
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card:hover img {
    transform: scale(1.05);
    /* تكبير الصورة شوي عند hover */
}

.project-card video {
    width: 100%;
    height: 200px;
    /* أو أي حجم تحبيه */
    object-fit: cover;
    border-radius: 16px;
}

.popup video {
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
}



/*  */


@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}


/* scroll animations */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: 0.8s ease;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

/* pop */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    animation: scaleIn 0.4s ease;
}

.popup img {
    width: 100%;
    max-width: 600px;
}

.close {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Contact Section */
.contact {
    padding: 100px 10%;
    text-align: center;
}

.contact .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 60px;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.contact input,
.contact textarea {
    padding: 12px 16px;
    border: 1px solid rgba(156, 90, 60, 0.25);
    border-radius: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    resize: none;
}

.contact button {
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background: var(--brown);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.contact button:hover {
    background: var(--brown-light);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: var(--text-dark);
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--brown);
}


/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #eff4fd;
    background-color: var(--purple-dark);
    color: var(--white);

}

/* media queries */
/* 📱 Mobile */
@media (max-width: 768px) {
    .images {
        display: none;
    }

    .hero {
        padding: 40px 20px;
        text-align: center;
        align-items: center;
    }

    h1 {
        font-size: 42px;
    }

    .portfolio-word {
        font-size: 36px;
    }

    .shapes .circle {
        width: 40px;
        height: 40px;
        left: 20px;
        bottom: 40px;
    }

    .filters {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .project-card {
        margin-left: 40px;
        margin-right: 40px;
        padding: 0;
        /* إزالة البادينغ نهائياً */
        height: auto;
        /* بحيث يتناسب مع المحتوى */
    }

    .project-card img,
    .project-card video {
        height: auto;
        /* يتناسب مع عرض الكارد */
        max-height: 200px;
        /* أو أي ارتفاع تحبيه */
        border-radius: 16px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        /* عمود واحد على الموبايل */
        gap: 16px;
    }

    .skills {
        padding: 60px 20px;
    }

    .skills h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .skill-card {
        padding: 30px 10px;
    }

    .skill-card span {
        font-size: 32px;
    }

    .skill-card h3 {
        font-size: 18px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .popup-content {
        width: 90%;
        padding: 20px;
    }

    .close {
        top: 20px;
        right: 25px;
    }

    /* Cursor يتعطّل عالموبايل */
    .custom-cursor {
        display: none;
    }

    .contact {
        padding: 60px 20px;
    }

    .contact .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .contact input,
    .contact textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    .contact button {
        font-size: 16px;
        padding: 10px 16px;
    }

    .social-icons {
        gap: 12px;
    }

    .footer {
        font-size: 14px;
        padding: 15px 20px;
    }

    .popup video {
        width: 100%;
        max-height: 60vh;
        object-fit: contain;
    }

    .popup-content {
        width: 95%;
        padding: 15px;
    }

}

/*  */