body {
    background-color: #233040;
    color: #E8E8E8;
    font-family: "Geologica", sans-serif;
    font-optical-sizing: auto;
    font-variation-settings: "slnt" 0, "CRSV" 0, "SHRP" 0;
    margin: 0;
    background: #000000;
    position: relative;
}

@keyframes appear {
    from {
        opacity: 0;
        scale: 0.5;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}
#block{
    animation: appear 3s linear;
}
html {
    scroll-behavior: smooth;
}

.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(15, 171, 255, 0.15);
    filter: blur(20px);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    from {
        transform: translateY(100vh) scale(1);
        opacity: 1;
    }

    to {
        transform: translateY(-100vh) scale(1.2);
        opacity: 0;
    }
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007BFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.left {
    font-size: 1.5rem;
    display: flex;
}

header {
    margin: 20px 5%;
}

.PageHead {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    justify-content: space-;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    background-color: #001d33;
    /* Use theme variable */
    border-radius: 15px;
    padding: 0 20px;
    /* Add padding for better spacing */
    transition: background-color 0.5s ease;
    /* Smooth transition for theme switch */
}

.aniLogo {
    width: 50px;
    height: 50px;
}

desktop-menu {
    display: flex;
    justify-content: center;
    list-style-type: none;
}

nav a {
    margin: 0 20px;
    transition: 0.5s;
    color: #E8E8E8;
    text-decoration: none;
}

.navBar:hover {
    color: #ff9900;
    filter: drop-shadow(0 0 0.5rem rgb(69, 171, 255));
}

.mobile-menu {
    display: none;
}

.mobile-menu-button {
    display: none;
}

.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

#menu-toggle:checked~.mobile-menu {
    transform: translateX(0);
}

#menu-toggle {
    display: none;
    /* Hide checkbox */
}



hr {
    background-color: rgb(255, 252, 83);
}

section {
    padding: 20px 1rem;
    border-radius: 15px;
    margin: 20px 5%;
    position: relative;
}
footer {
    padding: 20px 1rem;
    border-radius: px;
    margin: 20px 5%;
    position: relative;
}

.firstSec {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.greets {
    font-size: 1.5rem;
    margin-bottom: -30px;
}

.name {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.typing-container {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
}

.dynamic-text {
    color: #ff9900;
    /* Highlight color */
    border-right: 3px solid #ffffff;
    /* Cursor effect */
    padding-right: 5px;
    /* Space for cursor */
    white-space: nowrap;
    /* Prevent text from wrapping */
    overflow: hidden;
    /* Hide overflow */
    display: inline-block;
    /* Inline block for cursor effect */
    animation: blink 1s infinite;
    min-height: 1.25em;
}

/* Cursor blinking effect */
@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes appear {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.leftSec {
    /* background-color: orange; */
    width: 300px;
}

.typing-container {
    width: 100%;
}

.rightSec {
    /* background-color: green; */
    width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.homeImg {
    width: 15rem;
    transition: transform 1s ease;
    animation: glow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 0.75rem rgb(255, 217, 0));
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.homeImg:hover {
    transform: scale(1.1);
    transform-style: preserve-3d;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 0.75rem rgb(255, 217, 0), 0 0 0.75rem rgb(255, 255, 0);
    }

    50% {
        box-shadow: 0 0 10px rgb(255, 217, 0), 0 0 30px rgb(255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0.75rem rgb(255, 217, 0), 0 0 0.75rem rgb(255, 255, 0);
    }
}

button {
    padding: 5px 10px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.4s ease;
}

button:hover {
    /* background: #0056b3; */
    filter: drop-shadow(0 0 0.5rem rgb(69, 171, 255));
    background: #0069d8;
    transform: scale(1.02);
    ;
}

.titles {
    text-align: center;
}

.QuoteSec {
    text-align: center;
    margin-top: 20px;
}

.quote {
    font-style: italic;
    margin-top: 20px;
}

.author {
    font-style: italic;
}





/* Skills Section Styling */
.secondSec {
    padding: 20px 2%;
    background-color: #001d33;
    border-radius: 15px;
    text-align: center;
}

.secondSec h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: antiquewhite;
}
.skill {
  position: relative;
  display: inline-block;
}

.tooltip {
  position: absolute;
  bottom: 95%; /* Above the image */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgb(0, 123, 255);
  color: #fff;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 10;
}

.skill:hover .tooltip {
  opacity: 1;
}

.skillsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    padding: 10px;
}

.skill {
    background-color: #010f1a;
    border: 1px solid #007BFF;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.skill:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 0 15px rgba(69, 171, 255, 0.5); */
    filter: drop-shadow(0 0 0.5rem rgb(69, 171, 255));
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    justify-content: center;
}

.skill:hover .skill-icon {
    transform: scale(1.1);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #233040;
    border: 1px solid #007BFF;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0px 10px 0px;
}

.progress {
    height: 100%;
    background-color: #007BFF;
    transition: width 0.3s ease;
}

.percentage {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: antiquewhite;
    margin-top: 5px;
}

.socialMedia ul {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
}

.socialMedia ul li {
    list-style: none;
}

.fab {
    width: 25px;
    margin: 0px 10px;
    transition-duration: 0.5s;
}

.fab:hover {
    transform: scale(1.1);
}

.XFab:hover {
    filter: drop-shadow(0 0 0.4rem rgb(255, 255, 255));
}

.igFab:hover {
    filter: drop-shadow(0 0 0.4rem rgb(255, 0, 0));
}

.ghFab:hover {
    filter: drop-shadow(0 0 0.4rem rgb(255, 255, 255));
}

.LIFab:hover {
    filter: drop-shadow(0 0 0.4rem rgb(2, 135, 252));
}



/* Tools Section Styling */
.ToolsSec {
    padding: 20px 2%;
    background-color: #001d33;
    text-align: center;
}

.ToolsSec h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: antiquewhite;
}




/* Contact Form Styling */
.contactSec {
    padding: 20px 10px;
    /* Reduced padding */
    background-color: #001d33;
    border-radius: 15px;
    text-align: center;
}

.contactSec h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: antiquewhite;
}

.contactSec form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.contactSec input,
.contactSec textarea {
    width: 90%;
    /* Slightly narrower inputs */
    padding: 8px;
    /* Reduced padding */
    margin: 8px 0;
    /* Reduced margin */
    border: 1px solid #007BFF;
    border-radius: 5px;
    background-color: #010f1a;
    color: antiquewhite;
    font-family: "Oxanium", sans-serif;
    font-size: 0.9rem;
    /* Smaller font size */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contactSec input::placeholder,
.contactSec textarea::placeholder {
    color: #888;
}

.contactSec input:focus,
.contactSec textarea:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 0.5rem rgba(69, 171, 255, 0.5);
    /* Smaller shadow */
}

.contactSec textarea {
    height: 50px;
    /* Reduced height */
    resize: vertical;
}

.contactSec button {
    padding: 8px 16px;
    /* Smaller button */
    background-color: #007BFF;
    color: antiquewhite;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    /* Smaller font size */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 8px;
    /* Reduced margin */
}

.contactSec button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.contactSec button:active {
    transform: scale(0.95);
}


/* Project Section Styling */

.projectSec {
    padding: 20px 5%;
    background-color: #001d33;
    border-radius: 15px;
    text-align: center;
}

.projectSec h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: antiquewhite;
}

.projectContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
}

.project {
    background-color: #010f1a;
    border: 1px solid #007BFF;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(69, 171, 255, 0.5);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-link {
    margin: 1rem;
}

.project-details {
    padding: 1rem;
    text-align: left;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: antiquewhite;
}

.project-details p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 0px;
}

.project-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007BFF;
    color: antiquewhite;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-link:hover {
    background-color: #0056b3;
    transform: scale(1.03);
}

footer {
    border-top: 1px solid beige;
}

.foot {
    display: flex;
    justify-content: space-between;
}


/* Ensure sections have relative positioning for absolute children */
.secondSec,
.projectSec,
.contactSec {
    position: relative;
    overflow: hidden;
    /* Hide overflowing animated titles */
}


/* Responsive Design for devices less than 768px of Width */
@media (max-width: 768px) {
    body {
        margin: 1rem 1.5rem 0rem 1.5rem;
    }

    section {
        padding: 20px 0rem;
        border-radius: 15px;
        margin: 1rem 0rem;
        position: relative;
        /* For absolute positioning of animated titles */
    }

    header {
        width: 100%;
        margin: 0rem 0rem 0rem 0rem;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 80px;
        background-color: #001d33;
        /* Use theme variable */
        border-radius: 15px;
        padding: 0 20px;
        /* Add padding for better spacing */
        transition: background-color 0.5s ease;
        /* Smooth transition for theme switch */
    }

    .right {
        display: none;
    }

    .mobile-menu-button {
        display: block;
        /* Show hamburger button */
    }

    .firstSec {
        flex-direction: column;
        align-items: center;
        height: auto;
        /* Adjust height for smaller screens */
    }

    .leftSec,
    .rightSec {
        width: 100%;
        /* Full width on smaller screens */
        margin-bottom: 20px;
        /* Add space between sections */
        margin-left: 1rem;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 50%;
        height: 100vh;
        background: rgb(27, 27, 27);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 100;
    }

    .mobile-menu-button {
        top: 1rem;
        right: 1rem;
        z-index: 101;
        font-size: 2rem;
        background: none;
        border: none;
    }

    #menu-toggle {
        display: none;
        /* Hide checkbox */
    }

    .homeImg {
        width: 15rem;
        height: auto;
        justify-content: center;
        transition: transform 1s ease;
        filter: drop-shadow(0 0 0.75rem rgb(255, 217, 0));
    }

    .homeImg:hover {
        transform: scale(1.1);
        transform-style: preserve-3d;
    }

    .skill {
        background-color: #010f1a;
        border: 1px solid #007BFF;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 10px;
        padding: 15px;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .skillsContainer {
        display: flex;
        flex-direction: column;
    }

    .skill:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 15px rgba(69, 171, 255, 0.5);
    }

    .skill-icon {
        width: 3em;
        height: 3rem;
        margin-bottom: 10px;
        transition: transform 0.3s ease;
    }

    .skill:hover .skill-icon {
        transform: scale(1.1);
    }

    .progress-bar {
        width: 100%;
        height: 10px;
        background-color: #233040;
        border: 1px solid #007BFF;
        border-radius: 0.2rem;
        overflow: hidden;
        margin: 15px;
    }
    .projectSec {
        padding: 15px;
        background-color: #001d33;
        border-radius: 15px;
        text-align: center;
    }
    .excepSkillicon {
        width: 3rem;
        height: auto;

    }
}
