/* Modern Tech-Style CSS for Academic Website */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #fafafa;
    font-size: 15px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

/* Modern Header - Compact and Clean */
#header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#header > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px; /* Much smaller than original 155px */
    padding: 0 20px;
}

#header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

#header h1 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

#header h1 a:hover {
    color: #63b3ed;
}

#header nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

#header nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

#header nav a:hover {
    color: #ffffff;
    border-bottom-color: #63b3ed;
}

#header nav a.active {
    color: #63b3ed;
    border-bottom-color: #63b3ed;
}

/* Content Area - Efficient Space Usage */
#content {
    background: #ffffff;
    min-height: calc(100vh - 60px - 40px); /* Full height minus header and footer */
    padding: 1.5rem 0;
}

#content section {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

#content section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

#content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #63b3ed, #3182ce);
    border-radius: 2px;
}

#content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a5568;
    margin: 1.25rem 0 0.5rem 0;
}

#content p {
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;

}

#content a {
    color: #3182ce;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

#content a:hover {
    color: #2c5282;
    border-bottom-color: #2c5282;
}

#content header {
    margin-bottom: 1.5rem;
}

/* Profile Header with Photo and Social Links */
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-photo {
    flex-shrink: 0;
}

.profile-photo img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 100px !important;
    max-height: 100px !important;
}

.profile-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.profile-info {
    flex: 1;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #3182ce;
    border-color: #3182ce;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* Force profile photo size */
.profile-photo img[src*="profile"] {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
}

/* Force Google Scholar icon size */
.social-icon img[src*="gscholar"] {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

/* Override any inline styles for profile photo */
img[src*="profile.jpg"] {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* Code styling */
code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: #f7fafc;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e53e3e;
    border: 1px solid #e2e8f0;
}

pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

pre code {
    background: none;
    padding: 0;
    border: none;
    color: inherit;
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Links */
.link-list {
    list-style: none;
    padding: 0;
}

.link-list li {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.link-list a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.link-list a:hover {
    color: #3182ce;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3182ce, #63b3ed);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
    color: white;
}

.button-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Grid System - More Efficient */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.row > * {
    padding: 0 1rem;
}

.col-1 { width: 8.33333%; }
.col-2 { width: 16.66667%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33333%; }
.col-5 { width: 41.66667%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33333%; }
.col-8 { width: 66.66667%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33333%; }
.col-11 { width: 91.66667%; }
.col-12 { width: 100%; }

/* Alignment */
.aln-center {
    justify-content: center;
}

.aln-left {
    justify-content: flex-start;
}

.aln-right {
    justify-content: flex-end;
}

/* CV Page Specific Styles - Simplified */
.pdf-container {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pdf-viewer {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Compact Footer */
#footer {
    background: #1a202c;
    color: #e2e8f0;
    padding: 1.5rem 0;
    margin-top: auto;
    display: none; /* Completely hide footer */
}

#footer h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

#footer a {
    color: #63b3ed;
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer a:hover {
    color: #90cdf4;
}

#copyright {
    background: #2d3748;
    color: #a0aec0;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    display: none; /* Completely hide copyright */
}

#copyright a {
    color: #63b3ed;
    text-decoration: none;
}

/* Hide any Quick Links content */
#footer h2,
#footer section {
    display: none !important;
}

/* Hide mobile navigation elements */
#navPanel, #titleBar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    #header > .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 15px;
    }
    
    #header nav {
        gap: 1rem;
    }
    
    #content {
        padding: 1rem 0;
    }
    
    #content section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .row {
        margin: 0 -0.5rem;
    }
    
    .row > * {
        padding: 0 0.5rem;
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* Mobile profile layout */
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-photo img {
        width: 100px;
        height: 100px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Mobile CV layout */
    .pdf-viewer {
        height: 600px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    #header h1 {
        font-size: 1.25rem;
    }
    
    #content h2 {
        font-size: 1.5rem;
    }
    
    #content section {
        padding: 1rem;
    }
    
    .pdf-viewer {
        height: 500px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a202c;
        color: #e2e8f0;
    }
    
    #content {
        background: #2d3748;
    }
    
    #content section {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    #content h2 {
        color: #f7fafc;
    }
    
    #content h3 {
        color: #cbd5e0;
    }
    
    #content p {
        color: #cbd5e0;
    }
    
    .link-list li {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .link-list li:hover {
        background: #2d3748;
    }
    
    code {
        background: #4a5568;
        color: #feb2b2;
    }
    
    /* Dark mode CV styles */
    .pdf-container {
        background: #2d3748;
        border-color: #4a5568;
    }
}

/* Smooth animations */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #63b3ed;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #header,
    #footer,
    #copyright {
        display: none;
    }
    
    #content {
        padding: 0;
    }
    
    #content section {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .pdf-container {
        display: none;
    }
}
