:root {
    --primary-color: #196064;
    --secondary-color: #8DE6EB;
    --background-color: #f1f1f1;
    --text-color: #333;
    --nav-text-color: #fff;
    --transition-speed: 0.3s;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    min-height: 100vh;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.container {
    display: flex;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--nav-text-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 80px;
    height: 40px;
    margin-right: 15px;
}

h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

#toggle-mode {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.navbar {
    width: 220px;
    position: fixed;
    top: 80px;
    left: 0;
    height: calc(100% - 80px);
    background-color: var(--primary-color);
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.navbar ul {
    list-style: none;
    padding: 0;
}

.navbar ul li {
    margin-bottom: 10px;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--nav-text-color);
    font-size: 16px;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: background-color var(--transition-speed);
}

.navbar ul li a:hover, .navbar ul li a.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 220px;
    padding: 20px;
    box-sizing: border-box;
}

#about-me {
    width: 100%;
    max-width: 600px;
}

section {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.about-content {
    margin-top:150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    margin-bottom: 20px;
}

.about-content p {
    max-width: 600px;
    margin: 0 auto;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
    padding:20px;
}



.dark-mode {
    --primary-color: #8DE6EB;
    --secondary-color: #196064;
    --background-color: #1E1E1E;
    --text-color: #fff;
    --nav-text-color: #1E1E1E;
    background-color: var(--background-color);
    color: var(--text-color);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    header {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar {
        width: 100%;
        position: static;
        height: auto;
    }

    main {
        margin-left: 0;
        margin-top: 20px;
    }
}

/* Add this to your existing CSS */

#social-links {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--background-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #social-links {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 20px;
        transform: none;
    }
}

.get-in-touch {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--nav-text-color);
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform 0.2s ease;
}

.get-in-touch:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .get-in-touch {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Add this for smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

#projects {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
}

.project-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid var(--primary-color);
}

.project-details {
    flex-grow: 1;
}

.project-details h3 {
    margin: 0 0 10px;
    color: var(--primary-color);
}

.project-details p {
    margin: 5px 0;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .project-item {
        flex-direction: column;
        text-align: center;
    }

    .project-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

.project-details .tech-stack {
    font-style: italic;
    color: var(--text-color);
}

.button-group {
    margin-top: 15px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-color-dark);
}

.right-align {
    float: right;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .project-item {
        flex-direction: column;
        text-align: center;
    }

    .project-image {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .right-align {
        float: none;
    }
}



/* Faculty and Courses Sections */
#faculty, #courses {
    width: 30%;
    max-width: 600px;
    margin-top: 40px;
}

.faculty-item, .course-item {
    margin-bottom: 30px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.faculty-item:hover, .course-item:hover {
    transform: translateY(-5px);
}

.faculty-details {
    flex-grow: 1;
}

.faculty-details h3 {
    margin: 0 0 10px;
    color: var(--primary-color);
}

.faculty-details p {
    margin: 5px 0;
    color: var(--text-color);
}

.course-item h3 {
    color: var(--primary-color);
}

.course-item p {
    color: var(--text-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .faculty-item, .course-item {
        flex-direction: column;
        text-align: center;
    }

    .faculty-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
}




/* Tablet Styles */
@media (max-width: 1024px) {
    .navbar {
        width: 180px;
    }

    main {
        margin-left: 180px;
    }

    #faculty, #courses {
        width: 45%;
    }

    .project-item {
        flex-direction: column;
        text-align: center;
    }

    .project-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    header {
        position: static;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    h1 {
        font-size: 20px;
    }

    #toggle-mode {
        padding: 8px 16px;
        font-size: 12px;
    }

    .navbar {
        width: 100%;
        position: static;
        height: auto;
        padding: 10px;
    }

    main {
        margin-left: 0;
        margin-top: 20px;
        padding: 10px;
    }

    .about-content {
        margin-top: 20px;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    h2 {
        font-size: 24px;
        padding: 10px;
    }

    #social-links {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 20px;
        transform: none;
    }

    .get-in-touch {
        font-size: 14px;
        padding: 8px 16px;
    }

    #projects, #faculty, #courses {
        width: 100%;
    }

    .project-item, .faculty-item, .course-item {
        padding: 15px;
    }

    .project-image {
        width: 80px;
        height: 80px;
    }

    .right-align {
        float: none;
        text-align: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .logo {
        width: 60px;
        height: 30px;
    }

    h1 {
        font-size: 18px;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    h2 {
        font-size: 20px;
    }

    .project-image {
        width: 60px;
        height: 60px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}