/* Modern Responsive CSS for Attila Asghari's Website */

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

body {
    font-size: 17px;
    color: #002147;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
}

/* Links */
a {
    text-decoration: none;
    color: #060FDF;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #4B00C7;
}

/* Header Styles */
#header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 0;
}

#title1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #000068;
}

#title2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #495057;
    font-style: italic;
}

/* Navigation Bar */
#nav-bar {
    background-color: #fff;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

#nav-bar a {
    color: #060FDF;
    padding: 0.5rem 0.75rem;
    border-right: 1px solid #dee2e6;
    transition: background-color 0.3s ease;
}

#nav-bar a:last-child {
    border-right: none;
}

#nav-bar a:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

/* Date display */
#todayDate {
    margin-left: auto;
    font-size: 0.9rem;
    color: #002147;
    white-space: nowrap;
}

/* Main Content Wrapper */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 500px;
}

/* Profile Section - Replaces Table Layout */
.profile-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 150px;
    height: auto;
    background-color: beige;
    border-radius: 8px;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-info h2 {
    margin-bottom: 1rem;
    color: #000068;
    font-size: 1.8rem;
}

.profile-info p {
    margin-bottom: 0.5rem;
    color: #495057;
}

.profile-info em {
    display: block;
    margin-top: 1rem;
    line-height: 1.8;
}

/* Content Sections */
.main-p {
    padding-left: 0;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

h3 {
    margin: 2rem 0 1rem 0;
    color: #000068;
    font-size: 1.4rem;
    border-left: 4px solid #060FDF;
    padding-left: 1rem;
}

/* Book/Content Grid - Replaces Table Layout */
.content-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.book-cover {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Lists */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Major Headers */
.major-header {
    border-bottom: 2px solid #060FDF;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin: 2rem 0 1rem 0;
    color: #000068;
    font-size: 1.2rem;
}

/* Code Elements */
code {
    background-color: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

/* Images in Content */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
#footer {
    background-color: #f8f9fa;
    padding: 2rem 1rem;
    text-align: center;
    border-top: 1px solid #dee2e6;
    margin-top: 3rem;
}

#footer a {
    display: inline-block;
    margin: 0 0.5rem;
}

#footer img {
    border: none;
    width: 88px;
    height: 31px;
    box-shadow: none;
}

#lastModified {
    font-family: monospace;
    color: #6c757d;
    text-align: center;
    margin: 2rem 0 1rem 0;
    font-size: 0.9rem;
}

/* Contact Information */
address {
    margin-bottom: 0.5rem;
    font-style: normal;
}

/* Validation Badges */
.validation-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Site Map Link */
#footer a[href="./sitemap.xml"] {
    float: none;
    display: inline-block;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #title1 {
        font-size: 2rem;
    }
    
    #title2 {
        font-size: 1rem;
    }
    
    #nav-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    #nav-bar a {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        text-align: center;
    }
    
    #nav-bar a:last-child {
        border-bottom: none;
    }
    
    #todayDate {
        margin-left: 0;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-image {
        width: 120px;
        margin: 0 auto;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .book-cover {
        max-width: 150px;
        margin: 0 auto;
    }
    
    .wrapper {
        padding: 1rem;
    }
    
    .validation-badges {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #title1 {
        font-size: 1.5rem;
    }
    
    .profile-section {
        padding: 1rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .major-header {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    #nav-bar, #footer, .validation-badges {
        display: none;
    }
    
    body {
        font-size: 14px;
        color: #000;
    }
    
    .wrapper {
        padding: 0;
    }
}

/* Enhanced Project List Styles */
.project-list {
    list-style: none;
    padding: 0;
}

.project-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.project-item h3 {
    margin-top: 0;
    border-left: none;
    padding-left: 0;
}

.project-item h3 a {
    color: #060FDF;
    font-weight: 600;
}

.project-item .main-p {
    margin-bottom: 0;
}

.project-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #060FDF;
    color: white;
}

.btn-primary:hover {
    background-color: #050db3;
    text-decoration: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    text-decoration: none;
}

.file-size {
    color: #6c757d;
    font-size: 0.9rem;
    font-family: monospace;
}

/* Image Gallery for Multiple Images */
.image-gallery {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.image-gallery img {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    height: auto;
    object-fit: cover;
}

/* Responsive Images */
.responsive-img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* CV Page Specific Styles */
.cv-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cv-section h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #000068;
    border-bottom: 2px solid #060FDF;
    padding-bottom: 0.5rem;
}

.print-btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
}

.cv-list {
    list-style: none;
    padding: 0;
}

.cv-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.skill-item {
    background: #060FDF;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
}

/* Documents Page Specific Styles */
.document-section {
    margin-bottom: 3rem;
}

.document-section h3 {
    border-left: 4px solid #060FDF;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    color: #000068;
}

.document-list {
    display: grid;
    gap: 2rem;
}

.document-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.document-item h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.document-item h4 a {
    color: #060FDF;
    font-weight: 600;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.year {
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.author, .translator, .language {
    font-style: italic;
}

.document-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.document-item p {
    margin-top: 1rem;
    line-height: 1.6;
}

/* Hobbies Page Specific Styles */
.hobbies-section {
    margin-bottom: 2rem;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hobby-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hobby-card h4 {
    color: #060FDF;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.hobby-card p {
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 1rem;
}

.p-2 {
    padding: 1rem;
}


/* ===== HAMBURGER ===== */
#hamburger{
  display:none;               /* desktop: hidden */
  position:absolute;
  right:1rem; top:1rem;
  width:30px; height:24px;
  background:transparent;
  border:none; cursor:pointer;
  flex-direction:column;
  justify-content:space-between;
  z-index:1100;
}
#hamburger span{
  width:100%; height:3px;
  background:#060fdf;
  transition:.3s;
}
#mobile-menu{
  position:fixed;
  inset:0 0 0 auto;          /* stick to right edge */
  width:260px; height:100vh;
  background:#fff;
  transform:translateX(100%);
  transition:transform .35s;
  display:flex; flex-direction:column;
  padding-top:4rem;
  box-shadow:-4px 0 12px rgba(0,0,0,.1);
  z-index:1000;
}
#mobile-menu.open{ transform:translateX(0); }
#mobile-menu a{
  padding:1rem 1.5rem;
  border-bottom:1px solid #dee2e6;
  color:#060fdf;
}

/* --- show hamburger < 768 px --- */
@media (max-width:768px){
  #hamburger{display:flex;}
  #nav-bar>a{display:none;}   /* hide old horizontal links */
}

/* ========= PROJECT CATALOGUE ========= */
#cat-nav{ display:flex; flex-wrap:wrap; gap:.5rem; margin:1.5rem 0 2rem 0; }
.cat-btn{ background:#e9ecef; border:1px dashed #6c757d; padding:.5rem 1rem; cursor:pointer; transition:background .2s,color .2s; }
.cat-btn.active,.cat-btn:hover{ background:#060fdf; color:#fff; border:1px dashed #060fdf; }

#project-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:1.5rem; }
.card{ background:#fff; border:1px dashed #000; padding:1.5rem; display:flex; flex-direction:column; }
.card:hover{ border-color:#060fdf; }
.card h3{ margin:0 0 .5rem 0; font-size:1.15rem; color:#000068; }
.badge{ background:#f8f9fa; color:#060fdf; font-size:.7rem; font-weight:600; padding:.15rem .5rem; border:1px solid #060fdf; margin-left:.5rem; }
.meta{ font-size:.8rem; color:#6c757d; margin:.5rem 0 1rem 0; display:flex; gap:1rem; }
.links{ margin-top:auto; display:flex; flex-wrap:wrap; gap:.5rem; }
.btn{ display:inline-block; padding:.4rem .9rem; text-decoration:none; font-size:.85rem; background:#fff; color:#060fdf; border:1px solid #060fdf; transition:background .2s,color .2s; }
.btn.pri:hover{ background:#060fdf; color:#fff; border:1px dashed #060fdf; }
.btn.sec{ border-color:#6c757d; color:#6c757d; }
.btn.sec:hover{ background:#6c757d; color:#fff; border-color:#6c757d; }

/* hide non-selected categories */
.card.hidden{ display:none; }