@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --firstColor: #ffc234;
    --secondColor: #fff;
    --thirdColor: #111;
    --fourthColor: #222;
    --fifthColor: #caad3c;
    --firstFont: 'Raleway', sans-serif;
    --secondFont: 'Roboto', sans-serif;
    --thirdFont: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --accentColor: #ffc234;
    /* Yellow (Titles, Buttons) */
    --pageBg: #ffffff;
    /* White (Page Background) */
    --cardBg: #1f1f1f;
    /* Dark Grey (Main Card Background) */
    --subCardBg: #111111;
    /* Black (Skill Grid Cards) */
    --chipBg: #2d2d2d;
    /* Dark Grey (Skill Pills) */
    --textColorDark: #000000;
    /* Black (Text on White) */
    --textColorLight: #e0e0e0;
    /* White/Grey (Text on Dark) */

    /* Fonts */
    --titleFont: 'Raleway', sans-serif;
    --bodyFont: 'Roboto', sans-serif;
}

/* Width of the scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

/* Track (Background) */
::-webkit-scrollbar-track {
    background: #111;
    /* Dark background */
}

/* Handle (The moving part) */
::-webkit-scrollbar-thumb {
    background: #333;
    /* Dark Grey */
    border-radius: 5px;
    border: 1px solid #111;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--firstColor);
    /* Turns Yellow on hover */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;

}

html {
    scroll-behavior: smooth;
}

.max_width {
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

/* navbar styling */

.nav_bar {
    position: fixed;
    width: 100%;
    padding: 30px 0;
    z-index: 999;
    transition: all 0.3 ease;
    /* background-color: var(--firstColor);     */
}

.nav_bar.sticky {
    padding: 10px 0;
    background-color: var(--firstColor);

}

.nav_bar .max_width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav_bar .logo a {
    color: var(--secondColor);
    font-size: 35px;
    font-weight: 700;
}

.nav_bar .logo a span {
    color: var(--firstColor);
    transition: all 0.3 ease;
}

.nav_bar.sticky .logo a span {
    color: var(--secondColor);
}

.nav_bar .menu li {
    list-style: none;
    display: inline-block;
}

/* .nav_bar .menu li a
{
    color: var(--secondColor);
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;

} */

.nav_bar .menu li a {
    display: block;
    background: var(--firstColor);
    color: var(--fourthColor);
    font-weight: 550;
    font-size: 15px;
    padding: 8px 12px;
    margin-top: 0px;
    margin-left: 15px;
    border-radius: 6px;
    border: 2px solid var(--firstColor);
    transition: color 0.3s ease;

}

.nav_bar .menu li a:hover {
    color: var(--secondColor);
    background: none;
    box-shadow: 0 0 5px #ffc000,
        0 0 20px #ffc000,
        0 0 60px var(--fifthColor);
}

/* .nav_bar.sticky .menu li a:hover
{
    color: var(--secondColor)
} */

.nav_bar.sticky .menu li a {
    color: var(--secondColor);
    font-weight: 600;
}

.nav_bar.sticky .menu li a:hover {
    color: var(--secondColor);
    background: var(--firstColor);
    border: 2px solid var(--secondColor);
    box-shadow: 0 0 5px var(--secondColor),
        0 0 150px var(--secondColor);
}

/* menu btn styling */

.menu_btn {
    color: var(--secondColor);
    font-size: 23px;
    cursor: pointer;
    display: none;
}

/* home section styling */


.images {
    width: 45%;
    height: 80%;
    position: absolute;
    bottom: 0;
    right: 100px;
}

.images img {
    height: 100%;
    position: absolute;
    left: 70%;
    bottom: 0;
    transform: translateX(-60%);
    transition: bottom 1s, left 1s;
}

.images:hover .shape {
    bottom: 40px;
}

.images:hover .photo {
    left: 60%;
}

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    background: transparent;
}

.scroll-progress-bar {
    height: 4px;
    background: whitesmoke;
    width: 0%;
    transition: width 0.1s ease;
}

.cursor {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--firstColor);
    position: fixed;
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    display: none;
    /* Only show on desktop if you prefer */
}

.cursor2 {
    width: 8px;
    height: 8px;
    background-color: var(--firstColor);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
    display: none;
}

/* Only enable on devices with a mouse (not touch) */
@media (pointer: fine) {

    .cursor,
    .cursor2 {
        display: block;
    }
}

.home {
    display: flex;
    background: url(img/banner2.jpg) no-repeat center;
    background-position: top;
    object-fit: contain;

    /* background: rgb(131,58,180);
    background: linear-gradient(90deg, rgba(131,58,180,1) 0%, rgba(253,29,29,1) 93%, rgba(252,176,69,1) 100%); */
    height: 100vh;
    color: var(--secondColor);
    min-height: 500px;
    font-family: var(--firstFont);
}

.home .max_width {
    margin: auto 0 auto 40px;
}

.home .home_content .text_1 {
    font-size: 27px;
}

.home .home_content .text_2 {
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}

.home .home_content .text_3 {
    font-size: 40px;
    margin: 5px 0;
}

.home .home_content .text_3 span {
    color: var(--fifthColor);
    font-weight: 500;
}

/* all similar styling content */
button {
    display: inline-block;
    background: var(--firstColor);
    color: var(--secondColor);
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid var(--firstColor);
    transition: all 0.3s ease;
}

button:hover {
    color: var(--firstColor);
    background: none;
    box-shadow: 0 0 5px #ffc000,
        0 0 20px #ffc000,
        0 0 60px var(--fifthColor);
    cursor: pointer;
}

#more,
#more2 {
    display: none;
}

section {
    padding: 40px 0;
}

.about,
.edu,
.skills,
.contact {
    font-family: var(--thirdFont);
}



.edu .edu_content,
.skills .skills-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* =========================================
   AI Identity Core (HUD) Styling
   ========================================= */

/* Layout Container */
.hud-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 20px 0;
}

.hud-column {
    flex: 1;
}

/* --- LEFT SIDE: The Cyber Core (Image) --- */
.cyber-core {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Image Itself */
.core-image-wrapper {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    /* Circle */
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 2px solid var(--firstColor);
    box-shadow: 0 0 20px rgba(255, 194, 52, 0.2);
}

.core-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
    /* Slight sci-fi look */
}

/* The Laser Scanner Line */
.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--firstColor);
    box-shadow: 0 0 10px var(--firstColor);
    animation: scan-down 3s ease-in-out infinite;
    z-index: 5;
    opacity: 0.8;
}

/* Green tint overlay when scanner passes */
.scanner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(255, 194, 52, 0.1), transparent);
    animation: scan-down 3s ease-in-out infinite;
    z-index: 4;
}

@keyframes scan-down {

    0%,
    100% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        top: 100%;
        opacity: 1;
    }

    90% {
        opacity: 1;
    }
}

/* Rotating Reactor Rings */
.reactor-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(255, 194, 52, 0.3);
    z-index: 1;
}

.reactor-ring.outer {
    width: 310px;
    height: 310px;
    border-top: 2px solid var(--firstColor);
    border-bottom: 2px solid var(--firstColor);
    animation: spin-right 10s linear infinite;
}

.reactor-ring.inner {
    width: 280px;
    height: 280px;
    border-left: 2px solid var(--firstColor);
    border-right: 2px solid var(--firstColor);
    animation: spin-left 6s linear infinite;
}

@keyframes spin-right {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-left {
    100% {
        transform: rotate(-360deg);
    }
}


/* --- RIGHT SIDE: Data Modules (Accordion) --- */
.data-module {
    background: var(--cardBg);
    border-left: 3px solid #333;
    /* Default inactive border */
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header (Always Visible) */
.module-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.3s ease;
}

/* Blinking Status Dot */
.blink-dot {
    height: 8px;
    width: 8px;
    background-color: #555;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 0 5px #555;
}

.mod-title {
    font-family: 'Courier New', monospace;
    /* Terminal Font */
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    color: #888;
    flex: 1;
}

.mod-icon {
    color: #555;
    transition: transform 0.3s ease;
}

/* Content (Hidden by default, Expands on Hover) */
.module-content {
    max-height: 0;
    /* Collapsed */
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.5s ease;
    padding: 0 20px;
    background: #1a1a1a;
}

.terminal-text {
    padding: 20px 0;
    font-family: var(--bodyFont);
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
}

.cmd {
    font-family: 'Courier New', monospace;
    color: #555;
    font-size: 13px;
    display: block;
    margin-bottom: 8px;
}

.highlight-yellow {
    color: var(--firstColor);
    font-weight: 500;
}

/* --- HOVER EFFECTS (The Interaction) --- */

/* 1. When hovering the module, activate the header */
.data-module:hover {
    border-left: 3px solid var(--firstColor);
    /* Yellow Border */
}

.data-module:hover .module-header {
    background: rgba(255, 194, 52, 0.1);
    /* Subtle Yellow bg */
}

.data-module:hover .mod-title {
    color: var(--firstColor);
}

.data-module:hover .blink-dot {
    background-color: var(--firstColor);
    box-shadow: 0 0 10px var(--firstColor);
    animation: blink-anim 1s infinite;
}

.data-module:hover .mod-icon {
    color: var(--firstColor);
    transform: rotate(180deg);
}

/* 2. Expand the content */
.data-module:hover .module-content {
    max-height: 200px;
    /* Large enough to fit content */
    opacity: 1;
}

@keyframes blink-anim {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 947px) {
    .hud-container {
        flex-direction: column;
    }

    .hud-column.left {
        margin-bottom: 40px;
    }
}


section .title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 30px;
    padding-bottom: 20px;
    font-family: var(--firstFont);
}

section .title::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 4px;
    background: var(--thirdColor);
    transform: translateX(-50%);
}

section .title::after {
    font-family: var(--secondFont);
    position: absolute;
    bottom: -12px;
    left: 50%;
    padding: 5px;
    font-size: 15px;
    color: var(--fifthColor);
    background: var(--secondColor);
    transform: translateX(-50%);
}

/* about section styling */

.about .title::after {
    content: "who I am";
}

/* .about-me{
    padding: 60px;
    background-color: var(--chipBg);
} */

.about .about_content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* .about .about_content .right
{
    background-color: var(--subCardBg);
    padding: 20px;
}
 */

.about .about_content .left {
    width: 45%;
}

.about .about_content .left img {
    height: 380px;
    width: 380px;
    object-fit: cover;
    border-radius: 10px;
}

.about .about_content .right {
    width: 55%;
}

.about .about_content .right .text {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about .about_content .right .text span {
    color: var(--fifthColor);
}

.about .about_content .right p {
    text-align: justify;
}

.about .about_content .column {
    width: 50%;
}

h2.title.hacker-text {
    margin-bottom: 0px;
}

section#about.about {
    padding-bottom: 0px;
}

div.hub-container {
    padding-top: 0px;
}

/* edu section styling */
.edu {
    color: var(--secondColor);
    background-color: var(--thirdColor);
}

.edu .title::before {
    background: var(--secondColor);
}

.edu .edu_content .card {
    display: inline-block;
    width: calc(32% - 18px);
    background: var(--fourthColor);
    justify-content: center;
    text-align: center;
    border-radius: 6px;
    margin: 12px;
    padding: 12px 12px;
    cursor: pointer;
    transition: all 0.3 ease;
}

.edu .edu_content .card .box {
    transition: all 0.3 ease;
}

.edu .edu_content .card:hover {
    background: var(--firstColor);
    box-shadow: 0 0 5px #ffc000,
        0 0 20px #ffc000;
}

.edu .edu_content .card:hover .box {
    transform: scale(1.1);
}

.edu .edu_content .card .box h5 {
    font-size: 20px;
    font-family: var(--firstFont);
    color: var(--firstColor);
    font-weight: 700;
}


.edu .edu_content .card .box h4:nth-child(3) {
    font-size: 15px;
    font-family: var(--firstFont);
    color: var(--firstColor);
    font-weight: 600;
}

.edu .edu_content .card:hover .box h5,
.edu .edu_content .card .box h4:nth-child(3) {
    font-size: 15px;
    font-family: var(--firstFont);
    color: var(--secondColor);
    font-weight: 700;
}

/* skills section styling */
.skills-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* --- MAIN TITLE (Outside Card) --- */
.outside-title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 20px;
    font-family: var(--firstFont);
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto 30px auto;
    /* Keeps it centered */
    display: block;
}

/* Optional: Add the underline shown in image_fbbf78.png */
.outside-title::after {
    content: '';
    display: block;
    height: 4px;
    background: var(--textColorDark);
    margin: 10px auto 0;
    /* Set a minimum width so it doesn't disappear behind the subtitle text */
    min-width: 60px;

    /* Apply the loop: 3 seconds, infinite loop, smooth back-and-forth */
    animation: bar-breathe 2s infinite alternate ease-in-out;
}

.text-content {
    padding: 10px;
}

.text-content p {
    font-size: 10rem;
}







/* --- THE DARK CARD (Glass/Matte Look) --- */
.glass-card {
    background: var(--subCardBg);
    color: var(--textColorLight);
    /* Force text inside to be white */
    border-radius: 20px;
    padding: 60px;
    max-width: 1500px;
    width: 100%;
    /* Soft shadow to lift it off the white background */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- HEADERS INSIDE CARD --- */
.section-title {
    font-family: var(--titleFont);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--accentColor);
    /* Yellow */
    margin-bottom: 20px;
    text-align: center;
}

@keyframes expandLine {
    0% {
        width: 50%;
    }

    100% {
        width: 100%;
    }
}

/* 2. Apply it to your element */
.section-title::after {
    content: '';
    display: block;
    height: 4px;
    background: var(--accentColor);
    margin: 10px auto 0;

    /* The Animation Logic */
    /* Name | Duration | Loop | Direction | Smoothing */
    animation: expandLine 1.5s infinite alternate ease-in-out;
}

/* --- GRID SYSTEM --- */
.content-grid {
    display: grid;
    /* Split: 45% Text, 55% Skills */
    grid-template-columns: 45% 55%;
    gap: 60px;
    align-items: start;
}

/* --- LEFT COLUMN (EXPERIENCE) --- */
.text-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 20px;
}

.text-content strong {
    color: #ffffff;
    font-weight: 700;
}

.highlight-yellow {
    color: var(--accentColor);
    font-weight: 600;
}

.highlight-gold {
    color: var(--fifthColor);
    font-weight: 600;
}

#more-text {
    display: none;
}

.skills-col {
    padding: 0px 50px 0px 0px;
}

/* --- RIGHT COLUMN (TECHNICAL ARSENAL GRID) --- */
.skill-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 columns like image_effcfb.png */
    gap: 20px;
}

/* Individual Skill Card (Black Box) */
.skill-card {
    background-color: var(--subCardBg);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 2px solid var(--accentColor);
}

.skill-card-title {
    font-family: var(--titleFont);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accentColor);
    /* Yellow Title */

}

/* The Chips/Pills Container */
.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* The Individual Pill (Dark Grey) */
.skill-chip {
    font-family: var(--bodyFont);
    background-color: var(--chipBg);
    /* #2d2d2d */
    color: #ffffff;
    padding: 8px 10px;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: 1px solid #3d3d3d;
}

.skill-chip:hover {
    background: var(--accentColor);
    color: #000;
    /* Black text on yellow hover */

}

.skill-chip i {
    font-size: 1rem;
}

/* --- BUTTON --- */
.glow-button {
    font-family: var(--titleFont);
    background: transparent;
    border: 2px solid var(--accentColor);
    padding: 12px 35px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accentColor);
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SPOTLIGHT EFFECT FOR SKILL CARDS --- */

/* 1. When the user hovers over the CONTAINER (the whole grid)... */
.skill-grid-container:hover .skill-card {
    opacity: 0.3;
    /* Make all cards semi-transparent */
    filter: blur(3px);
    /* Blur them out */
    transform: scale(0.98);
    /* Shrink them slightly for depth */
    transition: all 0.4s ease;
    /* smooth transition */
}

/* 2. ...EXCEPT the specific card being hovered */
.skill-grid-container .skill-card:hover {
    opacity: 1;
    /* Restore full visibility */
    filter: blur(0);
    /* Remove blur */
    transform: scale(1.05);
    /* Scale up (Pop out) */
    box-shadow: 0 0 25px rgba(255, 194, 52, 0.5);
    /* Strong Yellow Glow */
    border-color: var(--accentColor);
    z-index: 2;
    /* Ensure it sits on top of others */
    cursor: pointer;
}

.glow-button:hover {
    background: var(--accentColor);
    color: #000;
    /* Black text on yellow hover */
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skill-grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .glass-card {
        padding: 30px;
    }

    .outside-title {
        font-size: 2.5rem;
    }

    .skill-grid-container {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   Research Section Styling
   ========================================= */
.research {
    background-color: var(--thirdColor);
    /* Dark Background */
    color: var(--secondColor);
    font-family: var(--thirdFont);
}

.research .title::after {
    content: "what I discovered";
}

.research .title::before {
    background: var(--secondColor);
}

.research-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.research-card {
    background: var(--fourthColor);
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid var(--firstColor);
    /* Yellow Accent Border */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px rgba(255, 194, 52, 0.2);
}

.research-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.research-card .icon {
    font-size: 30px;
    color: var(--firstColor);
}

/* Badges */
.badge {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge.published {
    background: rgba(40, 167, 69, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.badge.preprint {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

.badge.ongoing {
    background: rgba(255, 194, 52, 0.2);
    color: var(--firstColor);
    border: 1px solid var(--firstColor);
}

.research-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: var(--firstFont);
    color: var(--secondColor);
    line-height: 1.4;
}

.research-card .authors {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 8px;
}

.research-card .authors strong {
    color: var(--firstColor);
    font-weight: 500;
}

.research-card .conference,
.research-card .doi {
    font-size: 13px;
    font-style: italic;
    color: var(--fifthColor);
}

.research-card .desc {
    font-size: 15px;
    line-height: 1.6;
    color: #dcdcdc;
    text-align: justify;
}


/* --- SPOTLIGHT EFFECT FOR RESEARCH SECTION --- */

/* 1. When hovering over the MAIN CONTAINER, dim ALL cards inside */
.research-container:hover .research-card {
    opacity: 0.3;
    /* Fade out */
    filter: blur(2px);
    /* Blur slightly */
    transform: scale(0.98);
    /* Shrink slightly */
    transition: all 0.4s ease;
    /* Smooth transition */
}

/* 2. EXCEPTION: The specific card you are hovering over */
.research-container .research-card:hover {
    opacity: 1;
    /* Fully visible */
    filter: blur(0);
    /* clear focus */
    transform: scale(1.03) translateY(-5px);
    /* Scale up and move up */
    box-shadow: 0 10px 30px rgba(255, 194, 52, 0.3);
    /* Strong Yellow Glow */
    z-index: 5;
    /* Ensure it floats above others */
    /* cursor: pointer; */
}



/* =========================================
   Projects Section Styling
   ========================================= */
/* Project Grid Layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Hidden Projects Container */
.hidden-projects {
    display: none;
    /* Hidden by default */
    /* When visible, it will use the grid layout of its parent or sub-grid */
    grid-column: 1 / -1;
    /* Span full width to contain its own grid items */

    /* Internal Grid for the hidden items */
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
}

/* When the class 'active' is added via JS, we display it as a grid */
.hidden-projects.active {
    display: grid;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Load More Button Styling */
.project-btn-container {
    text-align: center;
    margin-top: 20px;
}

#loadMoreBtn {
    display: inline-block;
    background: var(--firstColor);
    color: var(--fourthColor);
    /* Dark text on yellow btn */
    font-size: 18px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 6px;
    border: 2px solid var(--firstColor);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--titleFont);
}

#loadMoreBtn:hover {
    background: transparent;
    color: var(--firstColor);
}

.magnetic {
    transition: transform 0.1s ease;
    /* Very fast response for physics feel */
}

.projects {
    background: var(--pageBg);
    /* White Background */
    color: var(--fourthColor);
    font-family: var(--thirdFont);
}

.projects .title::after {
    content: "what I built";
}

.projects .carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.projects .card {
    background: var(--cardBg);
    /* Dark Card */
    border-radius: 6px;
    padding: 25px 35px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.projects .card:hover {
    background: transparent;
    border-color: var(--firstColor);
    transform: scale(1.02);
}

.projects .card .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.projects .card .text {
    font-size: 22px;
    font-weight: 600;
    color: var(--firstColor);
    margin-bottom: 10px;
    font-family: var(--firstFont);
}

.projects .card p {
    font-size: 15px;
    color: var(--textColorLight);
    margin-bottom: 20px;
    line-height: 1.5;
}

.projects .card:hover .text,
.projects .card:hover p {
    color: var(--fourthColor);
    /* Text turns black on hover (white bg) */
}

/* Tech Stack Chips inside Projects */
.tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack span {
    font-size: 12px;
    background: var(--chipBg);
    color: var(--secondColor);
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 500;
    border: 1px solid #3d3d3d;
    transition: all 0.3s ease;
}

.projects .card:hover .tech-stack span {
    background: var(--firstColor);
    color: var(--fourthColor);
    border-color: var(--fourthColor);
}

/* --- SPOTLIGHT EFFECT FOR PROJECTS SECTION --- */

/* 1. When hovering over the MAIN GRID, dim ALL cards (including hidden ones) */
.project-grid:hover .card {
    opacity: 0.9;
    /* Make them see-through */
    filter: blur(0.2px);
    /* Blur them out */
    transform: scale(0.98);
    /* Shrink slightly */
    transition: all 0.4s ease;
    /* Smooth fade */
}

/* 2. EXCEPTION: The specific card you are hovering over */
/* We use !important on transform to ensure it overrides your existing hover scale */
.project-grid .card:hover {
    opacity: 1;
    /* Fully visible */
    filter: blur(0);
    /* Crisp focus */
    transform: scale(1.05) !important;
    /* Pop out larger than before */
    z-index: 2;
    /* Bring to front */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    /* Add depth shadow */
    cursor: pointer;
}

/* Responsive adjustments for Research/Projects */
@media (max-width: 947px) {
    .research-container {
        grid-template-columns: 1fr;
    }

    .projects .carousel {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}




/* contact section styling */
.contact {
    background-color: var(--thirdColor);
    color: var(--secondColor);
}

.contact .contact-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.contact .title::after {
    content: "get in touch";
}

.contact .contact-content .column {
    width: calc(50% - 30px);
}

.contact .contact-content .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact .contact-content .icons {
    margin: 10px 0;
}

.contact .contact-content .row {
    display: flex;
    height: 65px;
    align-items: center;
}

.contact .contact-content .row .info {
    margin-left: 30px;
}

.contact .contact-content .row i {
    font-size: 25px;
    color: var(--fifthColor);
}

.contact .contact-content .info .head {
    font-weight: 500;
}

.contact .contact-content .info .sub-title {
    color: var(--secondColor);
    font-weight: 600;
}

.contact .title::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 4px;
    background: var(--secondColor);
    transform: translateX(-50%);
}

.contact .title::after {
    font-family: var(--secondFont);
    position: absolute;
    bottom: -12px;
    left: 50%;
    padding: 5px;
    font-size: 15px;
    color: var(--fifthColor);
    background: var(--thirdColor);
    transform: translateX(-50%);
}

/* footer section styling */
footer {
    background: var(--firstColor);

    padding: 15px 23px;
    color: var(--fourthColor);
    font-weight: 600;
    text-align: center;
    font-family: var(--thirdFont);
}

footer span a {
    color: var(--firstColor);
    text-decoration: none;
}

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

/* responsive media query */
@media (max-width: 1300px) {
    .home .max_width {
        margin-left: 0px;
    }
}

@media (max-width: 1104px) {
    .about .about_content .left img {
        height: 380px;
        width: 380px;
        object-fit: cover;
        border-radius: 10px;
    }

    .images {
        visibility: hidden;
    }

}

@media (max-width: 991px) {
    .max_width {
        padding: 0 50px;
    }

}

@media (max-width: 947px) {
    .max_width {
        padding: 0 50px;
    }

    .menu_btn {
        display: block;
        z-index: 999;
    }

    .menu_btn i.active:before {
        content: "x";
        font-family: var(--firstFont);
    }

    .nav_bar .menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        top: 0;
        background: var(--thirdColor);

        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;

    }

    .nav_bar .menu.active {
        left: 0;
    }

    .nav_bar .menu li {
        display: block;
    }

    .nav_bar .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
        margin-left: 25px;
        background: none;
        color: var(--firstColor);
        border: none;
    }

    .home .home_content .text_2 {
        font-size: 70px;
    }

    .home .home_content .text_3 {
        font-size: 35px;
    }

    .max_width {
        max-width: 800px;
    }

    .about .about_content .column {
        width: 50%;
    }

    .about .about_content .left {
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
    }

    .about .about_content .left {
        flex: 100%;
    }

    .edu .edu_content .card {
        width: calc(50% - 30px);
        margin-bottom: auto;
    }

    .skills .skills-content .column,
    .contact .contact-content .column {
        width: 100%;
        margin-bottom: 35px;
    }
}

@media (max-width: 690px) {
    .max_width {
        padding: 0 23px;
    }

    .home .home_content .text_2 {
        font-size: 60px;
    }

    .home .home_content .text_3 {
        font-size: 32px;
    }

    .edu .edu_content .card {
        width: calc(50% - 30px);
        margin-bottom: 20px;
    }
}

@media (max-width: 500px) {
    .max_width {
        padding: 0 23px;
    }

    .home .home_content .text_2 {
        font-size: 50px;
    }

    .home .home_content .text_3 {
        font-size: 27px;
    }

    .about .about_content .right .text,
    .skills .skills-content .left .text {
        font-size: 19px;
    }

    .edu .edu_content .card {
        width: calc(50% - 20px);
        margin-bottom: 20px;
        font-size: smaller;
    }
}

/* Add this to your existing .hidden-projects styling */
.hidden-projects .card {
    opacity: 0;
    animation: fadeSlideUp 0.5s ease forwards;
}

/* Staggered Animation for "Load More" */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays (So they don't all appear at once) */
.hidden-projects .card:nth-child(1) {
    animation-delay: 0.1s;
}

.hidden-projects .card:nth-child(2) {
    animation-delay: 0.2s;
}

.hidden-projects .card:nth-child(3) {
    animation-delay: 0.3s;
}

.hidden-projects .card:nth-child(4) {
    animation-delay: 0.4s;
}

.hidden-projects .card:nth-child(5) {
    animation-delay: 0.5s;
}

.hidden-projects .card:nth-child(6) {
    animation-delay: 0.6s;
}

.hidden-projects .card:nth-child(7) {
    animation-delay: 0.7s;
}

.hidden-projects .card:nth-child(8) {
    animation-delay: 0.8s;
}

.hidden-projects .card:nth-child(9) {
    animation-delay: 0.9s;
}

/* "Breathing" Status Badges (For Research) */
/* Define the keyframes for the pulse */
@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 194, 52, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 194, 52, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 194, 52, 0);
    }
}

/* Apply it to the ongoing badge */
.badge.ongoing {
    animation: pulse-yellow 2s infinite;
}





/* 1. Define the 'Wobble' Animation Keyframes */
@keyframes nice-shake {
    0% {
        transform: rotate(0deg);
    }

    5% {
        transform: rotate(40deg);
    }

    10% {
        transform: rotate(-40deg);
    }

    15% {
        transform: rotate(30deg);
    }

    20% {
        transform: rotate(-30deg);
    }

    25% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-15deg);
    }

    35% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }

    /* Long pause to make it look clean */
}

/* 2. Apply it to the Research Icons */
.research-card .icon {
    /* 3s duration means: Shake for ~1s, Pause for ~2s */
    animation: nice-shake 2s infinite ease-in-out;
    transform-origin: center bottom;
    /* Shakes from the bottom like a pendulum */
}

/* Optional: Also apply to Contact/About icons if you want */
.contact .row i,
.about .row i {
    animation: nice-shake 4s infinite ease-in-out;
    animation-delay: 1s;
    /* Offset so they don't all shake at the exact same time */
}


/* 1. Define the breathing animation */
@keyframes bar-breathe {
    0% {
        width: 60%;
    }

    100% {
        width: 100%;
    }
}

/* 2. Update the Title Container */
/* We use 'fit-content' so the percentage is relative to the text length, not the whole page */
section .title {
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto 50px auto;
    /* Keeps it centered */
    display: block;
}

/* 3. Apply the animation to the bottom bar */
section .title::before {
    /* Set a minimum width so it doesn't disappear behind the subtitle text */
    min-width: 140px;

    /* Apply the loop: 3 seconds, infinite loop, smooth back-and-forth */
    animation: bar-breathe 1.5s infinite alternate ease-in-out;
}

/* =========================================
   SCROLLING HEX-CODE SEPARATOR
   ========================================= */

.hex-separator {
    width: 100%;
    height: 30px;
    /* Thin bar */
    background: #050505;
    /* Almost black */
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    user-select: none;
    /* User can't select the scrolling text */
}

/* The Moving Track */
.hex-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    animation: scroll-left-to-right 20s linear infinite;
}

/* The Text Style */
.hex-content {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--firstColor);
    /* Your theme Yellow */
    opacity: 0.3;
    /* Dimmed so it's not distracting */
    padding-right: 50px;
    /* Gap between the loops */
    letter-spacing: 2px;
}

/* Matrix Green Variant (Optional - Uncomment to use Green instead of Yellow) */
/* .hex-content {
    color: #0f0; 
    text-shadow: 0 0 5px #0f0;
} 
*/

/* Animation: Left to Right */
@keyframes scroll-left-to-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0%);
    }
}

/* Hover Effect: Speed up or brighten */
.hex-separator:hover .hex-content {
    opacity: 0.8;
    text-shadow: 0 0 8px var(--firstColor);
}

/* =========================================
   THE CYBER-LUX TITLE (CENTERED VERSION)
   ========================================= */

.title-wrapper.center-mode {
    position: relative;
    display: flex;
    /* Flexbox for easy centering */
    flex-direction: column;
    align-items: center;
    /* Horizontal Center */
    justify-content: center;
    margin: 0 auto 50px auto;
    /* Centered in the section */
    width: fit-content;
    /* Wrap tight around the text */
}

/* 1. The Tiny Tech Tag (Centered Top) */
.tech-tag {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--firstColor);
    opacity: 0;
    margin-bottom: 5px;
    letter-spacing: 3px;
    transform: translateY(10px);
    /* Start slightly down */
    animation: slide-up-tag 0.8s forwards ease-out 0.2s;
}

/* 2. The Main Title Text */
.classy-title {
    font-family: var(--firstFont);
    font-size: 40px;
    font-weight: 700;
    color: var(--firstColor);
    letter-spacing: 4px;
    /* Increased spacing for elegance */
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: center;
}

/* Ghost Glow Effect */
.classy-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--firstColor);
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.1);
    animation: ghost-pulse 3s infinite;
}

/* 3. The Animated Underline */
.title-line {
    position: relative;
    width: 100%;
    height: 1px;
    background: #333;
    /* The dark track */
    margin-top: 10px;
}

/* The Moving Gold Bar (Expands from Center) */
.title-line::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    /* Start at center */
    transform: translateX(-50%);
    /* Center alignment */
    width: 0;
    /* Start width */
    height: 3px;
    background: var(--firstColor);
    box-shadow: 0 0 15px var(--firstColor);
    animation: draw-line-center 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.5s;
}

/* Symmetrical Decor Squares (Left & Right) */
.title-line::before {
    content: '';
    position: absolute;
    top: -2px;
    /* Create two dots using shadow duplication */
    left: 0;
    width: 5px;
    height: 5px;
    background: #444;
    box-shadow: calc(100% + var(--title-width, 200px)) 0 0 #444;
    /* Right dot */
    opacity: 0;
    animation: fade-in-dots 0.5s forwards 1.5s;
}


/* --- ANIMATIONS --- */

@keyframes draw-line-center {
    0% {
        width: 0;
    }

    100% {
        width: 50%;
    }

    /* Expands to 50% of title width */
}

@keyframes slide-up-tag {
    to {
        transform: translateY(0);
        opacity: 0.8;
    }
}

@keyframes fade-in-dots {
    to {
        opacity: 1;
    }
}

@keyframes ghost-pulse {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.2;
    }
}

/* Hover Effect: Bar expands to 100% */
.title-wrapper:hover .title-line::after {
    width: 100%;
    transition: width 0.4s ease;
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
   Add this to the end of style.css
   ========================================= */

/* Tablet and Small Laptop (max-width: 1100px) */
@media (max-width: 1100px) {
    .about .about_content .left img {
        height: 350px;
        width: 350px;
    }
}

/* Tablets & Mobile Devices (max-width: 991px) */
@media (max-width: 991px) {
    .max_width {
        padding: 0 50px;
    }

    /* --- Navbar & Mobile Menu --- */
    .menu_btn {
        display: block;
        /* Show hamburger icon */
        z-index: 999;
    }

    .menu_btn i.active {
        /* Optional: Rotate icon when active */
        transform: rotate(90deg);
    }

    .nav_bar .menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        /* Hide off-screen by default */
        top: 0;
        background: #111;
        /* Dark background for menu */
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;
    }

    .nav_bar .menu.active {
        left: 0;
        /* Slide in when active */
    }

    .nav_bar .menu li {
        display: block;
    }

    .nav_bar .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }

    /* --- Home Section --- */
    .home .home_content .text_2 {
        font-size: 70px;
    }

    .home .home_content .text_3 {
        font-size: 35px;
    }

    .home .home_content a {
        font-size: 23px;
        padding: 10px 30px;
    }

    /* Hide the absolute positioned image on mobile to prevent overlap */
    .images {
        display: none;
    }

    /* --- About Section Stacking --- */
    .about .about_content {
        flex-direction: column;
    }

    .about .about_content .left {
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
        width: 100%;
    }

    .about .about_content .right {
        flex: 100%;
        width: 100%;
    }

    /* --- Research & Projects Grids --- */
    .research-container,
    .project-grid,
    .content-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 30px;
    }

    /* --- Contact Section Stacking --- */
    .contact .contact-content {
        flex-direction: column;
    }

    .contact .contact-content .column {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* Mobile Devices (max-width: 690px) */
@media (max-width: 690px) {
    .max_width {
        padding: 0 23px;
    }

    .home .home_content .text_2 {
        font-size: 60px;
    }

    .home .home_content .text_3 {
        font-size: 32px;
    }

    .home .home_content a {
        font-size: 20px;
    }

    /* Adjust Project/Education Card Widths */
    .edu .edu_content .card,
    .projects .card {
        width: 100%;
    }
}

/* Small Mobile Devices (max-width: 500px) */
@media (max-width: 500px) {
    .home .home_content .text_2 {
        font-size: 50px;
    }

    .home .home_content .text_3 {
        font-size: 27px;
    }

    .about .about_content .right .text,
    .skills .skills-content .left .text {
        font-size: 19px;
    }

    /* Improve Contact Layout on Small Screens */
    .contact .contact-content .row {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px 0;
    }

    .contact .contact-content .row .info {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* =========================================
   RESPONSIVE & MOBILE DESIGN
   (Only affects screens smaller than 991px)
   ========================================= */

@media (max-width: 991px) {

    /* --- 1. Navbar Animation & Layout --- */
    .max_width {
        padding: 0 50px;
    }

    /* Show the hamburger menu icon */
    .menu_btn {
        display: block;
        z-index: 999;
    }

    /* The Mobile Menu Container */
    .nav_bar .menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        /* Hidden off-screen to the left */
        top: 0;
        background: rgba(17, 17, 17, 0.98);
        /* Deep dark background */
        backdrop-filter: blur(10px);
        /* Design Idea: Frosted Glass effect */
        text-align: center;
        padding-top: 80px;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        /* "Bouncy" slide animation */
        display: block;
    }

    /* When the menu is active (clicked) */
    .nav_bar .menu.active {
        left: 0;
        /* Slides into view */
    }

    .nav_bar .menu li {
        display: block;
        margin: 25px 0;
        /* Start state for link animation */
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    /* --- "Little Animation": Staggered Link Appearance --- */
    /* When menu is active, links slide up and fade in one by one */
    .nav_bar .menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Delays for each link to create a "waterfall" effect */
    .nav_bar .menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav_bar .menu.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav_bar .menu.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav_bar .menu.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav_bar .menu.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav_bar .menu.active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav_bar .menu li a {
        display: inline-block;
        font-size: 25px;
        border: none;
        /* Remove border for cleaner mobile look */
        background: transparent;
        color: var(--secondColor);
    }

    .nav_bar .menu li a:hover {
        color: var(--firstColor);
        box-shadow: none;
        /* Simplify hover on touch devices */
    }

    /* --- 2. Design Idea: Clean Header on Mobile --- */
    /* Adjust text sizes so they don't break lines awkwardly */
    .home .home_content .text_2 {
        font-size: 70px;
    }

    .home .home_content .text_3 {
        font-size: 35px;
    }

    /* Hide the absolute positioned profile image on mobile 
       to prevent it from overlapping text or blocking clicks */
    .images {
        display: none;
    }

    /* --- 3. Design Idea: Stacked Content Cards --- */
    /* Instead of squeezing columns, we stack them vertically */

    /* About Section */
    .about .about_content {
        flex-direction: column;
    }

    .about .about_content .left {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }

    .about .about_content .right {
        width: 100%;
    }

    /* Skills, Research, Projects Grid */
    .content-grid,
    .research-container,
    .project-grid,
    .edu .edu_content {
        display: grid;
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 30px;
    }

    .edu .edu_content .card {
        width: 100%;
        /* Full width cards */
        margin: 0 0 20px 0;
    }

    /* Contact Section */
    .contact .contact-content {
        flex-direction: column;
    }

    .contact .contact-content .column {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* --- Extra Mobile Polish (Phones < 600px) --- */
@media (max-width: 600px) {
    .max_width {
        padding: 0 23px;
    }

    /* Design Idea: Smaller titles for better proportion */
    .home .home_content .text_2 {
        font-size: 50px;
    }

    .home .home_content .text_3 {
        font-size: 22px;
    }

    /* Design Idea: Center text on mobile for Home/About */
    .home .home_content,
    .about .about_content .right {
        text-align: center;
    }

    .about .about_content .right p {
        text-align: center;
        /* Easier to read on small screens */
    }
}

/* =========================================
   RESPONSIVE & MOBILE DESIGN
   (Only affects screens smaller than 991px)
   ========================================= */

@media (max-width: 991px) {

    /* --- 1. Navbar Animation & Layout --- */
    .max_width {
        padding: 0 50px;
    }

    /* Show the hamburger menu icon */
    .menu_btn {
        display: block;
        z-index: 999;
    }

    /* The Mobile Menu Container */
    .nav_bar .menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        /* Hidden off-screen to the left */
        top: 0;
        background: rgba(17, 17, 17, 0.98);
        /* Deep dark background */
        backdrop-filter: blur(10px);
        /* Design Idea: Frosted Glass effect */
        text-align: center;
        padding-top: 80px;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        /* "Bouncy" slide animation */
        display: block;
    }

    /* When the menu is active (clicked) */
    .nav_bar .menu.active {
        left: 0;
        /* Slides into view */
    }

    .nav_bar .menu li {
        display: block;
        margin: 25px 0;
        /* Start state for link animation */
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    /* --- "Little Animation": Staggered Link Appearance --- */
    /* When menu is active, links slide up and fade in one by one */
    .nav_bar .menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Delays for each link to create a "waterfall" effect */
    .nav_bar .menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav_bar .menu.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav_bar .menu.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav_bar .menu.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav_bar .menu.active li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav_bar .menu.active li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav_bar .menu li a {
        display: inline-block;
        font-size: 25px;
        border: none;
        /* Remove border for cleaner mobile look */
        background: transparent;
        color: var(--secondColor);
    }

    .nav_bar .menu li a:hover {
        color: var(--firstColor);
        box-shadow: none;
        /* Simplify hover on touch devices */
    }

    /* --- 2. Design Idea: Clean Header on Mobile --- */
    /* Adjust text sizes so they don't break lines awkwardly */
    .home .home_content .text_2 {
        font-size: 70px;
    }

    .home .home_content .text_3 {
        font-size: 35px;
    }

    /* Hide the absolute positioned profile image on mobile 
       to prevent it from overlapping text or blocking clicks */
    .images {
        display: none;
    }

    /* --- 3. Design Idea: Stacked Content Cards --- */
    /* Instead of squeezing columns, we stack them vertically */

    /* About Section */
    .about .about_content {
        flex-direction: column;
    }

    .about .about_content .left {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }

    .about .about_content .right {
        width: 100%;
    }

    /* Skills, Research, Projects Grid */
    .content-grid,
    .research-container,
    .project-grid,
    .edu .edu_content {
        display: grid;
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 30px;
    }

    .edu .edu_content .card {
        width: 100%;
        /* Full width cards */
        margin: 0 0 20px 0;
    }

    /* Contact Section */
    .contact .contact-content {
        flex-direction: column;
    }

    .contact .contact-content .column {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* --- Extra Mobile Polish (Phones < 600px) --- */
@media (max-width: 600px) {
    .max_width {
        padding: 0 23px;
    }

    /* Design Idea: Smaller titles for better proportion */
    .home .home_content .text_2 {
        font-size: 50px;
    }

    .home .home_content .text_3 {
        font-size: 22px;
    }

    /* Design Idea: Center text on mobile for Home/About */
    .home .home_content,
    .about .about_content .right {
        text-align: center;
    }

    .about .about_content .right p {
        text-align: center;
        /* Easier to read on small screens */
    }
}

/* =========================================
   1. OVERVIEW TEXT FIX (Desktop & Mobile)
   ========================================= */

/* Global Styling for the Overview Text */
.text-content {
    font-family: var(--bodyFont);
    /* Ensure clean font */
    font-size: 17px;
    /* Slightly larger for readability */
    line-height: 1.8;
    /* More space between lines */
    color: var(--textColorLight);
    /* Ensure contrast */
    text-align: justify;
    /* Makes blocks look neat */
    margin-bottom: 20px;

    /* Desktop Specific: Prevent lines from getting too long */
    max-width: 95%;
}

.text-content p {
    margin-bottom: 15px;
    /* Space between paragraphs */
}

/* Ensure highlight text looks good */
.highlight-yellow {
    color: var(--firstColor);
    font-weight: 600;
}

/* =========================================
   2. CUSTOM SCROLLBAR (Mobile & Desktop)
   ========================================= */

/* The path (background) of the scrollbar */
::-webkit-scrollbar {
    width: 6px;
    /* Very thin and sleek */
}

/* The track (empty space) */
::-webkit-scrollbar-track {
    background: #111;
    /* Dark background to match site */
}

/* The handle (the moving part) */
::-webkit-scrollbar-thumb {
    background: var(--firstColor);
    /* Your Theme Yellow */
    border-radius: 10px;
    /* Rounded edges */
}

/* Hover effect for scrollbar */
::-webkit-scrollbar-thumb:hover {
    background: #e6ac00;
    /* Slightly darker yellow on touch/hover */
}

/* =========================================
   OVERVIEW BUTTON LOGIC
   ========================================= */

/* DESKTOP: Show all text, Hide Button */
@media (min-width: 992px) {
    #more-text {
        display: inline !important;
    }

    #overview-btn {
        display: none !important;
    }
}

/* MOBILE: Hide text, Show Button */
@media (max-width: 991px) {
    #more-text {
        display: none;
    }

    #overview-btn {
        display: inline-block;
        margin-top: 10px;
        padding: 8px 20px;
        font-size: 14px;
    }

    /* Ensure text doesn't hit the edges on mobile */
    .text-content {
        font-size: 16px;
        /* A bit smaller for mobile */
        text-align: center;
        /* Easier to read on small screens */
    }

    div.column.skills-col {
        padding: 0px;
        text-align: center;
    }

    div.glass-card {
        padding: 25px;
        border-radius: 0;
    }

    div.skill-card {
        padding: 10px;
        border-radius: 0;
    }

    section#skills.skills-container {
        padding: 40px 0px;
        border-radius: 0px;
    }

    span.skill-chip {
        border-radius: 5px;
    }

    /* Center Skill Chips Globally */
    .skill-chips {
        display: flex;
        flex-wrap: wrap;
        /* Allows them to wrap to the next line */
        justify-content: center;
        /* THIS centers them horizontally */
        gap: 10px;
        /* Adds space between the chips */
    }



}

/* =========================================
   ULTIMATE COMBO: FLOAT + HOLOGRAPHIC SCAN
   ========================================= */

/* 1. Define the Physics (Floating Up & Down) */
@keyframes antigravity {
    0% {
        transform: translateY(0px);
        box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
    }

    50% {
        transform: translateY(-6px);
        box-shadow: 0 15px 25px -5px rgba(255, 194, 52, 0.3);
    }

    100% {
        transform: translateY(0px);
        box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
    }
}

/* 2. Define the Scanner Light (Beam Moving Across) */
@keyframes shine-sweep {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    /* Fast sweep across */
    100% {
        left: 200%;
    }

    /* Wait for next loop */
}

/* 3. The Chip Styling */
.skill-chip {
    /* Layout Safety: inline-block respects your existing width/padding */
    display: inline-block;
    position: relative;
    /* Needed to trap the light beam inside */
    overflow: hidden;
    /* Cuts off the light when it leaves the box */
    z-index: 1;

    /* Visuals (Dark Glass Look) */
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;

    /* FLOAT Animation: 4s loop */
    animation: antigravity 4s infinite ease-in-out;
    transition: all 0.3s ease;
}

/* 4. The Glowing Line (The Beam) */
.skill-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    /* Start off-screen */
    width: 50%;
    /* Width of the beam */
    height: 100%;

    /* The Beam Gradient: Transparent -> Gold -> Transparent */
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 194, 52, 0.5),
            transparent);

    transform: skewX(-25deg);
    /* Angle the beam */
    z-index: -1;
    /* Place it behind the text */

    /* SCAN Animation: Runs every 5 seconds */
    animation: shine-sweep 5s infinite linear;
}

/* 5. Randomize Delays (Organic Feel) */
/* Floating delays */
.skill-chip:nth-child(odd) {
    animation-delay: 0s;
}

.skill-chip:nth-child(even) {
    animation-delay: 2s;
}

/* Scanner delays (so they don't all flash at once) */
.skill-chip:nth-child(odd)::before {
    animation-delay: 1s;
}

.skill-chip:nth-child(even)::before {
    animation-delay: 3s;
}

/* 6. Icon & Text Glow */
.skill-chip i {
    color: var(--firstColor);
    margin-right: 8px;
    text-shadow: 0 0 10px rgba(255, 194, 52, 0.4);
}

/* 7. Hover Effects (Active Mode) */
.skill-chip:hover {
    animation-play-state: paused;
    /* Stop floating so you can click */
    transform: translateY(-10px) scale(1.02);
    /* Lift high */
    box-shadow: 0 20px 30px -5px rgba(255, 194, 52, 0.5);
    /* Engine Glow */
    border-color: var(--firstColor);
    cursor: default;
}

/* On hover, stop the scanner and just light up the background slightly */
.skill-chip:hover::before {
    animation: none;
    background: rgba(255, 194, 52, 0.1);
    left: 0;
    width: 100%;

}

/* =========================================
   CONTACT SECTION: CONNECTIVITY HUB
   ========================================= */

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

/* --- 1. Contact Cards (Glassy Look) --- */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.contact-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 25px;
    border-radius: 15px;
    /* Softer corners */
    display: flex;
    align-items: center;
    gap: 20px;
    width: 350px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    /* Keeps the glow inside */
}

/* Card Typography */
.contact-card .info h3 {
    font-size: 18px;
    color: var(--firstColor);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-card .info span {
    font-size: 15px;
    color: #fff;
    display: block;
}

.contact-card .info .sub-text {
    font-size: 13px;
    color: #bbb;
    margin-top: 4px;
}

/* Icon Box */
.contact-card .icon-box {
    height: 55px;
    width: 55px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--firstColor);
    border: 1px solid #444;
    transition: all 0.3s ease;
}

/* Hover: Lift & Glow */
.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--firstColor);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.contact-card:hover .icon-box {
    background: var(--firstColor);
    color: #111;
    box-shadow: 0 0 15px var(--firstColor);
}

/* --- 2. Social Hub (With Animations) --- */
.social-connect {
    text-align: center;
    margin-top: 20px;
}

.social-connect h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 25px;
    /* More space for the pulse */
    justify-content: center;
}

.social-btn {
    height: 55px;
    width: 55px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

/* Pulse Animation Definition */
@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}



/* --- Mobile Fixes --- */
@media (max-width: 991px) {
    .contact-card {
        width: 100%;
        border-radius: 0;
    }

    .contact-grid {
        flex-direction: column;
        border-radius: 0;
    }

    .social-icons {
        gap: 15px;
    }

    .social-btn {
        height: 45px;
        width: 45px;
        font-size: 20px;
    }
}

/* Specific Brand Colors on Hover */
.social-btn:hover {
    transform: translateY(-5px);
    animation: ripple 1s linear infinite;
    /* Ripple Effect */
}

/* WhatsApp Green */
.social-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
}

/* Facebook Blue */
.social-btn.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.6);
}

/* LinkedIn Blue */
.social-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.6);
}

/* GitHub Grey/White */
.social-btn.github:hover {
    background: #333;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}


/* 4. Pause on Hover */
/* When the user tries to read/click, stop the motion */
.projects .card:hover {
    animation-play-state: paused;
    /* Apply your existing hover lift effect here if separate */
    transform: translateY(-10px) !important;
    /* Override animation position */
}


/* =========================================
   FIX: SKILL CHIP ICON VISIBILITY
   ========================================= */

/* When hovering the chip, force the ICON (i) to turn Black */
.skill-chip:hover i {
    color: #000000 !important;
    /* Solid Black */
    text-shadow: none !important;
    /* Remove glow for clarity */
    filter: none !important;
    /* Remove any blur/brightness filters */
}

span.skill-chip {
    max-width: 147px;
    padding: 9px;
}


/* chatbot */

/* =========================================
   ADVANCED AI CHATBOT STYLES
   ========================================= */

/* 1. Floating Toggle Button */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10001;
    font-family: var(--bodyFont);
}

.chat-toggle-btn {
    background: var(--firstColor);
    color: #111;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--firstColor);
}

/* 2. Chat Window Container */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 480px;
    background: #151515;
    /* Deep Dark */
    border: 1px solid #333;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    /* Hidden */
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.chat-window.active {
    transform: scale(1);
    /* Visible */
    opacity: 1;
}

/* 3. Header Styling */
.chat-header {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-header .title {
    font-size: 16px;
    color: var(--firstColor);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-header .version {
    font-size: 10px;
    background: #333;
    padding: 1px 6px;
    border-radius: 4px;
    color: #ccc;
    font-weight: 400;
}

/* Status Line (Online / Computing) */
.status {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    margin-left: 2px;
    transition: color 0.3s ease;
}

.status.thinking {
    color: var(--firstColor);
    /* Yellow when thinking */
    text-shadow: 0 0 5px rgba(255, 194, 52, 0.4);
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 18px;
}

.close-btn:hover {
    color: #fff;
}

/* 4. Chat Body */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #111;
}

.chat-body::-webkit-scrollbar {
    width: 4px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* Messages */
.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    align-self: flex-start;
    background: #252525;
    color: #eee;
    border-bottom-left-radius: 2px;
    border-left: 3px solid var(--firstColor);
}

.message.user {
    align-self: flex-end;
    background: var(--firstColor);
    color: #111;
    border-bottom-right-radius: 2px;
    font-weight: 600;
}

/* 5. Footer (Input) */
.chat-footer {
    padding: 15px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.chat-footer input:focus {
    border-color: var(--firstColor);
}

.chat-footer button {
    background: var(--firstColor);
    color: #111;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 16px;
}

.chat-footer button:hover {
    transform: scale(1.1);
}

/* 6. Typing Indicator (... animation) */
.typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 12px 16px;
    background: #252525;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    width: fit-content;
    margin-bottom: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}