/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f0f0f0; /* Light mode background color */
    transition: background-color 0.3s ease;
    overflow-x: hidden; /* Hide horizontal scrollbar */
    display: flex;
    min-height: 100vh;
}

/* Dark mode styles */
.dark-mode {
    background-color: #333; /* Dark mode background color */
    color: #fff; /* Dark mode text color */
    transition: background-color 0.3s ease, color 0.3s ease; /* Transition for dark mode */
}

/* Sidebar styles */
.sidebar {
    width: 30%; /* Adjust width to 30% of the main page */
    background-color: #f4f4f4;
    padding: 20px;
    padding-top: 60px; /* Add padding to the top to create space for the navigation pane */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    position: fixed;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left the contents horizontally */
    justify-content: center; /* Align contents to the top */
    transition: background-color 0.3s, color 0.3s;
   overflow: auto;
}

.sidebar img {
    width: 80%;
    border-radius: 50%;
    display: block;
    margin: 10px; /* Adjusted margin for more space around the photo */
    animation: flyForward 1s ease-out forwards;
}

.sidebar p, .sidebar ul, .sidebar li {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: flex-start; /*Left the text */
    animation: flyForward 2s ease-out forwards;
}

#about-me h2 {
    animation: colorchange 8s infinite;
    text-align: center ;
}


.sidebar a {
    text-decoration: none;
    color: #333;
}

.sidebar section {
    margin-bottom: 10px;
    width: 100%; /* Make sections take full width of the sidebar */
}

main p {
    animation: flyForward 1s ease-out forwards;
}

main li {
    animation: flyForward 1s ease-out forwards;
}

/* Dark mode sidebar */
.dark-mode .sidebar {
    background-color: #444;
    color: #f4f4f4;
}

.dark-mode .sidebar a {
    color: #f4f4f4;
}

/* Header styles */
header {
    background-color: #007bff; /* Header background color */
    padding: 10px 20px; /* Add padding to increase clickable area */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure header is above other content */
    display: flex;
    justify-content: flex-end; /* Align content to the right */
    align-items: flex-start;
}

nav {
    margin-left: 20px; /* Add gap from the left side */
}

nav ul {
    list-style-type: none;
    display: flex;
    align-items: flex-start;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #8b008b; /* Hover color */
}

#contact a:hover {
    color: #007bff;
}

/* Main styles */
main {
    flex: 1;
    margin: 80px 20px 50px calc(30% + 40px); /* Adjust margin to account for fixed header and sidebar */
    padding: 20px; /* Add padding for content */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Add spacing between headers */
h1, h2, h4, h5, h6 {
    margin-top: 20px; /* Space above headers */
    animation: typing 3s steps(40, end), colorchange 8s infinite;
}
.typewriter {
    overflow: hidden; /* Ensures text doesn't overflow */
    display: inline-block; /* Displays the text inline */
    white-space: nowrap; /* Prevents wrapping */
}

/* Typewriter effect */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Keyframes for flying forward animation */
@keyframes flyForward {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes colorchange {
    0% {
        color: #8a2be2; /* Dark Magenta */
    }
    25% {
        color: #9400d3; /* Dark Violet */
    }
    50% {
        color: #8a2be2; /* Blue Violet */
    }
    75% {
        color: #9370db; /* Medium Purple */
    }
    100% {
        color: #8a2be2; /* Dark Magenta */
    }
}


/* Footer styles */
footer {
    text-align: flex-start;
    margin-top: 20px;
}

#dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px; /* Position at the bottom right */
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#dark-mode-toggle:hover {
    background-color: #555;
}

/* Media query for tablets and smaller devices */
@media (max-width: 1024px) {
    .sidebar {
        display: none; /* Hide sidebar on tablets and smaller devices */
    }

    main {
        margin: 80px 20px 50px 20px; /* Adjust margin to 20px on all sides for mobile */
        width: calc(100% - 40px); /* Full width minus padding */
    }

    header {
        justify-content: space-between; /* Space out header content */
    }

    nav ul {
        justify-content: space-around; /* Space out navigation links */
    }
}

@media (min-width: 1025px) {
    #intro {
        display: none; /* Hide intro section on desktop devices */
    }

    #contactme {
        display: none;
    }
}
 /* Styling for image tooltip */
 .project-details a {
    position: relative;
    display: inline-block;
}
.project-details a .image-tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: flex-start;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;

}
.experience-list {
    list-style-type: decimal;
    padding-left: 30px;  /* more space for numbers */
    font-size: 16px;     /* increase base size */
}

.experience-list li::marker {
    font-weight: bold;   /* make numbers bold */
    font-size: 20px;     /* make numbers larger */
    color: #000;         /* solid black for emphasis */
}

ul li {
    list-style-type: disc;   /* standard filled bullet */
    margin-left: auto;       /* consistent spacing */
}

/* Light mode */
.experience-list li::marker,
.experience-list ul li::marker {
    color: #000;
}

/* Dark mode */
.dark-mode .experience-list li::marker,
.dark-mode .experience-list ul li::marker {
    color: #fff;
}






























