* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    color: #20242b;
    background: #fffdf8;
    line-height: 1.9;
}


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

.navbar {
    position: sticky;
    top: 12px;
    z-index: 100;

    width: min(1180px, calc(100% - 28px));

    margin: 12px auto 0;
    padding: 12px 16px;

    display: flex;
    align-items: center;
    gap: 25px;

    background: rgba(255, 255, 255, 0.92);

    border: 1px solid #ece7dc;
    border-radius: 18px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(14px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 245px;

    color: #20242b;
    text-decoration: none;
}

.logo strong {
    display: block;
    font-size: 1rem;
}

.logo small {
    display: block;
    color: #777;
    font-size: 0.7rem;
}

.logo-bricks {
    width: 43px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 3px;
}

.logo-bricks span {
    width: 20px;
    height: 18px;

    border-radius: 5px;

    box-shadow: inset 0 -3px rgba(0, 0, 0, 0.12);
}

.logo-bricks .red {
    background: #e52b2f;
}

.logo-bricks .yellow {
    background: #ffc928;
}

.logo-bricks .blue {
    background: #1677d2;
}

.logo-bricks .green {
    background: #39a94b;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;

    flex: 1;
}

.nav-links a {
    padding: 8px 13px;

    border-radius: 10px;

    color: #42464d;
    text-decoration: none;

    font-weight: 600;

    transition: 0.2s;
}

.nav-links a:hover {
    background: #fff0ee;
    color: #e52b2f;
}

.nav-button {
    padding: 10px 18px;

    background: #ffc928;

    color: #1d1d1d;

    border-radius: 11px;

    text-decoration: none;

    font-weight: 800;

    box-shadow: 0 5px 0 #d49d00;

    transition: 0.2s;
}

.nav-button:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #d49d00;
}


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

.hero {
    width: min(1180px, calc(100% - 28px));

    margin: 55px auto 80px;

    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    gap: 55px;

    align-items: center;
}

.hero-text {
    padding: 20px 0;
}

.tag {
    display: inline-block;

    padding: 5px 13px;

    background: #edf8e9;

    color: #3d8e27;

    border-radius: 9px;

    font-size: 0.8rem;

    font-weight: 800;
}

.hero h1 {
    margin: 18px 0 0;

    font-size: clamp(3rem, 7vw, 5.5rem);

    line-height: 1.1;

    letter-spacing: -2px;
}

.hero h1 span {
    color: #e52b2f;
}

.hero h2 {
    margin: 15px 0 0;

    font-size: 2rem;
}

.hero h3 {
    margin: 3px 0 15px;

    color: #1677d2;

    font-size: 1.35rem;
}

.hero p {
    max-width: 650px;

    color: #5e636b;

    font-size: 1.05rem;
}

.hero-buttons {
    display: flex;

    gap: 14px;

    margin-top: 25px;
}

.main-button,
.outline-button {
    padding: 11px 21px;

    border-radius: 12px;

    text-decoration: none;

    font-weight: 800;

    transition: 0.2s;
}

.main-button {
    background: #e52b2f;

    color: white;

    box-shadow: 0 6px 0 #b51e22;
}

.main-button:hover {
    transform: translateY(2px);

    box-shadow: 0 4px 0 #b51e22;
}

.outline-button {
    background: white;

    color: #30343b;

    border: 1px solid #d8d8d8;
}

.outline-button:hover {
    border-color: #1677d2;

    color: #1677d2;
}

.quick-info {
    display: flex;

    gap: 35px;

    margin-top: 32px;
}

.quick-info div {
    display: flex;

    flex-direction: column;
}

.quick-info strong {
    font-size: 1.8rem;

    color: #e52b2f;
}

.quick-info span {
    color: #70757d;

    font-size: 0.82rem;
}


/* =========================
   LEGO SCENE
========================= */

.lego-scene {
    min-height: 430px;

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    border-radius: 42px;

    border: 1px solid #f0e4c4;

    background:
        radial-gradient(circle at 30% 20%, #fff 0, transparent 35%),
        linear-gradient(145deg, #fff3cc, #fff, #eaf5ff);
}

.lego-card {
    width: 280px;
    height: 250px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background: white;

    border-radius: 30px;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.13);
}

.stud-row {
    display: flex;

    gap: 18px;
}

.stud-row i {
    width: 34px;
    height: 14px;

    border-radius: 8px;

    background: #ffc928;

    box-shadow: inset 0 -3px rgba(0, 0, 0, 0.1);
}

.robot-face {
    width: 105px;
    height: 105px;

    position: relative;

    margin: 14px;

    border-radius: 50%;

    background: #ffc928;

    border: 5px solid #222;
}

.eye {
    width: 13px;
    height: 13px;

    position: absolute;

    top: 30px;

    border-radius: 50%;

    background: #222;
}

.eye:first-child {
    right: 26px;
}

.eye:nth-child(2) {
    left: 26px;
}

.smile {
    width: 43px;
    height: 20px;

    position: absolute;

    bottom: 21px;
    left: 26px;

    border-bottom: 4px solid #222;

    border-radius: 50%;
}

.bottom-bricks {
    display: flex;

    gap: 6px;
}

.bottom-bricks span {
    width: 45px;
    height: 28px;

    border-radius: 6px;

    box-shadow: inset 0 -4px rgba(0, 0, 0, 0.12);
}

.bottom-bricks .red {
    background: #e52b2f;
}

.bottom-bricks .yellow {
    background: #ffc928;
}

.bottom-bricks .blue {
    background: #1677d2;
}

.bottom-bricks .green {
    background: #39a94b;
}

.floating {
    width: 85px;
    height: 50px;

    position: absolute;

    border-radius: 8px;

    box-shadow: inset 0 -6px rgba(0, 0, 0, 0.12);
}

.brick-one {
    left: 40px;
    bottom: 50px;

    background: #e52b2f;

    transform: rotate(-12deg);
}

.brick-two {
    right: 35px;
    top: 45px;

    background: #ffc928;

    transform: rotate(10deg);
}

.brick-three {
    right: 50px;
    bottom: 40px;

    background: #1677d2;

    transform: rotate(-6deg);
}

.scene-text {
    position: absolute;

    bottom: 22px;

    display: flex;

    flex-direction: column;

    align-items: center;

    color: #555;
}

.scene-text strong {
    color: #e52b2f;

    letter-spacing: 4px;
}

.scene-text span {
    font-size: 0.65rem;

    letter-spacing: 3px;
}


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

.section {
    width: min(1120px, calc(100% - 28px));

    margin: 85px auto;
}

.section-title {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}

.section-title > span {
    font-size: 2rem;

    font-weight: 900;

    color: #e52b2f;
}

.section-title small {
    color: #a17e12;

    font-weight: 800;
}

.section-title h2 {
    margin: 0;

    font-size: 2rem;
}

.section-intro {
    max-width: 900px;

    color: #626870;

    margin-bottom: 30px;
}


/* =========================
   CLASS CARDS
========================= */

.class-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;

}

.class-card {
    min-height: 300px;

    padding: 25px 18px;

    text-align: center;

    border-radius: 40px;

    border: 1px solid #e8e5dd;

    transition: 0.25s;
}

.class-card:hover {
    transform: translateY(-7px);

    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.09);
}

.red-card {
    background: #fff0f0;
}

.yellow-card {
    background: #fff8df;
}

.green-card {
    background: #eff9eb;
}

.blue-card {
    background: #edf5ff;
}

.purple-card {
    background: #f5efff;
}

.class-icon {
    font-size: 2.8rem;

    margin-bottom: 5px;
}

.class-card h3 {
    margin: 5px 0 9px;
}

.class-card p {
    margin: 0;

    color: #656b73;

    font-size: 0.88rem;
}


/* =========================
   LEARNING
========================= */

.learning-section {
    width: min(1120px, calc(100% - 28px));

    margin: 90px auto;

    padding: 50px;

    display: grid;

    grid-template-columns: 1fr 0.8fr;

    gap: 50px;

    align-items: center;

    background: #fff4d3;

    border: 1px solid #f0dfa7;

    border-radius: 30px;
}

.learning-content h2 {
    font-size: 2.5rem;

    margin: 12px 0;
}

.learning-content h2 span {
    color: #e52b2f;
}

.learning-content p {
    color: #5e646c;
}

.values {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 20px;
}

.values span {
    padding: 8px 15px;

    background: white;

    border-radius: 10px;

    font-weight: 700;
}

.tower {
    height: 300px;

    display: flex;

    flex-direction: column;

    justify-content: end;

    align-items: center;
}

.tower-row {
    width: 220px;
    height: 42px;

    border-radius: 7px;

    box-shadow: inset 0 -5px rgba(0, 0, 0, 0.12);

    margin-bottom: 3px;
}

.tower-row.red {
    background: #e52b2f;
}

.tower-row.yellow {
    background: #ffc928;
}

.tower-row.blue {
    background: #1677d2;
}

.tower-row.green {
    background: #39a94b;
}

.tower-base {
    width: 260px;
    height: 25px;

    border-radius: 7px;

    background: #333;
}


/* =========================
   EXPERIENCE
========================= */

.experience-grid {
    display: grid;

    grid-template-columns: 0.45fr 1fr;

    gap: 30px;

    padding: 30px;

    background: white;

    border: 1px solid #e6e3db;

    border-radius: 24px;
}

.experience-number {
    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    background: #fff0f0;

    border-radius: 20px;
}

.experience-number strong {
    font-size: 4rem;

    line-height: 1;

    color: #e52b2f;
}

.experience-number span {
    text-align: center;

    color: #666;

    padding: 10px;
}

.experience-content h3 {
    font-size: 1.5rem;
}

.experience-content p {
    color: #60656d;
}

.research-card {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 20px;

    padding: 25px;

    border-radius: 20px;

    background: #f0f7ff;

    border: 1px solid #dceafa;
}

.research-icon {
    font-size: 2.6rem;
}

.research-card h3 {
    margin: 0;
}

.research-card p {
    margin-bottom: 0;

    color: #626872;
}


/* =========================
   EDUCATION
========================= */

.education {
    display: grid;

    grid-template-columns: 0.7fr 1.3fr;

    gap: 20px;
}

.education-main {
    padding: 30px;

    border-radius: 23px;

    background: #edf5ff;

    border: 1px solid #dceafa;
}

.education-icon {
    font-size: 3rem;
}

.education-main h3 {
    color: #1677d2;

    font-size: 1.5rem;
}

.birth {
    display: inline-block;

    margin-top: 12px;

    padding: 6px 12px;

    background: white;

    border-radius: 9px;

    color: #666;

    font-size: 0.85rem;
}

.courses-list {
    padding: 30px;

    background: white;

    border: 1px solid #e5e2db;

    border-radius: 23px;
}

.courses-list h3 {
    margin-top: 0;
}

.course {
    display: flex;

    gap: 10px;

    border-bottom: 1px dashed #ddd;
}

.course:last-child {
    border-bottom: 0;
}

.course span {
    color: #39a94b;

    font-size: 1.3rem;

    font-weight: 900;
}


/* =========================
   ABOUT
========================= */

.about-section {
    width: min(1120px, calc(100% - 28px));

    margin: 90px auto;

    padding: 45px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 40px;

    background: #eff9eb;

    border-radius: 30px;
}

.about-section h2 {
    font-size: 2.4rem;

    margin: 10px 0;
}

.about-section p {
    max-width: 700px;

    color: #5c626a;
}

.about-bricks {
    display: grid;

    grid-template-columns: 90px 90px;

    gap: 7px;

    transform: rotate(-5deg);
}

.about-brick {
    width: 90px;
    height: 55px;

    border-radius: 8px;

    box-shadow: inset 0 -6px rgba(0, 0, 0, 0.12);
}

.about-brick.red {
    background: #e52b2f;
}

.about-brick.yellow {
    background: #ffc928;
}

.about-brick.blue {
    background: #1677d2;
}

.about-brick.green {
    background: #39a94b;
}


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

.contact-section {
    width: min(1120px, calc(100% - 28px));

    margin: 80px auto 35px;

    padding: 45px;

    text-align: center;

    color: white;

    background: #202832;

    border-radius: 30px;
}

.contact-section h2 {
    font-size: 2.3rem;

    margin: 12px 0;
}

.contact-section h2 span {
    color: #ffc928;
}

.contact-section p {
    color: #d4d8de;
}

.contact-section a {
    display: inline-block;

    margin-top: 15px;

    padding: 12px 25px;

    border-radius: 12px;

    background: #ffc928;

    color: #222;

    text-decoration: none;

    font-weight: 900;
}


/* =========================
   FOOTER
========================= */

footer {
    width: min(1120px, calc(100% - 28px));

    margin: auto;

    padding: 25px 0;

    border-top: 1px solid #e1ded7;

    display: flex;

    justify-content: space-between;

    color: #747980;
}

footer strong,
footer span {
    display: block;
}

footer strong {
    color: #222;
}


/* =========================
   PERSONAL CONTACT PAGE
========================= */

.contact-page {
    min-height: 100vh;

    background:
        radial-gradient(circle at top right, #fff3d0, transparent 35%),
        #f7f8fa;

    padding: 50px 20px;
}

.contact-container {
    width: min(700px, 100%);

    margin: auto;

    padding: 45px;

    background: white;

    border: 1px solid #e5e7eb;

    border-radius: 30px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);

    text-align: center;
}


/* عکس گرد */

.profile-photo {
    width: 150px;
    height: 150px;

    margin: 0 auto 20px;

    border-radius: 50%;

    overflow: hidden;

    border: 6px solid white;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);

    background: #eeeeee;
}

.profile-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.contact-container h1 {
    margin: 10px 0 0;

    font-size: 2.5rem;

    color: #20242b;
}

.contact-job {
    margin: 5px 0;

    color: #6b7280;

    font-size: 1.05rem;
}

.contact-divider {
    width: 70px;
    height: 4px;

    margin: 22px auto 35px;

    background: #ffc928;

    border-radius: 20px;
}

.personal-info,
.contact-information,
.social-section {
    text-align: right;

    margin-top: 35px;
}

.personal-info h2,
.contact-information h2,
.social-section h2 {
    margin-bottom: 15px;

    font-size: 1.35rem;

    color: #20242b;
}

.personal-info p {
    color: #626870;

    margin: 8px 0;
}


/* اطلاعات تماس */

.contact-information {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 17px;

    background: #f7f8fa;

    border: 1px solid #e7e9ed;

    border-radius: 15px;

    color: #20242b;

    text-decoration: none;

    transition: 0.2s;
}

.contact-item:hover {
    transform: translateY(-2px);

    background: #fffaf0;

    border-color: #ffc928;
}

.contact-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    background: white;

    border-radius: 12px;

    font-size: 1.3rem;
}

.contact-item small {
    display: block;

    color: #858b93;

    font-size: 0.75rem;
}

.contact-item strong {
    display: block;

    margin-top: 2px;

    font-size: 0.95rem;
}


/* شبکه‌های اجتماعی */

.social-buttons {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

.social-buttons a {
    flex: 1;

    min-width: 120px;

    padding: 11px;

    text-align: center;

    border-radius: 12px;

    background: #20242b;

    color: white;

    text-decoration: none;

    font-weight: 700;

    transition: 0.2s;
}

.social-buttons a:hover {
    transform: translateY(-2px);

    opacity: 0.9;
}


/* برگشت */

.back-button {
    display: inline-block;

    margin-top: 35px;

    padding: 11px 22px;

    background: #ffc928;

    color: #202020;

    border-radius: 12px;

    text-decoration: none;

    font-weight: 800;

    box-shadow: 0 5px 0 #d59e00;

    transition: 0.2s;
}

.back-button:hover {
    transform: translateY(2px);

    box-shadow: 0 3px 0 #d59e00;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 950px) {

    .navbar {
        flex-wrap: wrap;
    }

    .logo {
        min-width: auto;
    }

    .nav-links {
        order: 3;

        width: 100%;

        overflow-x: auto;

        justify-content: flex-start;
    }

    .hero,
    .learning-section,
    .education {
        grid-template-columns: 1fr;
    }

    .class-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .navbar {
        width: calc(100% - 18px);

        top: 5px;
    }

    .nav-button {
        display: none;
    }

    .hero {
        margin-top: 35px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.7rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        text-align: center;
    }

    .quick-info {
        gap: 18px;
    }

    .class-grid {
        grid-template-columns: 1fr;
    }

    .learning-section {
        padding: 28px 20px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .about-section {
        padding: 28px 20px;

        flex-direction: column;

        align-items: flex-start;
    }

    .contact-section {
        padding: 30px 20px;
    }

    .contact-section h2 {
        font-size: 1.7rem;
    }

    .contact-container {
        padding: 30px 18px;
    }

    .contact-container h1 {
        font-size: 2rem;
    }

    .profile-photo {
        width: 125px;
        height: 125px;
    }

    .contact-item strong {
        font-size: 0.85rem;
    }

    footer {
        flex-direction: column;

        gap: 12px;
    }
} 
/* 🎨 LEGO COLOR THEME */

body {
    background:
        radial-gradient(circle at 10% 15%, rgba(229, 43, 47, 0.18), transparent 25%),
        radial-gradient(circle at 90% 20%, rgba(22, 119, 210, 0.18), transparent 25%),
        radial-gradient(circle at 20% 85%, rgba(57, 169, 75, 0.18), transparent 25%),
        radial-gradient(circle at 85% 85%, rgba(130, 70, 190, 0.18), transparent 25%),
        #f4f1fa;
}

/* کارت‌ها */

.class-card,
.education-main,
.courses-list,
.experience-grid,
.contact-container,
.contact-item {
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.95),
        rgba(246,242,255,0.95)
    );

    border: 2px solid rgba(130, 70, 190, 0.18);
}

/* رنگی‌تر شدن تیترها */

h1 span {
    color: #e52b2f !important;
}

.section-title > span {
    color: #1677d2;
}

.section-title small {
    color: #7b3fc6;
}

/* دکمه‌ها */

.main-button {
    background: linear-gradient(135deg, #e52b2f, #b51e22);
}

.nav-button,
.back-button {
    background: linear-gradient(135deg, #ffc928, #ffb300);
}

/* نوار بالای سایت */

.navbar {
    background: linear-gradient(
        90deg,
        rgba(255, 235, 235, 0.96),
        rgba(235, 245, 255, 0.96),
        rgba(239, 251, 237, 0.96),
        rgba(246, 238, 255, 0.96)
    );

    border: 2px solid rgba(130, 70, 190, 0.18);
}

/* بخش اصلی */

.hero {
    position: relative;
}

/* رنگی شدن پس‌زمینه بخش لگو */

.lego-scene {
    background:
        linear-gradient(
            135deg,
            #ffe5e5,
            #e4f1ff,
            #e7f8e5,
            #f1e5ff
        );

    border: 3px solid rgba(130, 70, 190, 0.2);
}

/* بخش یادگیری */

.learning-section {
    background:
        linear-gradient(
            135deg,
            #ffe1e1,
            #e2efff,
            #e5f7e3,
            #f0e2ff
        );

    border: 2px solid rgba(130, 70, 190, 0.2);
}

/* کارت تماس */

.contact-section {
    background:
        linear-gradient(
            135deg,
            #b51e22,
            #1677d2,
            #39a94b,
            #7b3fc6
        );

    background-size: 300% 300%;

    animation: legoColors 10s ease infinite;
}

@keyframes legoColors {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* صفحه Contact هم رنگی شود */

.contact-page {
    background:
        radial-gradient(circle at 10% 10%, rgba(229,43,47,.25), transparent 25%),
        radial-gradient(circle at 90% 15%, rgba(22,119,210,.25), transparent 25%),
        radial-gradient(circle at 15% 90%, rgba(57,169,75,.25), transparent 25%),
        radial-gradient(circle at 90% 90%, rgba(123,63,198,.25), transparent 25%),
        #f4f1fa;
}