@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    color:#E6E6E6;
    cursor: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background-color: #39393A;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
    font-weight: 500;

}
@media (max-width: 768px) {
body {
    padding-bottom: 50px; 

}
}
@media (max-width: 480px) {
    body {
        padding-bottom: 50px; 
    
    }
}
main {
    flex: 1;
}

/* Navbar */
.navbar {
    display: flex;
    flex-direction: column;
    width: 80px;
    background: #2C2C2C;
    border-radius: 16px;
    box-shadow: 0 0 1.5rem gray;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    height: auto;
    position: fixed;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 1000; 
    transition: transform 0.3s ease, background-color 0.3s ease !important;


}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
    color: #E6E6E6;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    padding: 5px 0;
}

.nav-item .label {
    margin-top: 5px;
    font-size: 12px;
    color: #E6E6E6;
    text-align: center;
}

.active-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: #E6E6E6;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.3);
}


/* Navbar Media Queries for Tablet (Max width: 1024px) */
@media (max-width: 1024px) {
    .navbar {
        width: 100%;
        height: 60px;
        flex-direction: row; 
        justify-content: space-around;
        bottom: 0; 
        left: 0; 
        top: auto; 
        transform: none;
        border-top-left-radius: 8px; 
        border-top-right-radius: 8px; 
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0; 
        box-shadow: none;
    }

    .nav-item {
        height: auto;
        font-size: 22px; 
    }

    .nav-item .label {
        font-size: 16px;
    }
}

/* Navbar Media Queries for Mobile (Max width: 768px) */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        height: 60px;
        flex-direction: row; 
        justify-content: space-around;
        bottom: 0; 
        left: 0; 
        top: auto; 
        transform: none;
        border-top-left-radius: 8px; 
        border-top-right-radius: 8px; 
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0; 
        box-shadow: none;
    }

    .nav-item {
        height: auto; 
        font-size: 20px; 
    }

    .nav-item .label {
        font-size: 10px; 
    }
}

/* Navbar Media Queries for Small Mobile Devices (Max width: 480px) */
@media (max-width: 480px) {
    .navbar {
        height: 50px; 
        flex-direction: row; 
        justify-content: space-around;
        z-index: 1000; 
        box-shadow: none;
    }

    .nav-item {
        height: auto;
        font-size: 18px; 
    }

    .nav-item .label {
        font-size: 8px; 
    }
}

/* About Me Section Styles */
#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    background-color: #39393A;
    color: #E6E6E6;
    margin-left: 100px; 
}

.about-container {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.about-image {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
    box-shadow: 0 0 1.5rem gray;
    border: 5px solid #2C2C2C;
    transition: transform 0.3s ease, background-color 0.3s ease !important;
}

.about-image:hover {
    transform: scale(1.05) translateY(-10px) !important;
}

.typedname {
    color: #E6E6E6;
}

.typedtext {
    font-weight: bold;
    font-size: 1.5em;
    display: inline-block;
    white-space: nowrap; 
    overflow: hidden; 
    border-right: 2px solid #E6E6E6;
    animation: typing 4s steps(30, end) 1s 1 normal both, blink 500ms steps(40, end) infinite;
}

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

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

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    font-size: 40px;
    color: #E6E6E6;
    transition: transform 0.3s ease, color 0.3s ease !important;
}

.social-icon:hover {
    transform: scale(1.2) !important;
    color: #00ADEF;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.about-content p {
    font-size: 1.1em;
    line-height: 1.6;
}

.technology-section h3 {
    font-size: 1.5em;
    color: #E6E6E6;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.technology-section .icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.technology-section .icons i {
    font-size: 2em; 
    color: #E6E6E6;
    transition: all 0.3s ease !important;
}

.technology-section .icons i:hover {
    color: #00ADEF;
    font-size: 2.2em; 

}


/* Media Queries for Mobile Devices */
@media (max-width: 1024px) {
    #about {
        padding: 40px 15px;
        margin-left: 0; 
    }

    .about-content p {
        font-size: 1em; 
    }

    .typed-name {
        font-size: 1.3em;
    }
}



@media (max-width: 480px) {
    #about {
        padding: 30px 10px;
        margin-left: 0; 
    }

    .about-image {
        width: 120px;
        height: 120px;
    }

    .about-content p {
        font-size: 0.9em; 
    }

    .typed-name {
        font-size: 1.2em;
    }

}

/* Milestones Section Styles */
#milestones {
    background-color: #4A4A4A;
    color: #E0E0E0;
    padding: 60px 20px;
    text-align: center;
}

.milestones-container {
    max-width: 1200px;
    margin: 0 auto;
}

.milestones-container h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

/* Ladder Theme */
.ladder {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}


.ladder-step {
    position: relative;
    background-color: #333333;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 1.5rem gray;
    margin: 30px 0;
    color: #E0E0E0;
    transition: transform 0.3s ease, background-color 0.3s ease !important;
    z-index: 1;
    width: 65%;
}
.icon-circle {
    position: absolute;
    top: 50%;
    right: -32px;
    width: 40px; 
    height: 40px; 
    background-color: #4A4A4A; 
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em; 
    transform: translateY(-50%); 
    z-index: 1;
}

.ladder-step.left .icon-circle {
    left: 98%;

}
.ladder-step.right .icon-circle {
    right: 98%;

}
.ladder-step.left {
    right: 16%;
    transform: translateX(-50%);
}

.ladder-step.right {
    left: 51%;
    transform: translateX(50%);
}

.step-content {
    text-align: left;
}

.ladder-step h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.ladder-step p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.ladder-step span {
    display: block;
    font-size: 0.9em;
    color: #B0B0B0;
}

.ladder-step:hover {
    transform: scale(1.05) translateY(-10px)!important; 
    background-color: #4A4A4A;
    z-index: 2;
}

.ladder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #E0E0E0;
    transform: translateX(-50%);
    z-index: 0;
    animation: growLine 3s ease-in-out 1.2s forwards; 
}
@keyframes growLine {
    from { height: 0; }
    to { height: 100%; }
}
/* Responsive Design for small screens */
@media (max-width: 820px) {
    .icon-circle {
        width: 30px; 
        height: 30px; 
    }
    .ladder {
        padding: 20px 5px;
    }

    .ladder::before {
    display: none;
    }

    .ladder-step {
        width: calc(100% - 10px);
        margin: 15px 0 15px 10px;
        transform: none;
    }

    .ladder-step.left .icon-circle {
        left: -3.8%; 
        right: auto;
    }
    .ladder-step.right .icon-circle {
        left: -3.8%;
        right: auto;
    }

    .ladder-step.left, .ladder-step.right {
        left: 5px;
        right: auto;
        transform: none;
    }

    .ladder-step h3 {
        font-size: 1.5em;
    }

    .ladder-step p {
        font-size: 1em;
    }

    .ladder-step span {
        font-size: 0.8em;
    }

}


@media (max-width: 480px) {
    .icon-circle {
        width: 35px; 
        height: 35px; 
    }
    .ladder {
        padding: 20px 5px;
    }

    .ladder::before {
        display: none;
    }

    .ladder-step {
        width: calc(100% - 40px);
        margin: 20px 0 20px 40px; 
        transform: none;
    }
    .ladder-step.left .icon-circle {
        left: -10%; 
        right: auto;
    }
    .ladder-step.right .icon-circle {
        left: -10%;
        right: auto;
    }
    .ladder-step h3 {
        font-size: 1.5em;
    }

    .ladder-step p {
        font-size: 1em;
    }

    .ladder-step span {
        font-size: 0.8em;
    }

    
}

/* Projects Section Styles */
#projects {
    background-color: #323030; 
    color: #E6E6E6;
    padding: 60px 20px;
    text-align: center;
    z-index: 1;
}
.project-container {
    padding: 0 20px; 
}

.project-container h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

.card {
    background-color: #383838;
    border-radius: 10px;
    overflow: hidden;
    flex-basis: 400px; 
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    min-height: 450px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease !important; 

}

.card:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); 

}

.card img {
    width: 100%; 
    height: auto;
    object-fit: cover; 
    border-bottom: 5px solid #444; 
}

.card-content {
    padding: 20px;
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #E6E6E6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); 
}

.card-content p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tech-stack {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    color: #c5c5c5; 
    
}

.tech-stack span {
    background-color: #2C2C2C;
    color: #E6E6E6;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: transform 0.3s ease, background-color 0.3s ease !important;
}
.tech-stack span:hover {
    transform: scale(1.05) translateY(-10px) !important;
}
.website-btn {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    color: #E6E6E6;
    background: linear-gradient(135deg, #4b4b4b, #6e6e6e); 
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.website-btn:hover {
    background: linear-gradient(135deg, #6e6e6e, #4b4b4b);
    transform: translateY(-3px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
    .project-container h1 {
        font-size: 2em; 
    }

    .card {
        margin: 10px 0;
        min-height: 250px; 
    }

    .card-content h2 {
        font-size: 1.3rem; 
    }

    .card-content p {
        font-size: 0.85rem; 
    }

    .website-btn {
        padding: 8px 15px; 
    }
}


/* Contact Form Styles */
#contact {
    background-color: #39393A;
    color: #E6E6E6;
    padding: 80px 30px; 
    border-radius: 10px;
    max-width: 800px; 
    margin: 60px auto; 
    box-shadow: 0 0 1.5rem gray;
}

#contact h2 {
    margin-bottom: 30px;
    font-size: 2.5em; 
    color: #E6E6E6;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem; 
}

.input {
    border: solid 1.5px #9e9e9e;
    border-radius: 1rem;
    background: none;
    padding: 1.25rem; 
    font-size: 1.1rem; 
    color: #E6E6E6;
    width: 100%;
    box-sizing: border-box;
    transition: border 150ms cubic-bezier(0.4,0,0.2,1);
}

.user-label {
    position: absolute;
    left: 15px;
    color: #E6E6E6;
    pointer-events: none;
    transform: translateY(1.25rem); 
    transition: 150ms cubic-bezier(0.4,0,0.2,1);
    background-color: #39393A;
    padding: 0 0.2em;
}

.input:focus, .input:valid {
    outline: none;
    border: 1.5px solid #E6E6E6;
}

.input:focus ~ .user-label, .input:valid ~ .user-label {
    transform: translateY(-50%) scale(0.8);
    background-color: #39393A;
    color:#E6E6E6;
    padding: 0 0.2em;
}

textarea.input {
    resize: vertical;
}

#contact button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Poppins", sans-serif;
    font-size: 1.1em;
    font-weight: 500; 

}

#contact button[type="submit"]:hover {
    background-color: #0056b3;
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    #contact {
        padding: 60px 20px;
        margin: 30px auto;
        max-width: 90%;
    }

    #contact h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .input {
        font-size: 1rem;
        padding: 1rem;
    }

    .user-label {
        left: 10px;
        transform: translateY(1rem);
        padding: 0 0.3em;
    }
}

@media (max-width: 768px) {
    #contact {
        padding: 60px 20px;
        margin: 40px auto; 
        max-width: 90%;
    }

    .input-group {
        margin-bottom: 1rem;
    }

    .input {
        padding: 1rem;
        font-size: 1rem;
    }

    .user-label {
        transform: translateY(1rem);
    }
    
}
/* Responsive Adjustments for max-width: 480px */
@media (max-width: 480px) {
    #contact {
        padding: 40px 15px; 
        margin: 30px auto; 
        max-width: 90%; 
    }

    .input-group {
        margin-bottom: 1rem; 
    }

    .input {
        padding: 1rem; 
        font-size: 1rem; 
    }

    .user-label {
        transform: translateY(1rem); 
    }

    .input[type="submit"] {
        padding: 1rem; 
        font-size: 1rem; 
        margin-top: 1rem; 
    }
}


/* Footer Styles */
footer {
    background-color: #2C2C2C;
    color: #E6E6E6;
    padding: 20px;
    text-align: center;
    width: 100%;
    border-top: 1px solid #444;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: #E6E6E6;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.footer-links i {
    margin-right: 8px;
    font-size: 16px;
}

.footer-links a:hover span {
    text-decoration: underline;
}

.copyright {
    margin-top: 10px;
    font-size: 16px;
}

/* Footer Media Queries */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
    }

    .footer-links li {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .footer-links li {
        margin: 5px 0; 
    }

    .copyright {
        font-size: 10px; 
    }
}

.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.3s ease-in-out;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #E6E6E6;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid #E6E6E6;
    transition: all 0.2s ease-out;
}

a:hover ~ .cursor-dot,
button:hover ~ .cursor-dot {
    transform: translate(-50%, -50%) scale(2);
    background-color: #00ADEF;
}

a:hover ~ .cursor-outline,
button:hover ~ .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: #00ADEF;
}

a, button, .nav-item {
    cursor: none;
}

