
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Montserrat:wght@600&display=swap');


html {
    scroll-behavior: smooth;
}

/* Base styles */
body {
    background-color: #121212;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.874);
    overflow-y: scroll;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body::-webkit-scrollbar {
    display: none;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Typography */
h1 {
    color: white;
    font-size: 50px;
    margin-top: 50px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #121212;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.nav ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: rgba(46, 46, 46, 0.8);
    border-radius: 10px;
    transition: box-shadow 0.3s ease-in-out;
    font-size: larger;
    font-family: monospace;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    padding-right: 2rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: all 0.3s ease;
}

.icons {
    display: flex;
    gap: 20px;
    margin-right: 5%;
}

.icons img {
    width: 24px;
    height: 24px;
    filter: invert(100%);
    transition: transform 0.2s ease-in-out;
}

.icons img:hover {
    transform: scale(1.2);
}

.logo {
   color: white;
   font-size: 20px;
   font-family: monospace;
   margin-left: 5%;
}

.logo a {
    color: white;
    text-decoration: none;
}

.location-logo {
    filter: invert(100%);
    padding-right: 10px;
    opacity: 1;
    height: 30px;
    transition: transform 0.3s ease-in-out;
}

.location-logo:hover {
    transform: scale(1.2);
}

li {
    display: inline-block;
}

li a {
    display: block;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 7px 16px;
    text-decoration: none;
}

li a:hover {
    background-color: rgb(255, 255, 255);
    color: black;
    transition: cubic-bezier(0.075, 0.82, 0.165, 1);
    transition: 0.5s ease-in-out;
}

#contact-hover:hover {
    background-color: #8038EC;
    color: #ffffff;
}

/* Container styles */
.container {
    margin: 80px auto;
    padding: 20px;
    max-width: 700px;
    width: 90%;
}

.container .box {
    margin-top: 70px;
    border: 1px solid rgba(143, 143, 143, 0.318);
    position: relative;
    padding: 20px;
    border-radius: 10px;
    height: auto;
}

.container .content h1 {
    color: rgb(255, 255, 255);
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    margin-top: 0;
    padding: 0;
}

.container .content h2 {
    color: rgb(255, 255, 255);
    font-size: 1.5rem;
    font-family: monospace;
    opacity: 0.5;
    position: relative;
    margin-top: 5px;
    padding: 0;
    top: -20px;
    display: flex;
}

.container .content p {
    color: rgb(255, 255, 255);
    font-family: monospace;
    font-size: 1.2rem;
    position: relative;
    top: -15px;
    text-align: justify;
}

/* Tech section */
.container-tech {
    margin: 20px auto;
    padding: 20px;
    max-width: 700px;
    width: 90%;
    color: white;
    font-size: 2rem;
}

.tech-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;   
}

.tech {
    padding-top: 20px; 
    display: inline-flex;
    gap: 20px;
    justify-content: center;
    font-size: 1rem;
    animation: scroll 30s linear infinite;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-item img {
    width: 30px;
    height: auto;
}

.tech-item:hover {
    transform: scale(1.2);
    transition: ease-in 0.3s;
}

/* Sidebar */
.sidebar-icon {
    position: fixed;
    top: 20%;
    right: 5%;
    z-index: 100;
}

.sidebar-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease-in-out;
}

.sidebar-icon img:hover {
    transform: scale(1.2) rotate(90deg);
}

/* Arrow icon */
.arrow-icon {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-icon img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease-in-out;
}

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

/* Index page */
.caption-container {
    margin: 10rem auto;
    padding: 20px;
    max-width: 700px;
    width: 90%;
}

.caption {
    font-family: 'Poppins', sans-serif;
    color: #8038EC;
    font-size: 3rem;
    font-style: normal;
    font-weight: bolder;
}

#caption2 {
    padding: 20px;
    color: white;
    font-family: "Rubik 80s Fade", serif;
    font-weight: 400;
    font-style: normal;
}

#caption2 span {
    display: inline-block;
    font-size: 3rem;
    animation: wave 2s ease-in-out infinite;
}

#caption2 span:nth-child(1) { animation-delay: 0s; }
#caption2 span:nth-child(2) { animation-delay: 0.2s; }
#caption2 span:nth-child(3) { animation-delay: 0.4s; }
#caption2 span:nth-child(4) { animation-delay: 0.6s; }
#caption2 span:nth-child(5) { animation-delay: 0.8s; }
#caption2 span:nth-child(6) { animation-delay: 1s; }
#caption2 span:nth-child(7) { animation-delay: 1.2s; }
#caption2 span:nth-child(8) { animation-delay: 1.4s; }
#caption2 span:nth-child(9) { animation-delay: 1.6s; }

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tech-marquee .tech:hover {
    animation-play-state: paused;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Typewriter animations */
.cursor {
    display: inline-block;
    position: relative;
    width: 0;
    font-size: 1.5rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);
}

.typewriter-animation {
    animation: 
        typewriter 4s steps(30) forwards,
        blinkingCursor 500ms steps(50) infinite normal;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkingCursor {
    50% { border-right-color: transparent; }
}


/* experience section */

.experience-section {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
}

.minimal-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    font-weight: 300;
}

.minimal-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.minimal-item {
    display: grid;
    grid-template-columns: 150px 20px 1fr;
    gap: 30px;
    margin-bottom: 50px;
    align-items: start;
}

.minimal-year {
    text-align: right;
    color: #666;
    font-size: 1.1rem;
    padding-top: 5px;
}

.minimal-dot-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.minimal-dot {
    width: 20px;
    height: 20px;
    background: #00f5ff;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px #00f5ff;
}

.minimal-line {
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 20px;
}

.minimal-content-box {
    padding: 25px 0;
}

.minimal-position {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #00f5ff;
}

.minimal-company {
    color: #888;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.minimal-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size:  1.2rem;
}

        @media screen and (max-width: 768px) {
            .minimal-content-box {
                padding: 10px;
            }
            .minimal-item {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .minimal-year {
                text-align: left;
            }

            .minimal-dot-container {
                display: none;
            }

            .stack-card {
                padding: 25px;
            }

            .terminal-section {
                padding: 20px;
            }
        }

        @media screen and (max-width: 576px) {
            .minimal-text {
                font-size: 0.7rem;
            }

            .minimal-section h2 {
                font-size: 1.5rem;
            }
            
        }

        @media screen and (max-width: 375px) {
            .minimal-text {
                font-size: 0.7rem;
            }
            
        }

/* Projects section */
.projects-section h2 {
    text-align: center;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    opacity: 0;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.projects-section h2.show {
    left: 0;
    opacity: 1;
    transition-delay: 0.3s;
}

.projects-section {
    margin: 20px auto;
    padding: 10px;
    max-width: 700px;
    width: 90%;
    color: white;
    font-size: 1.25rem;
    font-family: monospace; 
    gap: 30px;  
}

.project-cards {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: auto;
    margin-bottom: 15%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

#project-heading {
    position: relative;
    margin-bottom: 80px;
}

#project-heading h3 {
    font-size: 2.0rem;
    font-weight: bold;
    color: white;
    position: absolute;
    top: 0;
    padding-bottom: 3px;
    font-family: 'Poppins', sans-serif;
}

#project-heading h4 {
    font-size: 1.1rem;
    position: absolute;
    color: rgba(255, 255, 255, 0.396);
    top: 50px;
    padding-top: 10px;
}

.project-cards .project-image {
    margin-top: 20%;
    width: 100%;
    height: auto;
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.project-cards .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
    position: relative;
}

.project-cards .project-image img:hover {
    transform: scale(1.05);
    transition: 0.4s ease-in-out;
}

.project-description h4 {
    color: rgba(255, 255, 255, 0.41);
    font-size: 1rem;
}

.project-description {
    width: 100%;
    font-size: 1.2rem;
    text-align: justify;
    margin-bottom: 60px;
}

.github-button {
    display: flex;
    width: 120px;
    height: 40px;
    font-weight: 600;
    background-color: black;
    /* border: 1px solid white; */
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
    color: #ffffff;
    position: relative;
    margin-left: auto;
    margin-right: 3px;
}

#github-button {
    text-decoration: none;
}

.github-button-icon img {
    display: flex;
    filter: invert(100%);
    transition: filter 0.3s ease-in-out;
    padding-right: 3px;
    padding-top: 5px;
}

.github-button:hover {
    background-color: white;
    color: black;
    border-color: black;
    transform: scale(1.05);
    cursor: pointer;
}

.github-button:hover .github-button-icon img {
    filter: invert(0%);
}


/* Project Icons Styling */
.project-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
}

.project-icons img, 
.tech-stack img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease-in-out;
}

.project-icons img:hover,
.tech-stack img:hover {
    transform: scale(1.1);
}

/* Make tech stack icons responsive and aligned with GitHub button */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
    align-items: center;
}

/* Project card footer with tech stack and GitHub button */
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}


#flask-icon {
    filter: invert(100%);
}


/* Timeline Section */
.timeline-section {
    margin: 20px auto;
    padding: 10px;
    max-width: 700px;
    width: 90%;
    color: white;
    font-size: 1.25rem;
    font-family: monospace; 
    gap: 30px;  
}

.timeline-section span {
    color: #8038EC;
}



/*Contacts section in index*/

#container-contact {
    margin-top: 0%;
}



/* Footer Section */
.footer {
    background-color: #151515;
    color: #ffffff;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    height: auto;
    min-height: 150px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.1rem; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8038EC;
}

.footer-content .quote {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.scroll-button {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.scroll-button img {
    width: 25px;
    height: 25px;
    filter: invert(100%);
}

.scroll-button img:hover {
    cursor: pointer;
    filter: brightness(0) saturate(100%) invert(39%) sepia(85%) saturate(6511%) hue-rotate(256deg) brightness(95%) contrast(95%);
}



/* Contact styles */
.contact-box {
    height: auto;
    min-height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.229);
    border-radius: 10px;
    padding: 20px;
}

#contact-h2 {
    font-size: 1.75rem;
    padding-left: 0;
    margin-bottom: 5px;
}

.contact-box p {
    padding-left: 0;
    font-size: 1rem;
    color: #ffffff84;
    margin-top: 0;
}

.contact-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.icon-item img {
    width: 40px;
    height: 40px;
    filter: invert(100%);
}

.icon-item img:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

.icon-item span {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #ffffff84;
    text-align: center;
}

#h2-anime {
    position: relative;
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 1s ease-out, opacity 1s ease-out;
    color: #ffffff;
}

.show {
    opacity: 1;
    transform: translateX(0);
}


/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Media Queries */
/* Large devices (desktops) */
@media screen and (max-width: 1200px) {
    .sidebar-icon {
        right: 2%;
    }
    
    .container, .container-tech, .projects-section, .timeline-section {
        max-width: 90%;
    }
}

/* Medium devices (tablets) */
@media screen and (max-width: 992px) {
    .caption {
        font-size: 2.5rem;
    }
    
    #caption2 span {
        font-size: 2.5rem;
    }
    
    .container .content h1 {
        font-size: 2.4rem;
    }
    
    .container .content h2 {
        font-size: 1.2rem;
    }
    
    .projects-section h2 {
        font-size: 2rem;
    }
    
    #project-heading h3 {
        font-size: 1.5rem;
    }
}

/* Small devices (landscape phones) */
@media screen and (max-width: 768px) {
    .nav {
        padding: 10px;
        justify-content: space-between;
    }
    
    .logo {
        margin-left: 10px;
        position: static;
        z-index: 1001;
    }
    
    .icons {
        margin-right: 10px;
        position: static;
        z-index: 1001;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
        order: 3;
    }
    
    .nav ul {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #121212;
        flex-direction: column;
        width: 100%;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
        border-radius: 0;
    }
    
    .nav.active ul {
        height: auto;
        padding: 1rem 0;
    }
    
    .nav li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    
    /* Hamburger to X animation */
    .nav.active .menu-toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav.active .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .nav.active .menu-toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .caption {
        font-size: 2rem;
    }
    
    #caption2 span {
        font-size: 2rem;
    }
    
    .sidebar-icon {
        top: 15%;
        right: 5%;
    }
    
    .sidebar-icon img {
        width: 30px;
        height: 30px;
    }
    
    .container .content h1 {
        font-size: 1.8rem;
    }
    
    .container .content h2 {
        font-size: 1rem;
    }
    
    .container .content p {
        font-size: 0.9rem;
    }
    
    .project-cards .project-image {
        height: 300px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-bottom: 15px;
    }
    
    .footer-content .quote {
        position: relative;
        margin-left: 0;
        margin-top: 15px;
    }
    
    .contact-icons {
        gap: 20px;
    }
}

/* Extra small devices (phones) */
@media screen and (max-width: 576px) {
    .logo {
        font-size: 16px;
    }
    
    .icons {
        gap: 10px;
    }
    
    .icons img {
        width: 20px;
        height: 20px;
    }
    
    .caption {
        font-size: 1.5rem;
    }
    
    #caption2 span {
        font-size: 1.5rem;
    }
    
    .container .content h1 {
        font-size: 1.5rem;
    }
    
    .container .content h2 {
        font-size: 0.9rem;
        top: -10px;
    }
    
    .container .content p {
        font-size: 0.8rem;
        top: -5px;
    }
    
    .experience-section h2 {
        font-size: 1.5rem;
    }

    .projects-section h2 {
        font-size: 1.5rem;
    }
    
    #project-heading {
        margin-bottom: 60px;
    }
    
    #project-heading h3 {
        font-size: 1.2rem;
    }
    
    #project-heading h4 {
        font-size: 0.8rem;
        top: 30px;
    }
    
    .project-cards .project-image {
        height: 200px;
    }
    
    .project-description {
        font-size: 0.8rem;
    }
    
    .github-button {
        width: 100px;
        height: 35px;
        font-size: 0.8rem;
    }

    .button {
        width: 100px;
        height: 35px;
        font-size: 0.6rem;
    }
    
    .contact-box {
        padding: 15px;
    }
    
    #contact-h2 {
        font-size: 1.3rem;
    }
    
    .contact-box p {
        font-size: 0.8rem;
    }
    
    .contact-icons {
        gap: 15px;
    }
    
    .icon-item img {
        width: 30px;
        height: 30px;
    }
    
    .icon-item span {
        font-size: 0.7rem;
    }
    
    .image-frame {
        width: 120px;
        height: 120px;
    }
    
    #about-h2 {
        font-size: 1.5rem;
    }
    
    #about-p, #about-p2 {
        font-size: 0.8rem;
    }
    
    #about-h3 {
        font-size: 1rem;
    }
    
    #about-list li {
        font-size: 0.8rem;
    }
}

/* Very small devices */
@media screen and (max-width: 375px) {
    .caption {
        font-size: 1.2rem;
    }
    
    #caption2 span {
        font-size: 1.2rem;
    }
    
    .container .content h1 {
        font-size: 1.2rem;
    }
    
    .container .content h2 {
        font-size: 0.8rem;
    }
    
    .container .content p {
        font-size: 0.7rem;
    }
    
    .projects-section h2 {
        font-size: 1.2rem;
    }
    
    #project-heading h3 {
        font-size: 1rem;
    }
    
    #project-heading h4 {
        font-size: 0.7rem;
    }
    
    .project-cards .project-image {
        height: 150px;
    }
    
    .github-button {
        width: 90px;
        height: 30px;
        font-size: 0.7rem;
        
    }
    
    .image-frame {
        width: 100px;
        height: 100px;
    }
}


/*demo- button*/

/* From Uiverse.io by Creatlydev */ 
.button {
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  border: none;
  cursor: pointer;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--clr);
  color: #fff;
  border-radius: 10rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  padding-left: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s;
}

.button__icon-wrapper {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  position: relative;
  color: var(--clr);
  background-color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.button:hover {
  background-color: #000;
}

.button:hover .button__icon-wrapper {
  color: #000;
}

.button__icon-svg--copy {
  position: absolute;
  transform: translate(-150%, 150%);
}

.button:hover .button__icon-svg:first-child {
  transition: transform 0.3s ease-in-out;
  transform: translate(150%, -150%);
}

.button:hover .button__icon-svg--copy {
  transition: transform 0.3s ease-in-out 0.1s;
  transform: translate(0);
}
