@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text-primary);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    transition:
        background 0.5s ease,
        color 0.5s ease;
}

/* ================= VARIABLES ================= */

/* ================= DARK MODE ================= */

:root {
    --primary: #7c3aed;
    --primary-light: #a855f7;
    --primary-dark: #4c1d95;

    --background: #050507;
    --background-secondary: #0d0d16;
    --background-card: #11111b;

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;

    --gray: #a1a1aa;
    --purple: #7c3aed;
    --light-purple: #a855f7;

    --border: rgba(168, 85, 247, 0.25);
    --shadow: rgba(124, 58, 237, 0.35);
}

/* ================= LIGHT MODE ================= */

body.light-mode {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #6d28d9;

    --background: #f7f3ff;
    --background-secondary: #ffffff;
    --background-card: #ffffff;

    --text-primary: #111111;
    --text-secondary: #666666;

    --gray: #666666;
    --purple: #8b5cf6;
    --light-purple: #6d28d9;

    --border: rgba(124, 58, 237, 0.22);
    --shadow: rgba(139, 92, 246, 0.25);
}

/* ================= GLOW ================= */

.glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.18;
    z-index: -1;
}

.glow-1 {
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.glow-2 {
    background: var(--primary-light);
    right: -200px;
    top: 500px;
}

.glow-3 {
    background: var(--primary-dark);
    bottom: -200px;
    left: 30%;
}

/* ================= NAVBAR ================= */

.navbar {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 25px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1000;
}

.logo {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.logo span {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ================= THEME BUTTON ================= */

.theme-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--background-card);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.theme-btn:hover {
    transform: rotate(20deg);
    border-color: var(--primary-light);
    box-shadow: 0 0 20px var(--shadow);
}

/* ================= HAMBURGER ================= */

.menu-btn {
    display: none;
    width: 45px;
    height: 42px;
    background: var(--background-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;

    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: 0.4s;
}

/* ================= HERO ================= */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 10%;
    position: relative;
}

.hero-content {
    max-width: 550px;
}

.small-title {
    color: var(--text-secondary);
    font-size: 18px;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(70px, 10vw, 150px);
    line-height: 1;
    margin: 10px 0;

    background: linear-gradient(
        90deg,
        var(--text-primary),
        #c084fc,
        var(--primary)
    );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero h2 {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 500;
}

.hero p {
    color: var(--gray);
    line-height: 1.8;
    max-width: 450px;
    margin-bottom: 30px;
}

/* ================= BUTTON ================= */

.main-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 14px 25px;
    border-radius: 30px;
    text-decoration: none;

    color: white;

    background: linear-gradient(
        90deg,
        var(--primary-dark),
        var(--primary-light)
    );

    border: none;
    cursor: pointer;
    transition: 0.3s;

    box-shadow:
        0 0 20px rgba(168, 85, 247, 0.4);
}

.main-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 0 35px rgba(168, 85, 247, 0.7);
}

/* ================= SOCIAL ================= */

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.social-icons a {
    width: 35px;
    height: 35px;

    border: 1px solid var(--border);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-primary);
    text-decoration: none;

    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--purple);
    box-shadow: 0 0 20px var(--purple);
}

/* ================= HERO IMAGE ================= */

.hero-image {
    width: 500px;
    height: 500px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 92%;
    height: 90%;
    margin-top: 125px;
    object-fit: cover;

    position: relative;
    z-index: 2;

    filter: grayscale(30%) contrast(1.1);
}

.image-circle {
    position: absolute;

    width: 240px;
    height: 240px;

    border-radius: 50%;

    border: 3px solid var(--light-purple);

    box-shadow:
        0 0 30px var(--purple),
        inset 0 0 40px rgba(124, 58, 237, 0.3);

    transform: rotate(-30deg);
}

.floating-text {
    position: absolute;

    right: 0;
    bottom: 80px;

    color: var(--light-purple);

    font-family: "Playfair Display", serif;
    font-size: 20px;

    transform: rotate(-15deg);

    z-index: 3;
}

/* ================= SECTIONS ================= */

.section {
    max-width: 1400px;
    margin: auto;
    padding: 120px 10%;
}

.section-number {
    color: var(--light-purple);
    font-size: 13px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 45px;
    margin-bottom: 30px;
}

/*=============================================Lines=================================*/
/* ================= MOVING NEON LINES ================= */

.hero {
    overflow: hidden;
}

/* Container */
.moving-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: auto;
    overflow: hidden;
}

/* الخطوط نفسها */
.neon-line {
    position: absolute;

    width: 2px;
    height: 180px;

    background: linear-gradient(
        to bottom,
        transparent,
        #a855f7,
        #ffffff,
        #a855f7,
        transparent
    );

    box-shadow:
        0 0 5px #ffffff,
        0 0 12px #c084fc,
        0 0 25px #a855f7,
        0 0 45px #7c3aed;

    opacity: 0.35;

    transform: rotate(35deg);

    animation:
        lineMove linear infinite,
        linePulse 2s ease-in-out infinite;
}

/* حركة الخطوط */
@keyframes lineMove {

    0% {
        transform:
            translateY(120vh)
            translateX(-150px)
            rotate(35deg);
    }

    100% {
        transform:
            translateY(-120vh)
            translateX(150px)
            rotate(35deg);
    }

}

/* نبض بسيط */
@keyframes linePulse {

    0%,
    100% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.65;
    }

}


/* ================= HOVER GLOW ================= */

.neon-line:hover {
    opacity: 1;

    box-shadow:
        0 0 8px #ffffff,
        0 0 18px #ffffff,
        0 0 35px #d8b4fe,
        0 0 60px #a855f7,
        0 0 100px #7c3aed;
}


/* ================= NOURHAN NAME ================= */
.hover-name {
    position: fixed;

    z-index: 99999;

    pointer-events: none;

    color: #ffffff;

    font-family: "Playfair Display", serif;

    font-size: 20px;

    font-weight: 600;

    letter-spacing: 1px;

    padding: 10px 18px;

    border-radius: 25px;

    background: rgba(20, 10, 35, 0.9);

    border: 1px solid #c084fc;

    box-shadow:
        0 0 10px #ffffff,
        0 0 25px #c084fc,
        0 0 50px #a855f7,
        0 0 80px #7c3aed;

    opacity: 0;

    transform:
        translate(-50%, -140%)
        scale(0.5);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.hover-name.show {
    opacity: 1;

    transform:
        translate(-50%, -140%)
        scale(1);
}

/* ================= HERO CONTENT ABOVE LINES ================= */

.hero-content,
.hero-image,
.scroll {
    position: relative;
    z-index: 2;
}
/*=======================Text==================================*/

.about-text {
    color: #f1f1f5;
    line-height: 2;
    white-space: pre-wrap;
}

.about-text span {
    display: inline;
    color: #606068;
    transition: 
        color 0.15s ease,
        text-shadow 0.15s ease,
        filter 0.15s ease;
}

/* الحرف المضيء */
.about-text span.glow {
    color: #ffffff;

    text-shadow:
        0 0 5px #ffffff,
        0 0 10px #1b0f27,
        0 0 20px #c084fc,
        0 0 35px #1b082c,
        0 0 55px #7c3aed,
        0 0 80px #7c3aed;

    filter: brightness(2);
}

/* الحروف اللي جنب الحرف المضيء */
.about-text span.near {
    color: #e9d5ff;

    text-shadow:
        0 0 8px #c084fc,
        0 0 20px #a855f7;

    filter: brightness(1.5);
}
/* ================= ABOUT ================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 45px;
    margin-bottom: 25px;
}

.about-content p {
    color: var(--gray);
    line-height: 1.9;
}

.about-info {
    margin: 30px 0;
}

.about-info div {
    margin: 15px 0;
    color: var(--text-secondary);
}

.about-image {
    display: flex;
    justify-content: center;
}
.image-frame {
    animation: floatingImage 3s ease-in-out infinite;

    box-shadow:
        0 0 40px rgba(124, 58, 237, 0.3);
}

@keyframes floatingImage {
    0% {
        transform: rotate(3deg) translateY(0);
    }

    50% {
        transform: rotate(3deg) translateY(-22px);
        box-shadow:
            0 15px 55px rgba(124, 58, 237, 0.45);
    }

    100% {
        transform: rotate(3deg) translateY(0);
    }
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.base{
    width : 800px;
}

/* ================= SKILLS ================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.skill-card {
    background: linear-gradient(
        145deg,
        var(--background-card),
        var(--background-secondary)
    );

    border: 1px solid var(--border);

    padding: 25px 15px;
    border-radius: 15px;

    text-align: center;

    transition: 0.4s;
}

.skill-card:hover {
    transform: translateY(-10px);

    border-color: var(--light-purple);

    box-shadow:
        0 15px 40px rgba(124, 58, 237, 0.25);
}

.skill-card span {
    font-size: 30px;
}

.skill-card h3 {
    margin-top: 15px;
}

.skill-card p {
    color: var(--gray);
    font-size: 12px;
    margin-top: 5px;
}

/* ================= TIMELINE ================= */

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.timeline-item {
    border: 1px solid var(--border);

    padding: 25px;
    border-radius: 15px;

    background: var(--background-card);
}

.timeline-item .year {
    color: var(--light-purple);
    font-size: 13px;
}

.timeline-item h3 {
    margin: 15px 0 8px;
}

.timeline-item p {
    color: var(--gray);
    font-size: 14px;
}


.floating-words {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.floating-words span {
    position: absolute;

    color: var(--text-secondary);

    font-size: 18px;
    font-weight: 500;

    white-space: nowrap;

    text-shadow:
        0 0 10px rgba(168, 85, 247, 0.4);

    animation: floatAround 8s ease-in-out infinite;
}

/* أماكن مختلفة */
.floating-words span:nth-child(1) {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.floating-words span:nth-child(2) {
    top: 50%;
    left: 45%;
    animation-delay: 2s;
}

.floating-words span:nth-child(3) {
    top: 75%;
    left: 20%;
    animation-delay: 4s;
}


@keyframes floatAround {

    0% {
        transform: translate(0, 0) rotate(-2deg);
    }

    25% {
        transform: translate(70px, -30px) rotate(2deg);
    }

    50% {
        transform: translate(120px, 20px) rotate(-1deg);
    }

    75% {
        transform: translate(40px, 50px) rotate(2deg);
    }

    100% {
        transform: translate(0, 0) rotate(-2deg);
    }

}
/* ================= PROJECTS ================= */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 18px;

    color: var(--primary-light);
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: 0.3s ease;
}

.project-link span {
    font-size: 18px;
    transition: 0.3s ease;
}

.project-link:hover {
    color: #ffffff;

    text-shadow:
        0 0 10px var(--primary-light),
        0 0 20px var(--primary);
}

.project-link:hover span {
    transform: translateX(6px);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.projects-header h2 {
    font-family: "Playfair Display", serif;
    font-size: 50px;
}

.projects-header p {
    color: var(--gray);
    max-width: 600px;
    margin-top: 15px;
}

.projects-header a {
    color: var(--light-purple);
    text-decoration: none;
}

.project-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.project-filters button {
    background: var(--background-card);
    color: var(--text-secondary);

    border: 1px solid var(--border);

    padding: 10px 20px;
    border-radius: 25px;

    cursor: pointer;
}

.project-filters .active {
    background: var(--purple);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    background: var(--background-card);

    border: 1px solid var(--border);
    border-radius: 15px;

    overflow: hidden;

    transition: 0.4s;
}

.project-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 50px rgba(124, 58, 237, 0.25);
}

.project-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-content p {
    color: var(--gray);
    margin: 8px 0 15px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tags span {
    font-size: 11px;

    padding: 6px 10px;

    border-radius: 15px;

    background: var(--background-secondary);
    color: var(--text-secondary);
}

/* ================= TESTIMONIALS ================= */

.section-description {
    color: var(--gray);
    max-width: 600px;

    line-height: 1.8;

    margin-bottom: 40px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    padding: 35px;

    border-radius: 20px;

    border: 1px solid var(--border);

    background: linear-gradient(
        145deg,
        var(--background-card),
        var(--background-secondary)
    );
}

.quote {
    color: var(--light-purple);
    font-size: 50px;
}

.stars {
    color: #facc15;
    margin-bottom: 20px;
}

.testimonial-card p {
    color: var(--gray);
    line-height: 1.8;
}

.client {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.client-avatar {
    width: 45px;
    height: 45px;

    border-radius: 50%;

    background: var(--purple);

    display: flex;
    align-items: center;
    justify-content: center;
}

.client span {
    color: var(--gray);
    font-size: 12px;
}

/* ================= BANNER ================= */

.quote-banner {
    margin-top: 50px;

    padding: 50px;

    border-radius: 20px;

    position: relative;
    overflow: hidden;

    border: 1px solid var(--border);

    background:
        radial-gradient(
            circle at left,
            var(--primary-dark),
            var(--background) 60%
        );
}

.quote-banner h2 {
    font-family: "Playfair Display", serif;
    font-size: 40px;

    position: relative;
    z-index: 2;
}

.planet {
    position: absolute;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    border: 2px solid var(--light-purple);

    right: 40px;
    top: -60px;

    box-shadow:
        0 0 50px var(--purple);
}


/* ========================= CLIENT ========================= */
 

/* =========================
   COMMENT IMAGE
========================= */

.comment-image {
    width: 100%;

    margin: 20px 0;

    border-radius: 12px;

    overflow: hidden;

    border: 1px solid rgba(168, 85, 247, 0.2);

    background: #12091c;

    box-shadow:
        0 0 15px rgba(168, 85, 247, 0.08);
}


.comment-image img {
    width: 100%;

    height: auto;

    display: block;

    object-fit: cover;

    transition: 0.4s ease;
}


.testimonial-card:hover .comment-image img {
    transform: scale(1.02);
}

/* ================= CONTACT ================= */


#scrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: none;
    z-index: 2000;
}



.creative-contact {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    overflow: hidden;
    padding: 60px 20px;
}

/* دوائر الهالة في الخلفية */
.aura-bg .aura-circle {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.4;
}
.aura-circle.one { width: 300px; height: 300px; background: var(--primary); top: -50px; left: -50px; animation: orbit 10s infinite linear; }
.aura-circle.two { width: 400px; height: 400px; background: var(--accent); bottom: -100px; right: -50px; animation: orbit 15s infinite linear reverse; }

@keyframes orbit { from { transform: rotate(0deg) translateX(50px) rotate(0deg); } to { transform: rotate(360deg) translateX(50px) rotate(-360deg); } }


.contact-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    gap: 50px;
    align-items: center;
}

/* تأثير العنوان العائم */
.floating-title { font-size: 3.5rem; color: var(--text-light); line-height: 1.1; margin-bottom: 20px; animation: float 3s ease-in-out infinite; }
.floating-title span { color: var(--primary); display: block; font-style: italic; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* أيقونات السوشيال المتبعثرة */
.floating-icons { display: flex; gap: 20px; margin-top: 40px; }
.f-icon {
    width: 55px; height: 55px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    animation: bounce var(--d) infinite alternate;
    transition: 0.3s;
}
.f-icon:hover { background: var(--primary); color: white; transform: scale(1.2) rotate(15deg); }

@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-20px); } }

/* الفورمة الزجاجية Creative */
.contact-glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 20px 20px 50px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: 0.5s;
}
.contact-glass-card:hover { transform: perspective(1000px) rotateY(0deg); }

/* الستايل المودرن للحقول */
.input-field { position: relative; margin-bottom: 30px; }
.input-field input, .input-field textarea {
    width: 100%; padding: 10px 0;
    background: transparent; border: none;
    border-bottom: 2px solid var(--primary);
    outline: none; color: var(--text-light); font-size: 16px;
}
.input-field label {
    position: absolute; top: 10px; left: 0;
    color: #888; transition: 0.3s; pointer-events: none;
}
.input-field input:focus ~ label, .input-field input:valid ~ label,
.input-field textarea:focus ~ label, .input-field textarea:valid ~ label {
    top: -20px; font-size: 12px; color: var(--primary); font-weight: bold;
}

.send-btn {
    width: 100%; padding: 15px;
    background: var(--primary); color: white;
    border: none; border-radius: 10px; cursor: pointer;
    font-size: 1.1rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    overflow: hidden; position: relative; transition: 0.3s;
}
.send-btn:hover { background: var(--text-light); letter-spacing: 2px; }
.send-btn i { transition: 0.3s; }
.send-btn:hover i { transform: translateX(10px) translateY(-2px); }

/* Responsive */
@media (max-width: 900px) {
    .contact-wrapper { grid-template-columns: 1fr; text-align: center; }
    .floating-icons { justify-content: center; }
    .contact-glass-card { transform: none; }
}

