/* Global Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    height: 100%; /* Keep height 100% */
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #333;
    color: #fff;
    padding: 8px;
    text-align: center;
    flex-shrink: 0;
}

header h1 {
    font-size: 1.5em;
    line-height: 1.2;
}

main {
    padding: 15px 20px;
    flex: 1; /* Allow main content to grow and fill space */
    overflow-y: auto;
    padding-bottom: 20px;
    display: flex; /* Make main a flex container */
    flex-direction: column; /* Stack children vertically */
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 6px;
    font-size: 0.85em;
    line-height: 1.2;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

/* Section Styles */
/* Grouped common styles for sections */
section, 
.projects-section, 
.contact-section {
    width: 100%; /* Ensure full width for centering */
    max-width: 800px;
    margin-left: auto; /* Center section block */
    margin-right: auto; /* Center section block */
    padding: 20px;
}

/* Individual section styles */
section {
    /* Generic section styles if needed */
}

.projects-section {
    margin-top: 30px;
}

.contact-section {
    text-align: center;
    background: transparent;
    margin-top: auto; /* Push to bottom of main */
    /* Common styles moved to the grouped selector */
}

/* Social Links */
.social-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 15px;
}

.social-links a {
    text-decoration: none;
    color: #333;
    padding: 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.social-links a:hover {
    background: #333;
    color: #fff;
    transform: scale(1.1);
}

.fab {
    font-size: 2em;
}

/* Project Styles */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.project {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.project-content {
    flex: 1;
}

.project-link {
    display: inline-block;
    padding: 8px 15px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
    margin-left: 20px; /* Space between text and link */
}

.project-link:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}