/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
}

.container {
    display: flex;
    min-height: 100vh;
    height: 100%; /* Ensure the container takes full height */
}

/* Sidebar Styles */
.sidebar {
    background-color: #2c3e50;
    color: #ecf0f1;
    width: 250px;
    padding: 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed; /* Keep it fixed on the left side */
    height: 100vh; /* Full height */
    top: 0; /* Align to the top */
    left: 0; /* Align to the left */
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.profile {
    text-align: center;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.profile h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.profile p {
    font-size: 14px;
}

/* Navigation Buttons */
.nav-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

.nav-buttons button {
    background-color: transparent;
    border: none;
    color: #ecf0f1;
    padding: 10px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px; /* Added spacing between buttons */
}

.nav-buttons button:hover,
.nav-buttons button.active {
    background-color: #34495e;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.social-icons a {
    color: #ecf0f1;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #3498db;
}

/* Main Content Styles */
.content {
    flex: 1;
    padding: 40px;
    background-color: #ecf0f1;
    margin-left: 250px; /* Offset the left content to avoid overlap with sidebar */
    overflow-y: auto; /* Allow scrolling in the main content area */
    height: 100vh; /* Full height for the right content */
}

.content-section {
    display: none;
    margin-bottom: 40px; /* Added space between content sections */
}

.content-section.active {
    display: block;
}

.content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

#about ul {
    list-style-type: none;
    margin-bottom: 20px;
}

#about ul li {
    margin-bottom: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Max 3 cards per row */
    gap: 20px; /* Space between cards */
    margin-top: 20px;
    margin-left: 0; /* Ensures no gap between content and the sidebar */
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 600px; /* Fixed height for all cards */
    width: 100%; /* Automatically adjust to grid column */
    margin-bottom: 20px; /* Space below cards */
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card video {
    width: 100%;
    height: 70%; /* Video height relative to the card */
    object-fit: cover; /* Ensures the video scales properly */
    display: block;
}

.project-card h3,
.project-card p {
    margin: 10px 15px;
    font-size: 16px;
    color: #2c3e50;
    text-decoration: none;
}

.project-card p {
    font-size: 14px;
    color: #7f8c8d;
}

/* Remove link styles from project cards */
.project-card a {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit color from parent (the card) */
}

/* About Me Section (Ensure proper spacing for paragraphs) */
#about p {
    line-height: 1.6;
    margin-bottom: 20px;
}

#about ul li {
    margin-bottom: 15px;
}

/* Education and Experience Section (Spacing between each item) */
.education-item,
.experience-item {
    margin-bottom: 20px;
}

.education-item h4,
.experience-item h4 {
    margin-top: 10px;
}

.education-item p,
.experience-item p {
    margin-bottom: 10px; /* Added margin between description paragraphs */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: auto; /* Allow the sidebar to expand in height on small screens */
    }

    .profile {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .profile-pic {
        margin-bottom: 0;
        margin-right: 15px;
    }

    .nav-buttons {
        flex-direction: row;
        margin-top: 0;
    }

    .nav-buttons button {
        padding: 10px 15px;
    }

    .social-icons {
        margin-top: 0;
    }

    .content {
        padding: 20px;
        margin-left: 0; /* No margin on the left on mobile */
    }
}
