* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f5f5f5;
    transition: background-color 0.15s ease, color 0.15s ease;
}



.menu-toggle {
    width: 30px;
    height: 25px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:first-child {
    top: 0;
}

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

.menu-toggle span:last-child {
    bottom: 0;
}

.menu-open .menu-toggle span:first-child {
    transform: rotate(45deg);
    top: 11px;
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle span:last-child {
    transform: rotate(-45deg);
    bottom: 11px;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: white;
    padding: 2rem;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    position: fixed;
    height: 100vh;
    z-index: 1000; /* Add this line */
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 6rem; /* Add space for the theme switch */
}

.nav-profile {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-img {
    width: 150px; /* Increased from 120px */
    height: 150px; /* Increased from 120px */
    border-radius: 50%;
    margin-bottom: 1rem;
}

.nav-links {
    list-style: none;
    margin-bottom: 2rem; /* Add space after nav links */
}

.nav-links a {
    display: block;
    padding: 0.8rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease, font-variation-settings 0.3s ease;
    position: relative;
    overflow: hidden;
    font-variation-settings: 'wght' 400;
    transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    background-color: #f0f0f0;
    color: #000;
}

.nav-links a.active {
    font-variation-settings: 'wght' 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 4px;
    height: 100%;
    background-color: #333;
    transition: all 0.3s ease;
}

.content {
    margin-left: 280px;
    padding: 0; /* Remove padding from content container */
    flex: 1;
    scroll-behavior: smooth;
    overflow-y: auto; /* Changed from scroll */
    min-height: 100vh;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.hero {
    width: 100%;
    max-width: none;
    margin: 0;
    background-color: #f5f5f5;
    padding: 4rem;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.about-me {
    background: none;
    padding: 0;
    box-shadow: none;
}

.skills {
    margin-top: 2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
    
}

.tag {
    background-color: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.tag i {
    margin-right: 8px;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: white;
    margin-left: 280px;
    transition: all 0.2s ease;
    position: static; /* Changed from relative */
}

@media (max-width: 1085px) {
    .skill-tags {
        gap: 0.6rem;
        padding: 0 1rem;
        justify-content: center;
    }

    .tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        white-space: nowrap;
    }

    .sidebar {
        display: none;
    }

    .content {
        margin-left: 0;
        padding: 0;
        margin-bottom: 0; /* Remove footer spacing */
        scroll-snap-type: none;  /* Remove scroll snap on mobile */
    }

    .menu-button {
        display: block;
    }

    .mobile-theme-container {
        display: block;
    }

    .mobile-menu-footer .theme-switch {
        display: none;
    }

    footer {
        margin-left: 0;
        width: 100%;
        position: static; /* Ensure static positioning */
    }

    #about.hero {
        text-align: center;
        margin-top: 50px; /* Add top margin to avoid overlap with buttons */
    }

    #about .profile-mobile {
        display: block;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        margin: 0 auto 2rem;
    }


    .section, .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem 1rem;
        min-height: auto; /* Allow natural content height */
        scroll-snap-align: none;  /* Remove scroll snap points */
    }

    .section > *, .hero > * {
        max-width: 600px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .projects-grid {
        width: 90%;
        max-width: 600px;
        margin: 2rem auto;
    }

    .timeline {
        width: 90%;
        max-width: 600px;
        margin: 2rem auto;
    }

    .cv-content {
        width: 90%;
        max-width: 600px;
        margin: 0 auto;
    }

    .skill-tags {
        justify-content: center;
    }

    .project-card {
        text-align: center;
    }

    .project-tags {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero h1 {
        margin-top: 20px; /* Additional spacing for the title */
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -80%;
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1999;
}

.mobile-menu.active {
    left: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active + .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
}

.close-menu {
    position: absolute;
    top: 1rem;
    left: 1rem; /* Changed from right to left */
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.close-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    position: absolute;
    left: 0;
    top: 50%;
}

.close-menu span:first-child {
    transform: rotate(45deg);
}

.close-menu span:last-child {
    transform: rotate(-45deg);
}

.mobile-menu-header {
    padding: 2rem;
    text-align: center;
    color: #333;
}

.mobile-nav {
    padding: 2rem;
}

.mobile-nav .nav-links a {
    color: #333;
    font-size: 1.2rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-footer {
    margin-top: auto;
    padding: 2rem;
    text-align: center;
}

.dark-mode .mobile-title {
    color: white;
}

.dark-mode .mobile-menu {
    background: rgba(18, 18, 18, 0.98);
    transition: all 0.1s ease;
}

.dark-mode .mobile-menu-backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.dark-mode .close-menu span {
    background: #fff;
}

.dark-mode .mobile-menu-header,
.dark-mode .mobile-nav .nav-links a {
    color: #fff;
}

.dark-mode .mobile-nav .nav-links a {
    background: rgba(255, 255, 255, 0.1);
}

@media screen and (max-width: 1085px) {
    .sidebar {
        display: none;
    }

    #about.hero {
        text-align: center;
    }

    #about .profile-mobile {
        display: block;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        margin: 0 auto 2rem;
    }
}

/* ...existing code... */

.theme-switch {
    --toggle-size: 20px; /* Changed from 30px to 20px */
    /* ...existing theme switch properties... */
    margin: 3rem auto 0;  /* Increased top margin from 2rem to 3rem */
    display: block;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2rem;
    margin: 0;
}

.theme-switch.mobile-theme-switch {
    position: static;
    transform: none;
    margin: 0;
    --toggle-size: 15px;
}

.mobile-menu-footer .theme-switch {
    margin: 0 auto;
}

/* Remove the old switch styles since we're not using them anymore */
.switch,
.slider {
    display: none;
}

/* ...existing code... */

.section {
    width: 100%;
    max-width: none;
    margin: 0;
    background-color: #f5f5f5;
    padding: 4rem;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    transition: transform 0.1s ease, background-color 0.1s ease;
}

.project-link {
    margin-top: 1rem;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.1s ease;
}

.project-link:hover {
    color: #666;
}

.dark-mode .project-link {
    color: #fff;
}

.dark-mode .project-link:hover {
    color: #aaa;
}

.project-card h3 {
    margin-bottom: 1rem;
}

.project-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-card:hover {
    transform: translateY(-5px);
    transition: transform 0.1s ease, background-color 0.1s ease;
}

.timeline {
    margin-top: 2rem;
}

.timeline-item {
    padding: 1.5rem;
    border-left: 3px solid #f0f0f0;
    margin-bottom: 1.5rem;
    background-color: #ebebeb; /* Slightly darker than #f5f5f5 in light mode */
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dark-mode .timeline-item {
    border-left-color: #2d2d2d;
    background-color: #1e1e1e; /* Slightly lighter than #121212 in dark mode */
}

.cv-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cv-viewer {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cv-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.dark-mode .cv-viewer {
    background: #1e1e1e;
}

@media screen and (max-width: 1085px) {
    .cv-viewer {
        height: 400px;
    }
}

.cv-content {
    text-align: center;
    margin-top: 2rem;
}

.download-btn {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    transition: all 0.2s ease;
}

.cv-download a.download-btn {
    text-decoration: none;
    color: white;
}

.download-btn:hover {
    background-color: #444;
}

#projects {
    background-color: #f5f5f5;
}

#career {
    background-color: #f5f5f5;
}

#cv {
    background-color: #f5f5f5;
}

.section > *, .hero > * {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .sidebar {
    background-color: #1e1e1e;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    transition: all 0.1s ease;
}

.dark-mode .nav-links a {
    color: #ffffff;
}

.dark-mode .nav-links a:hover,
.dark-mode .nav-links a.active {
    background-color: #2d2d2d;
    color: #ffffff;
}

.dark-mode .section,
.dark-mode .hero,
.dark-mode section {
    background-color: #121212;
    color: #ffffff;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.dark-mode #projects,
.dark-mode #career,
.dark-mode #cv {
    background-color: #121212;
}

.dark-mode .project-card {
    background-color: #1e1e1e;
    transition: all 0.1s ease;
}

.dark-mode .tag {
    background-color: #2d2d2d;
    color: #ffffff;
    transition: all 0.1s ease;
}

.dark-mode .timeline-item {
    border-left-color: #2d2d2d;
    background-color: #1e1e1e; /* Slightly lighter than #121212 in dark mode */
}

.dark-mode footer {
    background-color: #1e1e1e;
    color: #ffffff;
    transition: all 0.1s ease;
}

.dark-mode .download-btn {
    background-color: #2d2d2d;
    transition: all 0.1s ease;
}

.dark-mode .download-btn:hover {
    background-color: #3d3d3d;
}

.dark-mode .mobile-menu {
    background: rgba(18, 18, 18, 0.98);
    transition: all 0.1s ease;
}

.dark-mode .close-menu span {
    background: #fff;
}

.dark-mode .mobile-menu-header,
.dark-mode .mobile-nav .nav-links a {
    color: #fff;
}

.dark-mode .mobile-nav .nav-links a {
    background: rgba(255, 255, 255, 0.1);
}

@media screen and (max-width: 480px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
    }

    .content {
        margin-left: 0;
        padding: 1rem;
    }

    .hero, .section {
        padding: 2rem 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .nav-profile {
        margin-bottom: 1rem;
    }

    .profile-img {
        width: 100px; /* Increased from 80px */
        height: 100px; /* Increased from 80px */
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media screen and (min-width: 481px) and (max-width: 1085px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .content {
        margin-left: 0;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



@media screen and (min-width: 1025px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1441px) {
    .section > *, .hero > * {
        max-width: 1200px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sidebar, .content, .hero, .section {
    transition: all 0.3s ease;
}

@supports (-webkit-touch-callout: none) {
    .content {
        -webkit-overflow-scrolling: touch;
    }
}

@media screen and (max-width: 1085px) {
    .dark-mode .sidebar {
        border-bottom: 1px solid #2d2d2d;
    }
}

/* Add social links styles */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.social-links a {
    color: #333;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    transition: all 0.1s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.dark-mode .social-links a {
    color: #ffffff;
    transition: all 0.1s ease;
}

/* Root level transitions - change from 0.2s to 0.15s */
body, 
.sidebar,
.mobile-menu,
.project-card,
.tag,
.nav-links a,
.download-btn,
footer,
.social-links a,
.section,
.hero,
.mobile-menu-backdrop,
.close-menu span {
    transition: all 0.15s ease;
}

/* Remove individual transition declarations from these selectors since they're now handled above */
/* ...existing code... */

/* You can remove any duplicate transition properties from the following selectors:
   .dark-mode .sidebar
   .dark-mode .mobile-menu
   .dark-mode .project-card
   .dark-mode .tag
   .dark-mode .nav-links a
   .dark-mode .download-btn
   .dark-mode footer
   .dark-mode .social-links a
   .dark-mode .section
   .dark-mode .hero
*/

/* ...existing code... */

/* ...existing code... */

.cv-preview {
    display: block;
    margin: 0 auto;
    width: 80%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.cv-preview:hover {
    transform: scale(1.02);
}

@media screen and (max-width: 1085px) {
    .cv-preview {
        width: 95%;
        max-width: none;
    }
}

/* ...existing code... */

.theme-switch {
    --toggle-size: 20px; /* Changed from 30px to 20px */
    /* the size is adjusted using font-size,
       this is not transform scale,
       so you can choose any size */
    --container-width: 5.625em;
    --container-height: 2.5em;
    --container-radius: 6.25em;
    /* radius 0 - minecraft mode :) */
    --container-light-bg: #3D7EAE;
    --container-night-bg: #1D1F2C;
    --circle-container-diameter: 3.375em;
    --sun-moon-diameter: 2.125em;
    --sun-bg: #ECCA2F;
    --moon-bg: #C4C9D1;
    --spot-color: #959DB1;
    --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
    --stars-color: #fff;
    --clouds-color: #F3FDFF;
    --back-clouds-color: #AACADF;
    --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
    --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2rem;
    margin: 0;
  }
  
  .theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: var(--toggle-size);
  }
  
  .theme-switch__container {
    width: var(--container-width);
    height: var(--container-height);
    background-color: var(--container-light-bg);
    border-radius: var(--container-radius);
    overflow: hidden;
    cursor: pointer;
    -webkit-box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
    box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
    position: relative;
  }
  
  .theme-switch__container::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    -webkit-box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
    box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
    border-radius: var(--container-radius)
  }
  
  .theme-switch__checkbox {
    display: none;
  }
  
  .theme-switch__circle-container {
    width: var(--circle-container-diameter);
    height: var(--circle-container-diameter);
    background-color: rgba(255, 255, 255, 0.1);
    position: absolute;
    left: var(--circle-container-offset);
    top: var(--circle-container-offset);
    border-radius: var(--container-radius);
    -webkit-box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-transition: var(--circle-transition);
    -o-transition: var(--circle-transition);
    transition: var(--circle-transition);
    pointer-events: none;
  }
  
  .theme-switch__sun-moon-container {
    pointer-events: auto;
    position: relative;
    z-index: 2;
    width: var(--sun-moon-diameter);
    height: var(--sun-moon-diameter);
    margin: auto;
    border-radius: var(--container-radius);
    background-color: var(--sun-bg);
    -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
    box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
    -webkit-filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
    filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
    overflow: hidden;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
  }
  
  .theme-switch__moon {
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    width: 100%;
    height: 100%;
    background-color: var(--moon-bg);
    border-radius: inherit;
    -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
    box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
    position: relative;
  }
  
  .theme-switch__spot {
    position: absolute;
    top: 0.75em;
    left: 0.312em;
    width: 0.75em;
    height: 0.75em;
    border-radius: var(--container-radius);
    background-color: var(--spot-color);
    -webkit-box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
    box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
  }
  
  .theme-switch__spot:nth-of-type(2) {
    width: 0.375em;
    height: 0.375em;
    top: 0.937em;
    left: 1.375em;
  }
  
  .theme-switch__spot:nth-last-of-type(3) {
    width: 0.25em;
    height: 0.25em;
    top: 0.312em;
    left: 0.812em;
  }
  
  .theme-switch__clouds {
    width: 1.25em;
    height: 1.25em;
    background-color: var(--clouds-color);
    border-radius: var(--container-radius);
    position: absolute;
    bottom: -0.625em;
    left: 0.312em;
    -webkit-box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
    box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
    -webkit-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
    -o-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
    transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  }
  
  .theme-switch__stars-container {
    position: absolute;
    color: var(--stars-color);
    top: -100%;
    left: 0.312em;
    width: 2.75em;
    height: auto;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
  }
  
  /* actions */
  
  .theme-switch__checkbox:checked + .theme-switch__container {
    background-color: var(--container-night-bg);
  }
  
  .theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
    left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
  }
  
  .theme-switch__circle-container:hover {
    left: calc(var(--circle-container-offset) + 0.187em);
  }
  
  .theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover {
    left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em)
  }
  
  .theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon {
    -webkit-transform: translate(0);
    -ms-transform: translate(0);
    transform: translate(0);
  }
  
  .theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds {
    bottom: -4.062em;
  }
  
  .theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }

/* ...existing code... */

.menu-button {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    width: 35px;
    height: 35px;
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    margin: 4px 0;
    transition: all 0.2s ease;
}

.dark-mode .menu-button {
    background: #1e1e1e;
}

.dark-mode .menu-button span {
    background: #fff;
}

@media (max-width: 1085px) {
    .menu-button {
        display: block;
    }
    
    /* ...existing mobile styles... */
}

/* ...existing code... */

/* ...existing code... */

.mobile-theme-container {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.mobile-theme-container .theme-switch {
    position: static;
    transform: none;
    --toggle-size: 12px;  /* Make it smaller */
}

@media (max-width: 1085px) {
    .mobile-theme-container {
        display: block;
    }
    
    .mobile-menu-footer .theme-switch {
        display: none;  /* Hide theme switch in mobile menu */
    }
}

.container-download {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .label-download {
    background-color: transparent;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    border-radius: 50px;
    width: 160px;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 5px;
    position: relative;
    font-family: 'Outfit', sans-serif;  /* Added site font */
  }
  
  .dark-mode .label-download {
    border-color: #fff;
  }
  
  .label-download::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    width: 8px;
    height: 8px;
    transition: all 0.4s ease;
    border-radius: 100%;
    margin: auto;
    opacity: 0;
    visibility: hidden;
  }
  
  .label-download .input {
    display: none;
  }
  
  .label-download .title-download {
    font-size: 17px;
    color: #333;
    transition: all 0.4s ease;
    position: absolute;
    right: 20px; /* Changed from left: 50% to right positioning */
    bottom: 50%;
    transform: translateY(50%); /* Only transform Y axis */
    text-align: center;
    width: 85px; /* Slightly reduced width */
    font-family: 'Outfit', sans-serif;
  }
  
  .dark-mode .label-download .title-download {
    color: #fff;
  }
  
  .label-download .title-download:last-child {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%);
    bottom: 50%;
    width: 85px;
  }
  
  .label-download .circle {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
  }
  
  .dark-mode .label-download .circle {
    background-color: #fff;
  }
  
  .label-download .circle .icon {
    color: #fff;
    width: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
  }
  
  .dark-mode .label-download .circle .icon {
    color: #333;
  }
  
  .label-download .circle .square {
    aspect-ratio: 1;
    width: 15px;
    border-radius: 2px;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
  }
  
  .label-download .circle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    background-color: #1a1a1a;
    width: 100%;
    height: 0;
    transition: all 0.4s ease;
  }
  
  .dark-mode .label-download .circle::before {
    background-color: #e6e6e6;
  }
  
  .label-download:has(.input:checked) {
    width: 57px;
    animation: installed 0.4s ease 3.5s forwards;
  }
  
  .label-download:has(.input:checked)::before {
    animation: rotate 3s ease-in-out 0.4s forwards;
  }
  
  .label-download .input:checked + .circle {
    animation:
      pulse 1s forwards,
      circleDelete 0.2s ease 3.5s forwards;
    rotate: 180deg;
  }
  
  .label-download .input:checked + .circle::before {
    animation: installing 3s ease-in-out forwards;
  }
  
  .label-download .input:checked + .circle .icon {
    opacity: 0;
    visibility: hidden;
  }
  
  .label-download .input:checked ~ .circle .square {
    opacity: 1;
    visibility: visible;
  }
  
  .label-download .input:checked ~ .title-download {
    opacity: 0;
    visibility: hidden;
  }
  
  .label-download .input:checked ~ .title-download:last-child {
    animation: showInstalledMessage 0.4s ease 3.5s forwards;
  }
  
  @keyframes pulse {
    0% {
      scale: 0.95;
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
      scale: 1;
      box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
    }
    100% {
      scale: 0.95;
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
  }
  
  @keyframes installing {
    from {
      height: 0;
    }
    to {
      height: 100%;
    }
  }
  
  @keyframes rotate {
    0% {
      transform: rotate(-90deg) translate(27px) rotate(0);
      opacity: 1;
      visibility: visible;
    }
    99% {
      transform: rotate(270deg) translate(27px) rotate(270deg);
      opacity: 1;
      visibility: visible;
    }
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }
  
  @keyframes installed {
    100% {
      width: 150px;
      border-color: #28a745;
    }
  }
  
  @keyframes circleDelete {
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }
  
  @keyframes showInstalledMessage {
    100% {
      opacity: 1;
      visibility: visible;
      left: 50%;
      bottom: 50%;
      transform: translate(-50%, 50%);
    }
  }



/* ...existing code... */

@media screen and (max-width: 350px) {
    #about.hero {
        padding-top: 4rem; /* Add extra padding at the top */
    }
    
    .hero h1 {
        margin-top: 1rem; /* Add some margin to the title */
    }

    .mobile-theme-container {
        right: 0.5rem; /* Adjust theme switch position */
    }

    .menu-button {
        left: 0.5rem; /* Adjust menu button position */
    }
}

/* ...existing code... */

/* ...existing code... */

.location {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.dark-mode .location {
    color: #aaa;
}

/* ...existing code... */

/* Fade in animation for sections */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide in animation for cards */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to elements */
.hero > * {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.hero h1 { animation-delay: 0.2s; }
.hero .subtitle { animation-delay: 0.4s; }
.hero .about-me { animation-delay: 0.6s; }
.hero .social-links { animation-delay: 0.8s; }
.hero .skills { animation-delay: 1s; }

.project-card {
    animation: slideIn 0.6s ease-out forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced hover effects */
.nav-links a {
    /* ...existing styles... */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    /* ...existing styles... */
    transform: translateX(5px);
}

.project-card {
    /* ...existing styles... */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    /* ...existing styles... */
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.social-links a {
    /* ...existing styles... */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    /* ...existing styles... */
    transform: translateY(-5px) scale(1.1);
}

/* Responsive animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ...existing code... */

/* Updated scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform; /* Optimize performance */
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for elements */
.scroll-animate.active.delay-1 { transition-delay: 0.1s; }
.scroll-animate.active.delay-2 { transition-delay: 0.2s; }
.scroll-animate.active.delay-3 { transition-delay: 0.3s; }
.scroll-animate.active.delay-4 { transition-delay: 0.4s; }

/* Reset delays when not active */
.scroll-animate:not(.active) {
    transition-delay: 0s;
}

/* Disable animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        transition: none;
        opacity: 1;
        transform: none;
    }
}



/* Hero Section Animations */
.hero-animate {
    opacity: 0;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-down {
    animation-name: fadeInDown;
    animation-delay: 0.2s;
}

.fade-up {
    animation-name: fadeInUp;
    animation-delay: 0.4s;
}

.fade-in {
    animation-name: fadeIn;
    animation-delay: 0.6s;
}

.fade-in-delayed {
    animation-name: fadeIn;
    animation-delay: 0.8s;
}

.slide-in {
    animation-name: slideInRight;
    animation-delay: 1s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover animations for social links */
.social-links a {
    transform: translateY(0);
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Skill tags hover effect */
.skill-tags .tag {
    transform: translateY(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-tags .tag:hover {
    transform: translateY(-3px);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-animate {
        animation: none;
        opacity: 1;
    }
    
    .social-links a:hover,
    .skill-tags .tag:hover {
        transform: none;
    }
}

.contact-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    padding-top: 1rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.dark-mode .contact-info p {
    color: #aaa;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    width: 100%;
}

.contact-item i {
    color: #3D7EAE;
    font-size: 1.2rem;
    width: 20px; /* Fixed width for icons */
    text-align: center; /* Center the icon */
}

.contact-item span {
    flex: 1;
    text-align: left; /* Align text to the left */
}

@media screen and (max-width: 768px) {
    .contact-details {
        align-items: center;
        width: 100%;
        max-width: 400px; /* Limit width on mobile */
        margin: 1.5rem auto 0; /* Center horizontally */
    }
    
    .contact-item {
        width: 100%;
        justify-content: flex-start; /* Align items to the left */
        padding: 0 1rem; /* Add some padding on mobile */
    }
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    margin-top: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: inherit;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    padding-top: 1.2rem;
}

.form-group label {
    position: absolute;
    left: 0.8rem;
    top: 1rem;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
    padding: 0 0.4rem;
    background-color: transparent;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-1.7rem);
    font-size: 0.8rem;
    color: #3D7EAE;
    background-color: var(--bg-color);
}

.dark-mode .form-group input:focus + label,
.dark-mode .form-group textarea:focus + label,
.dark-mode .form-group input:not(:placeholder-shown) + label,
.dark-mode .form-group textarea:not(:placeholder-shown) + label {
    background-color: #121212;
}

/* Add a CSS variable for background color */
:root {
    --bg-color: #f5f5f5;
}

.dark-mode {
    --bg-color: #121212;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

/* Contact section spacing adjustments */
.contact-content {
    gap: 3rem;
    padding: 1rem;
}

@media screen and (max-width: 768px) {
    .contact-content {
        padding: 0;
    }
    
    .form-group {
        width: 100%;
    }
}

/* Submit Button */
.submit-btn {
    margin-top: 1.5rem;
    position: relative;
    padding: 0.8rem 2rem;
    background: #3D7EAE;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif; /* Add site font */
}

.submit-text {
    position: relative;
    z-index: 1;
    font-family: 'Outfit', sans-serif; /* Add site font */
}

.submit-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
}

.submit-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    transition: width 2s ease;
}

.submit-btn.loading .submit-progress {
    width: 100%;
}

.submit-btn.success .submit-text {
    opacity: 0;
}

.submit-btn.success .submit-success {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }
}

/* Education Section Styles */
.education-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.university-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #3D7EAE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.university-icon i {
    font-size: 1.5rem;
}

.education-info {
    flex: 1;
}

.education-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.education-info p {
    margin: 0.25rem 0;
    color: #666;
}

.education-info h4 {
    color: #3D7EAE;
    margin: 0.5rem 0;
}

/* Dark mode styles */
.dark-mode .university-icon {
    background-color: #5CA1D5;
}

.dark-mode .education-info p {
    color: #aaa;
}

.dark-mode .education-info h4 {
    color: #5CA1D5;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    .education-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .university-icon {
        margin-bottom: 0.5rem;
    }
}





.cv-preview {
    width: 100%;
    height: 800px; /* Set a fixed height for the PDF viewer */
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media screen and (max-width: 1085px) {
    .cv-preview {
        height: 500px; /* Smaller height on mobile */
    }
}


