:root {
    --primary-color: #571963;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #3e1247;
    text-decoration: underline;
}

/* Header */
header {
    background: linear-gradient(135deg, #571963 0%, #3e1247 100%);
    color: white;
    border-bottom: none;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(87, 25, 99, 0.2);
}

header h1 {
    color: white;
    font-weight: 300;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
}

header a {
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

header a:hover {
    color: white;
    text-decoration-color: white;
}

/* Profile Image */
.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-description {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Navigation */
.navigation-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.navigation-links a {
    background-color: white;
    padding: 1rem 1.4rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: block;
    color: #444;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.navigation-links a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Content Sections */
.info-card,
.book-section,
.publications-section {
    background: var(--card-bg);
    padding: 2.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.info-card:hover,
.book-section:hover,
.publications-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Hacker Section (Terminal Style) */
/* Hacker Section (Softened) */
.hacker-days {
    background: var(--card-bg);
    padding: 2.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    color: #444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.hacker-days:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hacker-days .content {
    flex: 1;
}

.hacker-days h3 {
    color: var(--primary-color);
    font-family: 'Segoe UI', sans-serif;
    border-bottom: 2px solid rgba(87, 25, 99, 0.1);
    text-transform: none;
}

.hacker-days p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0;
}

.hacker-days a {
    color: var(--primary-color);
    text-decoration: none;
    background: none;
    padding: 0;
    font-weight: 500;
}

.hacker-days a:hover {
    color: #3e1247;
    background: none;
    text-decoration: underline;
}

.ribbit-img {
    width: 140px;
    height: auto;
    opacity: 0.9;
    transition: var(--transition);
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hacker-days:hover .ribbit-img {
    opacity: 1;
}

h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(87, 25, 99, 0.1);
    padding-bottom: 0.8rem;
}

/* Contact Items */
.contact-item {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.contact-item strong {
    color: #555;
    margin-right: 0.5rem;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.social-links a {
    padding: 0.4rem 1rem;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
    border: 1px solid #dee2e6;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

/* Publication Items */
.publication-item {
    margin-bottom: 1.5rem;
}

.publication-item a {
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.3rem;
}

.publication-meta {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: #777;
    font-size: 0.9rem;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}