/* home.css - home page only (index.html) */

/* Do not use blog.css narrow container on home */
main .container {
    max-width: 1200px;
    min-height: auto;
}

section {
    padding: 1rem 0;
    position: relative;
    z-index: 2;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
    background: transparent;
    color: inherit;
    position: relative;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
}

.btn-outline {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn-outline:hover {
    background: #333;
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.card-clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.card-clickable:hover {
    text-decoration: none;
    color: inherit;
}

.card-clickable:hover .read-more-link {
    color: #0052a3;
}

.experience-item-clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.experience-item-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #333;
}

.experience-item,
.education-item {
    margin-bottom: 2rem;
}

.experience-item:last-child {
    border-bottom: none;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.job-date {
    color: #666;
    font-size: 0.9rem;
}

.job-description {
    color: #666;
    line-height: 1.6;
}

.course-work-text {
    color: #666;
    font-size: 0.9rem;
}

.bg-muted {
    background: #f8f9fa;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-image {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.project-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.company-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 0.75rem;
    vertical-align: middle;
    border-radius: 4px;
}

.pdf-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.pdf-modal-content {
    position: relative;
    background-color: white;
    margin: 2% auto;
    width: 90%;
    max-width: 800px;
    height: 90%;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.pdf-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.pdf-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.pdf-modal-close:hover {
    background-color: #e5e5e5;
}

.pdf-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 8px 8px;
}

.pdf-modal-footer {
    padding: 1rem;
    border-top: 1px solid #e5e5e5;
    background-color: #f8f9fa;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

/* Blog preview: override posts-grid to show 3 columns on home */
.blog-preview-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.blog-preview-grid .post-card {
    border: none;
    border-bottom: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    padding: 1rem;
}

.blog-preview-grid .post-card:nth-child(3n) {
    border-right: none;
}

@media (max-width: 768px) {
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }

    .blog-preview-grid .post-card {
        border-right: none;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-image {
        width: 150px;
        height: 180px;
        order: -1;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .job-header {
        flex-direction: column;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}
