* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

a{
    text-decoration: none;
    color: black;
}

body {
    background: linear-gradient(to bottom, #19463f 35%, #19463f00 100%, #d9e8e1) no-repeat;/*clr*/
    color: #ffffff;
    padding: 40px;
}

body.cback{
    /*clr*/
    background: linear-gradient(to bottom, #19463f 40%, #19463f00 100%, #d9e8e1) no-repeat fixed;
}

.container {
    background: linear-gradient(to bottom, #0b2e27 40%, #ffffff00 55%, #ffffff00 100%); /*clr*/
    max-width: 900px;
    border-radius: 20px;
    margin: auto;
    padding: 40px;
    padding-top: 20px;
}

.container.n-back {
    background: none;
}

.container.n-padd {
    padding: 0;
}

.container.wback{
    background: rgba(255, 255, 255, 0.35);
    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;
}

.brand .GB button{
    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: 45px;
}

.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 button , .brand .GB button{
    background-color: #475087; /*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 button a, .brand .GB button a{
    color: #fff;
}

.info button:hover , .brand .GB button:hover{
    background-color: #4839a5; /*clr*/
    transform: scale(1.05);
}

.portfolio {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.793) 60%, rgba(255, 255, 255, 0.685) 70%, rgba(255, 255, 255, 0.378) 100%);/*clr*/
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(20px);
}

.portfolio h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    margin-top: 0;
}

.skills {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.skill {
    background-color: #00000015;
    color: #1b1b1b;
    border-radius: 15px;
    padding: 20px;
    width: 160px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    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:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skill svg{
    width: 90%;
}

.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: #f1f6f4;/*clr*/
    color: #1c1c1c;
    cursor: pointer;
}

.about h3 {
    margin-bottom: 20px;
    margin-top: 5px;
    padding-top: 5px;
}

.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: #19463f;/*clr*/
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    padding-top: 6px;
    width: 50%;
    color: #fff;
    margin-top: 5%;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #102c27;/*clr*/
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.contact {
    background-color: #3c3964;/*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: rgb(40, 32, 97);/*clr*/
}

.contact img {
    width: 50%;
    margin-bottom: 10px;
}

.contact svg {
    background-color: #474a78;/*clr*/
    padding: 10px;
    border-radius: 10px;
    width: 30%;
    margin-bottom: 10px;
    backdrop-filter: blur(20px);
}


.modal2 {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 170px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
    color: black;
}


.modal-content2 {
  background-color: #d3e2db;
  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: #529382;/*clr*/
}

.email-box2 {
  background-color: #2c2c5d;/*clr*/
  color: white;
  margin-top: 0;
  padding-top: 0;
  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: #454588;/*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: #abc4b9;
    padding: 15px;
    border-radius: 10px;
    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 */
.logo-container {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 30px;
}

.blog-logo {
    max-width: 250px;
    height: auto;
    filter: brightness(0) invert(1);
}
.section-posts{
    position: relative;
}

.section-title {
    background-color: #5c4bc4;/*clr*/
    display: inline-block;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    margin-left: 20px;
    margin-bottom: 30px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    max-width: 280px;
    width: 100%;
    position: relative;
    color: #000;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.post-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 0px; 
}


.post-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}

.arrow {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 22px;
    color: #333;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.post-card:hover .arrow {
    transform: translateX(5px);
    opacity: 1;
}









/* PostDetail.html */

.post-head {
    text-align: center;
    margin-bottom: 50px;
}

.post-head h1 {
    font-size: 40px;
    font-color:white;
    margin-bottom: 30px;
    color: whitesmoke;
    margin-bottom: 50px;
    margin-top: 30px;
}

.post-head img {
    width: 70%;
    border-radius: 20px;
}

.post-content {
    color: #000;
}

.post-content > * {
    margin: 10px 0;
}

.post-content .body > h1,h2,h3,h4,h5,h6{
    margin: 40px 0 15px;
}

.post-content p {
    text-align: justify;
}

.bk-t-list{
    background-color: #475087;/*clr*/
    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: #4839a5;/*clr*/
    transform: scale(1.05);
}

.bk-t-list a{
    color: #fff;
}


/* Blog.html */

.section-blog{
    position: relative;
}

.title {
    font-size: 45px;
    font-weight: 600;
    margin-bottom: 50px;
    text-align: center;
    margin-top: 0;
    padding-top: 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: rgba(255, 255, 255, 0.706);
    max-width: 260px;
    border-radius: 20px;
    height: auto;
    padding: 0;
    position: relative;
    color: #000;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card > div {
    padding: 0 20px 20px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.blog-card img {
    width: 100%;
    height: 200px;
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
}

.blog-card h3 {
    font-size: 18px;
    color: #000;
    margin-bottom: 10px;
    padding-top: 20px;
    margin-top: 0;
}

.blog-card p {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 0;
    padding-bottom: 0;
}

.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 {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}


.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 7px;
    transition: background-color .3s;
}

.pagination a.active {
    background-color: #4a3bb6;/*clr*/
    border-radius: 7px;
    color: white;
}

.pagination a:hover:not(.active) {background-color: #ddd;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;
    }

    .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%;
    }

    .portfolio {
        background: rgba(255, 255, 255, 0.828);/*clr*/
    }

    .skills {
        flex-direction: column;
        align-items: center;
    }

    .about p {
        text-align: left;
    }

    .contact {
        font-size: 10px;
    }


    .section-posts {
        text-align: center;
    }

    .section-title {
        margin: auto auto 30px 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, 1fr));
    }
}

@media (max-width: 350px) {
    .skills {
        gap: 10px;
        justify-content: space-between;
    }

    .skill {
        width: 100%;
        max-width: 250px;
        font-size: x-small;
    }


    .post-head h1 {
        font-size: 30px;
    }


    .title {
        font-size: 30px;
    }
}


.home-logo {
    width:auto;
    height: 30px;
    filter: brightness(0) invert(1);
}


.justify-text {
    text-align: justify;
    hyphens: auto;
    word-break: break-word;
}