:root {
    --primary-color: #00796b; /* Teal - Main accent */
    --primary-darker: #004d40; /* Darker Teal */
    --secondary-color: #1e88e5; /* Blue - Can be used for other accents */
    --accent-color: #ffc107; /* Amber - for profile skills or accents */
    --light-bg: #f4f7f6; /* Very light grey for page background */
    --card-bg: #ffffff; /* White for cards */
    --text-color: #333333; /* Dark grey for text */
    --text-light: #555555; /* Lighter grey for secondary text */
    --border-color: #e0e0e0; /* Light border color */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 4px var(--shadow-color);
}

header h1 {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: 2.8em;
    font-weight: 600;
}

header .subtitle {
    font-size: 1.1em;
    font-weight: 300;
    opacity: 0.9;
    margin-top: 5px;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* === PROFILE SECTION STYLES === */
.profile-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 50px; /* Increased margin to separate from projects */
    overflow: hidden;
}

.profile-header {
    padding: 25px 30px;
    background-color: var(--primary-darker); /* Darker background for profile header */
    color: white;
    border-bottom: 1px solid var(--primary-darker);
}

.profile-header h2 {
    font-family: var(--font-secondary);
    font-size: 2em;
    margin: 0 0 5px 0;
}

.profile-header .tagline {
    font-size: 1.1em;
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
}

.profile-content {
    padding: 30px;
}

.profile-details p.profile-item {
    font-size: 1.05em;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex; /* For aligning emoji and text */
    align-items: center;
}

.profile-details p.profile-item .emoji-icon {
    font-size: 1.3em;
    margin-right: 10px;
}

.profile-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.profile-details a:hover {
    text-decoration: underline;
    color: var(--primary-darker);
}

.profile-connect, .profile-skills {
    margin-top: 25px;
}

.profile-connect h3, .profile-skills h3 {
    font-family: var(--font-secondary);
    font-size: 1.3em;
    color: var(--primary-darker);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: var(--accent-color); /* Using accent color for skills */
    color: var(--text-color); /* Dark text on light accent */
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* === END PROFILE SECTION STYLES === */


.projects-heading { /* Styling for the "My Awesome Projects" heading */
    font-family: var(--font-secondary);
    font-size: 2.2em;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px; /* Space after profile card */
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block; /* To make border only as wide as text */
    position: relative; /* For centering hack if needed */
    left: 50%;
    transform: translateX(-50%);
}


.project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 40px;
    overflow: hidden; /* Ensures border-radius clips content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    background-color: #f9f9f9; /* Slightly off-white for header */
}

.project-header h2 {
    font-family: var(--font-secondary);
    font-size: 1.8em;
    color: var(--primary-darker);
    margin: 0 0 10px 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
}

#polysearch .project-tech span {
    background-color: var(--secondary-color);
}

.project-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    padding: 30px;
    gap: 30px; /* Space between description and media */
}

.project-description {
    flex: 1; /* Takes up available space */
    min-width: 300px; /* Ensures it doesn't get too squished */
}

.project-description p {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-light);
}

.project-description p:last-child {
    margin-bottom: 0;
}

.project-media {
    flex: 1; /* Takes up available space */
    min-width: 300px;
    display: flex;
    flex-direction: column; /* Stack images vertically if multiple */
    gap: 15px; /* Space between images */
    align-items: center; /* Center images if they are narrower than container */
}

.project-media img,
.project-media iframe {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.project-links {
    padding: 20px 30px;
    background-color: #fdfdfd;
    border-top: 1px solid var(--border-color);
    text-align: right; /* Aligns buttons to the right */
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-left: 10px;
}

.btn:hover {
    background-color: var(--primary-darker);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

#polysearch .btn {
    background-color: var(--secondary-color);
}
#polysearch .btn:hover {
    background-color: #1565c0; /* Darker blue */
}
#polysearch .btn-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
#polysearch .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    background-color: var(--text-color);
    color: #f0f0f0;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }
    .projects-heading {
        font-size: 1.8em;
    }
    .profile-header h2 {
        font-size: 1.7em;
    }
    .project-content {
        flex-direction: column; /* Stack description and media vertically */
    }
    .project-links {
        text-align: center;
    }
    .btn {
        display: block;
        margin: 10px auto;
        width: calc(100% - 40px); /* Full width buttons with padding */
        max-width: 250px;
    }
    .social-link {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    .skill-tag {
        padding: 5px 10px;
        font-size: 0.85em;
    }
}
