/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    background-color: #f5f5f5;
    transition: background 0.3s, color 0.3s;
}

/* Sidebar Navigation */
.sidebar {
    width: 200px;
    height: 100vh;
    background: #333;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    text-align: center;
}

/* Sidebar Header */
.sidebar-header {
    margin-bottom: 30px;
    margin-top: 20px;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 126, 95, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 126, 95, 0.4);
}

.sidebar-name {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}

.sidebar-subtitle {
    color: white;
    font-size: 14px;
    margin: 0;
    font-style: italic;
    opacity: 0.9;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    position: relative;
}

.sidebar ul li a:hover {
    color: #f4a261;
    background-color: rgba(244, 162, 97, 0.1);
}

.sidebar ul li a.active {
    background: linear-gradient(90deg, #f4a261, #ff7e5f);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.3);
}

.sidebar ul li a.active:hover {
    color: white;
    background: linear-gradient(90deg, #f4a261, #ff7e5f);
}

/* Dark Mode Button */
#dark-mode-toggle {
    margin-top: 20px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background: #f4a261;
    color: white;
    border-radius: 5px;
    transition: background 0.3s;
}

#dark-mode-toggle:hover {
    background: #e76f51;
}

/* Main Content */
.content {
    margin-left: 220px;
    padding: 40px;
    width: calc(100% - 220px);
}

/* Half-Screen Welcome Section */
.half-screen {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
    text-align: center;
}

.half-screen h1 {
    font-size: 2.5em;
    margin: 0;
}

/* Fancy Headers */
.fancy-header {
    font-size: 2em;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.fancy-header::after {
    content: '';
    width: 80px;
    height: 4px;
    background: #ff7e5f;
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

/* Dark Mode Styles */
.dark-mode {
    background-color: #121212;
    color: white;
}

.dark-mode .sidebar {
    background: #222;
}

.dark-mode .sidebar-header {
    background: linear-gradient(135deg, #e76f51, #ff9b85);
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.3);
}

.dark-mode .sidebar-header:hover {
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.4);
}

.dark-mode .sidebar-name {
    color: white;
}

.dark-mode .sidebar-subtitle {
    color: #f0f0f0;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dark-mode .sidebar ul li a {
    color: #bbb;
}

.dark-mode .sidebar ul li a:hover {
    color: #ff7e5f;
    background-color: rgba(255, 126, 95, 0.1);
}

.dark-mode .sidebar ul li a.active {
    background: linear-gradient(90deg, #e76f51, #ff9b85);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.3);
}

.dark-mode .sidebar ul li a.active:hover {
    color: white;
    background: linear-gradient(90deg, #e76f51, #ff9b85);
}

.dark-mode .half-screen {
    background: linear-gradient(to right, #e76f51, #ff9b85);
}

.dark-mode .fancy-header::after {
    background: #ff9b85;
}

/* About Section Styling */
.about-content {
    max-width: 900px;
    line-height: 1.6;
}

.about-content h3 {
    font-size: 1.8em;
    color: #ff7e5f;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-content h3::after {
    content: '';
    width: 60px;
    height: 3px;
    background: #ff7e5f;
    position: absolute;
    left: 0;
    bottom: -8px;
}

.about-content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Education Items */
.education-item {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff7e5f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.education-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.education-item h4 {
    color: #333;
    font-size: 1.4em;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.education-item .institution {
    color: #ff7e5f;
    font-weight: 600;
    font-size: 1.1em;
    margin: 5px 0;
}

.education-item .duration {
    color: #666;
    font-style: italic;
    margin: 5px 0 15px 0;
}

.education-item .description {
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Dark mode adjustments for about section */
.dark-mode .about-content h3 {
    color: #ff9b85;
}

.dark-mode .about-content h3::after {
    background: #ff9b85;
}

.dark-mode .education-item {
    background: #2a2a2a;
    border-left-color: #ff9b85;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .education-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dark-mode .education-item h4 {
    color: #fff;
}

.dark-mode .education-item .institution {
    color: #ff9b85;
}

.dark-mode .education-item .duration {
    color: #bbb;
}

.dark-mode .education-item .description {
    color: #ccc;
}

/* CV Section Styling */
.cv-content {
    max-width: 900px;
    margin: 0 auto;
}

.cv-download {
    text-align: center;
    margin-bottom: 40px;
}

.cv-download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 126, 95, 0.3);
}

.cv-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 126, 95, 0.4);
}

.cv-section {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cv-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cv-section h3 {
    color: #ff7e5f;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff7e5f;
    padding-bottom: 8px;
}

.cv-item {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.cv-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cv-item h4 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cv-institution {
    color: #666;
    font-weight: 500;
    margin-bottom: 4px;
    font-style: italic;
}

.cv-duration {
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
}

.cv-gpa, .cv-honors {
    color: #ff7e5f;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.cv-description {
    color: #555;
    line-height: 1.6;
    margin-top: 8px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-category {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff7e5f;
}

.skill-category h4 {
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    background: white;
    margin-bottom: 6px;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.skills-list li:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Dark Mode CV Styling */
body.dark-mode .cv-section {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .cv-section h3 {
    color: #ff9a7b;
    border-bottom-color: #ff9a7b;
}

body.dark-mode .cv-item {
    border-bottom-color: #4a5568;
}

body.dark-mode .cv-item h4 {
    color: #f7fafc;
}

body.dark-mode .cv-institution {
    color: #a0aec0;
}

body.dark-mode .cv-duration {
    color: #718096;
}

body.dark-mode .cv-gpa,
body.dark-mode .cv-honors {
    color: #ff9a7b;
}

body.dark-mode .cv-description {
    color: #cbd5e0;
}

body.dark-mode .skill-category {
    background: #1a202c;
    border-left-color: #ff9a7b;
}

body.dark-mode .skill-category h4 {
    color: #f7fafc;
}

body.dark-mode .skills-list li {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .cv-download-btn {
    background: linear-gradient(135deg, #ff9a7b, #ffd89b);
}

/* Publications Section Styling */
.publications-container {
    max-width: 900px;
    margin: 0 auto;
}

.publication-block {
    background: white;
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #ff7e5f;
}

.publication-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.publication-block h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.publication-block p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.publication-block p:first-of-type {
    color: #555;
    font-size: 15px;
}

.publication-block p:last-child {
    color: #666;
    font-style: italic;
    font-size: 14px;
    margin-bottom: 0;
}

.publication-block b {
    color: #ff7e5f;
    font-weight: 700;
}

/* Dark Mode Publications Styling */
body.dark-mode .publication-block {
    background: #2d3748;
    border-left-color: #ff9a7b;
}

body.dark-mode .publication-block h3 {
    color: #f7fafc;
}

body.dark-mode .publication-block p:first-of-type {
    color: #cbd5e0;
}

body.dark-mode .publication-block p:last-child {
    color: #a0aec0;
}

body.dark-mode .publication-block b {
    color: #ff9a7b;
}

/* Contact Section Styling */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-left: 4px solid #ff7e5f;
}

.contact-intro p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

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

.contact-item {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.contact-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-logo {
    transform: scale(1.1);
}

.contact-info h4 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-info a {
    color: #ff7e5f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-all;
}

.contact-info a:hover {
    color: #e56b50;
    text-decoration: underline;
}

.contact-footer {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    padding: 20px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
}

.contact-footer p {
    margin: 0;
    font-size: 16px;
}

/* Dark Mode Contact Styling */
body.dark-mode .contact-intro {
    background: #2d3748;
    border-left-color: #ff9a7b;
}

body.dark-mode .contact-intro p {
    color: #cbd5e0;
}

body.dark-mode .contact-item {
    background: #2d3748;
}

body.dark-mode .contact-info h4 {
    color: #f7fafc;
}

body.dark-mode .contact-info a {
    color: #ff9a7b;
}

body.dark-mode .contact-info a:hover {
    color: #ffb499;
}

body.dark-mode .contact-footer {
    background: linear-gradient(135deg, #ff9a7b, #ffd89b);
}
