body {
    margin: 0;
    padding: 0;
    background-color: #0b0c10;
    color: #c5c6c7;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    text-align: justify;
}

/* Add shadow to all headers */
h1, h2, h3, h4, h5, h6 {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

canvas#spider-web {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.header {
    background: linear-gradient(to right, rgba(31, 40, 51, 0.8), rgba(11, 12, 16, 0.8));
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    position: relative;
}

.header-title {
    color: #66fcf1;
    font-size: 4em;
    margin-bottom: 0;
    display: inline-block;
    position: relative;
}

.blinking-cursor {
    font-weight: 100;
    font-size: 4em;
    width: 0.1em;
    color: #66fcf1;
    animation: blink 0.8s infinite;
}

.header-subtitle {
    font-size: 1.5em;
    color: #c5c6c7;
    margin-top: -10px;
    margin-bottom: 30px;
    animation: fadeIn 1.5s forwards 2s;
    opacity: 0;
}

.get-started-btn {
    background-color: #66fcf1;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    color: #0b0c10;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
    opacity: 0;
    animation: slideInRight 1.5s forwards 1.5s;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes slideInLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.navbar {
    background-color: #0b0c10;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    display: inline;
    margin: 0 15px;
}

.navbar a {
    color: inherit;
    text-decoration: none;
    font-size: 1.2em;
}

.navbar a:hover {
    text-decoration: underline;
}

.social-sidebar {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-sidebar a {
    color: #66fcf1;
    font-size: 1.5em;
    text-decoration: none;
    transition: color 0.3s;
    width: fit-content; /* Limit the clickable area to the size of the icon */
}

.social-sidebar a:hover i {
    color: #45a29e;
}

.social-sidebar i {
    display: block;
    padding: 5px;
    transition: color 0.3s;
}

/* Adjust background effect for mobile */
@media screen and (max-width: 768px) {
    .social-sidebar {
        background-color: rgba(255, 255, 255, 0.1); /* Different background effect on mobile */
    }
}

.content-container {
    margin: 20px;
    margin-left: 70px; /* Adds space for the social media sidebar */
    margin-right: 70px; /* Add right-side space */
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: calc(100% - 140px); /* Adjusted width to avoid horizontal scroll */
    flex-grow: 1;
}

/* Popup effect */
.popup {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.popup.show {
    opacity: 1;
    transform: translateY(0);
}

.info-box {
    background-color: rgba(31, 40, 51, 0.9);
    padding: 20px;
    margin: 10px 0;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.info-box h2 {
    background-color: #66fcf1;
    padding: 10px;
    border-radius: 0 30px 0 0;
    color: #0b0c10;
    display: inline-block;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.column {
    flex: 1;
    min-width: 250px;
    padding: 10px;
    box-sizing: border-box;
}

/* Updated internal boxes to place images on top */
.internal-box {
    background-color: #1f2833;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.internal-box img {
    margin-bottom: 10px;
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
}

.education-logo, .certification-logo, .skill-logo {
    width: 40px;
    height: 40px;
    object-fit: contain; /* Ensures images fit within their containers */
}

.info-box p, .info-box ul {
    margin: 0;
    padding: 10px;
    text-align: justify;
}

.info-box a {
    color: inherit;
    text-decoration: none;
}

#contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(31, 40, 51, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #c5c6c7;
    border-radius: 5px;
    background-color: #1f2833;
    color: #c5c6c7;
}

#contact-form button {
    background-color: #66fcf1;
    color: #0b0c10;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: #45a29e;
}

.loading-blocks {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: #0b0c10;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.loading-blocks .block {
    width: 15px;
    height: 15px;
    background-color: #66fcf1;
    margin: 0 5px;
    animation: bounce 1s infinite;
}

.loading-blocks .block:nth-child(2) { animation-delay: 0.1s; }
.loading-blocks .block:nth-child(3) { animation-delay: 0.2s; }
.loading-blocks .block:nth-child(4) { animation-delay: 0.3s; }
.loading-blocks .block:nth-child(5) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.footer {
    background-color: #1f2833;
    padding: 5px 0;
    text-align: center;
    color: #c5c6c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #c5c6c7;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 5px 20px;
}

.footer-left p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .row {
        flex-direction: column;
        gap: 10px;
    }
    .column {
        min-width: 100%;
    }
    .content-container {
        margin-left: 10px; /* Reduces left margin on small screens */
        margin-right: 10px; /* Adds right margin on small screens */
        max-width: 100%;
    }
}
