
body, html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: var(--base-color);
    color: var(--textc-color);
    transition: background-color 1s ease,colors 1s ease;
}

:root{
    --base-color: #ffffff;
    --textc-color: #2d3436;
    --secon-color: #fab1a0;
    --accent-color: #6c5ce7;
}
body.darkmode{
  --base-color:#1e272e;
  --textc-color:#f5f6fa;
  --secon-color:#00d2d3;
  --accent-color: #00d2d3;
}
body.darkmode .sidebar img {
    filter: invert(1);
}

h1 {
    color: var(--accent-color);
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: 20px;
}


.wrapper {
    display: flex; 
    align-items:flex-start ;
}

.sidebar {
    width: 150px ; 
    display: flex;
    position: sticky;
    flex-direction: column; 
    background-color: var(--base-color);
    top: 0;
    height: 100vh;
    box-shadow: 15px 0px 15px rgba(0,0,0,0.1);
    z-index: 10;
}


.sidebar a {
    flex: 1; 
    display:flex;
    align-items: center; 
    justify-content: center;
    text-decoration: none;
    color: var(--textc-color);
    font-weight: bold;
    border-bottom: 5px solid var(--accent-color);
    border-right: 5px solid;
    padding: 10px;
}


.btn-h { background-color: var(--base-color); } 
.btn-a { background-color: var(--base-color) ;} 
.btn-p { background-color:var(--base-color) ; } 
.btn-e { background-color:var(--base-color); }


.sidebar a:hover {
    filter: brightness(1.1);
    font-size: 1.1rem;
}

.content {
    flex: 1;
    padding: 30px;
    
    
}





#theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    cursor: pointer;
    background: var(--textc-color);
    color: var(--base-color);
    border: none;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar a {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.sidebar a:hover {
    transform: scale(1.1) translateX(10px);
    background-color: var(--accent-color);
    color: white;
    border-radius: 0 20px 20px 0; 
}

.darkmode{
    --base-color: #000000;
    --textc-color: #ffffff;
    --secon-color: #ffffff;

}
@media screen and (max-width: 600px) {
    .wrapper {
        flex-direction: column; 
    }

    .sidebar {
        width: 100%;          
        height: 70px;          
        flex-direction: row;  
        position: fixed;       
        bottom: 0;             
        top: auto;
        box-shadow: 0px -5px 15px rgba(0,0,0,0.1);
    }

    .sidebar a {
        border-right: none;  
        border-bottom: none;
        padding: 5px;
    }

    .content {
        padding: 20px;
        margin-bottom: 80px;  
    }

    #theme-switch {
        top: 10px;            
        right: 10px;
    }
}

#typewriter {
    color: var(--accent-color);
    border-right: 3px solid var(--accent-color);
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}