@import url('https://fonts.googleapis.com/css2?family=Ubuntu&display=swap');

:root {
     --primary-color: rgb(97, 20, 239);
     --secondary-color: rgb(255, 255, 255);
}

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

body {
     font-family: 'Ubuntu', sans-serif;
     display: flex;
     justify-content: center;
     align-items: center;
     flex-direction: column;
}

/* Navbar */

nav {
     background-color: var(--primary-color);
     height: 100px;
     width: 96%;
     border-bottom-left-radius: 15px;
     border-bottom-right-radius: 15px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 2%;

}

.logo {
     color: var(--secondary-color);
     font-size: 1.5rem;
     font-weight: 600;
     padding: 1rem;
     text-decoration: none;
}

.logo a {
     color: rgb(255, 255, 255);
     text-decoration: none;
}

.logo a:hover {
     border-bottom: 3px solid var(--secondary-color);
     transition: .5s ease all;
}

.navbar {
     display: flex;
     justify-content: space-between;
     align-items: center;
}

.navbar ul {
     display: flex;
     justify-content: space-between;
     align-items: center;
     list-style: none;
}

.btn {
     text-decoration: none;
     padding: 1rem;
     font-size: 1.2rem;
     color: rgb(255, 255, 255);
}

.btn:hover {
     color: rgb(0, 0, 0);
     background-color: rgb(255, 255, 255);
     border-radius: 10px;
     padding: .5rem 1rem;
     transition: all 0.5s ease;
}

.link-active {
     font-weight: 600;
}


/* Home Section */
.home {
     width: 80%;
     display: flex;
     justify-content: center;
     align-items: center;
     flex-direction: column;
}

.home h1 {
     font-size: 3rem;
     font-weight: 600;
     color: var(--primary-color);
     margin-bottom: 1rem;
}

.home p {
     font-size: 1.5rem;
     font-weight: 600;
     color: var(--primary-color);
     margin-bottom: 1rem;
}

.home img {
     width: 50%;
}

.sec-box {
     width: 93%;
     height: 280px;
     display: flex;
     justify-content: center;
     align-items: center;
     flex-direction: column;
     background-color: rgba(234, 232, 239, 0.673);
     padding: 2rem;
     border-radius: 20px;
     margin-bottom: 2rem;
     line-height: 1.5;
}

.sec-box h1 {
     font-size: 2rem;
     text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.719);
     font-weight: 580;
     color: rgb(0, 0, 0);
     margin-bottom: 2rem;
}

.sec-box p {
     font-size: 1.2rem;
     color: rgb(0, 0, 0);
     margin-bottom: 1rem;
}


/* Project */
.projects {
     background-color: var(--secondary-color);
}

.btn2 {
     text-decoration: none;
     font-size: 1.2rem;
     font-weight: 600;
     color: var(--secondary-color);
     background-color: var(--primary-color);
     border-radius: 20px;
     padding: .5rem 1rem;
     transition: all 0.5s ease;
     box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn2:hover {
     color: var(--primary-color);
     background-color: var(--secondary-color);
     border-radius: 10px;
     padding: .5rem 1rem;
     transition: all 0.5s ease;
     border: 3px solid var(--primary-color);
}

.blogs-header {
     width: 100%;
     height: 200px;
     display: flex;
     justify-content: center;
     align-items: center;
     flex-direction: column;
     padding: 2rem 0;
}

.blogs-header h1 {
     font-size: 3rem;
     font-weight: 600;
     color: rgb(0, 0, 0);
     margin-bottom: 1rem;
     transition: all 0.5s ease;
     border-bottom: 6px solid var(--primary-color);
}

.blogs-header h1 span {
     color: var(--primary-color);
}

.blogs {
     width: 60%;
     height: 300px;
     display: flex;
     flex-direction: column;
     line-height: 1.5;
     padding: 2rem;
     border-radius: 10px;
     box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
     transition: all 0.5s ease;
     margin-bottom: 2rem;
}


.blogs h1 {
     font-size: 2rem;
     font-weight: 600;
     color: rgb(0, 0, 0);
}

.blogDetails {
     display: flex;
}

.blogDetails small {
     font-size: 1rem;
     font-weight: 550;
     color: rgb(0, 0, 0);
     margin-bottom: 1rem;
}

.author {
     margin-left: auto;
}

.blogs p {
     font-size: 1rem;
     font-weight: 500;
     color: rgb(0, 0, 0);
     margin-bottom: 1rem;
}

.blogs a {
     text-align: center;
}

.btn3 {
     text-decoration: none;
     font-size: 1.2rem;
     font-weight: 600;
     color: var(--secondary-color);
     background-color: var(--primary-color);
     border-radius: 20px;
     padding: .5rem 1rem;
     transition: all 0.5s ease;
     box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
     margin: 1rem;
}

.btn3:hover {
     color: var(--primary-color);
     background-color: var(--secondary-color);
     transition: all 0.5s ease;
     border: 3px solid var(--primary-color);
}

.project-list {
     display: flex;
     justify-content: center;
     align-items: center;
     flex-wrap: wrap;
     margin: 1rem;
     width: 100%;
}

.project {
     width: 80%;
     height: 350px;
     display: flex;
     flex-direction: row;
     border-radius: 10px;
     box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
     transition: all 0.5s ease;
}

.project-info {
     width: 100%;
     padding: 0 1rem 0 0;
}

.project:hover {
     box-shadow: 5px 5px 20px var(--primary-color)
}

.project-info {
     width: 50%;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
}

.project-info h1 {
     font-size: 2rem;
     font-weight: 600;
     margin-bottom: 1.5rem;
     text-align: justify;
}

.project-info p {
     margin: 1rem;
     font-size: 1.1rem;
     line-height: 1.5;
     text-align: justify;
}

.buttons {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 100%;
}

.project-img {
     width: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
}

.project-img img {
     width: 80%;
     height: 80%;
     border-radius: 10px;
     box-shadow: 0 5px 10px rgba(204, 0, 0, 0.2);
}

.project-img img:hover {
     transform: rotate(5deg);
}


/* Blog Page */
.blog-items {
     margin: 1rem;
     width: 85%;
     padding: 3rem;
     box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.blog-items h1 {
     font-size: 2rem;
     font-weight: 600;
     margin-bottom: 1rem;
}

.blog-items h2 {
     font-size: 1.5rem;
     font-weight: 600;
     margin-bottom: 1rem;
}

.blog-items ul,
ol {
     margin: 1rem;
     font-size: 1.3rem;
     margin-left: 3rem;
     line-height: 1.5;
     text-align: justify;
}


.blog .author-details,
.header-details {
     display: flex;
     flex-direction: row;
     justify-content: space-between;
     float: right;
     width: 100%;
     background-color: var(--primary-color);
     padding: 1rem;
     border-radius: 30px;
     color: var(--secondary-color);
}

.author-details p {
     font-size: 1.5rem;
     font-weight: 600;
}

.header-details {
     margin-bottom: 1rem;
     justify-content: center;
}

/* ~~~~~~~~~~~~ FOOTER ~~~~~~~~~~~~ */
footer {
     width: 93%;
     height: 100px;
     display: flex;
     justify-content: center;
     align-items: center;
     background-color: var(--primary-color);
     padding: 1.5rem;
     border-top-left-radius: 20px;
     border-top-right-radius: 20px;
     bottom: 0;
     position: relative;
     flex-direction: column;

}

footer p {
     font-size: 1rem;
     color: var(--secondary-color);
     margin-bottom: 1rem;
}

.soical {
     display: flex;
     justify-content: space-between;
     align-items: center;
     width: 10%;
}

.social a {
     margin: .3rem;
     text-decoration: none;
     font-size: 1rem;
     color: var(--primary-color);
     border: 1px solid var(--primary-color);
     padding: .4rem;
     border-radius: 30px;
     background-color: var(--secondary-color);
     ;
}

.social a:hover {
     color: var(--secondary-color);
     background-color: var(--primary-color);
     border: 1px solid var(--secondary-color);
}


/* Media Query */

@media screen and (max-width: 1100px) {
     nav {
          height: 150px;
     }

     .logo {
          font-size: 3rem;
     }

     .btn {
          font-size: 2.3rem;
     }

     .home img {
          width: 100%;
     }

     .home h1 {
          font-size: 5rem;
     }

     .home p {
          font-size: 2.5rem;
     }

     .sec-box {
          width: 93%;
          height: 600px;
          margin: 2rem;
          line-height: 1.6;
          text-align: center;
     }

     .sec-box h1 {
          font-size: 3.5rem;
     }

     .sec-box p {
          font-size: 2.5rem;
     }

     .btn2 {
          margin-top: 2rem;
          font-size: 2.5rem;
          padding: 1rem 4rem;
          border-radius: 35px;
     }

     .btn2:hover {
          padding: 1rem 4rem;
          border-radius: 35px;
     }

     /* footer */
     footer {
          height: 180px;
          padding-bottom: 2rem;
     }

     footer p {
          font-size: 2.5rem;
     }

     .social a {
          font-size: 3.5rem;
     }

     /* Projects */

     .project {
          width: 90%;
          flex-direction: column;
          height: auto;
          border-radius: 30px;
     }

     .project-img {
          width: 100%;
          margin-bottom: 3rem;
          padding: 1rem;
     }

     .project-img img {
          width: 100%;
          height: 50%;
     }

     .project-info {
          width: 100%;
          padding: 2rem;
     }

     .project-info h1 {
          font-size: 3rem;
     }

     .project-info p {
          font-size: 2rem;
     }

     .btn3 {
          font-size: 2.5rem;
          padding: 1rem 3rem;
          border-radius: 35px;
     }

     .blogs-header h1 {
          font-size: 4rem;
     }

     /* Blogs */
     .blogs {
          width: 90%;
          margin: 2rem;
          height: auto;
          border-radius: 30px;
          background-color: rgba(201, 201, 201, 0.53);
     }

     .blogs h1 {
          font-size: 4.5rem;
          text-align: center;
          border-radius: 20px;
     }

     .blogs p {
          font-size: 2.5rem;
          text-align: justify;
     }

     .blogDetails small {
          font-size: 2rem;
     }

     /* blog item */
     .blog-items {
          width: 90%;
          margin: 2rem;
          height: auto;
          border-radius: 30px;
          background-color: rgba(201, 201, 201, 0.53);
     }

     .blog-items h1 {
          font-size: 4rem;
          border-radius: 20px;
     }

     .blog-items h2 {
          font-size: 3rem;
     }

     .blog-items p {
          font-size: 2.5rem;

     }

     .blog-items ul,
     .blog-items ol {
          font-size: 2.5rem;
          line-height: 1.6;
     }

     .author-details {
          font-size: 2.5rem;
          flex-direction: column;
     }

     table {
          font-size: 2.5rem;
     }

     th {
          font-size: 2.5rem;
     }

     tr,
     td {
          font-size: 2.5rem;
     }
}


table {
     width: 100%;
     border-collapse: collapse;
     border: 1px solid rgb(0, 0, 0);
     background-color: #fff;
     color: #000;
     font-size: 1.2rem;
     margin: 1rem 0;
}

th {
     border: 1px solid #ccc;
     padding: 0.5rem;
     background: rgb(200, 196, 196);
     font-weight: bold;
     text-align: center;
}

tr,
td {
     border: 1px solid #ccc;
     padding: 0.5rem;
     text-align: center;
}

td a {
     text-decoration: none;
     color: #000;
}


.anchor {
     text-decoration: none;
     color: #000;
     font-weight: bold;
}

.author-details {
     display: flex;
     flex-direction: row;
     justify-content: space-between;
     flex-wrap: wrap;
     align-items: center;
}

code{
     font-size: 1.5rem;
}