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

:root {
    --primary-color: #333333;
    --primary-dark: #1a1a1a;
    --secondary-color: #666666;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--text-color);
    opacity: 0.7;
}

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

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-color);
    opacity: 0.7;
}

.nav-link:hover::after {
    width: 100%;
    background-color: var(--text-color);
}

.nav-button {
    padding: 8px 20px;
    border: 1px solid var(--text-color);
    background-color: transparent;
    border-radius: 20px;
    transition: var(--transition);
}

.nav-button::after {
    display: none;
}

.nav-button:hover {
    background-color: var(--text-color);
    color: white;
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/personal/headshot1_edited.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-background::after {
    display: none;
}

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

.hero-content {
    position: absolute;
    z-index: 2;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-text-box {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2rem 0;
    width: 100%;
    display: block;
    backdrop-filter: blur(2px);
}

.hero-text-box .container {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.btn {
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    display: inline-block;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--text-color);
    color: white;
    border-color: var(--text-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--text-color);
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* About Section */
.about {
    background-color: var(--bg-color);
    padding: 80px 0;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    position: relative;
}

.about-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
}

.about-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #e6f2ff;
    padding: 3rem;
    margin-left: -3rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-title {
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    color: var(--text-color);
    font-weight: 300;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 0;
    padding: 2rem;
    box-shadow: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.project-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--text-color);
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
    display: block;
    border: 1px solid var(--border-color);
    object-fit: cover;
    object-position: center;
}

/* Custom positioning for project images using data-position attribute */
/* Predefined keywords are handled by CSS, custom values (e.g., "50% 30%") are handled by JavaScript */

/* Specific positioning examples - can be customized per image */
.project-image[data-position="top"] {
    object-position: center top;
}

.project-image[data-position="bottom"] {
    object-position: center bottom;
}

.project-image[data-position="left"] {
    object-position: left center;
}

.project-image[data-position="right"] {
    object-position: right center;
}

.project-image[data-position="top-left"] {
    object-position: left top;
}

.project-image[data-position="top-right"] {
    object-position: right top;
}

.project-image[data-position="bottom-left"] {
    object-position: left bottom;
}

.project-image[data-position="bottom-right"] {
    object-position: right bottom;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
    font-weight: 300;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 0.3rem 0.7rem;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 300;
    border: 1px solid var(--border-color);
}

.project-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    display: inline-block;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 2px;
}

.project-link:hover {
    color: var(--text-light);
    border-bottom-color: var(--text-light);
}

.featured-card {
    border: 1px solid var(--border-color);
}

.more-projects {
    background-color: var(--bg-light);
}

/* Experience Section */
.experience {
    background-color: var(--bg-light);
}

.section-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto 3rem;
    display: block;
    border: 1px solid var(--border-color);
}

.experience-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.experience-item {
    background-color: white;
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: none;
    border-left: 2px solid var(--border-color);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.experience-item:hover {
    border-left-color: var(--text-color);
}

.experience-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.experience-logo-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 10px;
}

.experience-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.experience-header-text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.experience-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.experience-date {
    color: var(--text-light);
    font-weight: 300;
    font-size: 0.9rem;
    white-space: nowrap;
}

.experience-description {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    font-weight: 300;
    font-size: 0.95rem;
}

.experience-courses {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

/* Education Section */
.education {
    background-color: var(--bg-color);
}

.education-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.education-item {
    background-color: white;
    border-radius: 0;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: none;
    border-left: 2px solid var(--border-color);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.education-item:hover {
    border-left-color: var(--text-color);
}

.education-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.education-logo-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 10px;
}

.education-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.education-header-text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.education-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.education-date {
    color: var(--text-light);
    font-weight: 300;
    font-size: 0.9rem;
    white-space: nowrap;
}

.education-description {
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 300;
    font-size: 0.95rem;
}

/* Interests Section */
.interests {
    background-color: var(--bg-light);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.interest-card {
    background-color: white;
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    box-shadow: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.interest-image {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    border: 1px solid var(--border-color);
}

.interest-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--text-color);
}

.interest-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.interest-role {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Contact Section */
.contact {
    background-color: var(--bg-light);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: none;
    transition: var(--transition);
    min-width: 120px;
    min-height: 120px;
    border: 1px solid var(--border-color);
}

.contact-link:hover {
    box-shadow: var(--shadow);
    border-color: var(--text-color);
    color: var(--text-color);
}

.contact-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    width: 2rem;
}

.contact-icon svg {
    width: 2rem;
    height: 2rem;
}

.contact-icon-image {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.contact-link > span:last-child {
    text-align: center;
    line-height: 1.2;
}

.contact-phone {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--bg-light);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Project Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-container {
    position: relative;
    background-color: white;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    margin: 2rem auto;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    opacity: 0.7;
    transform: rotate(90deg);
}

.modal-content {
    padding: 3rem;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.modal-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-description {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 300;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.modal-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    font-size: 1rem;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 2px;
}

.modal-link:hover {
    color: var(--text-light);
    border-bottom-color: var(--text-light);
}

/* Prevent project link from triggering card click */
.project-link {
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

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

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .contact-link {
        width: 100%;
        max-width: 300px;
    }

    .experience-header,
    .education-header {
        flex-direction: row;
        gap: 1rem;
    }

    .experience-logo-wrapper,
    .education-logo-wrapper {
        width: 60px;
        height: 60px;
    }

    .experience-header-text,
    .education-header-text {
        min-width: auto;
    }

    .experience-date,
    .education-date {
        white-space: normal;
    }

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

    .hero-image {
        width: 150px;
        height: 150px;
    }

    .about-image,
    .section-image {
        max-width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        margin-left: 0;
        margin-top: -2rem;
    }

    .project-image,
    .interest-image {
        width: 100%;
    }

    /* Modal responsive styles */
    .modal-container {
        width: 95%;
        margin: 1rem auto;
        max-height: 95vh;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-image {
        max-height: 300px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

