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

body {
    font-family: 'Arial', sans-serif;
    background-color: #e7e0d8;
    color: #293b45;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f1ed;
    padding: 15px 25px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar .logo {
    font-size: 22px;
    font-weight: bold;
    color: #7c9ca5;
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: #7c9ca5;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #293b45;
}

/* Hero Section */
.hero-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #7c9ca5, #7c9ca5);
    color: #ffffff;
    padding: 60px 40px;
    gap: 30px;
}

.hero-left {
    flex: 1;
    min-width: 250px;
}

.hero-left h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-left p {
    font-size: 18px;
}

.hero-right {
    flex: 1;
    min-width: 200px;
    display: flex;
    justify-content: center;
}

.hero-right img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Section Wrappers */
.about-container,
.about-resume-wrapper,
.project-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 30px;
}

/* Side-by-Side Layouts */
.about-resume-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.about-column,
.resume-column {
    flex: 1 1 48%;
    min-width: 300px;
}

/* Resume Buttons */
.resume-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 18px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-btn {
    background-color: #7c9ca5;
    color: #fff;
}

.view-btn:hover {
    background-color: #293b45;
}

.download-btn {
    background-color: #7c9ca5;
    color: #f8f8f8;
}

.download-btn:hover {
    background-color: #293b45;
}

/* Education Card */
.edu-card {
    background: #f1f1ed;
    padding: 20px 25px;
    border-left: 6px solid #293b45;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

.edu-card h3 {
    font-size: 22px;
    color: #293b45;
}

.edu-location {
    font-style: italic;
    color: #7c9ca5;
    margin-bottom: 10px;
}


/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.skill-card {
    background-color: #f1f1ed;
    border-left: 6px solid #293b45;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.skill-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #293b45;
}

.skill-card p {
    font-size: 16px;
    color: #444;
}


.work-block {
    margin-bottom: 40px;
}

.work-block h3 {
    font-size: 20px;
    color: #293b45;
    margin-bottom: 5px;
}

.job-duration {
    font-style: italic;
    color: #7c9ca5;
    margin-bottom: 10px;
}

.carousel-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    margin-top: 15px;
}

.carousel-track {
    display: flex;
    gap: 16px;
    padding-bottom: 10px;
}

.carousel-track img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.carousel-track img:hover {
    transform: scale(1.05);
}

/* Hide scrollbars */
.carousel-container::-webkit-scrollbar {
    display: none;
}

/* project */
.project-card img.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card img.project-image:hover {
    transform: scale(1.02);
}

.project-description {
    font-size: 14px;
    color: #555;
    margin: 8px 0 10px;
    line-height: 1.5;
}

.project-type {
    font-size: 15px;
    color: #7c9ca5;
    margin: 5px 0 5px;
    line-height: 1;
}

.more-info-btn {
    background-color: #7c9ca5;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5px;
    transition: background 0.3s ease;
}

.more-info-btn:hover {
    background-color: #293b45;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-content-box {
    background-color: #ffffff;
    margin: 100px auto;
    padding: 30px 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    color: #293b45;
    position: relative;
    text-align: left;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.modal-content-box img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}


.modal-content-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.modal-content-box p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* Exit button top-right of modal */
.close-btn {
    position: absolute;
    top: 12px;
    right: 20px;
    background: none;
    border: none;
    font-size: 26px;
    color: #7c9ca5;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #293b45;
}

.modal-carousel-container {
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 20px;
    scroll-behavior: smooth;
    border-radius: 8px;
}

.modal-image-track {
    display: flex;
    gap: 12px;
}

.modal-image-track img {
    height: 180px;
    max-width: 100%;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

.modal-image-track::-webkit-scrollbar {
    display: none;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
    display: block;
    margin: 5% auto;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#caption {
    text-align: center;
    color: #fff;
    margin-top: 15px;
    font-size: 18px;
}

.carousel-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    padding-bottom: 10px;
}


.carousel-item {
    flex: 0 0 auto;
    width: 280px; /* ⬅️ fixed wider card */
    background-color: #f1f1ed;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-item img {
    width: 240px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-item img:hover {
    transform: scale(1.03);
}

.carousel-item h4 {
    font-size: 20px;
    margin: 8px 0 5px;
    color: #293b45;
}

.carousel-item a {
    font-size: 15px;
    color: #7c9ca5;
    text-decoration: none;
    font-weight: bold;
}

.carousel-item a:hover {
    text-decoration: underline;
}


/* Hide scrollbar */
.carousel-container::-webkit-scrollbar {
    display: none;
}

.scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.scroll-content {
    display: flex;
    gap: 20px;
}

.scroll-content img {
    width: 250px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.scroll-content img:hover {
    transform: scale(1.05);
}

/* Hide Scrollbar */
.scroll-container::-webkit-scrollbar {
    display: none;
}


/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}


.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
}

.contact-form button {
    width: 100%;
    background-color: #7c9ca5;
    color: white;
    border: none;
    padding: 12px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #293b45;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}


/* Footer */
footer {
    background-color: #7c9ca5;
    color: #f1f1ed;
    text-align: center;
    padding: 25px;
    margin-top: 60px;
}

.footer-container {
    max-width: 800px;
    margin: auto;
}

.footer-container a {
    color: #f1f1ed;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-left h1 {
        font-size: 36px;
    }

    .hero-right img {
        width: 180px;
        height: 180px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-resume-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }
}
