:root {
    --primary-color: rgb(177, 127, 177);
    --text-color: #ecf0f1;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --tag-bg: #3d3d3d;
    --tag-color: #ecf0f1;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body {
    text-align: center;
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 40px;
    text-align: left;
}

/* Profile and Social Links */
.profile-pic-container {
    width: 150px;
    height: 150px;
    perspective: 1000px; /* Allows 3D perspective */
    margin-bottom: 20px; /* Removed auto margin for left alignment */
}

.profile-pic-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.9s; /* Slower flip */
    transform-style: preserve-3d;
}

.profile-pic-container:hover .profile-pic-flipper {
    transform: rotateY(180deg); /* Flip horizontally on hover */
}

.profile-pic {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden; /* Hide the back side during flip */
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.profile-pic-front {
    /* Front image stays as is */
}

.profile-pic-back {
    transform: rotateY(180deg); /* Position the back image flipped initially */
}

.social-links {
    margin: 1.5rem 0;
}

.social-links a {
    display: inline-block;
    margin-right: 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.social-links i {
    margin-right: 5px;
}

/* Project Section */
.project-entries {
    margin-top: 2rem;
}

.project-entry {
    margin-bottom: 2.5rem;
    padding: 1.8rem;
    border-radius: 12px;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.project-entry:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    background-color: #3a3a3a;
}

/* New styles for the link wrapper */
.project-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-link-wrapper:hover {
    text-decoration: none;
    color: inherit;
}

.project-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.4rem;
    gap: 1.2rem;
}

.project-icon {
    min-width: 45px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
    padding: 0;
    margin: 4px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* RoomU specific background */
.project-icon:has(.roomu-logo) {
    background-color: #7C5FFF;
    border: 1px solid rgba(124, 95, 255, 0.5);
}

.project-icon .fa-spotify {
    color: #1DB954;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Base styles for all logos */
.arpio-logo, .roomu-logo, .dibs-logo, .aggieprep-logo {
    display: block;
    object-fit: contain;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Logo-specific sizing */
.arpio-logo {
    width: 28px;
    height: 28px;
}

.roomu-logo {
    width: 32px;
    height: 32px;
}

.dibs-logo {
    width: 30px;
    height: 30px;
}

.aggieprep-logo {
    width: 28px;
    height: 28px;
}

.project-meta {
    flex: 1;
}

.meta-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.project-date {
    font-size: 0.8rem;
    color: rgba(236, 240, 241, 0.6);
    font-weight: 500;
}

.project-title {
    margin: 0;
}

.project-title a {
    /* Removed styles for the title link as it's no longer an anchor */
}

.project-description {
    font-size: 0.95rem;
    color: rgba(236, 240, 241, 0.9);
    margin-bottom: 0.8rem;
}

.project-learning {
    font-size: 0.9rem;
    color: rgba(236, 240, 241, 0.8);
    margin-bottom: 1.2rem;
}

.project-learning strong {
    font-weight: 500;
    color: rgba(236, 240, 241, 0.6);
    text-transform: lowercase;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background-color: var(--tag-bg);
    color: var(--tag-color);
    border-radius: 15px;
    font-size: 0.75rem;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .container {
        padding: 15px 15px 30px;
    }
    
    .profile-pic {
        width: 120px;
        height: 120px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .project-title a {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .project-entry {
        padding: 1.2rem;
    }
    
    .social-links a {
        display: block;
        margin: 10px 0;
    }
}

/* About Me section links */
p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

p a:hover {
    color: var(--primary-color-hover);
    text-decoration: underline;
}