.top-space {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 150px;
    padding-right: 150px;
    margin-bottom: 40px;
}

.my-name{
    color: #FEFCFB;
    font-size: 42px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.button-style {
    color: #FEFCFB;
	border: 1px solid #FEFCFB;
	border-radius: 15px;
	background: #55286F;
	padding: 6px 12px;
	font-size: 14px;
	font-weight: bold;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.button-style:hover {
    background: #FEFCFB;
    color: #161A1D;
    border: 1px solid #161A1D;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(85, 40, 111, 0.5);
}

/* Resume button styling has been removed */

/* Resume button container has been removed */

/* .profile-intro {
    padding-left: 100px;
    display: flex;
    justify-content: space-between;

} */

/* #profile-pic {
    border: 2px solid #FEFCFB;
    width: 165px;
    margin-top: 50px;
    box-shadow: 10px 10px 10px #55286F;
} */

/* Header content styling */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 12px; /* Reduced gap between social links */
    margin-top: 20px;
}

.main-tagline {
    font-family: 'Poppins', sans-serif;
    color: #FEFCFB;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 15px;
    max-width: 650px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    opacity: 0.95;
}

/* Header right section styling */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.header-text {
    margin-bottom: 20px;
}

.role-title {
    color: #9370DB;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.role-description {
    color: #FEFCFB;
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

/* Skills sections styling */
.skills-section {
    margin-left: 150px;
    margin-right: 150px;
    margin-top: 50px;
    margin-bottom: 50px;
    font-family: 'Poppins', sans-serif;
    background-color: rgba(220, 252, 231, 0.03); /* Very light mint background */
    padding: 60px 40px;
    border-radius: 16px;
}

.skills-content {
    display: flex;
    flex-direction: column;
    border: none;
    padding: 20px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.skills-content:hover {
    transform: translateY(0); /* Removing the hover effect */
}

.skills-main-content {
    display: flex;
    flex-direction: column; /* Changed to column layout */
    align-items: center; /* Center-align content */
    gap: 40px;
    padding: 20px;
}

.skills-left {
    width: 100%;
    text-align: center; /* Center text */
    margin-bottom: 30px; /* Add space between heading/tagline and content */
}

.skills-heading {
    color: #FEFCFB;
    font-size: 18px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-tagline {
    color: #FEFCFB;
    font-size: 34px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
}

.skills-right {
    width: 100%;
    display: flex;
    justify-content: center; /* Center content */
    padding-top: 20px; /* Add space between heading/tagline and content */
}

/* Empty section styling */
.skills-right:empty {
    min-height: 200px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

/* Additional styles to ensure skill boxes separate cleanly on mobile */            @media (max-width: 768px) {
                .skills-right {
                    margin-top: 10px;
                    padding-left: 0;
                    justify-content: center;
                    width: 100%;
                }
                
                .skills-list {
                    max-width: 100%;
                }
                
                .skill-rect {
                    padding: 12px;
                }
                
                .skill-icon {
                    width: 45px;
                    height: 45px;
                    font-size: 18px;
                    margin-right: 12px;
                }
                
                .skill-text h3 {
                    font-size: 15px;
                }
                
                .skills-tagline {
                    font-size: 28px; /* Smaller font size on mobile */
                }
            }

/* Mobile optimization for skills rolling animation */
@media (max-width: 768px) {
    .skill-rect {
        transform: translateX(-20px); /* Less dramatic slide-in on mobile */
    }
    
    @keyframes skill-roll-in {
        0% {
            opacity: 0;
            transform: translateX(-25px);
        }
        75% {
            transform: translateX(3px);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .skills-list::after {
        width: 30px;
        height: 6px;
    }
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.skill-rect {
    display: flex;
    align-items: center;
    background-color: #161A1D; /* Changed to black */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Changed to white border */
    border-radius: 10px;
    padding: 15px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateX(-40px);
    position: relative;
    will-change: transform, opacity, box-shadow; /* Performance optimization */
    backface-visibility: hidden; /* Smoother animations */
}

.skill-rect::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFFFFF, #ffffff); /* White gradient */
    transition: width 0.4s ease;
    border-radius: 0 0 0 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Add glow to highlight the gradient */
}

.skill-rect:hover::before {
    width: 100%;
    border-radius: 0 0 10px 10px;
}

.skill-rect::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.skill-rect:hover::after {
    opacity: 1;
}

.skill-rect.visible {
    opacity: 1;
    transform: translateX(0);
    box-shadow: 0 6px 10px rgba(255, 255, 255, 0.25); /* Enhanced white shadow */
    animation: skill-subtle-float 6s infinite ease-in-out, border-pulse 4s infinite ease-in-out;
}

/* Initially show only the first two skill boxes */
.skill-rect:nth-child(1),
.skill-rect:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
}

/* Initial glow effect for the first two skill boxes */
.skill-rect:nth-child(1),
.skill-rect:nth-child(2) {
    animation: initial-skill-glow 2s ease-in-out;
}

@keyframes initial-skill-glow {
    0% { 
        box-shadow: 0 4px 6px rgba(255, 255, 255, 0.3); 
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 0 0 18px rgba(255, 255, 255, 0.7); 
        border-color: rgba(255, 255, 255, 0.7);
    }
    100% { 
        box-shadow: 0 4px 6px rgba(255, 255, 255, 0.3); 
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Hover animation for the skill rectangles */
.skill-rect.visible:hover {
    transform: translateY(-5px) scale(1.03);
    background-color: #1E2329; /* Slightly lighter black for hover state */
    border-color: rgba(255, 255, 255, 0.5); /* Brighter white border on hover */
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3); /* White glow effect */
    cursor: pointer;
}

.skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #FFFFFF, #E5E5E5); /* White gradient background */
    color: #000000; /* Icon color changed to black */
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-right: 15px;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.2); /* Subtle white glow with inner highlight */
    position: relative;
    overflow: hidden;
}

.skill-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.skill-rect:hover .skill-icon::after {
    opacity: 1;
}

.skill-text {
    flex-grow: 1;
}

.skill-text h3 {
    color: #FFFFFF; /* Changed to white */
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Enhanced shadow for better readability on dark background */
    letter-spacing: 0.3px; /* Slight letter spacing for better readability */
}

.skill-box {
    width: 100%;
    height: 200px; /* Increased height for better visual appeal */
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.skill-inner {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

.my-project-heading {
    color: #FEFCFB;
    font-size: 34px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    margin-left: 150px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-1 {
    border: 2px solid #FEFCFB;
    margin-top: 40px;
    padding: 40px;
    margin-left: 150px;
    margin-right: 150px;
    box-shadow: 10px 10px 10px #55286F;
    color: #FEFCFB;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease;
}

.project-1:hover {
    transform: translateY(-5px);
}

.tooltech {
    margin-top: 40px;
    margin-left: 150px;
    margin-right: 150px;
    margin-bottom: 50px;
    font-family: 'Poppins', sans-serif;
    background-color: rgba(220, 252, 231, 0.03); /* Match the skills section */
    padding: 60px 40px;
    border-radius: 16px;
}

.tech-categories {
    margin-top: 30px;
}

.tech-category {
    margin-bottom: 40px;
}

.tech-category:last-child {
    margin-bottom: 0;
}

.tech-category-title {
    font-family: 'Poppins', sans-serif;
    color: #FEFCFB;
    font-size: 18px;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.atlasvec {
    color: #00ED64;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* New classes for responsive design */
.tech-stack {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 0;
    padding: 10px 0;
}

.tech-item {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 15px 20px;
    min-height: 60px;
    min-width: 120px;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tech-item img {
    object-fit: contain;
    max-height: 50px;
}

/* MongoDB needs specific styling */
.tech-item img[src*="MongoDB"] {
    max-width: 160px;
    height: auto;
}

/* Python logo needs specific styling */
.tech-item img[src*="Python-logo"] {
    max-width: 40px;
    height: auto;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-group img:first-child {
    max-width: 50px;
}

.logo-group img:last-child {
    max-width: 120px;
}

.mobile-menu {
    display: none;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 12px; /* Reduced gap between social links */
}

/* Project card styling */
.project-card {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: rgba(85, 40, 111, 0.3);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FEFCFB;
}

.project-description {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #FEFCFB;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tag {
    background: #55286F;
    color: #FEFCFB;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.project-links {
    display: flex;
    gap: 15px;
}

/* Project box styling */
.project-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 450px; /* Reduced from 600px to make it smaller */
    text-align: center;
    margin: 0 auto; /* Center project box */
    position: relative;
    z-index: 1;
}

.project-box::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(107, 79, 187, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    z-index: -2;
}

.project-box::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
                rgba(137, 87, 229, 0.4), 
                rgba(66, 133, 244, 1), 
                rgba(107, 79, 187, 1), 
                rgba(137, 87, 229, 0.4));
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 4px;
    z-index: -1;
    animation: none;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes beam-light {
    0% { transform: scaleX(0); transform-origin: left; }
    49% { transform: scaleX(1); transform-origin: left; }
    51% { transform: scaleX(1); transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.project-box:hover::before {
    opacity: 1;
    box-shadow: 0 0 15px rgba(107, 79, 187, 0.4);
}

.project-box:hover::after {
    opacity: 1;
    box-shadow: 0 0 25px rgba(66, 133, 244, 0.9);
    animation: beam-light 2.5s infinite ease-in-out;
    animation-fill-mode: forwards;
}

.project-image {
    width: 100%;
    max-height: 220px; /* Added max-height to control image size */
    object-fit: contain; /* Ensures image maintains aspect ratio */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 0 5px;
    color: #FEFCFB;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation for skills rolling in */
@keyframes skill-roll-in {
    0% {
        opacity: 0;
        transform: translateX(-50px) translateY(5px);
        filter: blur(3px);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0);
    }
    60% {
        opacity: 0.9;
        filter: blur(0px);
    }
    70% {
        transform: translateX(5px) translateY(-2px);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
    85% {
        transform: translateX(-2px) translateY(0px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
        box-shadow: 0 6px 10px rgba(255, 255, 255, 0.4);
    }
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .top-space, .project-1, .tooltech, .skills-section {
        padding-left: 40px;
        padding-right: 40px;
        margin-left: 80px;
        margin-right: 80px;
    }
    
    .my-project-heading {
        margin-left: 80px;
    }
    
    .skills-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-space {
        flex-direction: column;
        align-items: center;
        padding-left: 30px;
        padding-right: 30px;
        text-align: center;
        margin-bottom: 30px;
        gap: 20px; /* Add consistent spacing */
    }
    
    .header-content {
        align-items: center;
        text-align: center;
        margin-bottom: 0; /* Remove bottom margin, use gap instead */
    }
    
    .my-name {
        margin-bottom: 15px;
        font-size: 32px;
    }
    
    .main-tagline {
        font-size: 16px; /* Reduced size for better fit */
        line-height: 1.4;
        max-width: 90%;
        text-align: center;
        margin: 0 auto;
    }
    
    .project-1, .tooltech {
        margin-left: 15px;
        margin-right: 15px;
        padding: 25px 25px; /* Better padding for tablet */
    }
    
    .tech-categories {
        margin-top: 20px;
    }
    
    .tech-category {
        margin-bottom: 30px;
    }
    
    .tech-category-title {
        text-align: center;
    }
    
    .skills-section {
        margin-left: 15px;
        margin-right: 15px;
        padding: 25px 15px;
    }
    
    .skills-content {
        padding: 10px;
    }
    
    .skills-main-content {
        padding: 10px;
        gap: 20px; /* Reduce gap on smaller screens */
    }
    
    .skills-left {
        margin-bottom: 10px;
    }
    
    .skills-tagline {
        font-size: 28px; /* Slightly smaller font on mobile */
    }
    
    .skills-heading {
        margin-bottom: 10px;
    }
    
    .skills-right {
        justify-content: center;
        width: 100%;
    }
    
    .skills-grid {
        max-width: 350px;
        gap: 25px;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 auto;
    }
    
    .my-project-heading {
        margin-left: 15px;
        font-size: 32px;
        text-align: center;
    }
    
    .tech-stack {
        justify-content: center;
        gap: 12px;
        row-gap: 15px;
    }
    
    .tech-item {
        min-width: 120px;
        text-align: center;
        padding: 12px;
    }
    
    .logo-group {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
    }

    .logo-group img:first-child {
        max-width: 40px;
        margin-bottom: 5px;
    }
    
    .logo-group img:last-child {
        max-width: 100px;
    }
    
    .tech-item img[src*="MongoDB"] {
        width: 120px !important;
    }
    
    .tech-item img[src*="Python"] {
        width: 35px !important;
    }
    
    .atlasvec {
        font-size: 24px;
    }

    .nav-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        margin-top: 10px;
        gap: 10px;
        width: 100%;
    }

    .social-link {
        padding: 8px 10px;
        font-size: 14px;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .top-space, .project-1, .tooltech, .skills-section {
        padding-left: 3px;
        padding-right: 3px;
        margin-left: 3px;
        margin-right: 3px;
    }
    
    .top-space {
        padding-top: 15px;
        margin-bottom: 25px;
    }
    
    .header-content {
        width: 100%;
    }
    
    .my-name {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .main-tagline {
        font-size: 20px;
        line-height: 1.4;
        margin-top: 8px;
        max-width: 100%;
        padding: 0 10px;
        letter-spacing: -0.2px;
        text-align: center;
    }
    
    .my-project-heading {
        margin-left: 3px;
    }
    
    /* Resume button responsive styles have been removed */
}

/* Responsive styles for project box */
@media (max-width: 768px) {
    .project-box {
        max-width: 350px; /* Adjusted for tablet view */
        padding: 15px;
    }
    
    .project-title {
        font-size: 14px;
    }
    
    .project-image {
        max-height: 180px;
    }
}

@media (max-width: 480px) {
    .project-box {
        max-width: 220px;
        padding: 12px;
    }
    
    .project-image {
        margin-bottom: 10px;
        max-height: 150px;
    }
}

/* Additional minimal margin fixes */
@media (max-width: 480px) {
    .skills-content {
        padding: 5px;
    }
    
    .skills-main-content {
        padding: 5px;
        gap: 15px;
    }
    
    .skills-section {
        padding: 15px 8px;
    }
    
    .skills-left, .skills-right {
        padding: 0;
    }
}

@media (max-width: 360px) {
    .skills-content {
        padding: 3px;
    }
    
    .skills-main-content {
        padding: 3px;
        gap: 10px;
    }
}

/* Fix to prevent boxes from merging on small screens */
@media (max-width: 480px) {
    .skills-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0;
    }

    .skills-section {
        background-color: rgba(220, 252, 231, 0.02);
    }
}

/* Ensure skill items are properly spaced in all media queries */
@media (max-width: 768px) {
    .skills-grid {
        display: grid;
        width: 100%;
    }
    
    .skill-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .skill-item {
        margin-bottom: 20px;
    }
    
    .skills-list {
        gap: 10px;
    }
    
    .skill-rect {
        padding: 10px;
    }
    
    .skill-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 10px;
        border-radius: 8px;
        background: linear-gradient(145deg, #FFFFFF, #E5E5E5); /* Consistent white gradient on mobile */
        color: #000000; /* Black icon color on mobile */
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.4); /* Reduced shadow size on mobile */
    }
    
    .skill-text h3 {
        font-size: 14px;
        color: #FFFFFF; /* White text on mobile */
    }
    
    /* Adjusted hover effects for mobile */
    .skill-rect.visible:hover {
        transform: translateY(-3px) scale(1.02);
        background-color: #1E2329; /* Slightly lighter black for hover state on mobile */
        border-color: rgba(255, 255, 255, 0.5); /* Ensure white border on mobile hover */
    }
    
    @keyframes skill-hover-pulse {
        0% {
            box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
        }
        50% {
            box-shadow: 0 8px 15px rgba(255, 255, 255, 0.35);
        }
        100% {
            box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
        }
    }
    
    .skill-rect:hover .skill-icon {
        transform: scale(1.05);
    }
}

.skill-inner h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: #FEFCFB;
}

.skill-inner p {
    font-size: 14px;
    margin: 0;
    color: rgba(254, 252, 251, 0.7);
    line-height: 1.4;
}

/* Make skill inner content align to left with column direction */
.skill-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Responsive content for skill boxes */
@media (max-width: 768px) {
    .skill-inner h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .skill-inner p {
        font-size: 12px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .skill-inner h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .skill-inner p {
        font-size: 11px;
        line-height: 1.2;
    }
}

/* Prevent merging of skill boxes on mobile */
.skill-item {
    display: inline-block;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    position: relative;
}

/* Additional mobile-specific styles to prevent merging */
@media (max-width: 480px) {
    .skills-main-content {
        padding: 5px;
        gap: 15px;
    }
    
    .skills-grid {
        gap: 18px;
    }
    
    .skill-box {
        height: 120px;
        padding: 10px;
        margin-bottom: 0;
        background-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    }
    
    .skill-inner {
        padding: 5px;
    }
    
    .skill-inner h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .skill-inner p {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .skills-section {
        padding: 20px 10px;
    }
}

/* Extra small device fixes */
@media (max-width: 320px) {
    .skills-section, .tooltech {
        padding: 10px 5px;
        margin-left: 3px;
        margin-right: 3px;
    }
    
    .skills-grid {
        gap: 12px;
    }
    
    .skill-box {
        height: 80px;
        padding: 6px;
    }
    
    .skill-inner h3 {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .skill-inner p {
        font-size: 9px;
        line-height: 1.1;
    }
    
    .skills-heading {
        font-size: 16px;
    }
    
    .skills-tagline {
        font-size: 16px;
    }
    
    .tech-category-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .tech-item {
        min-width: 90px;
        min-height: 40px;
        padding: 8px;
    }
    
    .tech-stack {
        gap: 8px;
    }
    
    .tech-categories {
        margin-top: 10px;
    }
    
    .tech-category {
        margin-bottom: 15px;
    }
}

/* Header fixes for small screens */
@media (max-width: 480px) {
    .top-space {
        padding-top: 10px;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .my-name {
        font-size: 28px;
        margin-bottom: 12px;
        padding: 0 10px;
    }
    
    .nav-buttons {
        gap: 8px;
        padding: 0 10px;
    }
    
    .social-link {
        padding: 6px 8px;
        font-size: 12px;
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .my-name {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .nav-buttons {
        gap: 5px;
    }
    
    .social-link {
        padding: 5px 5px;
        font-size: 11px;
    }
}

/* Thinking in Product Section Styling */
.thinking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 600px; /* Optimized for 3 equal boxes */
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.thinking-box {
    background-color: #1E2329;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    height: 140px;
    text-align: center;
    position: relative;
    z-index: 1;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    margin: 0 auto; /* Center each box */
    max-width: 95%; /* Prevent boxes from getting too wide */
}

.thinking-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: -1;
    border-radius: 10px;
}

.thinking-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.1);
}

.thinking-box:hover::before {
    opacity: 1;
    animation: thinking-pulse 2s infinite;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
}

@keyframes thinking-pulse {
    0% { opacity: 0.3; box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
    50% { opacity: 0.7; box-shadow: 0 0 15px rgba(255, 255, 255, 0.7); }
    100% { opacity: 0.3; box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
}

.thinking-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border-radius: 8px;
    filter: drop-shadow(0 0 0 transparent);
}

.thinking-box:hover .thinking-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

.thinking-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    padding: 0 5px;
    color: #FFFFFF;
    transition: color 0.3s ease;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive styles for thinking boxes */
@media (max-width: 768px) and (min-width: 651px) {
    .thinking-grid {
        gap: 15px;
        max-width: 500px;
        grid-template-columns: repeat(3, 1fr); /* Keep 3 columns on tablets */
    }
    
    .thinking-box {
        height: 130px;
        padding: 12px;
    }
    
    .thinking-title {
        font-size: 12px;
    }
    
    .thinking-image {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 650px) {
    .thinking-grid {
        grid-template-columns: 1fr; /* Single column at small sizes */
        max-width: 300px;
        gap: 15px;
    }
    
    .thinking-box {
        height: 120px;
        padding: 12px;
        width: 100%;
        max-width: 280px; /* Better size for a single column */
    }
}

@media (max-width: 480px) {
    .thinking-grid {
        max-width: 260px;
        gap: 12px;
    }
    
    .thinking-box {
        height: 110px;
        padding: 10px;
    }
    
    .thinking-title {
        font-size: 11px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .thinking-image {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
}

@media (max-width: 320px) {
    .thinking-grid {
        max-width: 220px;
        gap: 10px;
    }
    
    .thinking-box {
        height: 100px;
        padding: 8px;
    }
    
    .thinking-title {
        font-size: 10px;
    }
    
    .thinking-image {
        width: 35px;
        height: 35px;
        margin-bottom: 6px;
    }
}

/* Connect With Me Section */
.connect-section {
    text-align: center;
    padding: 40px 20px;
    margin: 60px 150px 40px 150px;
    margin-top: auto; /* Push to bottom if needed */
}

.connect-section h2 {
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #1E2329;
    border: 2px solid #FFFFFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: #FFFFFF;
    color: #161A1D;
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
}

/* Email text styling */
.email-text {
    margin-top: 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.email-text a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.email-text a:hover {
    color: #FEFCFB;
    text-decoration: underline;
}

/* Responsive styling for connect section */
@media (max-width: 768px) {
    .connect-section {
        margin: 30px 20px 15px 20px;
        padding: 25px 10px;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .connect-section {
        padding: 20px 10px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .email-text {
        margin-top: 15px;
    }
    
    .email-text a {
        font-size: 14px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 0.8;
    transform: translateY(0);
    visibility: visible;
}

.back-to-top:hover {
    opacity: 1;
    background-color: #7A5DC7;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

/* Additional styles for tailwind enhanced skill boxes */
@media (max-width: 480px) {
    .skill-box {
        height: 180px;
    }
}

/* Adding staggered animation timing for the skills rolling effect */
.skill-rect:nth-child(3) { transition-delay: 0.2s; }
.skill-rect:nth-child(4) { transition-delay: 0.4s; }
.skill-rect:nth-child(5) { transition-delay: 0.6s; }

/* New CSS for skills reveal indicator */
.skills-list::after {
    content: '';
    display: block;
    height: 8px;
    width: 40px;
    margin: 5px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6)); /* Updated gradient to match new theme */
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scaleX(0);
}

.skills-list.show-more-indicator::after {
    opacity: 1;
    transform: scaleX(1);
    animation: pulse-indicator 2s infinite ease-in-out;
}

@keyframes pulse-indicator {
    0% { opacity: 0.4; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0.4; transform: scaleX(0.8); }
}

@keyframes skill-hover-pulse {
    0% {
        box-shadow: 0 6px 10px rgba(255, 255, 255, 0.25);
    }
    50% {
        box-shadow: 0 10px 20px rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow: 0 6px 10px rgba(255, 255, 255, 0.25);
    }
}

.skill-rect.visible:hover {
    animation: skill-hover-pulse 2s infinite ease-in-out;
}

.skill-rect:hover .skill-text h3 {
    color: #FFFFFF; /* Keep white color */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7); /* Enhanced white glow on hover */
    transform: translateX(3px); /* Slight movement on hover */
    transition: all 0.3s ease;
}

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

.skill-rect:hover .skill-icon i {
    animation: icon-pulse 1.5s infinite ease-in-out;
}

/* Subtle border animation for skill rectangles */
@keyframes border-pulse {
    0% {
        border-color: rgba(255, 255, 255, 0.3);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.6);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

.skill-rect.visible {
    animation: skill-subtle-float 6s infinite ease-in-out, border-pulse 4s infinite ease-in-out;
}

/* Boxes Section Styles */
.boxes-section {
    padding: 80px 150px 60px 150px;
    margin-bottom: 40px;
}

.boxes-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}

.box {
    flex: 1;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.box:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.box-icon {
    font-size: 48px;
    color: #FEFCFB;
    margin-bottom: 20px;
    opacity: 0.9;
}

.box h3 {
    color: #FEFCFB;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.box p {
    color: #FEFCFB;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

/* Responsive styles for boxes */
@media (max-width: 1024px) {
    .boxes-section {
        padding: 60px 100px 50px 100px;
    }
    
    .boxes-container {
        gap: 30px;
    }
    
    .box {
        padding: 35px 25px;
    }
    
    .box-icon {
        font-size: 42px;
    }
    
    .box h3 {
        font-size: 22px;
    }
    
    .box p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .boxes-section {
        padding: 50px 50px 40px 50px;
    }
    
    .boxes-container {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }
    
    .box {
        max-width: 100%;
        width: 100%;
        padding: 30px 20px;
    }
    
    .box-icon {
        font-size: 40px;
    }
    
    .box h3 {
        font-size: 20px;
    }
    
    .box p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .boxes-section {
        padding: 40px 20px 30px 20px;
    }
    
    .box {
        padding: 25px 15px;
    }
    
    .box-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .box h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .box p {
        font-size: 13px;
        line-height: 1.5;
    }
}
