/* Color Variables */
:root {
    --primary-blue: #3b82f6;
    --primary-emerald: #10b981;
    --secondary-yellow: #fbbf24;
    --secondary-green: #15803d;
    --background-dark: #0a0f1d;
    --background-darker: #010409;
    --text-primary: #cbd5e1;
    --text-secondary: #64748b;
    --accent-hover: #2563eb;
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    width: 90%; 
    position: absolute;
    top: 0;
    right: 2%;
    background-color: var(--background-dark);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding-right: 3%;
}

/* Links */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Sidebar Navigation */
.sidenav {
    height: 100%;
    width: 22%; 
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--background-darker);
    padding-top: 20px;
    padding-left: 1%;
    padding-right: 0%;
    overflow-x: hidden;
    font-size: 1.2em;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(74, 158, 255, 0.1);
}

.sidenav.collapsed {
    width: 60px;
}

.sidenav.collapsed .menu,
.sidenav.collapsed .contact-info {
    display: none;
}

.sidenav h1 {
    color: var(--primary-emerald);
    font-size: 1.2em;
    text-align: left;
    margin-bottom: 20px;
    padding-left: 0%;
    overflow: hidden;
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidenav.collapsed h1 {
    font-size: 1.2em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin: 0;
}

.sidenav .contact-info {
    text-align: left;
    margin-top: auto;
    padding-bottom: 20px;
    margin-bottom: 20px;
    font-size: 1em;
    color: var(--text-secondary);
}

.sidenav .contact-info a {
    color: var(--secondary-yellow);
    margin: 0px 0;
    transition: color 0.3s;
}

.sidenav .contact-info a:hover {
    color: var(--accent-hover);
}

.sidenav a {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s;
}

/* Menu */
.menu a {
    padding: 5px 20px;
    text-decoration: none;
    font-size: 1.2em;
    color: var(--text-secondary);
    display: block;
    transition: all 0.3s;
    border-radius: 4px;
}

.menu a:hover {
    background-color: rgba(74, 158, 255, 0.1);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.menu a.active {
    background-color: rgba(74, 158, 255, 0.15);
    color: var(--primary-blue);
    border-left: 3px solid var(--primary-blue);
}

/* Main Content */
.main {
    margin-left: 22%;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main.expanded {
    margin-left: 60px;
}

.container {
    width: 90%;
    margin: auto;
    padding: 40px 0;
}

section {
    padding-top: 2%;
    background-color: var(--background-dark);
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Headings */
h2 {
    border-bottom: 2px solid rgba(74, 158, 255, 0.2);
    padding-bottom: 10px;
    font-size: 2em;
    color: var(--primary-emerald);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.5s;
}

h2:hover::after {
    width: 100%;
}

h3 {
    color: var(--secondary-yellow);
    margin-top: 30px;
}

/* Lists */
ul {
    padding-left: 40px;
}

li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Topics */
.topics {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.topics li {
    display: inline-block;
    margin: 5px;
    background: rgba(74, 158, 255, 0.1);
    color: var(--primary-blue);
    padding: 8px 15px;
    border-radius: 10px;
    cursor: default;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

/* Buttons */
.links {
    background: var(--background-darker);
    border: 2px solid var(--primary-emerald);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-block;
    font-family: nunito,roboto,proxima-nova,"proxima nova",sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    height: 36px;
    outline: 0;
    padding: 0 14px;
    margin-bottom: 2%;
    text-align: center;
    text-rendering: geometricprecision;
    text-transform: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.links:hover,
.links:active {
    background-color: var(--primary-emerald);
    color: var(--background-darker);
    transform: translateY(-2px);
}

.links:active {
    transform: translateY(0);
}

.no-hover {
    background: var(--background-darker);
    border: 2px solid var(--text-secondary);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: nunito,roboto,proxima-nova,"proxima nova",sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    height: 36px;
    outline: 0;
    padding: 0 14px;
    margin-bottom: 2%;
    text-align: center;
    text-rendering: geometricprecision;
    text-transform: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
}

/* Skills and Language Lists */
.skills-list, .language-list {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
}

.skills-list li, .language-list li {
    width: 45%;
    margin-bottom: 10px;
    font-size: 1em;
    color: var(--text-primary);
}

/* Footer */
footer {
    margin-top: 50px;
    background: var(--background-darker);
    text-align: center;
    padding: 10px 0;
    position: fixed; 
    bottom: 0; 
    left: 0;
    right: 0;
    height: 20px;
    border-top: 1px solid rgba(74, 158, 255, 0.1);
}

footer p {
    margin: 0;
    color: var(--text-secondary);
}

/* Profile Image */
.profile-img {
    display: block;
    width: 40%;
    margin: 20px auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 8px; 
}

/* Toggle Button */
.sidebar-toggle {
    position: relative;
    width: 30px;
    height: 30px;
    background: var(--background-darker);
    border: 1px solid var(--primary-blue);
    border-radius: 50%;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: all 0.3s ease;
    font-size: 20px;
    margin-left: auto;
}

.sidebar-toggle:hover {
    background: var(--primary-blue);
    color: var(--background-darker);
}

.sidenav.collapsed .sidebar-toggle {
    margin-left: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .sidenav {
        width: 100%;
        position: relative;
        height: auto;
        padding: 20px;
    }
    .main {
        margin-left: 0;
        width: 100%;
    }
    .sidenav h1 {
        font-size: 1.5em;
    }
    .sidenav a {
        padding: 10px;
    }
    .sidebar-toggle {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .sidenav {
        width: 100%;
        height: auto;
        position: relative;
    }

    .sidenav h1, .sidenav .contact-info, .sidenav a {
        text-align: left;
        padding-left: 20px;
    }

    .main {
        margin-left: 0;
    }
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 20px 0;
}

.youtube-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media screen and (max-width: 768px) {
    .video-container {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .video-container {
        margin: 10px 0;
    }
} 

#updates .updates-container {
    max-height: 350px;       /* Adjust height if desired */
    overflow-y: scroll;
    padding-right: 10px;
    border-left: 3px solid #ddd;
    margin-top: 15px;
}

/* optional: scrollbar styling */
#updates .updates-container::-webkit-scrollbar {
    width: 8px;
}

#updates .updates-container::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

#updates .updates-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}
