* {
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Poppins', 'Inter', sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a{
    text-decoration: none;
    color: black;
}

body {
    background: linear-gradient(135deg, #112442, #1c3559, #27446d) no-repeat fixed;
    color: #ffffff;
    padding: 40px;
}

body.top_padd{
    padding-top: 70px;
}

.container {
    background: linear-gradient(to bottom, #0b1b32 40%, #ffffff00 55%, #ffffff00 100%); /*clr*/
    max-width: 900px;
    border-radius: 20px;
    margin: auto;
    padding: 20px 40px 40px;
}

.container.n-back {
    background: none;
    margin-bottom: 40px;
    position: relative;
}

.container.n-padd {
    padding: 0;
}

.container.wback{
    background: #b9c9d840;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(20px);
}

.brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand > div{
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand .logo{
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand .logo img{
    height: 40px;
    width: auto;
    max-height: 5vh;
}

.brand .brand_name{
    font-size: clamp(1.7rem, 2vw, 2rem);
    font-weight: 600;
    color: white;
    line-height: 1;
}

.brand .GB a{
    margin-left: 20px;
}

.profile {
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 2;
    display: flex;
    padding: 40px;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
}

.profile img {
    width: 30%;
    object-fit: cover;
    border-radius: 10px;
}

.info h1 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
}

.info p {
    margin: 10px 0 20px;
    font-size: 16px;
    color: #c9d6d2;
    line-height: 1.6;
}

.info .GB{
    display: none;
}

.info a , .brand .GB a{
    background-color: #083787; /*clr*/
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.info a, .brand .GB a{
    color: #fff;
}

.info a:hover , .brand .GB a:hover{
    background-color: #0a4ea0; /*clr*/
    transform: scale(1.05);
}

.portfolio {
    background: #173559;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(20px);
}

.portfolio h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
}

.skills {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.skill {
    background-color: #00000015;
    color: #fff;
    border-radius: 15px;
    padding: 20px;
    width: 160px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill > a{
    color: #b9c9d8;
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

.skill svg{
    width: 90%;
    fill: #b9c9d8;
}

.skill i {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
    color: #4a3bb6;
}

.skill a{
    width: 100%;
}

.bottom-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.about,
.contact {
    flex: 1 1 300px;
    border-radius: 20px;
    padding: 25px;
}

.about {
    background-color: #b9c9d8;/*clr*/
    color: #1c1c1c;
    cursor: pointer;
    backdrop-filter: blur(20px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.about:hover {
    background-color: #dae1e5; /* ~10-15% تیره‌تر و خنثی‌تر از رنگ اصلی */
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1); /* حس شناور شدن */
}

.about h3 {
    margin-bottom: 10px;
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
    color: #000;
    z-index: 1000;
}

/* Modal Content/Box */
.modal-content {
    position: relative;
    background-color: #b9c9d8;/*clr*/
    margin: 15% auto;
    padding: 40px;
    border-radius: 25px;
    width: 70%;
    color: #000;
    text-align: justify;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #173559;/*clr*/
    float: right;
    font-size: 28px;
    font-weight: lighter;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #0c1c2f;
    text-decoration: none;
    cursor: pointer;
}

.contact {
    background-color: #0c1524;/*clr*/
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact:hover {
    background-color: #101e32;/*clr*/
}

.contact img {
    width: 50%;
    margin-bottom: 10px;
}

.contact svg {
    background-color: #11253e;/*clr*/
    padding: 10px;
    border-radius: 10px;
    width: 30%;
    margin-bottom: 10px;
    backdrop-filter: blur(20px);
    fill: #b9c9d8;
}

.modal2 {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
    color: black;
}

.modal-content2 {
  background-color: #b9c9d8;
  margin: auto;
  padding: 10px 20px 20px;
  border: 1px solid #888;
  max-width: 350px;
  border-radius: 20px;
  text-align: center;
}

.close2 {
  float: right;
  font-size: 28px;
  font-weight: lighter;
  cursor: pointer;
    color: #526e93;/*clr*/
}

.email-box2 {
  background-color: #083787;/*clr*/
  color: white;
  padding: 20px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.email-box2:hover{
    background-color: #0a4ea0;/*clr*/
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.email-box2 svg{
    width: 15%;
    margin-right: 10px;
}

.social-icons2 {
  display: flex;
  justify-content: space-evenly;
  gap: 10px;
}

.icon2{
  width: 90px;
  height: 80px;
    background-color: #b1c4da;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon2 svg{
    align-items: center;
    vertical-align: center;
    width: 45px;
    transition: transform 0.3s ease;
}

.icon2:hover {
  transform: scale(1.07);
}

.icon2.tel:hover {
  box-shadow: 0 0 20px rgba(0, 136, 204, 0.6);
  background-color: #0088cc20;
}

.icon2.wts:hover {
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
  background-color: #25d36620;
}











/* PostList.html */

.section-posts{
    position: relative;
    margin-top: 0;
    padding-top: 0;
}

.section-title {
    background-color: #083787;/*clr*/
    display: inline-block;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    margin-left: 20px;
    margin-bottom: 30px;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

.post-card {
    background: #b9c9d8;
    backdrop-filter: blur(12px);
    border: 1px solid #b9c9d8;
    box-shadow: 0 0 10px #b9c9d872;
    overflow: hidden;
    border-radius: 20px;
    padding: 20px;
    max-width: 180px;
    position: relative;
    color: #000;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideOn 1s ease forwards;
}

@keyframes slideOn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.post-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 15px;
}

.post-card:hover img {
    transform: scale(1.1);
}

.post-card h3 {
    font-size: 18px;
    color: #000;
    margin-bottom: 10px;
}

.post-card p {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 50px;
}

.arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 28px;
    color: #000000;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.post-card:hover .arrow {
    transform: translateX(5px);
    opacity: 1;
}

.float_logo{
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.float_logo img{
    height: 40px;
    width: auto;
    max-height: 5vh;
    filter: drop-shadow(0 0 4px #000000aa)
}

.float_logo .brand_name{
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    color: white;
    line-height: 1;
}











/* PostDetail.html */

.post-head {
    text-align: center;
    margin-bottom: 50px;
}

.post-head h1 {
    font-size: 80px;
    margin-bottom: 30px;
    color: black;
}

.post-head img {
    width: 70%;
    border-radius: 20px;
}

.post-content {
    color: #000;
}

.post-content > * {
    margin: 10px 0;
}

.post-content .body > h1,
.post-content .body > h2,
.post-content .body > h3,
.post-content .body > h4,
.post-content .body > h5,
.post-content .body > h6 {
    margin: 40px 0 15px;
}


.post-content p {
    text-align: justify;
}

.bk-t-list{
    background-color: #0a4ea0;/*clr*/
    color: #fff;
    text-align: left;
    float: left;
    padding: 10px 20px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.bk-t-list:hover{
    background-color: #083787;/*clr*/
    transform: scale(1.05);
}














/* Blog.html */

.section-blog{
    position: relative;
    margin-top: 0;
    padding-top: 0;
}

.title {
    font-size: 60px;
    font-weight: 800;
    letter-spacing: 4px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
    justify-content: space-around;
    gap: 40px;
    padding: 0 20px;
}

.blog-card {
    background: #b9c9d8;
    backdrop-filter: blur(12px);
    border: 1px solid #b9c9d8;
    border-radius: 20px;
    box-shadow: 0 0 15px #b9c9d872;
    overflow: hidden;
    width: 100%;
    max-width: 260px;
    height: 400px;
    padding: 0;
    position: relative;
    color: #000;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideIn 0.8s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card img {
    width: 100%;
    height: 200px;
    border-radius: 14px 14px 0 0;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-card > div {
    padding: 10px 20px 20px;
}

.blog-card h3 {
    font-size: 18px;
    color: #000;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 30px;
}

.arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 28px;
    color: #000000;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.blog-card:hover .arrow {
    transform: translateX(5px);
    opacity: 1;
}

.pagination{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 200%);
}

.pagination a {
    color: #fff;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 7px;
    transition: background-color .3s;
}

.pagination a.active {
    background-color: #0b1b32;/*clr*/
    border-radius: 7px;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #b9c9d8;
    color: black;
    border-radius: 7px;
}














@media (max-width: 800px) {
    .contact svg {
        width: 35%;
        margin-bottom: 10px;
    }

    .modal-content {
        width: 80%;
    }

    .post-head h1 {
        font-size: 60px;
    }
}

@media (max-width: 600px) {
    body {
        text-align: center;
        padding: 20px;
    }

    .container {
        padding: 20px;
    }

    .brand {
        text-align: left;
    }

    .brand .GB{
        display: none;
    }

    .info .GB{
        display: block;
    }

    .profile {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 20px;
        padding: 10px;
        gap: 20px;
    }

    .profile img {
        width: 100%;
    }

    .skills {
        flex-direction: column;
        align-items: center;
    }

    .about p {
        text-align: left;
    }

    .modal-content{
        padding: 20px;
        text-align: center;
    }

    .contact {
        font-size: 10px;
    }


    .section-posts {
        text-align: center;
    }

    .section-title {
        margin: auto auto 30px auto;
    }

    .posts-grid {
        padding: 0 10px;
        grid-template-columns: repeat(auto-fit, minmax(180px, auto));
    }

    .posts-grid {
        padding: 0 10px;
    }


    .post-head h1 {
        font-size: 40px;
    }

    .post-head img {
        width: 100%;
    }

    .post-content {
        text-align: left;
    }

    .post-content p {
        text-align: left;
    }


    .title {
        font-size: 40px;
    }

    .blogs-grid {
        padding: 0 10px;
        grid-template-columns: repeat(auto-fit, minmax(180px, auto));
    }
}

@media (max-width: 350px) {

    .skills {
        gap: 10px;
        justify-content: space-between;
    }

    .skill {
        width: 100%;
        max-width: 250px;
        font-size: smaller;
    }


    .post-head h1 {
        font-size: 30px;
    }


    .title {
        font-size: 30px;
    }
}