/* Standard Academic Profile Theme with Refined Typography and Color Palette */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Color Palette */
    --neutral-dark: #2c3e50;    /* Dark blue-gray */
    --neutral-light: #f5f7fa;   /* Light gray with blue undertone */
    --accent-primary: #3498db;  /* Bright blue for primary elements */
    --accent-secondary: #6c5ce7; /* Purple for secondary elements */
    --text-primary: #2c3e50;    /* Main text color */
    --text-secondary: #596677;  /* Secondary text color */
    --background: #ffffff;      /* Page background */
    --divider: #e1e8ed;         /* Subtle divider color */
}

body.theme-retro {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 17px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.theme-retro #main-content {
    flex: 1;
    max-width: 1000px; 
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theme-retro #banner {
    max-width: 1000px; /* Increased from 800px */
    margin: 20px auto 0; /* Reduced from 40px */
    padding: 0 20px 10px; /* Reduced bottom padding */
    text-align: center;
    border-bottom: 1px solid var(--divider);
}

.theme-retro .banner-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.8rem; /* Reduced from 2rem */
    font-weight: 600;
    margin: 0;
    color: var(--neutral-dark);
    line-height: 1.3;
}

/* Typography Hierarchy */
.theme-retro h1 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1em; /* Reduced from 1.5em */
    margin-bottom: 0.5em;
    line-height: 1.2;
    color: var(--neutral-dark);
}

.theme-retro h2 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--neutral-dark);
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--divider);
    margin-top: 0.75em; /* Reduced from 1.5em */
    margin-bottom: 0.5em; /* Reduced from 0.75em */
    line-height: 1.3;
}

.theme-retro h3 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-top: 1em; /* Reduced from 1.2em */
    margin-bottom: 0.5em;
    line-height: 1.4;
}

.theme-retro h4 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-top: 1em; /* Reduced from 1.2em */
    margin-bottom: 0.5em;
    line-height: 1.5;
}

.theme-retro .section {
    margin-bottom: 1.5em; /* Reduced from 2em */
    position: relative;
}

.theme-retro .content-row {
    display: flex;
    gap: 30px;
    margin-top: 5px; /* Reduced from 20px */
    margin-bottom: 10px; /* Added */
}

.theme-retro .column {
    position: relative;
    flex: 1;
    padding: 1.2em; /* Reduced from 1.5em */
    background-color: var(--neutral-light);
    border-radius: 6px;
}

/* Technical section styling */
.theme-retro #about-section.column {
    border-left: 3px solid var(--accent-primary);
}

/* Research section styling */
.theme-retro #interests-section.column {
    border-left: 3px solid var(--accent-secondary);
}

.theme-retro ul {
    list-style-type: disc;
    padding-left: 1.2em;
    margin-top: 0.5em; /* Reduced from 0.8em */
    margin-bottom: 0.5em; /* Reduced from 1em */
}

.theme-retro li {
    margin-bottom: 0.3em; /* Reduced from 0.5em */
    line-height: 1.5; /* Reduced from 1.7 */
}

.theme-retro p {
    margin-bottom: 0.7em; /* Reduced from 1em */
    line-height: 1.5; /* Reduced from 1.7 */
}

.theme-retro strong, .theme-retro em {
    font-weight: 600;
    color: var(--neutral-dark);
}

/* Footer styling */
.theme-retro #footer {
    background-color: var(--neutral-light);
    border-top: 1px solid var(--divider);
    padding: 1em 0; /* Reduced from 2em */
    margin-top: auto; /* Changed from 2em to auto for flex layout */
}

.theme-retro #footer #contact-section {
    max-width: 1000px; /* Increased from 800px */
    margin: 0 auto;
    padding: 0 20px;
}

.theme-retro #footer #contact-section h2 {
    border-bottom: none;
    margin-top: 0;
    margin-bottom: 0.3em; /* Added */
    text-align: center;
}

.theme-retro #footer #contact-section p {
    text-align: center;
    margin-bottom: 0.5em; /* Added */
}

.theme-retro #social-links {
    display: flex;
    gap: 20px;
    margin-top: 0.7em; /* Reduced from 1.2em */
    justify-content: center;
}

.theme-retro .social-link {
    color: var(--accent-primary);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    padding: 0.3em; /* Reduced from 0.5em */
    font-size: 1.3rem;
}

.theme-retro .social-link:hover {
    color: var(--accent-secondary);
    transform: translateY(-3px);
}

.theme-retro #photo-element {
    display: block !important;
    width: 180px !important;
    height: 180px !important;
    margin: 15px auto !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 3px solid var(--neutral-light) !important;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15) !important;
    position: relative !important;
    box-sizing: content-box !important;
}

.theme-retro #profile-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    aspect-ratio: 1 / 1 !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Links styling */
.theme-retro a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

.theme-retro a:hover {
    border-bottom-color: var(--accent-primary);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .theme-retro {
        font-size: 16px;
    }
    
    .theme-retro .content-row {
        flex-direction: column;
    }
    
    .theme-retro #photo-element {
        width: 100px !important;
        height: 100px !important;
    }
    
    .theme-retro .banner-text {
        font-size: 1.5rem; /* Reduced from 1.7rem */
    }
    
    .theme-retro h2 {
        font-size: 1.4rem; /* Reduced from 1.5rem */
    }
}