* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}
:root {
    --bg-color: rgb(15,15,15);
    --second-bg-color: #161616;
    --text-color: white;
    --main-color: #14ff6a;
}
html {
    font-size: 62.5%;
    overflow-x: hidden;
}
body {
    background: var(--bg-color);
    color: var(--text-color);
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem 9%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.logo:hover {
    transform: scale(1.1);
}
.navbar a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
    text-decoration: none;
}
.navbar a:hover, .navbar a.active:hover {
    color: var(--main-color);
    font-size: 1.9rem;
    font-weight: 600;
    /* border-bottom: 3px solid var(--main-color); */
}
#menu-icon {
    font-size: 3rem;
    color: var(--main-color);
    display: none;
}
section {
    min-height: 100vh;
    padding: 10rem 9% 10rem;
}
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
}
span{
    color: var(--main-color);
}
.logo span {
    color: var(--main-color);
}
.home-content h1{
    font-size: 8rem;
    font-weight: 700;
    line-height: 1.3;
}
.home-img {
    border-radius: 50%;
}
.home-img img {
    position: relative;
    border-radius: 50%;
    width: 32vw;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}
.home-img img:hover {
    box-shadow: 0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}
.home-content p {
    font-size: 1.8rem;
    font-weight: 500;
}
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    font-size: 2rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover {
    color: white;
    transform: scale(1.3)translateY(-5px);
    background-color: var(--main-color);
    box-shadow: 0  0 25px var(--main-color);
}
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--bg-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    margin-left: 25px;
}
.btn:hover {
    transform: scale(1.05);
    background: var(--main-color);
    color: var(--text-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}
.text-animation {
    font-size: 42px;
    font-weight: 600;
    min-width: 280px;
    margin: 10px 0;
}
.text-animation span {
    position: relative;
}
.text-animation span::before {
    content: "Web Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}
.text-animation span::after {
    content: " ";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite,  typing 20s steps(14) infinite;
}
@keyframes cursor {
    to {
        border-left: 2px solid var(--main-color);
    }
}
@keyframes words {
    0%,
    20% {
        content: "Web Developer";
    }
    21%,
    40% {
        content: "CS Student";
    }
    41%,
    60% {
        content: "DSA Enthusiast";
    }
    61%,
    80% {
        content: "Problem Solver";
    }
    81%,
    100% {
        content: "Tech Explorer";
    }
}
@keyframes typing {
    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95% {
        width: 0;
    }

    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85% {
        width: calc(100% + 8px);
    }
}
.about {
    background-color: var(--second-bg-color);
}
.heading {
    color: var(--text-color);
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}
.sub-heading {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
} 
.about-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 6rem;
    width: 100%;
}

.timeline-wrapper, .content-wrapper {
    flex: 1;
    width: 50%;
}

.about-sub-title {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3rem;
    text-align: center;
}

.content-wrapper {
    padding: 0 2rem;
}

.about-text {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-color);
    /* margin-bottom: 2rem; */
    text-align: justify;
    margin-top: 5rem;
}

.timeline-items {
    position: relative;
    width: 100%;
    max-width: 500px; 
    margin: 0 auto;  
}

.timeline-item:hover .timeline-content{
    transform: scale(1.01);
    box-shadow: 0 0 25px var(--main-color);
}
.timeline-items::before {
    content: "";
    position: absolute;
    width: 3px;
    height: 100%;
    background-color: var(--main-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2.5rem;
    width: 100%;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item.odd {
    padding-right: calc(50% + 20px);
    text-align: right;
}

.timeline-item.even {
    padding-left: calc(50% + 20px);
    text-align: left;
}

.timeline-date {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
}

.timeline-content h3:hover {
    transform: scale(1.01);
    color: rgba(20,255,106,0.7);
    cursor: pointer;
}

.timeline-content p {
    font-size: 1.4rem;
    color: #b2bec3;
    font-weight: 400;
    margin-top: 1.1rem;
}

.timeline-content {
    background-color: var(--second-bg-color);
    backdrop-filter: blur(20px);
    /* border: 1px solid var(--main-color); */
    box-shadow: 0 0 6px var(--main-color);
    padding: 1rem;
    transition: 0.3s ease-in-out;
}

.timeline-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    border-radius: 50%;
    left: 50%;
    top: 5px;
    transform: translateX(-50%);
    z-index: 1;
}
.about-quote {
    margin-top: 22rem;
    padding-left: 2rem;
    border-left: 4px solid var(--main-color);
    font-style: italic;

}
.about-quote p {
    font-size: 1.8rem;
    line-height: 1.6;
    color: #b2bec3;
}

.skills {
    background-color: var(--bg-color);
}
.skills-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6rem;
    margin-top: 6rem;
    width: 100%;
}
.skills-column {
    flex: 1;
    width: 50%;
    background: var(--second-bg-color);
    padding: 3.5rem;
    border-radius: 2rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.skills-sub-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 3.5rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.skills-sub-title i {
    color: var(--main-color);
}
.skills-category {
    margin-bottom: 2.5rem;
}
.skills-category:last-child {
    margin-bottom: 0;
}
.skills-category h4 {
    font-size: 1.6rem;
    color: #b2bec3;
    font-weight: 500;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}
.skill-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 50px;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-color);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 5rem;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: 0.3s ease-in-out;
    cursor: default;
    text-align: center;
    gap: 1.5rem;
}
.skill-badge-professional {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 50px;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-color);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 5rem;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: 0.3s ease-in-out;
    cursor: default;
    text-align: center;
    gap: 1.5rem;
}
.skill-badge:hover, .skill-badge-professional:hover {
    color: var(--main-color);
    border-color: var(--main-color);
    background: rgba(20, 255, 106, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(20, 255, 106, 0.2);
}
.technical-svg {
    font-size: 30px;
    width: 30px;
    height:30px;
}
.technical-p {
    font-size: 1.3rem;
    color: #b2bec3;
    margin-top: -2.5rem;   
    margin-bottom: 2.5rem; 
    margin-left: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.skills-right-side {
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1.75rem; 
}
.skills-column.professional {
    width: 100%;
}
.certifications-column {
    width: 100%;
    background: var(--second-bg-color);
    padding: 3.5rem;
    border-radius: 2rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.2rem;
    transition: 0.3s ease-in-out;
}
.cert-item:hover {
    border-color: var(--main-color);
    background: rgba(20, 255, 106, 0.02);
    transform: translateX(5px);
}
.cert-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}
.cert-icon {
    font-size: 2.4rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.8rem;
    color: white;
}
.cert-text-icon {
    font-size: 1.8rem;
    font-weight: 700;
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.8rem;
    color: white;
}
.cert-details h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}
.cert-details p { 
    font-size: 1.3rem;
    color: #b2bec3;
    margin-top: 0.3rem;
}
.cert-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
}
.cert-date {
    font-size: 1.3rem;
    color: var(--main-color);
    font-weight: 500;
    white-space: nowrap;
}
.cert-link-icon {
    font-size: 1.8rem;
    color: #b2bec3;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s ease-in-out;
}
.cert-link-icon:hover {
    color: var(--main-color);
    transform: scale(1.15) translateY(-1px);
    cursor: pointer;
}

.projects {
    background-color: var(--second-bg-color);
}
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3.5rem;
    margin-top: 6rem;
    width: 100%;
}
.project-card {
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: 0.4s ease-in-out;
}
.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 0 25px rgba(20, 255, 106, 0.15);
}
.project-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease-in-out;
}
.project-card:hover .project-img img {
    transform: scale(1.08);
}
.project-info {
    padding: 2.5rem;
}
.project-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}
.project-info p {
    font-size: 1.4rem;
    color: #b2bec3;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-align: justify;
}
.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.skill-badge-project {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1.4rem;
    background: rgba(255, 255, 255, 0.03);
    color: #b2bec3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5rem;
    font-size: 1.2rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
}
.project-card:hover .skill-badge-project {
    color: var(--main-color);
    border-color: rgba(20, 255, 106, 0.3);
    background: rgba(20, 255, 106, 0.02);
}
.project-buttons {
    display: flex;
    gap: 1.5rem;
}
.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 2rem;
    background: transparent;
    border-radius: 4rem;
    font-size: 1.4rem;
    color: #b2bec3;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.btn-project:hover {
    color: var(--text-color);
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}
.btn-project.live {
    color: var(--bg-color);
    background: var(--main-color);
    border-color: var(--main-color);
}
.btn-project.live:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 15px var(--main-color);
}
.project-tech-title {
    font-size: 1.3rem;
    color: #b2bec3;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease-in-out;
}
.project-card:hover .project-tech-title {
    color: var(--main-color);
}
.coming-soon-card {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px; 
    border: 2px dashed rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(145deg, rgba(22, 22, 22, 0.4), rgba(15, 15, 15, 0.6));
    cursor: default;
    padding: 3rem;
    margin-top: 2rem;
}

.coming-soon-card:hover {
    border-color: var(--main-color) !important;
    transform: translateY(-10px);
    box-shadow: 0 0 15px rgba(20, 255, 106, 0.05);
}

.coming-soon-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.coming-soon-icon i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    transition: 0.3s ease-in-out;
}

.coming-soon-card:hover .coming-soon-icon i {
    color: var(--main-color);
    transform: rotate(15deg) scale(1.1);
}

.coming-soon-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.coming-soon-tagline {
    font-size: 1.4rem;
    color: #b2bec3;
    font-style: italic;
    letter-spacing: 0.5px;
}

.coming-soon-loader {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.coming-soon-loader span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: loaderPulse 1.5s infinite ease-in-out;
}

.coming-soon-loader span:nth-child(2) { animation-delay: 0.2s; }
.coming-soon-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); background: rgba(255, 255, 255, 0.2); }
    50% { transform: scale(1.4); background: var(--main-color); }
}


.contact {
    background-color: var(--bg-color);
}

.contact h2 {
    margin-bottom: 1.5rem;
}

.contact-subheading {
    font-size: 1.6rem;
    color: #b2bec3;
    text-align: center;
    margin: 0 auto 4rem auto;
    line-height: 1.6;
    font-weight: 400;
    max-width:650px;
    line-height:1.6;
}

.contact form {
    max-width: 80rem; 
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact form .input-box input, 
.contact form textarea {
    width: 100%;
    padding: 1.6rem 2rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background-color: var(--second-bg-color); 
    border-radius: 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    outline: none;
    resize: none;
    transition: 0.3s ease-in-out;
}

.contact form .input-box input:focus, 
.contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 15px rgba(20, 255, 106, 0.15);
}

.contact form textarea {
    margin-top: 0;
    margin-bottom: 3rem;
}

.contact form .btn {
    margin: 0 auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .contact form .input-box {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 50px 0;
    background-color: var(--second-bg-color);
}

.footer .social {
    text-align: center;
    padding-bottom: 3rem;
    color: white;
}

.footer .social a {
    font-size: 22px;
    color: var(--main-color);
    width: 44px;
    height: 44px;
    border: 2px solid var(--main-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 12px;
    transition: 0.3s ease-in-out;
}

.footer .social a:hover {
    transform: scale(1.15) translateY(-5px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}

.footer ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    list-style: none;
    font-size: 1.6rem;
    margin-bottom: 4rem;
}

.footer ul li a {
    color: #b2bec3;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
    color: var(--text-color);
    border-bottom: 2px solid var(--main-color);
}

.footer-tagline {
    font-family: "Courier New", Courier, monospace;
    font-size: 1.6rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: 0.5px;
}

.footer .copyright {
    text-align: center;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.4); 
    letter-spacing: 0.5px;
}

@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
    .home {
        gap: 4rem;
    }
    .home-content h1 {
        font-size: 6.5rem;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }
    section {
        padding: 8rem 4% 8rem;
    }
    .about-section, .skills-section {
        flex-direction: column;
        gap: 4rem;
    }
    .timeline-wrapper, .content-wrapper,
    .skills-column, .skills-right-side {
        width: 100%;
    }
    .about-quote {
        margin-top: 5rem;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
        cursor: pointer;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        gap: 2rem;
        transition: 0.4s ease;
    }

    .navbar.active {
        left: 0;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 1.5rem 0;
        margin-left: 0;
        text-align: center;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
        padding-top: 12rem;
    }

    .home-img img {
        width: 60vw;
        max-width: 250px;
    }

    .btn-hero-section {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .btn {
        margin-left: 0;
    }

    .timeline-items::before {
        left: 15px;
    }

    .timeline-item.odd, 
    .timeline-item.even {
        padding-left: 45px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-dot {
        left: 15px;
    }
    
    .content-wrapper {
        padding: 0;
    }

    .about-text {
        text-align: left;
        margin-top: 2rem;
    }

    .badges-grid {
        justify-content: center;
    }
    
    .skills-sub-title {
        justify-content: center;
    }
    
    .technical-p {
        text-align: center;
        margin-left: 0;
    }

    .cert-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .cert-right {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }

    .logo {
        font-size: 2.2rem;
    }

    .home-content h1 {
        font-size: 4.5rem;
    }

    .text-animation {
        font-size: 3rem;
    }

    .heading {
        font-size: 3.2rem;
    }

    .sub-heading {
        font-size: 1.8rem;
    }
    
    .skill-badge, .skill-badge-professional {
        width: 100%; 
        max-width: 280px;
    }
}