:root {
    --primary-color: #2a2a2a;
    --secondary-color: #3a3a3a;
    --text-color: #ffffff;
    --accent-color: #4CAF50;
    --sidebar-width: 60px;
    --sidebar-expanded-width: 240px;
    --transition-speed: 0.3s;
    --logo-size: 1.5rem;
    --text-size: 1rem;
}

.light-theme {
    --primary-color: #ffffff;
    --secondary-color: 
    --text-color: #2a2a2a;
    --accent-color: #45a049;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, rgb(255, 255, 255), skyblue);
    color: var(--text-color);
    display: flex;
    transition: background-color var(--transition-speed);
    font-size: var(--text-size);
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--secondary-color);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: width var(--transition-speed);
    position: fixed;
    overflow-x: hidden;
}

.sidebar:hover {
    width: var(--sidebar-expanded-width);
}

.logo-section {
    display: flex;
    align-items: center;
    padding: 1rem;
    width: 100%;
    justify-content: center;
}

.logo {
    width: 120px;
    height: 120px;
}

.logo img {
    width: 120%;
    height: auto;
}

/* .logo-text {
    margin-left: 1rem;
    display: none;
    white-space: nowrap;
    font-size: var(--text-size);
} */

.sidebar:hover .logo-text {
    display: block;
}

.search-section {
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.search-input {
    display: none;
    width: 70%;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    margin-right: 0.5rem;
    font-size: var(--text-size);
}

.sidebar:hover .search-input {
    display: block;
}

.search-btn {
    background: var(--accent-color);
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: calc(var(--text-size) * 0.9);
}

.menu {
    width: 100%;
    margin-top: 3rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding:2rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color var(--transition-speed);
    font-size: var(--text-size);
}

.menu-item i {
    min-width: calc(var(--sidebar-width) - 2rem);
    text-align: center;
    font-size: var(--logo-size);
}

.menu-item span {
    display: none;
    margin-left: 1rem;
}

.sidebar:hover .menu-item span {
    display: block;
}

.menu-item:hover, .menu-item.active {
    background-color: var(--accent-color);
}

/* Main Content Styles */
main {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 1rem;
    transition: margin-left var(--transition-speed);
}

.sidebar:hover + main {
    margin-left: var(--sidebar-expanded-width);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: none;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Date and Time Display */
.date-time .icon {
    width: 18px;
    height: 18px;   
}

.date-time {
    font-size: var(--text-size);
    color: orange;
}

#modeToggle{
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: var(--logo-size);
}

.page {
    max-width: 100vw;
    display: none;
    padding: 2rem;
    background: none;
    border-radius: 8px;
}

.page.active {
    display: block;
}



/* home page styling */

.intro {
    display: inline-flex;
    /* flex-wrap: wrap; */
    max-width: 1400px;
    text-align: left; /* Left-aligns all text */
    padding-top: 90px;
}

.welcome {
    font-weight: bold;
    font-size: 5rem;
}

.hello {
    font-size: 2rem;
}

.name {
    font-weight: bold;
    font-size: 4rem;
    border-bottom: 4px solid;
    display: inline-block;
}

.desc h1{
    text-align: left;
}

.description {
    font-size: 1rem;
    margin-top:10px;
    line-height: 1.6;
}

.download-btn {
    display: inline-block;
    margin: 20px auto 0; /* Centers the button below the description */
    padding: 10px 20px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.center-btn {
    text-align: center; /* Centers only the button */
}

.profile-pic img {
    width: 300px;
    height: 450px;
    border: 3px solid;
    margin: auto 0;
    padding: auto 0;

}
.desc{
    margin-right: 20px;
}

.links .icons{
    cursor: pointer;
    width: 38px;
    height: 38px;
    margin-right: 20px;
}

.links{
    display: flex; /* Add flexbox layout */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    margin-top: 30px;
}




/* About section */

.all {
    padding-top: 2vh;
    padding-bottom: 10vh;
}

.descriptio, .personal-info, .education {
    margin: 20px;
}

h1{
    font-size: 50px;
    text-decoration: underline 3px;
    text-align: center;
}

h2{
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-decoration: underline;
}

/* Personal Info Styling */
.personal-info ul {
    display: flex;
    flex-wrap: wrap; /* Wrap items to next line if needed */
    list-style-type: none; /* Remove bullet points */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
    gap: 20px; /* Add space between items */
}

.personal-info ul li {
    flex: 1 1 calc(50% - 20px); /* Items take up 50% width minus the gap */
    box-sizing: border-box; /* Ensure padding doesn’t affect width */
    display: inline-block;
}


/* Education Section */
.education {
    margin-top: 30px;
}

/* Timeline Design */
.education-timeline {
    position: relative;
    margin-left: 30px; /* Space for the line */
    border-left: 3px solid; /* Vertical timeline line */
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item .circle {
    position: absolute;
    top: 0;
    left: -30px; /* Align the circle with the line */
    width: 20px;
    height: 20px;
    border: 3px solid ;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.timeline-item .sc {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #333;
}

.timeline-item .sc h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.timeline-item .sc p {
    margin-bottom: 5px;
    line-height: 1.4;
}




/* Skills Section*/

#skill{
    height: max-content;
}

#Skills .abc{
    padding-bottom: 50px;
}


.section-content {
    text-align: center;
    display: inline-flex;
    flex-wrap: wrap; /* Wrap items to next line if needed */
    z-index: 1; 
    justify-content: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.skill {
    margin: 30px 30px;
    height: 170px;
    padding: 30px 50px;
    border-radius: 30px;
    font-size: 1.5rem;
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.skill-description {
    font-size: 1rem;
    margin-top: 10px;
}

.skill:hover {
    transform: scale(1.1);
    }

.experience-timeline {
    width: 80%;
    margin: 0 auto;
    text-align: left;
}

.experience-item {
    margin: 25px 0;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateX(20px);
}

.experience-item h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.experience-item p {
    font-size: 1rem;
    margin-bottom: 8px;
}

.experience-description {
    font-style: italic;
}

.exp{
    margin-top: 40px;
}
 


 
  /* Project section */

    .projects {
    padding: auto;
    margin: 0px;
    flex-wrap: wrap;
    text-align: center;
}

.project-box {
    display: inline-flex;
    position: relative;
    width: 300px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    margin: 30px;
}

.project-box:hover {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-box:hover .project-info {
    opacity: 1;
}

.project-box h3 {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.project-info a {
    text-decoration: underline ;
    font-weight: bold;
    margin: 5px 0;
}

.project-info a:hover {
    text-decoration: underline;
}





/* Contact Section */

.contacts{
    display: inline;
}

.contact-section {
    display: inline-flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 50px;
  }
  
  .contact-info {
    flex: 1;
    min-width: 300px;
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .contact-info h2 {
    margin-bottom: 15px;
  }
  
  .contact-info p {
    margin-bottom: 10px;
    line-height: 1.6;
  }
  
  .contact-info .info p {
    margin: 5px 0;
  }
  
  .contact-form {
    flex: 1;
    min-width: 300px;
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .contact-form h3 {
    margin-bottom: 15px;
  }
  
  .contact-form form {
    display: flex;
    flex-direction: column;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid ;
    border-radius: 5px;
  }
  
  .contact-form textarea {
    resize: none;
    height: 100px;
  }
  
  .contact-form button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
  }

  .info a{
    cursor: pointer;
  }
