body {
    background-image: linear-gradient(to bottom, black, #59595A);
    color: white;
    font-family: 'Special Gothic Expanded One', sans-serif;
    text-align: left;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    opacity: 1;
}

h1 {
    padding: 10px;
    margin-left: -10px;
    margin-top: -10px;
    text-align: left;
    font-size: 20px;
    font-family:'Caveat', cursive;
    animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

h5 {
    height: 0px;
    margin-top: 78px;
    margin-bottom: -12px;
}

.red-letter {
    color: rgb(242, 94, 94);
    
}

h2 {
    font-size: 35px;
    height: 18px;
}

h3 {
    color: rgb(242, 94, 94);
    font-size: 18px;
    height: 25px;
    overflow: hidden;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: rgb(242, 94, 94);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#p1{
    background-color: rgb(242, 94, 94);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    height: 40px;
    box-shadow: 0 0 10px rgba(242, 94, 94, 0.5);
    transition: all 0.3s ease;
   
}

#p1:hover {
    box-shadow: 0 0 20px rgba(242, 94, 94, 0.8);
    transform: translateY(-2px);
}

#p2 {
    background-color: black;
    color: rgb(242, 94, 94);
    border: 1.5px solid rgb(242, 94, 94);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    height: 40px;
    width: 135px;
    margin-left: 10px;
    box-shadow: 0 0 10px rgba(242, 94, 94, 0.3);
    transition: all 0.3s ease;
}

#p2:hover {
    box-shadow: 0 0 20px rgba(242, 94, 94, 0.6);
    transform: translateY(-2px);
}

p {
    font-family: 'Gruppo';
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin: 20px 0;
    margin-left: 10px;
}

.social-icon {
    color: rgb(242, 94, 94);
    font-size: 32px;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(242, 94, 94, 0.5);
}

.social-icon:hover {
    transform: scale(1.2);
    color: white;
    text-shadow: 0 0 15px rgba(242, 94, 94, 0.8);
}

.top-nav {
    display: none;
}

#about {
    margin-top: 60px;
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    font-family: 'Special Gothic Expanded One', sans-serif;
    color: white;
    text-decoration: underline;
    text-underline-offset: 10px;
    position: relative;
}

.letter {
    transition: color 0.3s ease;
}

#about:hover .letter {
    color: white; /* Reset all letters to white */
}

#about:hover .letter:nth-child(odd) {
    color: rgb(242, 94, 94); /* Red for odd-positioned letters */
}

#about:hover .letter:nth-child(even) {
    color: white; /* Keep even-positioned letters white (or adjust as needed) */
}

/* Keep your existing ::before and ::after styles */
#about::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 55%;
    transform: translateX(-100%);
    width: 2000px;
    height: 4px;
    background-color: white;
}

#about::after {
    content: '';
    position: absolute;
    top: 57px;
    left: 100%;
    transform: translateX(-100%);
    width: 500px;
    height: 4px;
    background-color: white;
}

.macos-window {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    margin-bottom: 120px auto;
    margin-left: -9px;
    margin-right: -4px;
    
    
}

.window-titlebar {
    background: linear-gradient(to bottom, rgba(58, 58, 58, 0.8), rgba(45, 45, 45, 0.8));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    user-select: none;
    position: relative;
}

.titlebar-buttons {
    display: flex;
    gap: 8px;
}

.titlebar-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    margin-right: 2px;
}

.titlebar-button.close {
    background-color: #ff5f56;
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.5);
}

.titlebar-button.minimize {
    background-color: #ffbd2e;
}

.titlebar-button.maximize {
    background-color: #27c93f;
}

.titlebar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #cccccc;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.window-content {
    display: flex;
    height: calc(100vh - 88px);
    position: relative;
    padding: 0;
}

.titlebar-button:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.titlebar-button.close:hover {
    background-color: #ff3b30;
    box-shadow: 0 0 12px rgba(255, 95, 86, 0.8);
}

.titlebar-button.minimize:hover {
    background-color: #ffb300;
}

.titlebar-button.maximize:hover {
    background-color: #00c642;
}

.titlebar-button.close:hover::before {
    width: 6px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.5);
}

.menu-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 22px;
    display: block;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    padding: 3px;
}

.hamburger {
    width: 24px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-left: 3px;
    position: absolute;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* Hamburger to X transformation */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Sidebar styles */
.sidebar {
    width: 200px;
    background-color: rgba(42, 42, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(58, 58, 58, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 0;
    position: fixed;
    left: -200px;
    height: 100%;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
}

.sidebar.active {
    left: 0;
}

.sidebar-top {
    display: flex;
    justify-content: center;
    padding: 20px 0 10px 0;
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #3a3a3a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: #777;
    animation: pulse 2s infinite ease-in-out;
    margin-bottom: 5px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(242, 94, 94, 0.4);
    }
    
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(242, 94, 94, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(242, 94, 94, 0);
    }
}

.sidebar-bottom {
    padding: 10px 15px;
    background-color: transparent;
}

.sidebar-title {
    color: rgba(153, 153, 153, 0.9);
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    color: rgba(204, 204, 204, 0.9);
    background-color: transparent;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    background-color: rgba(58, 58, 58, 0.5);
    color: rgb(242, 94, 94);
    text-shadow: 0 0 10px rgba(242, 94, 94, 0.7);
}

.sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    margin-left: 0;
    transition: margin-left 0.3s ease-in-out;
}

.main-content.sidebar-active {
    margin-left: 200px;
}

.bio-container {
    width: 95%;
    margin: 40px auto;
    padding: 0;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1in; /* 1 inch spacing between boxes */
}

/* Add glowing line between boxes */
.bio-container::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 39%;  /*/*Start below the first box */
    height: 22%; /* Line spans part of the container height */
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(242, 94, 94, 0.7),
        rgba(242, 94, 94, 1),
        rgba(242, 94, 94, 0.7)
    );
    transform: translateX(-50%);
    box-shadow: 0 0 10px 2px rgba(242, 94, 94, 0.5);
    z-index: 1;
}

/* Add circle in the middle of the line */
.bio-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: rgb(242, 94, 94);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px 5px rgba(242, 94, 94, 0.7);
    z-index: 2;
    animation: pulseCircle 2s infinite ease-in-out;
}

@keyframes pulseCircle {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px 5px rgba(242, 94, 94, 0.7);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 20px 8px rgba(242, 94, 94, 0.9);
    }
}

.bio-box {
    width: calc(100% - 0.1in);
    padding: 30px;
    border: 1px solid rgba(242, 94, 94, 0.2);
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

.bio-box::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    height: 400%;
    width: 400%;
    background: conic-gradient(
        transparent, 
        transparent, 
        transparent, 
        rgb(242, 94, 94),
        transparent, 
        transparent, 
        transparent
    );
    animation: glowingBorder 4s linear infinite;
    z-index: -1;
}

.bio-box::after {
    content: '';
    position: absolute;
    inset: 2px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    z-index: -1;
}

@keyframes glowingBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bio-box:hover {
    box-shadow: 0 0 20px rgba(242, 94, 94, 0.3);
}

.bio-box:nth-child(odd) {
    order: 2; /* Right side */
}

.bio-box:nth-child(even) {
    order: 1; /* Left side */
}

.bio-text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    letter-spacing: 0.3px; 
    color: #e0e0e0;
    margin-bottom: 0;
    width: 100%;
    height: fit-content;
    text-align: justify;
}

/* Process each word for hover effect */
.bio-word {
    transition: color 0.3s ease, text-shadow 0.3s ease;
    cursor: default;
    display: inline-block;
}

.bio-word:hover {
    color: rgb(242, 94, 94);
    text-shadow: 0 0 8px rgba(242, 94, 94, 0.7);
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 2s ease-in-out forwards;
    animation-delay: 5s;
}

.splash-content {
    text-align: center;
    position: relative;
}

.splash-text-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.intro-text {
    font-size: 30px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    position: fixed;
    height: 78px;
    width: 100%;
    animation: fadeOut 1s ease-in-out forwards;
    animation-delay: 2.5s;
}

.scatter-letter {
    color: white;
    position: absolute;
    opacity: 0;
    display: inline-block;
    animation: scatterIn 1s forwards, simpleScatterFade 0.5s forwards;
    animation-delay: 0s, 3s;
    width: auto;
    text-align: center;
}

@keyframes scatterIn {
    0% {
        transform: translate(calc(100vw * var(--x, 0)), calc(100vh * var(--y, 0))) rotate(calc(var(--r, 0) * 360deg));
        opacity: 0;
    }
    100% {
        transform: translate(var(--final-x, 0), var(--final-y, 0)) rotate(0deg);
        opacity: 1;
    }
}

@keyframes simpleScatterFade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.light-ray {
    position: absolute;
    top: -400px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 800px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3));
    clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
    opacity: 0;
    transform-origin: top center;
    animation: 
        lightRayFlicker 0.8s ease-in-out forwards, 
        lightRayGrow 1.7s ease-in-out 0.8s forwards,
        simpleScatterFade 1s ease-in-out forwards 2.5s;
    z-index: 1;
    filter: blur(2px);
}

.light-oval {
    position: absolute;
    width: 1200px;
    height: 250px;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    animation: smoothOvalFadeIn 1.5s ease-in-out forwards, simpleScatterFade 1s ease-in-out forwards;
    animation-delay: 2.6s, 4.9s;
    z-index: 1;
    filter: blur(12px);
    font-size: clamp(340rem, 180vw, 12rem);
    font-size: clamp(8rem, 12vw, 14rem);
    letter-spacing: clamp(3px, 1.5vw, 10px);
    max-width: 85vw;
}

@keyframes smoothOvalFadeIn {
    0% { 
        opacity: 0; 
        transform: translateX(-50%) scale(0.7);
    }
    70% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.05);
    }
    100% { 
        opacity: 0.8; 
        transform: translateX(-50%) scale(1);
    }
}

.portfolio-text {
    color: rgb(242, 94, 94);
    font-size: 250px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bolder;
    letter-spacing: 49px;
    opacity: 0;
    position: absolute;
    transform: translateY(10px);
    text-shadow: 0 0 15px rgba(242, 94, 94, 0.7);
    animation: glowIn 2s ease-in-out forwards;
    animation-delay: 3.2s;
    margin-left: 7px;
    margin-bottom: 15px;
    z-index: 2;
    font-size: clamp(340rem, 180vw, 12rem);
    font-size: clamp(8rem, 12vw, 14rem);
    letter-spacing: clamp(3px, 1.5vw, 10px);
    max-width: 85vw;
}

@keyframes glowIn {
    0% { 
        opacity: 0;
        text-shadow: 0 0 0 rgba(242, 94, 94, 0); 
    }
    100% { 
        opacity: 1;
        text-shadow: 0 0 20px rgba(242, 94, 94, 0.8), 0 0 30px rgba(242, 94, 94, 0.6); 
    }
}

@keyframes fadeOut {
    0% { opacity: 1; visibility: visible; transform: none; }
    99% { opacity: 0; visibility: visible; transform: none; }
    100% { opacity: 0; visibility: hidden; transform: none; }
}

@keyframes lightRayFlicker {
    0% { opacity: 0; transform: translateX(-50%) scaleX(0.3) scaleY(0.5); }
    10% { opacity: 0.7; transform: translateX(-50%) scaleX(0.35) scaleY(0.55); }
    20% { opacity: 0.2; transform: translateX(-50%) scaleX(0.38) scaleY(0.58); }
    30% { opacity: 0.8; transform: translateX(-50%) scaleX(0.4) scaleY(0.6); }
    40% { opacity: 0.3; transform: translateX(-50%) scaleX(0.43) scaleY(0.62); }
    50% { opacity: 0.9; transform: translateX(-50%) scaleX(0.45) scaleY(0.64); }
    60% { opacity: 0.4; transform: translateX(-50%) scaleX(0.47) scaleY(0.66); }
    70% { opacity: 1; transform: translateX(-50%) scaleX(0.48) scaleY(0.68); }
    80% { opacity: 0.5; transform: translateX(-50%) scaleX(0.49) scaleY(0.69); }
    90% { opacity: 0.8; transform: translateX(-50%) scaleX(0.5) scaleY(0.69); }
    100% { opacity: 0.6; transform: translateX(-50%) scaleX(0.5) scaleY(0.7); }
}

@keyframes lightRayGrow {
    0% { opacity: 0.6; transform: translateX(-50%) scaleX(0.5) scaleY(0.7); }
    50% { opacity: 0.8; transform: translateX(-50%) scaleX(0.7) scaleY(0.85); }
    100% { opacity: 0.7; transform: translateX(-50%) scaleX(1) scaleY(1); }
}

@keyframes lightRayPulse {
    0% { opacity: 0.7; transform: translateX(-50%) scaleX(1) scaleY(1); }
    50% { opacity: 0.9; transform: translateX(-50%) scaleX(1.1) scaleY(1.05); filter: brightness(1.2); }
    100% { opacity: 0.7; transform: translateX(-50%) scaleX(1) scaleY(1); filter: brightness(1); }
}

.scattered-text {
    font-size: 48px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    margin: right -20px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
#E1{
    margin-left: 10px;
}
#l1{
    margin-left: 0px;
}

/* Remove all ray classes and their animations */
.random-light-rays, .ray, .ray1, .ray2, .ray3, .ray4, .ray5, .ray6-part1, .ray6-part2 {
    display: none;
}

@keyframes rayGrow {
    /* Empty to effectively remove this animation */
}

@keyframes diagonalRay {
    /* Empty to effectively remove this animation */
}

/* Skills Section */
#skills-section {
    margin-top: 80px;
    padding: 0 10px;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    transform: translateY(30px);
    transition: all 0.8s ease;
    width: 100%;
}


.section-header.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    
}

.section-line {
    position: relative;
    width: 200px;
    height: 4px;
    margin: 0 30px;
    background: rgba(242, 94, 94, 0.3);
    border-radius: 2px;
    overflow: hidden;
    display: block !important;
}

.section-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(242, 94, 94, 0),
        rgba(242, 94, 94, 0.8),
        rgba(242, 94, 94, 1),
        rgba(242, 94, 94, 0.8),
        rgba(242, 94, 94, 0)
    );
    box-shadow: 0 0 25px rgba(242, 94, 94, 0.9);
    animation: glowLine 2s linear infinite;
}

.section-line.left-line::before {
    animation-direction: reverse;
}

@keyframes glowLine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

#skills-title {
    font-size: 49px;
    font-weight: bold;
    font-family: 'Special Gothic Expanded One', sans-serif;
    color: white;
    position: relative;
    padding: 0 20px;
    margin: 0 30px;
    z-index: 1;
    letter-spacing: 6px;
}


#skills-title::before {
    right: 100%;
    animation: glowFromRight 2s linear infinite;
}

#skills-title::after {
    left: 100%;
    animation: glowFromLeft 2s linear infinite;
}

@keyframes glowFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes glowFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.skills-container.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s ease;
}

/* Skills category header */
.skills-category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    width: 100%;
}

.skills-container.visible .skills-category-header {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.category-line {
    display: none;
}

.left-line {
    margin-right: 15px;
}

.right-line {
    margin-left: 15px;
}

.category-title {
    font-size: 34px;
    font-weight: bold;
    font-family: 'Special Gothic Expanded One', sans-serif;
    color: white;
    position: relative;
    padding: 0 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.skill-category {
    flex: 0,1,300px;
    max-width: 400px;
    min-width: 200px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(242, 94, 94, 0.2);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
   
  }

.skill-category::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    height: 400%;
    width: 400%;
    background: conic-gradient(
        transparent, 
        transparent, 
        transparent, 
        rgb(242, 94, 94),
        transparent, 
        transparent, 
        transparent
    );
    animation: glowingBorder 4s linear infinite;
    z-index: -1;
}

.skill-category::after {
    content: '';
    position: absolute;
    inset: 2px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    z-index: -1;
}

@keyframes glowingBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Ensure responsiveness */
@media (max-width: 768px) {
    .skills-container {
        margin-left: 0;
        margin-right: 0;
        padding: 0 10px;
        flex-direction: column; /* Stack boxes vertically on small screens */
        align-items: center; /* Center boxes in column layout */
    }
    .skill-category {
        width: 100%;
        max-width: 350px;
    }
}
.skill-category:hover {
    box-shadow: 0 0 20px rgba(242, 94, 94, 0.3);
    transform: translateY(-5px);
}

.skill-category-title {
    color: rgb(242, 94, 94);
    font-size: 22px;
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
   
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(242, 94, 94, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: relative;
    overflow: visible;
}

.skill-item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(242, 94, 94, 0), 
        rgba(242, 94, 94, 0.3), 
        rgba(242, 94, 94, 0.7), 
        rgba(242, 94, 94, 1), 
        rgba(242, 94, 94, 0.7), 
        rgba(242, 94, 94, 0.3), 
        rgba(242, 94, 94, 0)
    );
    transition: width 0.5s ease;
    z-index: 1;
}

.skill-item:hover::before {
    width: 100%;
}

.skill-item.skill-visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-item.skill-visible::before {
    width: 100%;
    transition-delay: 0.9s;
}

.skill-name {
    color: white;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding-right: 20px;
    margin-right:20px;
}

.skill-level {
    color: rgb(242, 94, 94);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.8px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
    padding: 4px 10px;
    border: 1px solid rgb(242, 94, 94);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(242, 94, 94, 0.5), inset 0 0 4px rgba(242, 94, 94, 0.3);
    background-color: rgba(242, 94, 94, 0.05);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 8px rgba(242, 94, 94, 0.5), inset 0 0 4px rgba(242, 94, 94, 0.3);
    }
    50% {
        box-shadow: 0 0 12px rgba(242, 94, 94, 0.7), inset 0 0 6px rgba(242, 94, 94, 0.5);
    }
    100% {
        box-shadow: 0 0 8px rgba(242, 94, 94, 0.5), inset 0 0 4px rgba(242, 94, 94, 0.3);
    }
}

.expert-level {
    color: rgb(94, 156, 242);
    font-weight: 600;
    border-color: rgb(94, 156, 242);
    box-shadow: 0 0 8px rgba(94, 156, 242, 0.5), inset 0 0 4px rgba(94, 156, 242, 0.3);
    background-color: rgba(94, 156, 242, 0.05);
    animation: pulseGlowExpert 2s infinite;
}

@keyframes pulseGlowExpert {
    0% {
        box-shadow: 0 0 8px rgba(94, 156, 242, 0.5), inset 0 0 4px rgba(94, 156, 242, 0.3);
    }
    50% {
        box-shadow: 0 0 12px rgba(94, 156, 242, 0.7), inset 0 0 6px rgba(94, 156, 242, 0.5);
    }
    100% {
        box-shadow: 0 0 8px rgba(94, 156, 242, 0.5), inset 0 0 4px rgba(94, 156, 242, 0.3);
    }
}

.visible .skill-level {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.skill-name i {
    font-size: 18px;
    width: 24px;
    margin-right: 8px;
    color: rgb(242, 94, 94);
    text-shadow: 0 0 5px rgba(242, 94, 94, 0.4);
}

/* Remove the old skill bar styles that we're not using anymore */
.skill-bar, .skill-progress {
    display: none;
}

.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Tools Section */
#tools-section {
    margin-top: 80px;
    padding: 0 20px;
    position: relative;
}

#tools-title {
    font-size: 45px;
    font-weight: bold;
    font-family: 'Special Gothic Expanded One', sans-serif;
    color: white;
    position: relative;
    padding: 0 20px;
    margin: 0 30px;
    z-index: 1;
    letter-spacing: 6px;
}

#tools-title::before,
#tools-title::after {
    display: none;
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    margin-left: 4px;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    max-width: 800px;
    margin-left:123px;
}

.tools-container.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 25px 5px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(242, 94, 94, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
}

.tool-item.tool-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.tool-item:hover .tool-icon {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(242, 94, 94, 0.7);
    color: rgb(242, 94, 94);
}

.tool-item:hover .tool-name {
    transform: scale(1.05);
    color: rgb(242, 94, 94);
    text-shadow: 0 0 10px rgba(242, 94, 94, 0.5);
    font-weight: 600;
}

.tool-icon {
    font-size: 50px;
    color: rgb(242, 94, 94);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(242, 94, 94, 0.3);
    transition: all 0.3s ease;
}

.tool-name {
    font-size: 16px;
    font-weight: 500;
    color: white;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Light streak under skill items */
.light-streak {
    position: relative;
    overflow: visible !important;
}

.light-streak::after {
    content: '';
    position: absolute;
    left: 2%;
    bottom: -3px;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(242, 94, 94, 0), 
        rgba(242, 94, 94, 0.3), 
        rgba(242, 94, 94, 0.7), 
        rgba(242, 94, 94, 1), 
        rgba(242, 94, 94, 0.7), 
        rgba(242, 94, 94, 0.3), 
        rgba(242, 94, 94, 0)
    );
    z-index: 1;
    box-shadow: 0 0 8px rgba(242, 94, 94, 0.6);
    opacity: 0;
    transform: scaleX(0.3);
    transform-origin: center;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.skill-item.skill-visible.light-streak::after {
    opacity: 1;
    transform: scaleX(1);
    transition-delay: 0.3s;
}

/* Special color for expert skills */
.light-streak .expert-level ~ .light-streak::after {
    background: linear-gradient(90deg, 
        rgba(94, 156, 242, 0), 
        rgba(94, 156, 242, 0.3), 
        rgba(94, 156, 242, 0.7), 
        rgba(94, 156, 242, 1), 
        rgba(94, 156, 242, 0.7), 
        rgba(94, 156, 242, 0.3), 
        rgba(94, 156, 242, 0)
    );
    box-shadow: 0 0 19px rgba(94, 156, 242, 0.6);
}

.tool-item-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.tool-item-link:hover .tool-item {
    transform: scale(1.1) translateY(-10px) !important;
    box-shadow: 0 15px 25px rgba(242, 94, 94, 0.3);
    border-color: rgba(242, 94, 94, 0.7);
    background-color: rgba(0, 0, 0, 0.5);
}

/* Education Section */
#education {
    margin-top: 80px;
    padding: 0 20px;
    position: relative;
}

#education-title {
    font-size: 45px;
    font-weight: bold;
    font-family: 'Special Gothic Expanded One', sans-serif;
    color: white;
    position: relative;
    padding: 0 150px;
    letter-spacing: 6px;
}

#education-title::before,
#education-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(242, 94, 94, 0),
        rgba(242, 94, 94, 0.8),
        rgba(242, 94, 94, 1),
        rgba(242, 94, 94, 0.8),
        rgba(242, 94, 94, 0)
    );
    box-shadow: 0 0 10px rgba(242, 94, 94, 0.5);
}

#education-title::before {
    left: 20px;
    animation: moveRight 2s infinite;
}

#education-title::after {
    right: 20px;
    animation: moveLeft 2s infinite;
}

@keyframes moveRight {
    0% {
        transform: translateX(0) scaleX(1);
        opacity: 0;
    }
    50% {
        transform: translateX(40px) scaleX(1.2);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scaleX(1);
        opacity: 0;
    }
}

@keyframes moveLeft {
    0% {
        transform: translateX(0) scaleX(1);
        opacity: 0;
    }
    50% {
        transform: translateX(-40px) scaleX(1.2);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scaleX(1);
        opacity: 0;
    }
}

.education-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.education-container.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.education-item {
    display: block;
    position: relative;
    padding: 0 20px 30px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.education-item.education-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.education-item::before {
    display: none;
}

.education-content {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(242, 94, 94, 0.2);
    border-radius: 10px;
    padding: 20px 25px 35px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    margin-bottom: 25px;
    overflow: hidden;
}

/* Glowing light streak for education boxes */
.education-content::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    height: 400%;
    width: 400%;
    background: conic-gradient(
        transparent, 
        transparent, 
        transparent, 
        rgb(242, 94, 94),
        transparent, 
        transparent, 
        transparent
    );
    animation: glowingEducationBorder 6s linear infinite;
    z-index: -1;
    display-none;
}

.education-content::after {
    content: '';
    position: absolute;
    inset: 2px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    z-index: -1;
}

@keyframes glowingEducationBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.education-content:hover {
    box-shadow: 0 0 20px rgba(242, 94, 94, 0.4);
}

.education-year-right {
    position: absolute;
    top: 5px;
    right: 25px;
    color: rgb(242, 94, 94);
    font-weight: 600;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 5px 12px;
    border-radius: 5px;
    border: 1px solid rgba(242, 94, 94, 0.2);
}

.college-logo {
    width: 140px;
    height: auto;
    display: block;
    margin: 15px 0 5px;
    filter: grayscale(20%) brightness(1.2);
    transition: all 0.3s ease;
    max-height: 80px; /* Ensure consistent height */
    object-fit: contain; /* Preserve aspect ratio */
}

.logo-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    width: fit-content;
    margin-bottom: 10px;
}

.logo-link:hover .college-logo {
    filter: grayscale(0%) brightness(1.3);
    transform: scale(1.05);
}

.logo-link:focus {
    outline: 2px solid rgba(242, 94, 94, 0.6);
    border-radius: 4px;
}

.education-degree {
    color: white;
    font-size: 20px;
    margin-bottom: 5px;
}

.education-school {
    color: rgb(242, 94, 94);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.education-description {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Education light streak and pulsing circle */
.education-divider {
    position: relative;
    width: 100%;
    height: 100px;
    margin: -90px 0px -40px;
    z-index: 1;
}

.education-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(242, 94, 94, 0.7),
        rgba(242, 94, 94, 1),
        rgba(242, 94, 94, 0.7)
    );
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px 2px rgba(242, 94, 94, 0.5);
    z-index: 1;
    animation: glowingEducationLine 6s linear infinite;
}

.education-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: rgb(242, 94, 94);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px 5px rgba(242, 94, 94, 0.7);
    z-index: 2;
    animation: glowingEducationCircle 6s linear infinite;
}

@keyframes glowingEducationLine {
    0% {
        box-shadow: 0 0 10px 2px rgba(242, 94, 94, 0.5);
    }
    50% {
        box-shadow: 0 0 20px 4px rgba(242, 94, 94, 0.7);
    }
    100% {
        box-shadow: 0 0 10px 2px rgba(242, 94, 94, 0.5);
    }
}

@keyframes glowingEducationCircle {
    0% {
        box-shadow: 0 0 15px 5px rgba(242, 94, 94, 0.7);
    }
    50% {
        box-shadow: 0 0 25px 7px rgba(242, 94, 94, 0.9);
    }
    100% {
        box-shadow: 0 0 15px 5px rgba(242, 94, 94, 0.7);
    }
}

/* Status indicator styles */
.status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 4px 0;
    background-color: transparent;
}

.status-label {
    color: rgba(204, 204, 204, 0.9);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin-right: 5px;
}

.status-text {
    color: white;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin-right: 8px;
}

.status-orb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background-color: currentColor;
    box-shadow: 0 0 8px currentColor;
}

/* Status orb colors */
.status-online {
    color: #ffcc00; /* Yellow for online */
}

.status-busy {
    color: #ff3b30; /* Red for busy */
}

.status-idle {
    color: #8e8e93; /* Gray for idle */
}

/* Status text typing effect */
.status-text.typing::after {
    content: '|';
    animation: blink 1s infinite;
}

/* Projects Section Styles */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 75px;
    width: 100%;
    margin-top: 25px;
    position: relative;
    z-index: 1;
    padding-top: 80px; /* Increased padding to make more room for the title */
}

.projects-subtitle {
    grid-column: 1 / -1;
    color: white;
    font-size: 46px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 0 8px rgba(242, 94, 94, 0.3);
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 60px; /* Add padding for the lines */
    line-height: 1.2;
    height: auto;
    overflow: visible;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.projects-subtitle::before,
.projects-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(242, 94, 94, 0),
        rgba(242, 94, 94, 0.8),
        rgba(242, 94, 94, 1),
        rgba(242, 94, 94, 0.8),
        rgba(242, 94, 94, 0)
    );
    box-shadow: 0 0 10px rgba(242, 94, 94, 0.5);
}

.projects-subtitle::before {
    left: 0;
    animation: moveRight 2s infinite;
}

.projects-subtitle::after {
    right: 0;
    animation: moveLeft 2s infinite;
}

@keyframes moveRight {
    0% {
        transform: translateX(0) scaleX(1);
        opacity: 0;
    }
    50% {
        transform: translateX(20px) scaleX(1.2);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scaleX(1);
        opacity: 0;
    }
}

@keyframes moveLeft {
    0% {
        transform: translateX(0) scaleX(1);
        opacity: 0;
    }
    50% {
        transform: translateX(-20px) scaleX(1.2);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scaleX(1);
        opacity: 0;
    }
}

.project-item {
    background: rgba(20, 20, 20, 0.7);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(89, 141, 250, 0.2);
    position: relative;
    overflow: hidden;
    margin-left: 175px;
    width: 90%;
    
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(89, 141, 250, 0.3);
}

.project-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(89, 141, 250, 0), rgba(89, 141, 250, 0.3), rgba(89, 141, 250, 0));
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 14px;
    animation: projectGlow 5s ease-in-out infinite;
}

@keyframes projectGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    position: relative;
    display: inline-block;
    
}

.project-title::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, rgba(89, 141, 250, 0.8), rgba(89, 141, 250, 0));
    left: 0;
    bottom: -4px;
}

.project-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 18px;
    line-height: 1.5;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(89, 141, 250, 0.15);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.tech-tag:hover {
    background: rgba(89, 141, 250, 0.3);
}

.tech-tag i {
    font-size: 14px;
}

.projects-subtitle span {
    display: inline-block;
    opacity: 0;
    animation: 
        fadeIn 0.5s ease-in forwards,
        colorChange 8s infinite;
    animation-delay: calc(var(--letter-index) * 0.3s + 1s);
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes colorChange {
    0%, 100% { color: #87CEEB; } /* light sky blue */
    12.5% { color: #ADD8E6; } /* light baby blue */
    25% { color: #4682B4; } /* soft medium blue */
    37.5% { color: #1E90FF; } /* vivid mid blue */
    50% { color: #8A2BE2; } /* muted violet-blue */
    62.5% { color: #9370DB; } /* muted violet-rose */
    75% { color: #FF0000; } /* red */
    87.5% { color: #FF1493; } /* deep rose red */
}

/* Individual letter color animations */
.projects-subtitle span:nth-child(1) { animation-delay: 1s; } /* P */
.projects-subtitle span:nth-child(2) { animation-delay: 1.3s; } /* r */
.projects-subtitle span:nth-child(3) { animation-delay: 1.6s; } /* o */
.projects-subtitle span:nth-child(4) { animation-delay: 1.9s; } /* j */
.projects-subtitle span:nth-child(5) { animation-delay: 2.2s; } /* e */
.projects-subtitle span:nth-child(6) { animation-delay: 2.5s; } /* c */
.projects-subtitle span:nth-child(7) { animation-delay: 2.8s; } /* t */
.projects-subtitle span:nth-child(8) { animation-delay: 3.1s; } /* s */

/* After all letters are visible, start the continuous color change */
.projects-subtitle span {
    animation: 
        fadeIn 0.5s ease-in forwards,
        colorChange 8s infinite;
    animation-delay: calc(var(--letter-index) * 0.3s + 1s), 3.5s;
}
/* ===== Footer Styles ===== */
footer {
   
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-family: Arial, sans-serif;
    margin-top: 60px;
    font-size: 0.95rem;
    
}

footer p {
    margin: 0;
    letter-spacing: 0.5px;
    height: -90px;
}
@media (max-width: 768px) {
    .bio-box {
        width: 100%;
        padding: 15px;
    }
    .skills-container,
    .tools-container {
        margin-left: 0;
        grid-template-columns: 1fr;
    }
    .project-item {
        margin-left: 0;
        width: 100%;
    }
    #about::before,
    #about::after {
        display: none; /* Hide decorative lines on small screens */
    }
}
/* Ensure body and main content are stable */
body {
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100vw;
    box-sizing: border-box;
}

.main-content {
    width: 100%;
    box-sizing: border-box;
    transition: none; /* Disable margin transitions during minimization */
}

/* Stabilize sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -200px;
    height: 100vh;
    transition: left 0.3s ease-in-out;
}

.sidebar.active {
    left: 0;
}

/* Prevent layout shifts in animated sections */
.skills-container,
.tools-container,
.education-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    align-content: center; /* Center multi-row content */
    width: 100%;
    max-width: 1200px;
    height: 100vh; /* Full viewport height */
    margin: 0 auto; /* Center container */
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Project items */
.project-item {
    flex: 0 -2 300px; /* Flexible width */
    max-width: 450px; /* Reasonable max width */
    min-width: 350px;
    padding: 5px;
    margin: 10px; /* Consistent spacing */
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(242, 94, 94, 0.2);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

/* Responsive design for smaller windows */
@media (max-width: 768px) {
    .bio-box {
        width: 100%;
        padding: 15px;
    }
    .skills-container,
    .tools-container {
        margin-left: 0;
        grid-template-columns: 1fr;
    }
    .project-item {
        margin-left: 0;
        width: 100%;
        
    }
    #about::before,
    #about::after {
        display: none;
    }
    .macos-window {
        width: 90%;
        margin: 20px auto;
    }
    .social-icons {
        justify-content:116px;
        margin-left: 0;
    }
}

/* Fix negative margins and heights */
footer p {
    height: auto !important; /* Override negative height */
}

h5 {
    height: auto; /* Fix negative height */
    margin-top: 20px;
    margin-bottom: 10px;
}
@media (max-width: 600px) {
    .projects-container {
        flex-direction: column;
    }
    .project-item {
        flex: 0 1 100%;
    }
}

