@import url('https://fonts.googleapis.com/css?family=Exo:400,700');

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

.section {
    padding: 0;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    
}



/* Fix the giant .navbar-toggler */
.navbar-toggler {
    min-height: auto !important;
    height: auto !important;
    display: inline-block !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    border: none !important;
}

/* Ensure navbar collapse doesn't overflow */
.navbar-collapse {
    background-color: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 50px;
    right: 0;
    width: 200px;
    padding: 10px;
    border-radius: 5px;
}

/* Ensure dropdown menus stay inside the viewport */
.navbar-nav {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-toggler .close-icon {
    display: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    display: none;
}

.navbar-toggler[aria-expanded="true"] .close-icon {
    display: block;
}

.navbar-nav .nav-item .dropdown-menu {
    right: 0;
    left: auto; /* Aligns dropdown to the right */
}

.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
}

.navbar-brand {
    font-weight: bold;
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

.portfolio-card {
    transition: transform 0.3s ease-in-out;
}

.portfolio-card:hover {
    transform: scale(1.05);
}

#home {
    height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(-45deg, #34b4eb, #465db0, #4d96f0, #ffdde1);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    position: relative; /* Ensures normal positioning */
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.arrow-down {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: white;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}


.copyright {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 1rem; /* Adjust font size as needed */
    color: #333; /* Adjust text color */
    text-align: center;
}

    .copyright a {
        color: #007bff; /* Link color */
        text-decoration: none; /* No underline */
        font-weight: bold;
    }

        .copyright a:hover {
            text-decoration: none; /* Underline on hover */
            color: #0056b3; /* Darker hover color */
        }

#heart {
    width: 1rem; /* Adjust size */
    height: 1rem;
    margin: 0 5px; /* Add spacing around the heart */
    animation: beat 0.5s infinite alternate;
    transform-origin: center;
}

@keyframes beat {
    to {
        transform: scale(1.2);
    }
}

* {
    margin: 0px;
    padding: 0px;
}

body {
    font-family: 'Exo', sans-serif;
}


.context {
    width: 100%;
    position: absolute;
    top: 50vh;
}

    .context h1 {
        text-align: center;
        color: #fff;
        font-size: 50px;
    }


.area {
    background: #4e54c8;
    background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);
    width: 100%;
    height: 100vh;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

    .circles li {
        position: absolute;
        display: block;
        list-style: none;
        width: 20px;
        height: 20px;
        background: rgba(255, 255, 255, 0.2);
        animation: animate 25s linear infinite;
        bottom: -150px;
    }

        .circles li:nth-child(1) {
            left: 25%;
            width: 80px;
            height: 80px;
            animation-delay: 0s;
        }


        .circles li:nth-child(2) {
            left: 10%;
            width: 20px;
            height: 20px;
            animation-delay: 2s;
            animation-duration: 12s;
        }

        .circles li:nth-child(3) {
            left: 70%;
            width: 20px;
            height: 20px;
            animation-delay: 4s;
        }

        .circles li:nth-child(4) {
            left: 40%;
            width: 60px;
            height: 60px;
            animation-delay: 0s;
            animation-duration: 18s;
        }

        .circles li:nth-child(5) {
            left: 65%;
            width: 20px;
            height: 20px;
            animation-delay: 0s;
        }

        .circles li:nth-child(6) {
            left: 75%;
            width: 110px;
            height: 110px;
            animation-delay: 3s;
        }

        .circles li:nth-child(7) {
            left: 35%;
            width: 150px;
            height: 150px;
            animation-delay: 7s;
        }

        .circles li:nth-child(8) {
            left: 50%;
            width: 25px;
            height: 25px;
            animation-delay: 15s;
            animation-duration: 45s;
        }

        .circles li:nth-child(9) {
            left: 20%;
            width: 15px;
            height: 15px;
            animation-delay: 2s;
            animation-duration: 35s;
        }

        .circles li:nth-child(10) {
            left: 85%;
            width: 150px;
            height: 150px;
            animation-delay: 0s;
            animation-duration: 11s;
        }



@keyframes animate {

    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.founder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -80px; /* Pull it closer to the logo */
    padding-top: 0; /* Remove any top padding */
}

    .founder img {
        margin-top: 0; /* Remove any extra margin */
        padding-top: 0;
    }

.foundertext {
    color: #fff;
    font-size: 20px;
    max-width: 800px; /* Restricts text width for better readability */
    text-align: center;
    margin-bottom: 10px;
}


/* Rounded border */
hr.rounded {
    border-top: 8px solid #bbb;
    border-radius: 5px;
}

.container h1,
.container img {
    margin-bottom: 5px; /* Reduce space below the heading and logo */
}

.technologybg {
    min-height: 100vh; /* Ensures full screen height */
    height: auto; /* Allows expansion if needed */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content */
    align-items: center;
    padding: 0; /* Removes extra padding */
    margin: 0; /* Removes extra margins */
    background-image: linear-gradient(to left top, #051937, #004d7a, #008793, #00bf72, #a8eb12);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
}

.technologybg, .portfolio, .contactMe {
    background-size: cover;
    background-position: center;
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow multiple rows if needed */
    gap: 20px; /* Space between icons */
    margin-top: 20px;
    width: 80%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 90%;
}

.techIcon {
    width: 60px; /* Consistent size */
    height: auto; /* Maintain aspect ratio */
}

/* Card Tech */

/* From Uiverse.io by htwarriors108 */
.cardTech {
    position: relative;
    width: 100px;
    height: 150px;
    color: #fff;
    transition: 0.5s;
    cursor: pointer;
    margin: 20px;
}

    .cardTech:hover {
        transform: translateY(-5px);
    }

    .cardTech::before {
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background: linear-gradient(45deg, #ffbc00, #ff0058);
        border-radius: 1.2em;
    }

    .cardTech::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, #ffbc00, #ff0058);
        filter: blur(30px);
    }

    .cardTech span {
        position: absolute;
        top: 6px;
        left: 6px;
        right: 6px;
        bottom: 6px;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 2;
        border-radius: 1em;
    }

        .cardTech span::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 50%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.1);
        }

    .cardTech .content {
        position: absolute;
        z-index: 10;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 800;
        font-size: 1.5em;
    }

        .cardTech .content img {
            width: 75px; /* Corrected syntax */
            height: auto;
        }


.animated-text {
    font-family: 'Share Tech', serif;
    font-size: 2em;
    font-weight: 400;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

    .animated-text.visible {
        opacity: 1;
        transform: translateY(0);
    }

.techHeader {
    margin-top: 80px;
    font-size: 80px;
    border: 3px solid gray;
    display: inline-block; /* Makes the border hug the text */
    padding: 20px; /* Remove any default padding */
    border-radius: 25px;
    background: red;
    opacity: 90;
    margin-bottom: 50px;
}

/* Make section headers responsive */
@media (max-width: 768px) {
    .techHeader {
        font-size: 40px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .techHeader {
        font-size: 30px;
    }
}

.TechDesc {
    color: white;
    font-family: 'Courier New';
    font-size: 35px;
    border: 5px solid black;
    border-radius: 25px;
    padding: 20px;
    text-align: center;
    min-width: 300px;
    background-color: rgba(0, 0, 0, 0.8);
    transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
}

    /* Fade out effect before changing text */
    .TechDesc.fade {
        opacity: 0;
        transform: translateY(10px);
    }


/* Portfolio  */

.portfolio {
    min-height: 100vh; /* Full screen height */
    height: auto;
    width: 100%; /* Full width */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    text-align: center;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: portgradient 15s ease infinite;
    position: relative; /* FIXED: Changed from absolute */
    padding-top: 80px; /* Adjust based on navbar height */
}


@keyframes portgradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


.container-fluid {
    max-width: 1770px;
}


.tm-mt-60 {
    margin-top: 60px;
}

.tm-mb-50 {
    margin-bottom: 50px;
}

.tm-mb-74 {
    margin-bottom: 74px;
}

.tm-mb-90 {
    margin-bottom: 90px;
}

.tm-text-primary {
    color: #009999;
}

.tm-text-secondary {
    color: #CC6699;
}

a.tm-text-primary:hover {
    color: #666666;
}

.tm-bg-gray {
    background-color: #EEEEEE;
}



p, .tm-text-gray {
    color: #999;
}

.tm-text-gray-light {
    color: #CCC;
}

.tm-text-gray-dark {
    color: #666;
}

.tm-video-item {
    position: relative;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
}

    .tm-video-item img {
        position: relative;
        display: block;
        min-height: 100%;
        max-width: 100%;
        opacity: 0.8;
    }

    .tm-video-item figcaption {
        padding: 2em;
        color: #fff;
        text-transform: uppercase;
        font-size: 1.25em;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

        .tm-video-item figcaption::before,
        .tm-video-item figcaption::after {
            pointer-events: none;
        }

        .tm-video-item figcaption,
        .tm-video-item figcaption > a {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

            .tm-video-item figcaption > a {
                z-index: 1000;
                text-indent: 200%;
                white-space: nowrap;
                font-size: 0;
                opacity: 0;
            }

    .tm-video-item h2 {
        word-spacing: -0.15em;
        font-weight: 300;
    }

    .tm-video-item h2,
    .tm-video-item p {
        margin: 0;
    }

    .tm-video-item p {
        letter-spacing: 1px;
        font-size: 68.5%;
    }

.tm-gallery div.d-block {
    animation: show .5s ease;
}



/* Make sure the portfolio section doesn’t get overflow issues */
#portfolio {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



@keyframes show {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/*---------------*/
/***** Ming *****/
/*---------------*/

figure.effect-ming {
    background: #030c17;
}

    figure.effect-ming img {
        opacity: 0.9;
        -webkit-transition: opacity 0.35s;
        transition: opacity 0.35s;
    }

    figure.effect-ming figcaption::before {
        position: absolute;
        top: 30px;
        right: 30px;
        bottom: 30px;
        left: 30px;
        border: 2px solid #fff;
        box-shadow: 0 0 0 30px rgba(255,255,255,0.2);
        content: '';
        opacity: 0;
        -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
        transition: opacity 0.35s, transform 0.35s;
        -webkit-transform: scale3d(1.4,1.4,1);
        transform: scale3d(1.4,1.4,1);
    }

    figure.effect-ming h2 {
        font-size: 1.3em;
        opacity: 0;
        -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
        transition: opacity 0.35s, transform 0.35s;
        -webkit-transform: scale(1.5);
        transform: scale(1.5);
    }

    figure.effect-ming:hover figcaption::before,
    figure.effect-ming:hover h2 {
        opacity: 1;
        -webkit-transform: scale3d(1,1,1);
        transform: scale3d(1,1,1);
    }

    figure.effect-ming:hover figcaption {
        background-color: rgba(58,52,42,0);
    }

    figure.effect-ming:hover img {
        opacity: 0.4;
    }

.tm-footer-links li {
    list-style: none;
    margin-bottom: 5px;
}



/* Blog */


.blogCard {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .blogCard:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

.blogCard-title {
    color: #343a40;
}

.blogCard-text {
    color: #6c757d;
}

.blogCard-img-top {
    border-radius: 15px 15px 0 0;
}

.blogCcontainer {
    margin-top: 30px;
}

/* blog 2 */

.blogBg {
    min-height: 100vh;
    height: auto;
    background-image: url(../img/blogbg.jpg);
    background-size: cover;
}

.blogSubTitle {
}

.blog-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #1c1c1c;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out;
    border: 2px solid white;
}

    .blog-card:hover {
        transform: scale(1.02);
    }

.blog-image {
    position: relative;
    width: 40%;
    overflow: hidden;
}

    .blog-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.3s;
    }

    .blog-image:hover img {
        opacity: 0.6;
    }

    .blog-image .overlay-title {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        font-size: 1.5rem;
        font-weight: bold;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .blog-image:hover .overlay-title {
        opacity: 1;
    }

.blog-content {
    width: 60%;
    padding: 20px;
}

.blog-title {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.blog-meta {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 10px;
}

.blog-description {
    font-size: 1.1rem;
    color: lightgray;
    margin-bottom: 15px;
}

.blog-box {
    padding: 10px;
    background: #333;
    border-radius: 5px;
    color: cornflowerblue;
    text-align: left;
    font-weight: 500;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

    .blog-footer .views {
        font-size: 0.9rem;
        color: #bbb;
    }

    .blog-footer .btn {
        background: #ff4500;
        border: none;
        color: white;
    }

@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
    }

    .blog-image, .blog-content {
        width: 100%;
    }
}

/* CONTACT */

.contactMe {
    min-height: 100vh;
    height: auto;
    background: black;
}

.contact-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;

}

.contact-info {
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 69, 0, 0.3);
    text-align: left;
    margin-bottom: 30px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ff4500;
}

.contact-details {
    font-size: 1.2rem;
    margin-bottom: 15px;
    gap: 10px;
    display: flex;
    align-items: center;
}

    .contact-details i {
        color: #ff4500;
        margin-right: 10px;
        font-size: 1.5rem;
    }

.contact-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(255, 69, 0, 0.3);
}

.contact-image {
    width: 80%;
    object-fit: cover;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Copy Code */

.code-container {
    position: relative;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin: 20px 0;
    font-family: monospace;
}

.copy-button {
    position: absolute;
    top: 0px;
    right: 0px;
    color: black;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

    .copy-button:hover {
        background: #0056b3;
    }

pre {
    max-height: 300px; /* Sets the maximum height of the code block */
    overflow-y: auto; /* Adds vertical scroll bars if content overflows */
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-family: monospace;
    white-space: pre-wrap; /* Optional: Wraps long lines within the block */
}

/* Only use absolute positioning for the menu on smaller screens */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute !important;
        top: 50px !important;
        right: 0 !important;
        width: 200px !important;
        padding: 10px !important;
        border-radius: 5px !important;
        background-color: rgba(0, 0, 0, 0.9) !important;
    }
}

/* On large screens, keep the navbar menu static and inline */
@media (min-width: 992px) {
    .navbar-collapse {
        position: static !important;
        width: auto !important;
        padding: 0 !important;
        background: transparent !important;
    }
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Adjust font size for readability */
    }

    .navbar-collapse {
        background: rgba(0, 0, 0, 0.9);
        padding: 10px;
    }

    .founder img {
        width: 80%; /* Scale images for small screens */
    }

    .container {
        padding: 10px;
    }

    .tech-icons {
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .portfolio-card {
        width: 100%;
        max-width: 90%;
        margin: 10px auto;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-image, .blog-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 20px;
    }

    .foundertext {
        font-size: 14px;
    }

    .copyright {
        font-size: 12px;
    }

    .portfolio {
        padding: 20px;
    }
}

.container, .contact-info {
    max-width: 90%;
    margin: auto;
}



.tech-icons {
    display: flex;
    flex-wrap: wrap; /* Allow multiple rows */
    justify-content: center;
    align-items: center;
    gap: 20px; /* Maintain spacing between icons */
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    
    background: red;
    border-radius:25px;
    padding: 5px;
    color: white;
}

    /* Make sure it becomes visible when scrolling */
    .scroll-top.show {
        opacity: 1;
    }

/* Adjust size for smaller screens */
@media (max-width: 768px) {
    .scroll-top {
        right: 15px; /* Adjusts position for smaller screens */
        bottom: 15px;
        padding: 12px;
        font-size: 18px;
    }
}