*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

:root{
    --bg-color: #faf8f5;
    --second-bg-color: #f5f1eb;
    --text-color: #1f2937;
    --main-color: #d97706;
    --hover-color: #c2410c;
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Changed from z-index: 5 to 1000 */
    border-bottom: 1px solid rgba(31, 41, 55, 0.1);
}

.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover{
    transform: scale(1.1);
}

.logo span{
    color: var(--main-color);
    text-shadow: 0 0 25px var(--main-color);
}

.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a:active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

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

/* Sections */
section{
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

.heading{
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

/* Home Section */
/* Updated Home Layout with Sidebar */
/* Add this to your page.css - specific spacing for home section */
.home {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    padding: 25rem 5% 10rem; /* Increased from 10rem to 15rem top padding */
}

.home-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
    flex: 1;
    max-width: 1200px;
}

/* LinkedIn Sidebar Panel */
.linkedin-sidebar {
    width: 350px;
    max-height: 80vh;
    background: var(--second-bg-color);
    border: 2px solid var(--main-color);
    border-radius: 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.1);
    top: 12rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 2px solid rgba(217, 119, 6, 0.2);
}

.sidebar-header i {
    font-size: 2.4rem;
    color: var(--main-color);
}

.sidebar-header h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
}

.sidebar-loading {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--main-color);
    font-size: 1.4rem;
}

.sidebar-posts {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 50vh;
}

.sidebar-post {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-color);
    border-radius: 1rem;
    border-left: 3px solid var(--main-color);
    transition: 0.3s ease;
}

.sidebar-post:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.1);
}

.post-content {
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.post-meta {
    font-size: 1.1rem;
    color: var(--main-color);
    font-weight: 500;
}

.sidebar-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid rgba(217, 119, 6, 0.2);
    text-align: center;
}

.sidebar-link {
    color: var(--main-color);
    font-size: 1.4rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.sidebar-link:hover {
    color: var(--hover-color);
}

/* Custom scrollbar for sidebar */
.sidebar-posts::-webkit-scrollbar {
    width: 6px;
}

.sidebar-posts::-webkit-scrollbar-track {
    background: rgba(245, 241, 235, 0.3);
    border-radius: 10px;
}

.sidebar-posts::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

/* Responsive Design */
@media(max-width: 1200px) {
    .linkedin-sidebar {
        width: 300px;
    }
    
    .home-main {
        gap: 8rem;
    }
}

@media(max-width: 991px) {
    .home {
        flex-direction: column;
        gap: 4rem;
    }
    
    .linkedin-sidebar {
        width: 100%;
        max-width: 600px;
        position: static;
        max-height: 400px;
    }
    
    .home-main {
        flex-direction: column-reverse;
    }
}

.home-content h1{
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-content h3{
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 4rem;
}

.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative; 
    top: 3rem;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.home-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}

/* Text Animation */
.text-animation{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span{
    position: relative;
}

.text-animation span::before{
    content: "";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after{
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor{
    to{
        border-left: 2px solid var(--main-color);
    }
}

@keyframes words{
    0%, 20%{
        content: "leading ML research";
    }
    21%, 40%{
        content: "automating complex workflows";
    }
    41%, 60%{
        content: "optimizing backend systems";
    }
    61%, 80%{
        content: "containerizing applications";
    }
    81%, 100%{
        content: "building production systems";
    }
}

@keyframes typing{
    10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95%{
        width: 0;
    }
    5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85%{
        width: calc(100% + 8px);
    }
}

/* Buttons and Icons */
span{
    color: var(--main-color);
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}

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

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: 0 0 25px rgba(217, 119, 6, 0.3);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--bg-color);
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(217, 119, 6, 0.4);
    background: var(--hover-color);
}

.btn-group{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-of-type(2){
    background-color: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover{
    box-shadow: 0 0 25px rgba(217, 119, 6, 0.3);
    background-color: var(--main-color);
    color: var(--bg-color);
}

/* Education/Timeline Section */
.education{
    padding: 100px 15px;
    background: var(--second-bg-color);
}

.education h2{
    margin-bottom: 5rem;
}

.timeline-items{
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before{
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50%);
}

.timeline-item{
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

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

.timeline-item:nth-child(odd){
    padding-right: calc(51%);
    text-align: right;
}

.timeline-item:nth-child(even){ 
    padding-left: calc(51.5%);
}

.timeline-dot{
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px rgba(217, 119, 6, 0.3);
    position: absolute;
    left: calc(49.32%);
    border-radius: 50%;
    top: 10px;
}

.timeline-date{
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    margin: 6px 0 15px;
    padding: 20px;
}

.timeline-content{
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.2);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.timeline-content:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(217, 119, 6, 0.3);
}

.timeline-content h3{
    font-size: 20px;
    color: var(--text-color);
    margin: 0 0 10px;
    font-weight: 500;
}

.timeline-content p{
    color: var(--text-color);
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

/* Projects Section */
.proj{
    background: var(--bg-color);
    color: var(--text-color);
}

.proj h2{
    margin: 5rem;
    color: var(--text-color);
}

.proj-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-height: 70vh; /* Set maximum height */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 2rem;
    border: 2px solid var(--main-color);
    border-radius: 2rem;
    background: rgba(245, 241, 235, 0.5);
    margin: 0 auto;
    max-width: 1200px;
}

.proj-box {
    background-color: var(--main-color);
    height: auto;
    min-height: 120px; /* Reduced height for horizontal layout */
    width: 100%; /* Full width */
    border-radius: 2rem;
    border: 3px solid transparent;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    color: var(--bg-color);
    flex-shrink: 0; /* Prevent shrinking */
}

.proj-box:hover {
    background: var(--second-bg-color);
    color: var(--text-color);
    border: 3px solid var(--main-color);
    transform: scale(1.02); /* Slightly less scale for horizontal cards */
}

.category-section {
    margin-bottom: 3rem;
}

.category-header {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.category-header h3 {
    font-size: 2.4rem;
    color: var(--main-color);
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.category-projects {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.proj-box .proj-info{
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 200px;
    justify-content: left;
    align-items: baseline;
    padding: 5rem 5rem;
}

.proj-info h4{
    font-size: 3rem;
    font-weight: 800;
    line-height: 2;
}

.proj-info p{
    font-size: 1.6rem;
    font-weight: 600;
    max-height: 1000px;
    line-height: 1.7;
    margin: auto;
}

/* Contact Section */
.contact{
    background-color: var(--second-bg-color);
}

.contact h2{
    margin-bottom: 3rem;
    color: var(--text-color);
}

.contact form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}

.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background: var(--bg-color);
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
    border-radius: 1rem;
}

.contact form .btn{
    margin-top: 2rem;
}

/* Footer */
.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(31, 41, 55, 0.1);
}

.footer .social{
    text-align: center;
    padding-bottom: 25px;
}

.footer .social a{
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    border-radius: 50%;
    text-align: center;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}

.footer .social a:hover{
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px rgba(217, 119, 6, 0.3);
}

.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li{
    display: inline-block;
    padding: 0 15px;
}

.footer ul li a{
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

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

.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}

/* Scrollbar */
::-webkit-scrollbar{
    width: 15px;
}

::-webkit-scrollbar-thumb{
    background-color: var(--main-color);    
}

::-webkit-scrollbar-track{
    background-color: var(--bg-color);
    width: 50px;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--main-color);
    color: var(--bg-color);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 14px;
    text-align: center;
}

.popup.show {
    display: block;
}

/* Font Face */
@font-face {
    font-family: 'Cyberpunt';
    src: local('Cyberpunt'), url("saiba-45/SAIBA-45.ttf") format('truetype');
}

/* Media Queries */
@media(max-width:1285px){
    html{
        font-size: 55%;
    }
    .proj-container{
        padding-bottom: 7rem;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 5rem;
    }
}

@media(max-width:991px){
    .header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3% 2rem;
    }
    .timeline-item::before{
        left: 7px;
    }
    .timeline-item:nth-child(odd){
        padding-right: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even){
        padding-left: 37px;
    }
    .timeline-items::before{
        left: 0;
    }
    .timeline-dot{
        left: 0;
    }
    .proj{
        padding-bottom: 7rem;
    }
    .contact form{
        flex-direction: column;
    }
    .footer{
        padding: 2rem 3%;
    }
}

@media(max-width:895px){
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3%;
        background: rgba(250, 248, 245, 0.95);
        backdrop-filter: blur(20px);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
    }
    .navbar.active{
        display: block;
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .home{
        flex-direction: column-reverse;
        margin: 5rem 4rem;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 8rem;
        margin-top: 3rem;
    }
    .home-content p{
        max-width: 600px;
        margin: 0 auto;
    }
    .proj h2{
        margin-bottom: 3rem;
    }
    .proj-container{
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Arrow styling */
.arrow-container {
    position: absolute; /* Absolute positioning for the arrow */
    bottom: 20px; /* Space from the bottom of the section */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
}

.arrow {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid var(--main-color); /* Arrow color */
    animation: bounce 1s infinite; /* Bounce animation */
}

/* Arrow bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}
/* onto venn diagrams*/

.skills {
    padding: 100px 15px;
    background: var(--second-bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skills h2 {
    margin-bottom: 5rem;
}

.venn-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 60vh;
    min-height: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.venn-circle::before {
    content: 'Click to filter projects';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-color);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 1.2rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.venn-circle:hover::before {
    opacity: 1;
}

/* Active state for clicked circles */
.venn-circle.active {
    background: var(--main-color) !important;
    border-color: var(--main-color) !important;
    opacity: 1 !important;
    transform: scale(1.05) !important;
    z-index: 10 !important;
    box-shadow: 0 0 30px rgba(217, 119, 6, 0.4) !important;
}

.venn-circle.active .circle-label {
    color: var(--bg-color) !important;
    font-weight: 600 !important;
}

/* Reset button styling */
#reset-filter {
    background: var(--hover-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


.venn-circle {
    position: absolute;
    width: 40vw;
    max-width: 350px;
    min-width: 250px;
    height: 40vw;
    max-height: 350px;
    min-height: 250px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--text-color);
    background: transparent;
    opacity: 0.7;
}

.venn-circle:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    opacity: 1;
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 0 30px rgba(217, 119, 6, 0.4);
}

.ml-circle {
    top: 0;
    left: 12%;
    transform: translateX(-50%);
}

.ai-circle {
    top: 0%;
    right: 12%;
    transform: translateX(25%);
}

.backend-circle {
    top: 45%;
    left: 28%;
    transform: translateX(-25%);
}


.circle-label {
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--text-color);
    z-index: 5;
    position: relative;
    transition: all 0.4s ease;
    opacity: 0.9;
}

.venn-circle:hover .circle-label {
    color: var(--bg-color);
    font-weight: 600;
    opacity: 0;
}

.info-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 41, 55, 0.95);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
    pointer-events: none;
    padding: 2rem;
    text-align: center;
}

.venn-circle:hover .info-cover {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.info-cover h3 {
    color: var(--bg-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.info-cover p {
    color: #e5e7eb;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.skills-list {
    list-style: none;
    color: var(--bg-color);
    font-size: 1rem;
}

.skills-list li {
    background: rgba(217, 119, 6, 0.3);
    margin: 0.3rem 0.2rem;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    display: inline-block;
    border: 1px solid rgba(217, 119, 6, 0.5);
}

/* Venn Diagram Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 0.7;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media(max-width: 768px) {
    .venn-container {
        height: 50vh;
        min-height: 400px;
    }
    
    .venn-circle {
        width: 45vw;
        height: 45vw;
        max-width: 280px;
        max-height: 280px;
        min-width: 200px;
        min-height: 200px;
    }
    
    .ai-circle {
        transform: translateX(20%);
    }
    
    .backend-circle {
        transform: translateX(-20%);
    }
}

@media(max-width: 480px) {
    .venn-circle {
        width: 50vw;
        height: 50vw;
        max-width: 220px;
        max-height: 220px;
    }
    
    .ai-circle {
        transform: translateX(0%);
    }
    
    .backend-circle {
        transform: translateX(-15%);
    }
}

/* Inverted button for project links */
.btn-inverted {
    background: var(--bg-color);
    color: var(--main-color);
    border: 2px solid var(--main-color);
    font-size: 1.4rem;
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
}

.btn-inverted:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: scale(1.05);
}

/* Update proj-links for better spacing */
.proj-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* GitHub Activity specific styles */
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.activity-date {
    color: var(--main-color);
    font-weight: 500;
    opacity: 0.8;
}

.activity-repo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.8rem;
    font-size: 1rem;
    color: var(--main-color);
    opacity: 0.7;
}

.no-activity-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Pathfinding Game Section */
.pathfinding-game {
    background: var(--second-bg-color);
    padding: 100px 15px;
    min-height: 100vh;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Game Controls */
.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    flex-wrap: wrap;
    gap: 2rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-group label {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
}

.control-group select {
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--main-color);
    border-radius: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1.4rem;
    min-width: 200px;
}

.control-group input[type="range"] {
    width: 100px;
    margin: 0 1rem;
}

#speed-value {
    font-weight: 600;
    color: var(--main-color);
    min-width: 20px;
}

.control-buttons {
    display: flex;
    gap: 1rem;
}

.game-btn {
    padding: 1rem 2rem;
    font-size: 1.4rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-secondary:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 2px solid rgba(217, 119, 6, 0.3);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
}

.stat-item i {
    color: var(--main-color);
    font-size: 1.8rem;
}

/* Game Board */
.game-board {
    display: flex;
    justify-content: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(25, 1fr);
    grid-template-rows: repeat(15, 1fr);
    gap: 1px;
    background: var(--text-color);
    border: 3px solid var(--main-color);
    border-radius: 1rem;
    padding: 5px;
    max-width: 800px;
    width: 100%;
    aspect-ratio: 5/3;
}

.grid-cell {
    background: var(--bg-color);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.grid-cell:hover {
    background: rgba(217, 119, 6, 0.1);
}

/* Node Types */
.start-node {
    background: #10b981 !important;
    position: relative;
}

.start-node::after {
    content: '🚀';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
}

.end-node {
    background: #ef4444 !important;
    position: relative;
}

.end-node::after {
    content: '🎯';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
}

.wall-node {
    background: var(--text-color) !important;
    animation: wallDrop 0.3s ease;
}

.visited-node {
    background: rgba(217, 119, 6, 0.3) !important;
    animation: visitedNode 0.5s ease;
}

.current-node {
    background: var(--main-color) !important;
    animation: pulse 0.5s ease;
    box-shadow: 0 0 10px var(--main-color);
}

.path-node {
    background: #8b5cf6 !important;
    animation: pathNode 0.5s ease;
    box-shadow: 0 0 5px #8b5cf6;
}

/* Game Legend */
.game-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    color: var(--text-color);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--text-color);
}

/* Animations */
@keyframes wallDrop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes visitedNode {
    0% { 
        transform: scale(0.3);
        background: var(--main-color);
    }
    50% { 
        transform: scale(1.2);
        background: var(--main-color);
    }
    100% { 
        transform: scale(1);
        background: rgba(217, 119, 6, 0.3);
    }
}

@keyframes pathNode {
    0% { 
        transform: scale(0);
        background: #fbbf24;
    }
    50% { 
        transform: scale(1.3);
        background: #fbbf24;
    }
    100% { 
        transform: scale(1);
        background: #8b5cf6;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive Design */
@media(max-width: 768px) {
    .game-controls {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .control-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .grid {
        grid-template-columns: repeat(20, 1fr);
        grid-template-rows: repeat(12, 1fr);
    }
    
    .game-legend {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}