/* Custom Blog-Style Design - Grayscale Theme */

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

body {
    font-family: 'Inter', Georgia, serif;
    line-height: 1.7;
    color: #2c2c2c;
    background-color: #fafafa;
    font-size: 16px;
    font-weight: 300;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
    color: #4a4a4a;
}

/* Layout Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header/Navigation - Blog Style */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

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

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 300;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #1a1a1a;
}

.nav-link.active {
    color: #1a1a1a;
    font-weight: 400;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 20px;
    height: 2px;
    background-color: #666;
    margin: 2px 0;
    transition: 0.3s;
}

/* Hero Section - Blog Header Style */
.hero {
    padding: 4rem 0 3rem;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
    border: 1px solid #ccc;
    background: #fff;
    color: #4a4a4a;
    font-size: 0.95rem;
}

.btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.btn-primary {
    background: #4a4a4a;
    color: #fff;
    border-color: #4a4a4a;
}

.btn-primary:hover {
    background: #2c2c2c;
    border-color: #2c2c2c;
}

.hero-image {
    display: none; /* Hide in blog style */
}

/* Article/Section Styling */
.section {
    padding: 3rem 0;
    background: #fff;
    margin-bottom: 2rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section-alt {
    background: #f8f8f8;
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.section-description {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Blog Post Style Cards */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.blog-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-item h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.blog-item .meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
    font-style: italic;
}

.blog-item p {
    color: #4a4a4a;
    margin-bottom: 1rem;
}

.blog-item .tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    border: 1px solid #ddd;
}

/* CV Section - Academic Style */
.cv-container {
    display: block;
}

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

.cv-section h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
}

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

.cv-entry h4 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.cv-entry .date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.cv-entry p .date {
    display: inline;
    margin-bottom: 0;
    margin-right: 0.5rem;
}

.cv-entry p {
    color: #4a4a4a;
    font-size: 0.95rem;
}

.contact-info {
    background: #f8f8f8;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: #4a4a4a;
}

.contact-item i {
    color: #666;
    width: 20px;
    text-align: center;
}

/* Skills - Simple List */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.skill-tag {
    background: #f0f0f0;
    color: #4a4a4a;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

/* Research/Design Sections */
.research-grid,
.design-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.research-item,
.design-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    transition: box-shadow 0.3s ease;
}

.research-item:hover,
.design-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.research-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.research-status {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    border: 1px solid #ddd;
}

.research-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.research-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.research-link:hover {
    color: #1a1a1a;
}

/* Data Section */
.data-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.data-category h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
}

.data-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.data-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-item h4 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.data-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.data-size,
.data-format,
.data-lang,
.data-license {
    background: #f0f0f0;
    color: #666;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    border: 1px solid #ddd;
}

/* Footer - Minimal Bottom Right */
.footer {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 1.5rem 2rem;
    z-index: 1000;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: #1a1a1a;
}

.footer-email {
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: #1a1a1a;
}

.footer-bottom {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid #e0e0e0;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .research-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .research-status {
        margin-top: 0.5rem;
    }
    
    .footer {
        position: relative;
        padding: 1rem;
        text-align: center;
    }
    
    .footer-content {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-section {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-email {
        font-size: 0.85rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Portfolio Category Styles */
.portfolio-category {
    margin-bottom: 4rem;
}

.portfolio-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 2rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 2rem;
    margin-top: 3rem;
    letter-spacing: -0.5px;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.portfolio-category:first-child .category-title {
    margin-top: 0;
}

/* Portfolio Grid Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.portfolio-view {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.75rem 1.5rem;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-view {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.portfolio-content .meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.portfolio-content p {
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Portfolio Grid */
@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-image {
        padding-top: 60%;
    }
}

@media (min-width: 601px) and (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 993px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Simple fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 0.5s ease-out;
} 