/* CSS Variables for Light/Dark Mode */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --header-color: #000000;
    --border-color: #e5e5e5;
    --card-bg: #f8f9fa;
    --card-border: #0066cc;
    --link-color: #0066cc;
    --link-hover: #0052a3;
    --subtitle-color: #666666;
    --section-bg: #ffffff;
    --pet-card-bg: #f8f9fa;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] {
    --bg-color: #0d1117;
    --text-color: #ffffff;
    --header-color: #ffffff;
    --border-color: #30363d;
    --card-bg: #161b22;
    --card-border: #58a6ff;
    --link-color: #58a6ff;
    --link-hover: #79c0ff;
    --subtitle-color: #ffffff;
    --section-bg: #161b22;
    --pet-card-bg: #161b22;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

/* Matrix Rain Canvas */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

body[data-theme="dark"] #matrix-rain {
    opacity: 0.25;
}

/* Base Styles */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

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

/* Mobile container improvements */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 10px;
    }
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 30px;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-border);
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--shadow-color);
}

/* Mobile improvements for profile section */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 0 10px;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }
    
    .profile-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .profile-section {
        gap: 15px;
        padding: 0 5px;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
        border-width: 2px;
    }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-top: 40px;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--header-color);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--subtitle-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    line-height: 1.5;
}

/* Mobile header improvements */
@media (max-width: 768px) {
    header {
        margin-bottom: 40px;
        padding-bottom: 30px;
        padding-top: 30px;
    }
    
    header h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    header {
        margin-bottom: 30px;
        padding-bottom: 25px;
        padding-top: 25px;
    }
    
    header h1 {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
        padding: 0 5px;
    }
}

.subtitle a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.subtitle a:hover {
    background-color: var(--card-bg);
    color: var(--link-hover);
}

/* Navigation */
nav {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.nav-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    color: var(--text-color);
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: transparent;
    border: 1px solid transparent;
}

nav a:hover {
    color: var(--link-color);
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
    nav {
        margin-bottom: 25px;
        gap: 12px;
    }
    
    .nav-row {
        gap: 10px;
        justify-content: center;
    }
    
    nav a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    nav {
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .nav-row {
        gap: 8px;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    nav a {
        font-size: 0.85rem;
        padding: 8px 16px;
        width: 100%;
        max-width: 280px;
        text-align: center;
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
    }
    
    nav a:hover {
        background-color: var(--link-color);
        color: white;
    }
}

/* Header Controls */
.header-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 10;
}

/* Mobile header controls improvements */
@media (max-width: 768px) {
    .header-controls {
        gap: 6px;
        top: 5px;
        right: 5px;
    }
    
    .lang-btn, .theme-btn, .version-btn {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .header-controls {
        gap: 4px;
        top: 10px;
        right: 10px;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .lang-btn, .theme-btn, .version-btn {
        font-size: 0.65rem;
        padding: 2px 5px;
    }
    
    .language-toggle {
        order: 3;
    }
    
    .theme-toggle {
        order: 2;
    }
    
    .version-toggle {
        order: 1;
    }
}

/* Language toggle */
.language-toggle {
    display: flex;
    gap: 2px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--link-color);
    color: var(--link-color);
    padding: 4px 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 3px;
    font-size: 0.8rem;
}

.lang-btn:hover {
    background-color: var(--card-bg);
}

.lang-btn.active {
    background-color: var(--link-color);
    color: white;
}

/* Theme toggle */
.theme-toggle {
    display: flex;
}

.theme-btn {
    background: none;
    border: 1px solid var(--link-color);
    color: var(--link-color);
    padding: 4px 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 3px;
    font-size: 0.8rem;
}

.theme-btn:hover {
    background-color: var(--card-bg);
}

.theme-btn.active {
    background-color: var(--link-color);
    color: white;
}

.version-toggle {
    display: flex;
    position: relative;
}

.version-btn {
    background: none;
    border: 1px solid var(--link-color);
    color: var(--link-color);
    padding: 4px 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 3px;
    font-size: 0.8rem;
}

.version-btn:hover {
    background-color: var(--card-bg);
}

.version-btn.active {
    background-color: var(--link-color);
    color: white;
}

.version-dropdown {
    position: absolute;
    top: 125%;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    min-width: 280px;
    pointer-events: none;
}

/* Mobile version dropdown improvements */
@media (max-width: 768px) {
    .version-dropdown {
        min-width: 250px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .version-dropdown {
        min-width: 200px;
        right: -20px;
        top: 100%;
    }
}

.version-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 20px;
    border: 8px solid transparent;
    border-bottom-color: var(--card-border);
}

.version-btn:hover ~ .version-dropdown,
.version-dropdown:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.version-content {
    padding: 12px 16px;
}

.version-content h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--header-color);
}

.version-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-content li {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 6px;
    padding-left: 12px;
    position: relative;
}

.version-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--link-color);
    font-weight: bold;
}

.version-content li:last-child {
    margin-bottom: 0;
}

.version-content strong {
    color: var(--link-color);
    font-weight: 600;
}

/* Contact links */
.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-link {
    color: #0066cc;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #0066cc;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-link:hover {
    background-color: #0066cc;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

/* Mobile contact links improvements */
@media (max-width: 768px) {
    .contact-links {
        gap: 12px;
        padding: 0 10px;
    }
    
    .contact-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 5px;
    }
    
    .contact-link {
        font-size: 0.85rem;
        padding: 8px 16px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Main content */
main {
    margin-bottom: 60px;
}

/* Sections */
section {
    margin-bottom: 60px;
    background-color: var(--section-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px var(--shadow-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--header-color);
    margin: 0;
    line-height: 1.3;
}

/* Mobile section improvements */
@media (max-width: 768px) {
    section {
        margin-bottom: 40px;
        padding: 25px 20px;
        border-radius: 6px;
    }
    
    .section-header {
        margin-bottom: 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    section {
        margin-bottom: 30px;
        padding: 20px 15px;
        border-radius: 4px;
    }
    
    .section-header {
        margin-bottom: 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
        line-height: 1.5;
    }
}

.minimize-btn {
    background: none;
    border: 1px solid var(--link-color);
    color: var(--link-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.minimize-btn:hover {
    background-color: var(--link-color);
    color: white;
    transform: scale(1.1);
}

.minimize-btn.minimized {
    transform: rotate(180deg);
}

.section-content {
    max-height: 5000px;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

.section-content.minimized {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

section.minimized {
    padding-bottom: 15px;
    margin-bottom: 30px;
}

/* Intro section */
.intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 60px;
}

/* Experience Items */
.experience-item {
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 12px;
    border-left: 4px solid var(--card-border);
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--header-color);
    margin: 0;
    line-height: 1.3;
}

.company {
    color: var(--link-color);
    font-weight: 500;
    font-size: 1rem;
}

.date {
    color: var(--subtitle-color);
    font-weight: 400;
    font-size: 0.95rem;
    background-color: var(--section-bg);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.experience-item ul {
    list-style: none;
    padding-left: 0;
}

.experience-item li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-color);
}

.experience-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--link-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Publications */
.publication-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 5px;
}

.publication-venue {
    color: var(--subtitle-color);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.publication-authors {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Projects */
.project-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.project-item:last-child {
    border-bottom: none;
}

.project-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-date {
    font-size: 0.9rem;
    color: var(--subtitle-color);
    margin-bottom: 10px;
    font-style: italic;
}

.project-item p {
    line-height: 1.5;
    color: var(--text-color);
}

/* Education - Circular Cards Design */
.education-cards-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    position: relative;
}

.education-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--card-bg);
    border-radius: 50%;
    width: 350px;
    height: 350px;
    padding: 35px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 2px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
    aspect-ratio: 1/1;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow-color);
}

.university-logo {
    margin-bottom: 15px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.university-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background-color: white;
    padding: 5px;
}

.education-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.education-details h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--header-color);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.university-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--link-color);
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.education-date {
    font-size: 0.8rem;
    color: var(--subtitle-color);
    margin: 0 0 6px 0;
    font-weight: 400;
}

.education-gpa {
    font-size: 0.8rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
}

.education-connector {
    position: relative;
    width: 370px;
    height: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin: 0 -185px;
}

.connector-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--card-border), var(--link-color), var(--card-border));
    position: relative;
}

.connector-line::before,
.connector-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--link-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.connector-line::before {
    left: 0;
}

.connector-line::after {
    right: 0;
}

.connector-line::after {
    content: '▶';
    width: auto;
    height: auto;
    background: none;
    color: var(--link-color);
    font-size: 16px;
    font-weight: bold;
    right: -10px;
    transform: translateY(-50%);
}

/* Responsive design for education cards */
@media (max-width: 768px) {
    .education-cards-container {
        flex-direction: column;
        gap: 40px;
        margin: 30px 0;
    }
    
    .education-card {
        width: 290px;
        height: 290px;
        padding: 30px;
        aspect-ratio: 1/1;
    }
    
    .university-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 12px;
    }
    
    .education-details h3 {
        font-size: 0.85rem;
    }
    
    .university-name {
        font-size: 0.8rem;
    }
    
    .education-date,
    .education-gpa {
        font-size: 0.75rem;
    }
    
    .education-connector {
        width: 2px;
        height: 60px;
    }
    
    .connector-line {
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, var(--card-border), var(--link-color), var(--card-border));
    }
    
    .connector-line::before {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .connector-line::after {
        content: '▼';
        width: auto;
        height: auto;
        background: none;
        color: var(--link-color);
        font-size: 14px;
        font-weight: bold;
        bottom: -10px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .education-card {
        width: 250px;
        height: 250px;
        padding: 25px;
        aspect-ratio: 1/1;
    }
    
    .university-logo {
        width: 75px;
        height: 75px;
    }
    
    .education-details h3 {
        font-size: 0.8rem;
    }
    
    .university-name {
        font-size: 0.75rem;
    }
    
    .education-date,
    .education-gpa {
        font-size: 0.7rem;
    }
}

/* Awards section styling */
.awards-section {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.awards-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.awards-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.awards-section li {
    margin-bottom: 12px;
    padding: 8px 0;
    line-height: 1.5;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.awards-section li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.awards-section strong {
    color: var(--link-color);
    font-weight: 600;
}

/* Hobbies section */
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.hobby-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--card-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hobby-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.hobby-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hobby-item p {
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
}

.hobby-item strong {
    color: var(--link-color);
    font-weight: 600;
}

/* New section structure styling */
.intro-content {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.education-section {
    margin-top: 20px;
}

.education-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.projects-section, .skills-section {
    margin-bottom: 30px;
}

.projects-section h3, .skills-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.skill-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 10px;
}
.hobbies-category {
    margin-bottom: 40px;
}

.hobbies-category h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hobby-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hobby-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.hobby-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.hobby-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.hobby-content {
    flex: 1;
}

.hobby-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--header-color);
    margin: 0 0 8px 0;
}

.hobby-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
}

.hobby-content strong {
    color: var(--link-color);
    font-weight: 600;
}

/* Pet cards integrated into hobby structure */
.hobby-card.pet-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
}

.hobby-card.pet-card .university-logo {
    margin-bottom: 15px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    border: 2px solid var(--card-border);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.hobby-card.pet-card .pet-photo-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid var(--card-border);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.hobby-card.pet-card .pet-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hobby-card.pet-card:hover .pet-photo {
    transform: scale(1.05);
}

.hobby-card.pet-card .hobby-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--header-color);
    margin: 0 0 10px 0;
}

.hobby-card.pet-card .hobby-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
}

/* Responsive design for hobbies */
@media (max-width: 768px) {
    .hobby-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hobby-card {
        padding: 15px;
        gap: 12px;
    }
    
    .hobby-card.pet-card {
        padding: 20px;
    }
    
    .hobby-icon {
        font-size: 1.5rem;
    }
    
    .hobby-content h4 {
        font-size: 1rem;
    }
    
    .hobby-content p {
        font-size: 0.9rem;
    }
    
    .hobby-card.pet-card .pet-photo-container {
        width: 80px;
        height: 80px;
    }
    
    .hobbies-category h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hobby-card {
        padding: 12px;
        gap: 10px;
    }
    
    .hobby-card.pet-card {
        padding: 15px;
    }
    
    .hobby-icon {
        font-size: 1.3rem;
    }
    
    .hobby-card.pet-card .pet-photo-container {
        width: 70px;
        height: 70px;
    }
}

/* Pets section */
.pets-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.pets-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 25px;
    text-align: center;
}

.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pet-item {
    text-align: center;
    background-color: var(--pet-card-bg);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--card-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pet-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.pet-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--card-border);
    transition: transform 0.2s ease;
}

.pet-photo:hover {
    transform: scale(1.05);
}

.pet-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 10px;
}

.pet-item p {
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* Skills */
.skill-category {
    margin-bottom: 30px;
}

.skill-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 10px;
}

.skill-category p {
    color: var(--text-color);
    line-height: 1.5;
}

.skill-category ul {
    list-style: none;
    padding-left: 0;
}

.skill-category li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.skill-category li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    nav {
        margin-bottom: 20px;
    }
    
    nav a {
        display: block;
        margin: 5px 0;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .experience-header {
        margin-bottom: 10px;
    }
    
    .experience-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
    
    .publication-item h3,
    .project-item h3 {
        font-size: 1rem;
    }
    
    .pets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pet-photo {
        width: 120px;
        height: 120px;
    }
}

/* App Gallery Section */
.app-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.app-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.app-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.app-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.app-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--header-color);
    margin: 0 0 10px 0;
}

.app-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0 0 15px 0;
}

.app-button {
    display: inline-block;
    background-color: var(--card-border);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.app-button:hover {
    background-color: var(--link-hover);
    transform: translateY(-1px);
}

/* Responsive design for App Gallery */
@media (max-width: 768px) {
    .app-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .app-item {
        padding: 20px;
        gap: 15px;
    }
    
    .app-icon {
        font-size: 2rem;
    }
    
    .app-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .app-item {
        padding: 15px;
        gap: 12px;
    }
    
    .app-icon {
        font-size: 1.8rem;
    }
    
    .app-content h3 {
        font-size: 1rem;
    }
}
