/* ===================================
   About Section Styles
   =================================== */

#section-about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 8%; /* Added more horizontal padding */
    gap: 40px; /* Space between text and spline */
    min-height: 90vh;
    /* background-color: var(--bg-color); */
    color: var(--text-color);
}

/* Left side content container */
.about-content {
    flex: 1; /* Allows this container to grow */
    max-width: 600px; /* Prevents text from becoming too wide */
}

/* "About Me" heading */
.about-title {
    font-size: 3rem; /* 48px */
    font-weight: 700;
    margin-bottom: 1rem; /* 16px */
}

.about-title span {
    color: var(--highlight-color);
}

/* Profession subheading */
.about-profession {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    color: var(--highlight-color);
    margin-bottom: 1.5rem; /* 24px */
}

/* Paragraph styles */
.about-details,
.about-summary {
    font-size: 1.1rem; /* 16px */
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #e5e7eb; /* A slightly off-white for better readability */
}

/* "See More" button styles */
.see-more-btn {
    display: inline-block;
    background-color: var(--highlight-color);
    color: var(--nav-color); /* Using your dark color for text */
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border:1px solid var(--highlight-color);
}

.see-more-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: transparent;
    color:var(--highlight-color);
}

/* Right side spline container */
/* .about-spline {
    width: 500px;
    height: 400px;
    overflow: hidden;
    position: relative;
    top:20px;
    border-radius:100px 20px;
    box-shadow: 1px 1px 30px var(--highlight-color);
    transition: transform .5s ease-in-out;
} */
/* .about-spline:hover{
    transform: scale(1.01);
} */
.about-spline spline-viewer {
    position: absolute;
    width: 800px; /* Render at a large size for high quality */
    height: 800px;
    top: 50%;
    left: 50%;
    /* This centers the large canvas inside the smaller viewing box */
    transform: translate(-50%, -50%);
}
.about-spline img{
    animation: visible 3s ease-in-out forwards;
    filter: drop-shadow(1px 1px 250px var(--highlight-color));
}
@keyframes visible{
    0%{
        opacity: 0;
        transform: translateY(-40px);
    }
    75%{
        opacity: .75;
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 992px) {
    /* #section-about {
        flex-direction: column; 
        text-align: center;
    } */

    /* .about-spline {
        width: 100%;
        margin-top: 40px;
        min-height: 350px;
    } */
}
@media (max-width: 1200px) {
.about-spline{
    display: none;
}
.about-content {
    flex: 1; /* Allows this container to grow */
    max-width: 900px; /* Prevents text from becoming too wide */
}
}
@media (max-width:768px){
.about-title {
    font-size: 2.5rem;
}


/* Profession subheading */
.about-profession {
    font-size: 1.2rem; /* 24px */
}

/* Paragraph styles */
.about-details,
.about-summary {
    font-size: 1rem; /* 16px */
}
#section-about {
    padding: 60px 40px;
}
}

/*==================================
   My Journey Section (Optimized)
====================================*/

#journey {
    padding: 80px 10%;
    /* background-color: var(--bg-color); */
    text-align: center;
}

.journey-title {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 60px;
    font-weight: 700;
}

.journey-title span {
    color: var(--highlight-color);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
#journey .journey1 .timeline-content{
    /* background-color: red; */
    text-align: left;
}
/* The vertical line - OPTIMIZED */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--highlight-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    opacity: 0.3;
    
    /* === PERFORMANCE FIX ADDED HERE === */
    /* This hints the browser to use the GPU for this element, preventing scroll lag */
    will-change: transform;
    transform: translateZ(0); 
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    right: -8.5px;
    background-color: var(--text-color);
    border: 3px solid var(--highlight-color);
    top: 35px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -6.5px;
}

.timeline-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--highlight-color);
    margin-bottom: 10px;
}

/* The content box - OPTIMIZED */
.timeline-content {
    padding: 20px 30px;
    background-color: var(--nav-color);
    position: relative;
    border-radius: 8px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    transition: transform 0.3s ease;

    /* === PERFORMANCE FIX ADDED HERE === */
    /* This prepares the browser for the transform on hover, making it smoother */
    will-change: transform;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.6;
}

/* Responsive adjustments (No changes here) */
@media screen and (max-width: 1000px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }
    .timeline-content{
        max-width: 600px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
        padding-left: 70px;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 23px;
    }
}

/* ======================== PROJECTS SECTION ========================== */
.projects {
    padding: 6rem 2rem;
    text-align: center;
}

.section__title {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 60px;
    font-weight: 700;
    margin-bottom: 1rem;
}
.section__title span{
    color:var(--highlight-color)
}

.projects .section__subtitle {
    display: block;
    font-size: 1.05rem;
    color: #d1d5db;     /* Light gray for subtitle */
    margin-bottom: 4rem;
}

.projects__container {
    display: grid;
    gap: 2rem;
    /* --- FIX #2: THE ROOT CAUSE --- */
    /* Changed the minimum width from 320px to a safer 290px. */
    /* This ensures the grid items can fit on very narrow mobile screens. */
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #2c2a4a; /* Slightly lighter than the background */
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease,filter .3s ease-in-out;
    border: 1px solid #4a4a70;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0px 0px 2px var(--highlight-color));

}

.project-card__img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.project-card__content {
    padding: 1.5rem;
}

.project-card__title {
    font-size: 1.5rem;
    color: #f3f4f6; /* Off-white for the title */
    /* color: var(--highlight-color); */
    margin-bottom: 0.75rem;
}

.project-card__description {
    font-size: 0.95rem;
    color: #d1d5db; /* Light gray for text */
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* --- New styles for Technology Icons --- */
.project-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Increased gap for better icon spacing */
    margin-bottom: 1.5rem;
    min-height: 30px; /* Ensures card content aligns nicely */
}

.project-card__tech i {
    font-size: 1.5rem; /* Makes the icons a good size */
    /* color: #d1d5db;   Matches your description text color */
    transition: color 0.3s ease, transform 0.3s ease;
}

.project-card__tech i:hover {
    color: #c4b5fd; /* Matches your link color for a consistent feel */
    transform: translateY(-3px); /* Adds a subtle lift effect */
}

.project-card__links {
    display: flex;
    gap: 1rem;
}

.project-card__link {
    color: #c4b5fd; /* A lighter, softer purple for links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease,transform .5s ease-in-out;
    will-change: transform;
    /* text-decoration: none; */
}

.project-card__link:hover {
    color: #a78bfa; /* Brighter purple on hover */
    transform: scale(1.02);
    /* text-decoration: underline; */
}

/* Optional: Add a media query for even better spacing on very small screens */
@media screen and (max-width: 400px) {
    .projects__container {
        grid-template-columns: 1fr;
    }
}

/* ==================== SKILLS & RESUME SECTION (V4 - SCROLLABLE) ==================== */
.skills-section {
    padding: 80px 0;
    text-align: center;
    /* background-color: #100f1c; */
    overflow-x: hidden;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}
/* .section-title span{
    color:var(--highlight-color);
} */
.section-subtitle {
    font-size: 1.1rem;
    color: #a9a9d0;
    margin-bottom: 60px;
}

/* --- Infinite Scroller (Now scrollable) --- */
.scroller {
    max-width: 900px;
    margin: auto;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    padding: 10px 5px;
    
    /* --- KEY CHANGES FOR SCROLLING --- */
    overflow-x: auto; /* Allows horizontal scrolling */
    /* Hides the scrollbar for a clean look */
    scrollbar-width: none; /* For Firefox */
}

/* Hides scrollbar for Chrome, Safari, and Opera */
.scroller::-webkit-scrollbar {
    display: none;
}

.scroller__inner {
    padding-left: 0;
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 2rem;
    /* The CSS animation property is now removed */
}

.tag-list li {
    background: #1e1e3b;
    color: #dcd1f3;
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer; /* Indicates the items are interactive */
}

.tag-list li i {
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

/* --- THE HOVER EFFECT (UNCHANGED) --- */
.tag-list li:hover {
    color: #ffffff;
    transform:scale(1.08);
    filter: drop-shadow(0px 0px 5px var(--highlight-color));
}

/* --- Individual Skill Colors (UNCHANGED) --- */
/* HTML5 */
.skill-html i { color: #E34F26; }
/* .skill-html:hover { background-color: #E34F26; border-color: #E34F26; box-shadow: 0 0 20px #E34F2680; } */
/* (Keep all your other color styles exactly as they were) */
/* CSS3 */
.skill-css i { color: #1572B6; }
/* .skill-css:hover { background-color: #1572B6; border-color: #1572B6; box-shadow: 0 0 20px #1572B680; } */
/* JavaScript */
.skill-js i { color: #F7DF1E; }
/* .skill-js:hover { background-color: #F7DF1E; border-color: #F7DF1E; color: #000; box-shadow: 0 0 20px #F7DF1E80; }
.skill-js:hover i { color: #000; } */
/* React */
.skill-react i { color: #61DAFB; }
/* .skill-react:hover { background-color: #61DAFB; border-color: #61DAFB; color: #000; box-shadow: 0 0 20px #61DAFB80; }
.skill-react:hover i { color: #000; } */
/* MongoDB */
.skill-mongo i { color: #47A248; }
/* .skill-mongo:hover { background-color: #47A248; border-color: #47A248; box-shadow: 0 0 20px #47A24880; } */
/* Node.js */
.skill-node i { color: #339933; }
/* .skill-node:hover { background-color: #339933; border-color: #339933; box-shadow: 0 0 20px #33993380; } */
/* Python */
.skill-python i { color: #3776AB; }
/* .skill-python:hover { background-color: #3776AB; border-color: #3776AB; box-shadow: 0 0 20px #3776AB80; } */
/* C */
.skill-c i { color: #A8B9CC; }
/* .skill-c:hover { background-color: #A8B9CC; border-color: #A8B9CC; color: #000; box-shadow: 0 0 20px #A8B9CC80; }
.skill-c:hover i { color: #000; } */
/* C++ */
.skill-cpp i { color: #00599C; }
/* .skill-cpp:hover { background-color: #00599C; border-color: #00599C; box-shadow: 0 0 20px #00599C80; } */
/* Figma */
.skill-figma i { color: #F24E1E; }
/* .skill-figma:hover { background-color: #F24E1E; border-color: #F24E1E; box-shadow: 0 0 20px #F24E1E80; } */
/* MERN Stack (using Express logo) */
.skill-mern i { color: #ffffff; }
/* .skill-mern:hover { background-color: #444; border-color: #555; box-shadow: 0 0 20px #ffffff80; } */
/* Git */
.skill-git i { color: #F05032; }
/* .skill-git:hover { background-color: #F05032; border-color: #F05032; box-shadow: 0 0 20px #F0503280; } */

/* --- Resume Buttons --- */
/* (Your button styles are fine, keep them as they are) */
.resume-cta {
     margin-top: 60px; display: flex; justify-content: center; gap: 20px; 
}
.btn {
     padding: 15px 28px; font-size: 1rem; font-weight: bold; text-decoration: none; border-radius: 10px; transition: all 0.3s ease; display:flex;
     align-items: center;
     justify-content: center;
    }
.btn-primary {
     background-color:#7b24c6; color: #FFFFFF;
    }
.btn-primary:hover { background-color: #7b24c6; transform: translateY(-3px); }
.btn-outline { background-color: transparent; color: #FFFFFF; border: 2px solid #8a2be2; }
.btn-outline:hover { background-color: #8a2be2; color: #FFFFFF; transform: translateY(-3px); }

@media(max-width:500px){
#section-about {
    gap: 40px;
    min-height:auto;
}
.about-title {
    font-size: 2.3rem;
}
.about-profession {
    font-size: 1.3rem;
    margin-bottom:10px;
}
.about-details,
.about-summary {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    hyphens:auto;
}
.journey-title {
    font-size: 2.3rem;
}
.timeline-content h3 {
    font-size: 1.3rem;
}
.timeline-content {
    padding: 20px 30px;
    min-width:300px;
}

.timeline-content p {
    text-align: justify;
    hyphens: auto;
}
    .section__title {
    font-size: 2.3rem;
}
.project-card__title {
    font-size: 1.3rem;
}
.project-card__tech i {
    font-size: 1.3rem;
}
    .section-title {
    font-size: 2.3rem;
}
}
@media(max-width:420px) {
    .timeline-content h3 {
    font-size: 1.2rem;
}
.timeline-content p {
    text-align:left;
    hyphens: none;
}
    .timeline-content{
        padding:15px;
        min-width:250px;
    }
}

/*=============== RECRUITER-READY CONTACT SECTION ===============*/
#contact{
    padding:80px 8%;
}
.section__title-contact {
    font-size: 3rem; /* As you requested */
    margin-bottom: 0.5rem;
    text-align: center;
}

.section__title-contact span {
    color:var(--highlight-color);
}
 #contact .section__subtitle{
    display: flex;
    align-items: center;
    justify-content: center;
    margin:10px 0px 80px;
    font-size: 1rem;
    /* background-color: red; */
    color:#a9a9d0;
}
.contact__container {
    display: grid;
    gap: 3rem;
}

/* On screens wider than 992px, activate the two-column layout */
@media screen and (min-width: 992px) {
    .contact__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: flex-start; /* Aligns items to the top */
    }
}

/* Styling for the Left Column (Info) */
.contact__info-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.contact__info-description {
    color: hsl(273, 8%, 75%);
    margin-bottom: 2.5rem;
}

.contact__social-options {
    display: flex;
    /* flex-direction: column; */
    gap: 1.5rem;
}

.contact__social-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff00;
    transition: transform 0.3s;
}

.contact__social-option:hover {
    transform: translateX(5px); /* Subtle hover effect */
}

.contact__social-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 50%; /* The circle you wanted */
    /* background-color: hsl(273, 35%, 12%); */
    border: 2px solid hsl(273, 22%, 30%);
    font-size: 2rem;
    color: #a855f7;
    transition: all 0.3s;
}

.contact__social-option:hover .contact__social-icon {
    background-color: #a855f7;
    color: #FFF;
    box-shadow: 0 0 15px #a855f7;
}

.contact__social-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact__social-text span {
    color: hsl(273, 8%, 75%);
    font-size: 0.9rem;
}

/* Styling for the Right Column (The Form) */
.form__group {
    position: relative;
    margin-bottom: 2rem;
}

.form__input {
    width: 100%;
    padding: 1.25rem;
    border-radius: .75rem;
    font-size: 1rem;
    color: #FFF;
    background-color: hsl(273, 35%, 12%);
    border: 2px solid hsl(273, 22%, 30%);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form__label {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    color: hsl(273, 8%, 75%);
    pointer-events: none;
    transition: all 0.3s;
    background-color: hsl(273, 35%, 12%); /* Match input background */
    padding: 0 0.25rem;
}

/* The floating label animation */
.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
    top: -1rem;
    left: 1rem;
    font-size: 0.8rem;
    color: #a855f7;
    background-color: transparent;
}

/* The recruiter-impressing glow effect */
.form__input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 15px -2px #a855f7;
}

.form__group-area {
    height: auto;
}

.form__group-area textarea {
    resize: none;
}

/* Ensure the button matches your theme */
.contact__form .button {
    width: 100%;
    justify-content: center;
}

.button:hover {
    background-color: #a855f7;
    filter:drop-shadow(0px 0px 2px var(--highlight-color));
}
#contact .button{
    background-color:rgb(75, 25, 84);
    border:1px solid rgba(255, 1, 255, 0.607);
    border-radius: 10px;
    padding:20px;
    font-size: 1rem;
    color:white;
    transition:all .5s ease-in-out;
}
#contact .button:active{
    transform: scale(.95);
}
@media (max-width:500px) {
    .section__title-contact {
    font-size:2.3rem;
}
.contact__info-title{
    font-size: 1.3rem;
}
 #contact .section__subtitle{
    margin:10px 0px 30px;
}
}
#footer{
    margin-top:20px;
    background-color: var(--nav-color);
    padding:30px;
    display: flex;
    justify-content: center;
    align-items: center;
}