/* styles.css */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #343a40;
    position: relative;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow-y: scroll; /* Enable only vertical scrolling */
    overflow-x: hidden; /* Disable horizontal scrolling */
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent overlay */
    z-index: -1;
}

.loader {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #3498db;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

header {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #008080; /* Teal color */
    text-align: center;
    z-index: 1;
    backdrop-filter: blur(10px);
}

nav {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-left .nav-toggle {
    font-size: 2rem;
    cursor: pointer;
    margin-right: 1rem;
}

.nav-left .logo {
    height: 100px;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nav-right .nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-right .nav-menu li {
    text-align: center;
}

.nav-right .nav-menu li a {
    text-decoration: none;
    color: #008080; /* Teal color */
    font-size: 1.2rem;
    font-weight: 500;
}

.nav-right .nav-menu.active {
    display: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .splash img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header .profile-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .intro {
    font-size: 2.5rem;
    font-weight: 600;
    color: red; /* Gold color */
    margin-bottom: 1rem;
}

header h1 {
    margin: 0.5rem 0 0.2rem;
    font-size: 3.5rem;
    font-weight: 600;
}

header h2 {
    margin: 0;
    font-weight: 400;
    font-size: 2.5rem;
    color: #008080; /* Teal color */
}

main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for popping effect */
    backdrop-filter: blur(10px); /* Glass effect */
}

h2 {
    color: #008080;
    border-bottom: 2px solid #008080;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.job, .education-item {
    margin-bottom: 1.5rem;
}

.job h3, .education-item h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.job h4, .education-item p {
    margin: 0.5rem 0 0.5rem;
    color: #6c757d;
    font-weight: 400;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    background: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 5px;
    font-weight: 500;
}

footer {
    text-align: center;
    padding: 1rem;
    color: #008080;
    backdrop-filter: blur(10px);
    border-top: 2px solid #008080;
    z-index: 1;
}

#contact a {
    color: #008080; /* Teal color */
    text-decoration: none;
    font-weight: 500;
}

#contact .icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.2);
    transition: left 0.3s;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    visibility: hidden; /* Hidden by default */
}

.sidebar.active {
    left: 0;
    visibility: visible; /* Visible when active */
}

.sidebar .logo {
    height: 100px;
    margin-bottom: 2rem;
}

.sidebar .sidebar-close-btn {
    font-size: 2rem;
    background: none;
    border: none;
    color: #008080; /* Teal color */
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 2rem;
}

.sidebar .sidebar-menu {
    list-style: none;
    padding: 0;
    width: 100%;
}

.sidebar .sidebar-menu li {
    margin: 1rem 0;
}

.sidebar .sidebar-menu li a {
    text-decoration: none;
    color: #008080; /* Teal color */
    font-size: 1.5rem;
    font-weight: 500;
    display: block;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-right .nav-menu {
        display: none;
    }

    .nav-right .nav-menu.active {
        display: flex;
    }
}
