@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Merriweather:wght@400;700&display=swap');

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    height: 100%;
}
.container {
    display: flex;
    flex-direction: row;
    height: 100%;
}
.left-column {
    background-color: #f0f0f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.right-column {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}
.heading {
    margin-top: 10px;
    text-align: center;
    font-family: 'Merriweather', serif;
}

/* Navbar styles without underline effects */
nav {
    display: flex;
    flex-direction: column;
    width: 100%;
}
nav a {
    display: block;
    margin: 10px 0;
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
nav a:hover {
    background-color: #ddd;
}
.pdf {
        width: 100%;
        aspect-ratio: 4 / 3;
}
/* Active nav item styles */
nav a.active {
    color: #ffffff;
    background-color: #007BFF;
    font-weight: bold;
    border-radius: 5px;
}

.section {
    margin-bottom: 30px;
}
.dark-mode-toggle {
    cursor: pointer;
    font-size: 24px;
    margin-top: 20px;
    align-self: center;
}
.social-icons {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}
.social-icons a {
    color: #333;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
}
/* Dark mode styles */
body.dark-mode {
    background-color: #222;
    color: #fff;
}
body.dark-mode .left-column {
    background-color: #333;
}
body.dark-mode nav a, body.dark-mode .social-icons a {
    color: #fff;
}

h1, h2 {
    font-family: 'Merriweather', serif;
}

h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0px;
}

table, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
}

.project-container {
    width: 100%;
    overflow: hidden;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}

.project-info p {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

.project-info a {
    color: #007BFF;
    text-decoration: none;
}

.project-info a:hover {
    text-decoration: underline;
}

/* Dark mode styles for project cards */
body.dark-mode .project-card {
    background-color: #2a2a2a;
}

body.dark-mode .project-info h3 {
    color: #f0f0f0;
}

body.dark-mode .project-info p {
    color: #ccc;
}

body.dark-mode .project-info a {
    color: #4da6ff;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .left-column {
        justify-content: flex-start;
        align-items: center;
        padding: 10px; /* Reduced padding */
    }
    .profile-section {
        text-align: center;
    }
    nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    nav a {
        margin: 3px 5px; /* Reduced margins */
        font-size: 14px; /* Smaller font size */
    }
    
    /* New styles for mobile/portrait mode */
    .profile-pic {
        width: 100px; /* Smaller profile picture */
        height: 100px;
    }
    .heading {
        font-size: 24px; /* Smaller heading */
        margin-top: 5px;
    }
    .social-icons {
        margin-top: 10px;
    }
    .social-icons a {
        font-size: 18px; /* Smaller icons */
        margin: 0 5px;
    }
    .dark-mode-toggle {
        font-size: 18px; /* Smaller dark mode toggle */
        margin-top: 10px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* New footer styles */
.footer {
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    color: #888;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

body.dark-mode .footer {
    color: #666;
    border-top-color: #444;
}

/* Ensure the right column can accommodate the footer */
.right-column {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Responsive styles */
@media (max-width: 768px) {
    /* ... (previous mobile styles remain unchanged) ... */

    .footer {
        font-size: 10px;
        padding: 8px 0;
    }
}

/* Add these styles to your stylesheet.css */

/* Education section table styles */
.section table {
    width: 100%;
    border: 0;
    border-spacing: 0;
    border-collapse: separate;
}

.section table td {
    padding: 20px;
    vertical-align: middle;
}

/* Education logo styling */
.section table td img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Mobile optimizations for education section */
@media (max-width: 768px) {
    .section table {
        display: block;
    }
    
    .section table tbody,
    .section table tr {
        display: block;
        width: 100%;
    }
    
    .section table td {
        display: block;
        width: 100% !important;
        padding: 10px;
        text-align: center;
    }
    
    /* Center and size the logo appropriately on mobile */
    .section table td img {
        max-width: 120px;
        width: 120px;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    /* Adjust text alignment for mobile */
    .section table td h3 {
        margin-top: 10px;
        text-align: center;
    }
    
    .section table td strong,
    .section table td em,
    .section table td p {
        text-align: center;
        display: block;
    }
}