* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #070509;
    color: #ffffff;
    font-family: Arial, sans-serif;
}


/* =========================
   INTRO
========================= */

#intro {
    position: fixed;
    inset: 0;
    background: #050308;
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;

    animation: introOut 1s ease 3.2s forwards;
}

.intro-content {
    text-align: center;
}

.intro-logo {
    width: 100px;
    height: 100px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: auto;

    border: 2px solid #8b2cff;

    color: #b65cff;

    font-size: 30px;
    font-weight: bold;

    box-shadow:
        0 0 20px #7d21d9,
        inset 0 0 20px #35104f;

    animation: logoPulse 1.5s infinite;
}

.intro-content h1 {
    margin-top: 30px;
    font-size: 30px;
    letter-spacing: 5px;
}

.intro-content p {
    margin-top: 10px;
    color: #9c9c9c;
    letter-spacing: 3px;
}

.loading-line {
    width: 220px;
    height: 2px;

    margin: 35px auto;

    background: #24182d;
}

.loading-line span {
    display: block;
    width: 0%;
    height: 100%;

    background: #a83cff;

    animation: loading 2.5s ease forwards;
}


@keyframes loading {
    to {
        width: 100%;
    }
}

@keyframes logoPulse {

    0%, 100% {
        box-shadow:
            0 0 15px #7d21d9,
            inset 0 0 15px #35104f;
    }

    50% {
        box-shadow:
            0 0 40px #a83cff,
            inset 0 0 30px #4c1475;
    }
}

@keyframes introOut {

    to {
        opacity: 0;
        visibility: hidden;
    }

}


/* =========================
   HEADER
========================= */

header {
    position: sticky;
    top: 0;
    z-index: 100;

    height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    background: rgba(7, 5, 9, 0.9);

    border-bottom: 1px solid #24182d;

    backdrop-filter: blur(10px);
}

.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 4px;
    color: #b64cff;
    border-radius: 100%;
}
.son-logo{
    display: flex;
    width: 50px;
    border-radius:100% ;
}
#big-logo{
    display: flex;
    height: 290px;
    border-radius: 100%;
    transform: rotate(-45deg);
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;

    transition: 0.3s;
}

nav a:hover {
    color: #bd55ff;
}

.menu-btn {
    display: none;

    background: none;
    border: none;

    color: white;

    font-size: 25px;

    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 90vh;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 80px 10%;

    position: relative;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -150px;
    top: 100px;

    background: #6619a0;

    filter: blur(180px);

    opacity: 0.25;
}

.hero-text {
    max-width: 650px;
    z-index: 2;
}

.small-title {
    color: #9f46d9;

    letter-spacing: 5px;
    font-size: 12px;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(55px, 8vw, 110px);

    line-height: 1;

    margin-bottom: 20px;
}

.hero h1 span {
    color: #b74cff;
}

.hero h2 {
    font-size: 25px;
    color: #aaa;
    font-weight: normal;
}

.description {
    margin: 25px 0;

    color: #888;

    max-width: 550px;

    line-height: 1.8;
}

.main-button {
    display: inline-block;

    margin-top: 15px;

    padding: 16px 28px;

    background: #9d2be8;

    color: white;

    text-decoration: none;

    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;

    transition: 0.3s;
}

.main-button:hover {
    background: #c04cff;

    box-shadow:
        0 0 30px rgba(178, 54, 255, 0.5);
}

.hero-logo {
    z-index: 2;
}

.big-logo {
    width: 300px;
    height: 300px;

    border: 2px solid #6c238e;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 70px;
    font-weight: bold;

    color: #a934e5;

    transform: rotate(45deg);

    box-shadow:
        0 0 50px rgba(143, 37, 202, 0.2);
}

.big-logo::first-letter {
    color: white;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 120px 10%;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-bottom: 60px;
}

.section-title span {
    color: #a337dc;
    font-size: 14px;
}

.section-title h2 {
    font-size: 32px;
    letter-spacing: 4px;
}


/* =========================
   ABOUT
========================= */

.about {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;
}

.about-text h3 {
    font-size: 35px;
    margin-bottom: 25px;
}

.about-text p {
    color: #8d8d8d;

    line-height: 1.8;

    margin-bottom: 15px;
}

.stats {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.stat {
    padding: 30px;

    background: #0d0910;

    border: 1px solid #25162f;

    transition: 0.3s;
}

.stat:hover {
    border-color: #8e2dc4;

    transform: translateY(-5px);
}

.stat strong {
    display: block;

    color: #b74cff;

    font-size: 25px;

    margin-bottom: 10px;
}

.stat span {
    color: #777;
}


/* =========================
   CARDS
========================= */

.cards {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.card {
    background: #0c090f;

    border: 1px solid #25162e;

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);

    border-color: #9e34d9;

    box-shadow:
        0 10px 40px rgba(120, 30, 160, 0.15);
}

.card-image {
    height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 50px;
    font-weight: bold;

    background:
        linear-gradient(
            135deg,
            #160d1d,
            #32104a
        );

    color: #bd52ff;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    margin-bottom: 12px;
}

.card-content p {
    color: #777;

    line-height: 1.6;

    font-size: 14px;
}

.tag {
    display: inline-block;

    margin-top: 20px;

    font-size: 9px;

    letter-spacing: 2px;

    color: #b04ae3;
}


/* Hover */

.card:hover {
    z-index: 20;

    border-color: #b43cff;

    box-shadow:
        0 0 30px rgba(170, 50, 240, 0.25),
        0 30px 60px rgba(0, 0, 0, 0.6);

    transform:
        scale(1.08)
        rotate(0deg) !important;
}


/* تصویر کارت */

.card-image {
    height: 150px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 45px;

    background:
        linear-gradient(
            135deg,
            #120b17,
            #351044
        );

    color: #c04cff;
}


/* متن */

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
}

.card-content p {
    color: #777;

    line-height: 1.5;

    font-size: 13px;
}

.card:hover {
    transform: translateY(-8px);

    border-color: #9e34d9;

    box-shadow:
        0 10px 40px rgba(120, 30, 160, 0.15);
}

.card-image {
    height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 50px;
    font-weight: bold;

    background:
        linear-gradient(
            135deg,
            #160d1d,
            #32104a
        );

    color: #bd52ff;
}

.skill-logo{
    height: 100px;
    display: flex;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    margin-bottom: 12px;
}

.card-content p {
    color: #777;

    line-height: 1.6;

    font-size: 14px;
}

.skillcart{
    width: 100px;
    height: 100px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: auto;


    font-size: 30px;
    font-weight: bold;


}



/* =========================
   PROJECTS
========================= */

.projects {
    border-top: 1px solid #24182c;
}

.project {
    display: grid;

    grid-template-columns: 100px 1fr;

    align-items: center;

    padding: 35px 20px;

    border-bottom: 1px solid #24182c;

    transition: 0.3s;
}

.project:hover {
    padding-left: 35px;

    background: #0c0810;
}

.project-number {
    color: #9c35c8;

    font-size: 13px;
}

.project h3 {
    font-size: 23px;

    margin-bottom: 8px;
}

.project p {
    color: #777;
}


/* =========================
   CONTACT
========================= */

.contact {
    padding-bottom: 150px;
}

.contact-box {
    max-width: 900px;
}

.contact-box h2 {
    font-size: clamp(40px, 6vw, 80px);

    line-height: 1.1;
}

.contact-box h2 span {
    color: #af40e8;
}

.contact-box > p {
    margin: 25px 0 40px;

    color: #777;
}

.contact-links {
    border-top: 1px solid #25182d;
}

.contact-item {
    display: flex;

    justify-content: space-between;

    padding: 22px;

    border-bottom: 1px solid #25182d;

    color: #aaa;

    text-decoration: none;

    letter-spacing: 2px;

    transition: 0.3s;
}

.contact-item:hover {
    color: #c04fff;

    padding-left: 35px;

    background: #0d0811;
}

.contact-item b {
    color: #a43cda;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 40px 10%;

    border-top: 1px solid #24182d;

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: #555;

    font-size: 12px;
}

.footer-logo {
    color: #a83ce0;

    font-weight: bold;

    letter-spacing: 4px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 850px) {

    nav {
        position: absolute;

        top: 75px;
        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        padding: 25px;

        background: #09060c;

        border-bottom: 1px solid #24182d;
    }

    nav.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        flex-direction: column;

        align-items: flex-start;

        padding-top: 100px;
    }

    .hero-logo {
        margin: 100px auto 0;
    }

    .big-logo {
        width: 200px;
        height: 200px;

        font-size: 45px;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns:
            repeat(2, 1fr);
    }

    footer {
        flex-direction: column;
        gap: 15px;
    }

}


@media (max-width: 500px) {

    .section {
        padding: 80px 7%;
    }

    .hero {
        padding-left: 7%;
        padding-right: 7%;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 55px;
    }
}