/* --- Profile Page Specific Styles --- */

.profile-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Hero Section */
.profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.profile-image-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--surface);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
    overflow: hidden;
    position: relative;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Shown by default if src exists */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.academic-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    background: var(--surface);
    color: var(--text-main);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

/* Grid Layout for Content Sections */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.profile-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.card-icon {
    font-size: 1.2rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.card-content p {
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.card-content p:last-child {
    margin-bottom: 0;
}

/* Academic Info List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.95rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    color: var(--text-dark);
}

.info-list span {
    color: var(--text-main);
    text-align: right;
}

/* Skills Container */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #eef2ff;
    color: #4338ca;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #c7d2fe;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

/* Goals Section */
.goal-item {
    margin-bottom: 1.25rem;
}

.goal-item:last-child {
    margin-bottom: 0;
}

.goal-item h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.goal-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-content {
    text-align: center;
    padding: 1rem 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-hero {
        padding: 1.5rem;
    }

    .profile-name {
        font-size: 2rem;
    }
}