/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header and Navigation */
.header {
    background-color: #1e6c93;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    min-height: 60px;
}

.site-title a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 300;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #226e93 0%, #1e6c93 100%);
    background-image: url('https://ssl.gstatic.com/atari/images/simple-header-blended-small.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(33, 33, 33, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1;
    margin: 0;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background-color: #fafafa;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.text-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.6;
}

.text-content a {
    color: #006580;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.text-content a:hover {
    color: #007a93;
}

.text-content a:visited {
    color: #006580;
}

.research-interests {
    margin: 1rem 0 2rem 2rem;
    list-style-type: square;
}

.research-interests li {
    margin-bottom: 0.5rem;
    color: #333;
}

.disclaimer {
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.disclaimer small {
    font-family: 'Courier New', monospace;
    font-style: italic;
    color: #666;
    display: block;
    line-height: 1.4;
}

/* Image Content */
.image-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #1e6c93;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .content-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .content-section {
        padding: 2rem 0;
    }
}

@media screen and (max-width: 480px) {
    .main-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
}

/* Contacts Page Styles */
.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-block h3 {
    color: #226e93;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Lato', sans-serif;
}

.contact-block address {
    font-style: normal;
    line-height: 1.6;
    color: #333;
    margin-left: 1rem;
}

.contact-block p {
    margin-left: 1rem;
    color: #333;
    line-height: 1.6;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-left: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #333;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: rgba(34, 110, 147, 0.1);
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 2px;
}

.social-link span {
    font-weight: 400;
    color: #006580;
}

.social-link:hover span {
    color: #007a93;
}

.image-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.main-image {
    text-align: center;
    max-width: 500px;
}

.location-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.image-caption {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    text-align: right;
}

/* CV Page Styles */
.cv-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cv-download {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1rem;
    background-color: rgba(34, 110, 147, 0.05);
    border-radius: 8px;
}

.cv-download a {
    color: #006580;
    text-decoration: underline;
    font-weight: 500;
}

.cv-download a:hover {
    color: #007a93;
}

.cv-section {
    margin-bottom: 3rem;
}

.cv-section h2 {
    color: #226e93;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #226e93;
    font-style: italic;
    text-decoration: underline;
}

.position {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.position h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.position p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    text-align: justify;
}

.position p:last-child {
    margin-bottom: 0;
}

.thesis-title {
    font-style: italic;
    color: #555;
}

/* Responsive adjustments for CV page */
@media screen and (max-width: 768px) {
    .cv-container {
        padding: 0 1rem;
    }
    
    .cv-section h2 {
        font-size: 1.3rem;
    }
    
    .position h3 {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .hero-section {
        background: none;
        color: black;
    }
    
    .main-title {
        color: black;
    }
    
    .content-section {
        background-color: white;
    }
    
    .text-content a {
        color: black;
        text-decoration: underline;
    }
    
    .social-links {
        display: none;
    }
    
    .contacts-container {
        grid-template-columns: 1fr;
    }
}