:root {
    --background-color: #f9f9f9;
    --container-background: #fff;
    --text-color-primary: #333;
    --text-color-secondary: #555;
    --text-color-tertiary: #666;
    --heading-color: #111;
    --link-color: #007bff;
    --link-hover-color: #0056b3; /* Optional: for hover if underline isn't enough */
    --border-color: #eee;
    --shadow-color-rgb: 0, 0, 0;
    --shadow-opacity: 0.05;
    --icon-opacity: 0.7;
    --icon-hover-opacity: 1;
    --project-icon-filter: none; /* No filter for light mode */
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --container-background: #2c2c2c;
        --text-color-primary: #e0e0e0;
        --text-color-secondary: #b0b0b0;
        --text-color-tertiary: #999;
        --heading-color: #f5f5f5;
        --link-color: #58a6ff;
        --link-hover-color: #80bfff;
        --border-color: #444;
        --shadow-color-rgb: 200, 200, 200; /* Lighter shadow for dark mode */
        --shadow-opacity: 0.1;
        --icon-opacity: 0.6;
        --icon-hover-opacity: 0.9;
        --project-icon-filter: brightness(0.9) saturate(1.1); /* Adjust project icons slightly */
    }
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color-primary);
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    min-height: 100vh;
    padding: 40px 20px;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 40px; /* Gap between columns */
    background-color: var(--container-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(var(--shadow-color-rgb), var(--shadow-opacity));
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

h1, h2, h3 {
    color: var(--heading-color);
    margin-bottom: 0.8em;
}

h1 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.5em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3em;
    transition: border-color 0.3s ease;
}

h3 {
    font-size: 1.1em;
    margin-bottom: 0.3em;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    /* color: var(--link-hover-color); Optional: if underline isn't enough */
    text-decoration: underline;
}

/* Layout Sections */
.links-section,
.projects-section {
    flex: 1; /* Each takes 1 part of the space */
    max-width: 250px; /* Limit width of side columns */
}

.main-content {
    flex: 2; /* Middle section takes 2 parts, making it wider */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content like profile pic and text */
    text-align: center;
}

/* Profile Picture */
.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--border-color);
    transition: border-color 0.3s ease;
}

/* Links Section */
.links-section ul {
    list-style: none;
}

.links-section li {
    margin-bottom: 10px;
}

.links-section a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color-primary);
    font-weight: 500;
}
.links-section a:hover {
    color: var(--link-color);
    text-decoration: none;
}

.icon {
    width: 20px;
    height: 20px;
    opacity: var(--icon-opacity);
    transition: opacity 0.2s ease;
}
.links-section a:hover .icon {
    opacity: var(--icon-hover-opacity);
}

/* About & Contact */
.about,
.contact {
    margin-bottom: 25px;
    width: 100%; /* Ensure sections take full width of main content */
    max-width: 500px; /* Limit width for readability */
}

.about p,
.contact p {
    color: var(--text-color-secondary);
}

.contact a {
    font-weight: 500;
    color: var(--link-color); /* Ensure contact link uses link color */
}

/* Projects Section */
.projects-section .project {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    margin-bottom: 20px;
    gap: 15px;
    text-align: left;
}

.project-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-top: 3px; /* Align icon better with text */
    filter: var(--project-icon-filter);
    transition: filter 0.3s ease;
}

.project h3 a {
    color: var(--heading-color); /* Match heading color */
    font-weight: 500;
}
.project h3 a:hover {
    color: var(--link-color);
}

.project p {
    font-size: 0.9em;
    color: var(--text-color-tertiary);
}

/* Container for horizontal project links */
.project-links-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens if needed */
    gap: 15px;      /* Space between links */
    margin-top: 8px;  /* Space above the links container */
}

/* Styling for individual project links (GitHub, App Store, etc.) */
.project-link {
    display: inline-flex; /* Keep icon and text aligned */
    align-items: center;
    gap: 4px;
    font-size: 0.85em;
    color: var(--text-color-secondary); /* Use secondary text color for links */
    text-decoration: none;
}

.project-link:hover {
    color: var(--link-color);
    text-decoration: underline;
}

/* Styling for icons within project links */
.project-link .icon { /* Target all icons within project links */
    width: 14px;
    height: 14px;
    opacity: var(--icon-opacity);
    transition: opacity 0.2s ease;
}

.project-link:hover .icon {
    opacity: var(--icon-hover-opacity);
}

/* Basic Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .links-section,
    .projects-section,
    .main-content {
        max-width: 100%; /* Allow columns to take full width */
        align-items: center; /* Center content in columns */
        text-align: center; /* Center text in columns */
    }

    .links-section ul {
        display: flex;
        justify-content: center;
        gap: 20px;
    }

    .projects-section .project {
        justify-content: center;
        text-align: center;
    }
    .projects-section .project > div {
        text-align: left; /* Keep project text left-aligned */
    }

     .profile-pic {
        width: 80px;
        height: 80px;
    }
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.3em;
    }
} 