/* =================================================
Google Fonts Import
================================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/* =================================================
General / Universal Styles
================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Nunito", sans-serif;
}

:root {
    --bg-color: #ffffff;
    --snd-bg-color: #f7f7f7;
    --h1-font-color: #212121;
    --h2-font-color: #353535;
    --h3-font-color: #484848;
    --body-font-color: #5b5b5b;
    --main-color: #ffc200;
    --button-color: #474559;
    --text-white: #ffffff;
    --dark-mode-color: #0c0c0d;
    --border-color: #e0e0e0;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--body-font-color);
}

section {
    min-height: 100vh;
    padding: 8rem 9% 5rem;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    color: var(--h2-font-color);
    margin-bottom: 5rem;
}

span {
    color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--button-color);
    border-radius: 4rem;
    box-shadow: 0 .2rem .5rem rgba(0, 0, 0, 0.1);
    font-size: 1.6rem;
    color: var(--text-white);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
    background: var(--main-color);
    color: var(--dark-mode-color);
}

/* =================================================
HEADER & NAVBAR
================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
    box-shadow: 0 .2rem .5rem rgba(0, 0, 0, 0.05);
}

.header.sticky {
    border-bottom: .1rem solid var(--border-color);
}


.logo {
    font-size: 2.5rem;
    color: var(--h1-font-color);
    font-weight: 700;
    cursor: default;
}
/* Logo Styling */
.logo img {
    height: 4.5rem; /* Aap is value ko kam ya zyada karke size adjust kar sakte hain */
    vertical-align: middle; /* Isse logo navbar ke text ke saath theek se align hoga */
}
.navbar a {
    font-size: 1.7rem;
    color: var(--body-font-color);
    margin-left: 4rem;
    font-weight: 700;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--h1-font-color);
    display: none;
}

/* =================================================
ALTERNATING SECTION COLORS
================================================== */
.home { background-color: var(--bg-color); }
.about { background-color: var(--snd-bg-color); }
.badges-section { background-color: var(--bg-color); }
.skills { background-color: var(--snd-bg-color); }
.projects { background-color: var(--bg-color); }
.contact { background-color: var(--snd-bg-color); }


/* =================================================
HOME SECTION
================================================== */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.home-content h1 { font-size: 5.6rem; font-weight: 700; line-height: 1.3; }
.home-content h3 { font-size: 3.2rem; font-weight: 700; }
.home-content p { font-size: 1.6rem; margin: 2rem 0 4rem; text-align: justify; }
.home-img img { width: 20vw; animation: floatImage 4s ease-in-out infinite; }
.home-img {
    /* Yeh animation ke container ka size set karega */
    flex-basis: 50rem; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img lottie-player {
    /* Yeh animation ka actual size control karega */
    width: 45rem; /* Aap is value ko aasaani se kam ya zyada kar sakte hain */
    height: 45rem;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage { 0% { transform: translateY(0); } 50% { transform: translateY(-2.4rem); } 100% { transform: translateY(0); } }
.social-media a { display: inline-flex; justify-content: center; align-items: center; width: 4rem; height: 4rem; background: transparent; border: .2rem solid var(--main-color); border-radius: 50%; font-size: 2rem; color: var(--main-color); margin: 0 1.5rem 3rem 0; transition: .5s ease; }
.social-media a:hover { background-color: var(--main-color); color: var(--dark-mode-color); box-shadow: 0 0 1rem var(--main-color); }
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--main-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
}

/* Home Section Buttons Styling */
.home-buttons {
    display: flex;
    flex-wrap: wrap; /* Mobile par aache se dikhne ke liye */
    gap: 4rem; /* Buttons ke beech mein space */
}

/* "Hire Me" button ko alag style dene ke liye */
.hire-me-home-btn {
    background: var(--text-white);
    color: var(--main-color);
}

.hire-me-home-btn:hover {
    background: var(--main-color);
    color: var(--dark-mode-color);
}

/* =================================================
ABOUT SECTION (Final Layout)
================================================== */
.about-container {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}
.about-img {
    flex: 1 1 30rem;
    max-width: 30rem;
}
.about-img img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: 0 0 2rem rgba(0,0,0,0.1);
}
.about-content {
    flex: 1 1 55rem;
    text-align: left;
}
.about-content h3 {
    font-size: 2.5rem;
    color: var(--h3-font-color);
    margin-bottom: 1.5rem;
}
.about-content p {
    font-size: 1.6rem;
    margin-bottom: 1.0rem;
    text-align: justify;
}
.quick-info-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.quick-info-list li {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}
.quick-info-list li i {
    color: var(--main-color);
    font-size: 1.8rem;
    width: 2.5rem;
    margin-right: 1rem;
}

/* Styling for the button under the about image */
.about-img .btn {
    margin-top: 2rem; /* Photo aur button ke beech space */
    width: 100%; /* Button ko poori width dega */
    text-align: center;
}


/* =================================================
MY EDUCATION (TIMELINE) SECTION
================================================== */
.education {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-container {
    width: 100%;
    max-width: 1200px; /* Ek max-width set ki hai for very large screens */
    margin: 0 auto; /* Container ko center me rakhega */
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.timeline-column {
    flex: 1 1 40rem;
}

.timeline-column .title {
    font-size: 2.5rem;
    margin: 0 0 2.5rem 0;
    color: var(--h2-font-color);
}

.timeline-box {
    position: relative;
    border-left: .2rem solid var(--border-color); /* The static grey line */
}

.timeline-item {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 3rem;
}

/* This is the static, main-colored dot */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.1rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
}

/* This is the smaller, white dot that animates on top */
.timeline-dot {
    position: absolute;
    left: -1.1rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--bg-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s ease;
    z-index: 5;
}

/* This is the animated "Flipkart-style" tracking line */
.timeline-item::after {
    content: '';
    position: absolute;
    left: -0.2rem; 
    top: 2rem; 
    height: 100%;
    width: .2rem;
    background: var(--main-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s ease;
    z-index: 1;
}

/* When .animate is added, both the dot and the line animate */
.timeline-item.animate .timeline-dot {
    transform: scale(1.5);
}

.timeline-item.animate::after {
    transform: scaleY(1);
}

.timeline-date {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--h3-font-color);
    margin-bottom: .5rem;
}

.timeline-content h4 {
    font-size: 2rem;
    color: var(--h2-font-color);
}

.timeline-content p {
    font-size: 1.6rem;
    margin-top: .5rem;
}

.timeline-desc {
    font-size: 1.4rem !important;
    color: var(--body-font-color);
    font-style: italic;
}



/* =================================================
BADGES SECTION STYLES (Cleaned Up)
================================================== */
.badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.badge-box {
    flex: 1 1 25rem;
    max-width: 30rem;
    background: var(--snd-bg-color); 
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.05);
    transition: .5s ease;
}
.badge-box:hover {
    border-color: var(--main-color);
    transform: translateY(-1rem);
}
.badge-box h3 {
    font-size: 2rem;
    color: var(--h3-font-color);
    margin-top: 1.5rem;
}
.badge-img {
    height: 15rem;
    width: 15rem;
    object-fit: contain;
    transition: .3s ease;
}
.badge-box:hover .badge-img {
    transform: scale(1.05);
}

/* Certificate Link Box Styling */
.certificate-link-box {
    background: var(--snd-bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-style: dashed;
}

.certificate-link-box i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.certificate-link-box p {
    font-size: 1.4rem;
    margin: 1rem 0 2rem 0;
}
/* =================================================
SKILLS SECTION STYLES (New Progress Bar Design)
================================================== */
.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}
.skills-column {
    flex: 1 1 40rem;
}
.skills-column .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 0;
    color: var(--h2-font-color);
}
.skills-box {
    border: .1rem solid var(--border-color);
    border-radius: .6rem;
    padding: 2rem;
    background: var(--bg-color);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.05);
}
.skills-box .progress {
    padding: 1rem 0;
}
.skills-box .progress h3 {
    font-size: 1.7rem;
    display: flex;
    justify-content: space-between;
    color: var(--h3-font-color);
}
.skills-box .progress .bar {
    height: 2.5rem;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
    padding: .5rem;
    margin: 1rem 0;
}
.skills-box .progress .bar span {
    display: block;
    height: 100%;
    border-radius: .3rem;
    background: var(--main-color);
    width: 0;
    transition: width 1.5s ease;
}

/* =================================================
PROJECTS SECTION
================================================== */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2.5rem;
}
.projects-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
}
.projects-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}
.projects-box:hover img {
    transform: scale(1.1);
}
.projects-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}
.projects-box:hover .projects-layer {
    transform: translateY(0);
}
.projects-layer h4 {
    font-size: 3rem;
    color: var(--dark-mode-color);
}
.projects-layer p {
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
}
.projects-layer i {
    color: var(--dark-mode-color);
    font-size: 2rem;
    background: var(--text-white);
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Journal Link Box Styling */
.journal-link-box {
    background: var(--bg-color);
    border: .2rem dashed var(--main-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem;
}

.journal-link-box i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.journal-link-box h3 {
    font-size: 2.5rem;
    color: var(--h2-font-color);
}

.journal-link-box p {
    font-size: 1.5rem;
    margin: 1rem 0 2.5rem 0;
}

/* Blog Link Box Styling */
.blog-link-box {
    background: var(--bg-color);
    border: .2rem dashed var(--main-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem;
}

.blog-link-box i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.blog-link-box h3 {
    font-size: 2.5rem;
    color: var(--h2-font-color);
}

.blog-link-box p {
    font-size: 1.5rem;
    margin: 1rem 0 2.5rem 0;
}

/* =================================================
CONTACT SECTION
================================================== */
.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
}
.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--body-font-color);
    background: var(--bg-color); 
    border-radius: .8rem;
    margin: .7rem 0;
    border: 1px solid var(--border-color);
}
.contact form .input-box input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
}
.contact form .input-box input {
    width: 49%;
}
.contact form textarea {
    resize: none;
}

.map-container {
    flex: 1 1 42rem; /* Map ke liye kam space */
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
}

/* =================================================
FOOTER SECTION
================================================== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--border-color);
}
.footer-text p {
    font-size: 1.6rem;
}
.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}
.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}
.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--dark-mode-color);
}

/* =================================================
RESPONSIVE DESIGN (BREAKPOINTS)
================================================== */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}
@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }
    section {
        padding: 10rem 3% 2rem;
    }
    .footer {
        padding: 2rem 3%;
    }
    /* YEH NAYI LINES JODEIN */
    #menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        transition: .3s ease;
        display: none;
    }
    .navbar.active {
        display: block;
        left: 0;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .home {
        flex-direction: column-reverse;
    }
    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
    .about-container {
        flex-direction: column; /* Mobile par photo upar, content neeche */
        text-align: center;
    }
    .about-content {
        text-align: center;
    }
    .quick-info-list li {
        justify-content: center; /* Info ko center me rakhega */
    }
    /* Responsive Timeline Alignment (Naya code yahan jod dein) */
    .timeline-column {
        flex: 1 1 100%;
    }
}
@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
    .contact form .input-box input {
        width: 100%;
    }
}
@media (max-width: 365px) {
    .footer {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    .footer-text {
        text-align: center;
    }
}

/* =================================================
HIRE ME BUTTON STYLE (Navbar)
================================================== */
.hire-me-nav-btn {
    background: var(--button-color);
    color: var(--text-white) !important; /* !important zaroori hai taaki yeh doosre styles ko override kar sake */
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-weight: 700;
    margin-left: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.3s, transform 0.3s;
}

.hire-me-nav-btn:hover {
    background: var(--main-color);
    color: var(--dark-mode-color) !important;
    transform: scale(1.05);
}

/* =================================================
MOUSE GLITTER EFFECT
================================================== */
.glitter {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: var(--main-color);
    border-radius: 50%;
    pointer-events: none; /* Taaki glitter mouse ke clicks ko na roke */
    opacity: 0;
    animation: glitter-fade 1s ease-out;
    z-index: 9999;
    box-shadow: 0 0 8px 2px var(--main-color);
}

@keyframes glitter-fade {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.section-separator {
  border: none;              /* removes default 3D border */
  height: 2px;               /* sets thickness */
  background-color: var(--border-color); /* bright orange, change as needed */
  margin: 30px 0;            /* spacing above and below */
}

