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

:root {
    --primary-color: #ffffff;
    --secondary-color: #666666;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-light: #999999;
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --border-color: #333333;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main {
    padding-top: 50px; /* Account for fixed navbar height */
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-primary);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.nav-logo {
    margin-left: -7rem;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-right: -6rem;
}

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

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

/* Full Screen Background Video */
.hero-background-video {
    position: absolute;
    top: -10vh;
    left: -14vw;
    width: 120vw;
    height: 120vh;
    object-fit: cover;
    z-index: 1;
    opacity: 1.0;
    pointer-events: none;
    display: block;
}

/* Overlay for text readability - matches video coverage */
.hero::before {
    content: '';
    position: absolute;
    top: -10vh;
    left: -10vw;
    width: 120vw;
    height: 120vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    z-index: 10;
    position: relative;
}


.hero-content {
    flex: 1;
    text-align: left;
}

.hero-tree {
    flex: 0 0 320px;
}

.tree-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-left: 6rem;
}

.selfie-image {
    width: 100%;
    max-width: 250px;
    height: auto;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
    margin-top: 0.5rem;
    margin-left: 6rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    width: 320px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #ffffff;
    max-width: 600px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-links {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-link:hover {
    color: #f0f0f0;
}

.hero-link i {
    font-size: 1.25rem;
}

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

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-primary);
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--bg-primary);
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}



/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Resume Section */
.resume-section {
    padding: 2rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.resume-link-container {
    text-align: center;
}

.resume-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.resume-link:hover {
    color: var(--primary-color);
}

.resume-link i {
    font-size: 1.1rem;
}

/* About Section */
.about {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.about-image {
    flex: 0 0 350px;
    text-align: center;
    margin-left: -6rem;
}

.about-photo {
    width: 100%;
    max-width: 350px;
    height: auto;
}

.thumbs-up-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-top: 1rem;
}

.about-image-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0.5rem 0 1rem 0;
    font-style: italic;
}

.about-text {
    flex: 1;
}

.about-section-header {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.about-section-header:first-child {
    margin-top: 0;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: left;
    line-height: 1.8;
}

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

.expertise-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.expertise-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.expertise-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.expertise-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background: var(--bg-primary);
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Simplified Project Cards */
.project-card-simple {
    background: var(--bg-card);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-preview-image.heat-island-thumbnail {
    object-fit: contain;
    background-color: #000000;
}

.project-preview-image.engine-analysis-thumbnail {
    object-fit: contain;
    background-color: #000000;
}

.project-preview-image.cable-barrier-thumbnail {
    margin-left: 1rem;
}

.project-preview-placeholder {
    height: 200px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.project-preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.project-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-card-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-card-category {
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.view-project-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.view-project-btn:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
}

/* Legacy project item styles (kept for compatibility) */
.project-item {
    padding: 3rem 0;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.project-item:not(:last-child) {
    border-bottom: 1px solid var(--primary-color);
}

.project-image,
.project-video {
    flex: 0 0 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.project-content {
    flex: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-category {
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

.project-technologies {
    color: var(--text-light);
    font-size: 0.875rem;
}

.project-placeholder {
    flex: 0 0 300px;
    height: 200px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

.project-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Featured Project Styles */
.featured-project {
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-content {
    order: 2;
    margin-top: 2rem;
    max-width: 800px;
}

.featured-media {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

.featured-media .featured-video {
    transform: translateX(-3%);
}



.featured-video,
.featured-image {
    width: 100%;
    max-width: 1200px;
    height: 675px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.featured-project .project-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.featured-project .project-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.featured-project .project-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.featured-project .project-category {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.featured-project .project-technologies {
    font-size: 1rem;
}

/* Video with Image Combo Layout */
.featured-media-combo {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.main-video {
    flex: 0 0 800px;
}

.main-video .featured-video {
    width: 100%;
    height: 450px;
    transform: none;
}

.supplementary-image {
    flex: 0 0 160px;
    margin-top: 40px;
}

.combo-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

/* Dual Video Container */
.dual-video-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.video-section {
    margin-bottom: 1.5rem;
}

.video-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

/* Nozzle Horizontal Video Layout */
.nozzle-horizontal-container {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}

.horizontal-videos-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    max-width: 1020px;
    margin: 0 auto;
}

.horizontal-video-item {
    flex: 0 0 auto;
    width: 320px;
    text-align: center;
}

.horizontal-video-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.horizontal-video {
    width: 100%;
    height: 220px;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.analysis-subtitle {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
}

.analysis-subtitle h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

.nozzle-content-bottom {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 0.5rem;
}

.nozzle-content-bottom .project-detail-description {
    text-align: left;
    max-width: none;
    margin: 0 auto 2rem auto;
}

/* Inline image styles for project descriptions */
.inline-image-container {
    text-align: center;
    margin: 2rem 0;
}

.inline-project-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    object-fit: contain;
}

.image-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-style: italic;
}

/* GitHub link styling */
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: transparent;
    margin-left: 1.5rem;
}

.github-link:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.github-link i {
    font-size: 1.1rem;
}

/* Large videos with side images within description */
.large-videos-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    margin: 2rem 0;
}

.large-video-section {
    margin-bottom: 2rem;
}

.large-video-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.large-video-combo {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 2rem;
}

.large-main-video {
    flex: 0 0 700px;
}

.large-featured-video {
    width: 100%;
    height: 500px;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.large-supplementary-image {
    flex: 0 0 180px;
    margin-top: 40px;
}

.large-combo-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

/* FlowNet horizontal media layout */
.flownet-horizontal-container {
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
}

.flownet-horizontal-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
}

.flownet-media-item {
    flex: 0 0 auto;
    width: 500px;
    text-align: center;
}

.flownet-media-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.flownet-horizontal-image {
    width: 100%;
    height: 350px;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.flownet-horizontal-video {
    width: 100%;
    height: 350px;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

/* Video analysis paragraphs */
.video-analysis {
    margin-top: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.video-analysis p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: left;
    margin: 0;
}

/* Custom Gallery Project Styles */
.gallery-project {
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-media {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.image-gallery {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.gallery-image {
    width: 350px;
    height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-content {
    max-width: 800px;
}

.gallery-project .project-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gallery-project .project-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.gallery-project .project-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.gallery-project .project-category {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.gallery-project .project-technologies {
    font-size: 1rem;
}

/* Excel Download Styles */
.excel-download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.excel-icon {
    margin-bottom: 1rem;
}

.excel-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.excel-info p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.download-btn {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Calculator Results Section */
.calculator-results-section {
    margin-top: 2rem;
    text-align: center;
}

.calculator-results-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Inline PDF Link */
.inline-pdf-link-container {
    margin: 2rem 0;
    text-align: center;
}

.pdf-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.pdf-report-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: transparent;
}

.pdf-report-link:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pdf-report-link i {
    font-size: 1.2rem;
    color: #dc2626;
}

/* Centered Project Layout */
.project-centered-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 0.5rem;
}

/* PDF Report Styles */
.pdf-report-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.pdf-viewer {
    width: 100%;
    height: 800px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg-card);
}

.pdf-download {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.pdf-icon {
    flex-shrink: 0;
}

.pdf-info {
    flex: 1;
}

.pdf-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pdf-info p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pdf-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.view-btn {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* FlowNet Dual Media Styles */
.flownet-media-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.flownet-section {
    background: var(--bg-card);
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.media-annotation {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.media-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.flownet-image-wrapper,
.flownet-video-wrapper {
    display: flex;
    justify-content: center;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.flownet-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
}

.flownet-video {
    width: 100%;
    max-width: 800px;
    height: 450px;
    object-fit: cover;
}

/* Heat Island Surfaces Styles */
.heat-island-container {
    max-width: 900px;
    margin: 0 auto;
}

.heat-island-content {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.heat-island-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: left;
}

.heat-island-intro-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-align: left;
}

.surface-paragraph {
    margin-bottom: 2rem;
    text-align: left;
}

.surface-paragraph:last-child {
    margin-bottom: 0;
}

.surface-name {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.surface-main-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
}

.surface-main-image:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Project Page Styles */
.project-page {
    min-height: 100vh;
    padding-top: 100px;
    background: var(--bg-primary);
}

.project-header {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--primary-color);
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-content-section {
    text-align: center;
}

.project-header-centered {
    text-align: center;
    margin-bottom: 0.25rem;
}

.project-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.project-detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-detail-category {
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.project-detail-technologies {
    color: var(--text-secondary);
    font-size: 1rem;
}

.project-detail-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    text-indent: 0;
}

.project-detail-description strong {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.project-layout-container {
    display: flex;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.project-content-left {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
}

.project-media-right {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
}

/* Special layout for nozzle project with wider media */
.nozzle-project-layout .project-content-left {
    flex: 1.5;
}

.nozzle-project-layout .project-media-right {
    flex: 1;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .project-layout-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .project-content-left,
    .project-media-right {
        flex: none;
    }
    
    .project-header-centered {
        margin-bottom: 2rem;
    }
    
    .project-detail-title {
        font-size: 2rem;
    }
}

.project-media-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

.error-message {
    text-align: center;
    padding: 3rem;
}

.error-message h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-message p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Resume Section */
.resume {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.resume-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.resume-preview {
    width: 100%;
    height: 700px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.resume-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.resume-actions {
    text-align: center;
}

.resume-link {
    font-size: 1.125rem;
    padding: 1rem 2rem;
    gap: 0.75rem;
    transition: all 0.3s ease;
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.resume-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-link i {
    font-size: 1.25rem;
    width: 20px;
}

/* Form Styles */
.contact-form,
#projectForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }

    /* Fix header to be fully visible on mobile */
    .nav-container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .nav-logo {
        margin-left: 0;
        flex: 1;
    }
    
    .nav-logo h2 {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Mobile hero section - zoom out for better text visibility */
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .hero-links {
        gap: 1rem;
        margin-bottom: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-link {
        font-size: 0.85rem;
        color: #ffffff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
        min-width: fit-content;
    }
    
    .hero-tree {
        flex: 0 0 250px;
        order: -1;
    }
    
    .tree-image {
        max-width: 250px;
        margin-left: 0;
    }
    
    .image-caption {
        margin-left: 0;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }
    
    .about-image {
        flex: none;
        order: -1;
        margin-left: 0;
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    
    .about-photo,
    .thumbs-up-image {
        max-width: 280px;
        width: 100%;
        margin: 0 auto;
        display: block;
    }
    
    .thumbs-up-image {
        margin: 1rem auto 0 auto;
    }
    
    .about-image-caption {
        text-align: center;
        max-width: 280px;
        margin: 0.5rem auto 1rem auto;
        width: 100%;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-section-header {
        text-align: center;
    }
    
    .about-description {
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }

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

    .project-item {
        flex-direction: column;
        padding: 2rem 0;
        gap: 1rem;
    }

    .project-image,
    .project-video,
    .project-placeholder {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .featured-project {
        padding: 2rem 0;
    }

    .featured-video,
    .featured-image {
        height: 300px;
        max-width: 100%;
    }

    .featured-project .project-title {
        font-size: 1.5rem;
    }

    .featured-project .project-description {
        font-size: 1rem;
    }

    .featured-project .project-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .gallery-project {
        padding: 2rem 0;
    }

    .gallery-media {
        margin-bottom: 2rem;
    }

    .image-gallery {
        flex-direction: column;
        gap: 1.5rem;
    }

    .gallery-image {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }

    .gallery-project .project-title {
        font-size: 1.5rem;
    }

    .gallery-project .project-description {
        font-size: 1rem;
    }

    .gallery-project .project-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .featured-media-combo {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-video,
    .supplementary-image {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .main-video .featured-video {
        height: 300px;
        transform: none;
    }

    .combo-image {
        max-height: 400px;
    }

    /* Nozzle horizontal videos mobile styles */
    .horizontal-videos-row {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        max-width: 100%;
    }
    
    .horizontal-video-item {
        width: 90%;
        max-width: 350px;
    }
    
    .horizontal-video {
        height: 200px;
    }

    /* Mobile styles for inline images */
    .inline-project-image {
        max-height: 300px;
    }
    
    .image-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    /* Mobile GitHub link styles */
    .github-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin: 0.5rem 0;
    }

    /* Mobile analysis subtitle styles */
    .analysis-subtitle h3 {
        font-size: 1rem;
        margin: 0.5rem 0;
    }

    /* Mobile large videos styles */
    .large-video-combo {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        padding-left: 0;
    }
    
    .large-main-video,
    .large-supplementary-image {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    
    .large-main-video {
        max-width: 500px;
    }
    
    .large-featured-video {
        height: 320px;
    }
    
    .large-supplementary-image {
        margin-top: 0;
        max-width: 300px;
    }
    
    .large-combo-image {
        max-height: 250px;
    }

    /* Mobile video analysis styles */
    .video-analysis {
        padding: 0 1rem;
        margin-top: 1rem;
    }
    
    .video-analysis p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Mobile FlowNet horizontal styles */
    .flownet-horizontal-row {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .flownet-media-item {
        width: 90%;
        max-width: 450px;
    }
    
    .flownet-horizontal-image,
    .flownet-horizontal-video {
        height: 280px;
    }

    .excel-download-section {
        padding: 2rem;
        margin: 0 1rem;
    }

    .excel-info h3 {
        font-size: 1.25rem;
    }

    .excel-info p {
        font-size: 1rem;
    }

    .download-btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

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

    .pdf-report-link {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }

    .pdf-report-section {
        gap: 1.5rem;
    }

    .pdf-viewer {
        height: 500px;
    }

    .pdf-download {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .pdf-info h3 {
        font-size: 1.25rem;
    }

    .pdf-info p {
        font-size: 1rem;
    }

    .pdf-actions {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }

    .view-btn,
    .pdf-actions .download-btn {
        width: 100%;
        max-width: 250px;
    }

    .flownet-media-container {
        gap: 2rem;
    }

    .flownet-section {
        padding: 1.5rem;
    }

    .media-annotation {
        font-size: 1.25rem;
    }

    .media-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .flownet-video {
        height: 300px;
    }

    .heat-island-content {
        padding: 1.5rem;
    }

    .heat-island-title {
        font-size: 1.5rem;
    }

    .heat-island-intro-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .surface-paragraph {
        margin-bottom: 1.5rem;
    }

    .surface-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .surface-main-image {
        height: auto;
    }

    .resume-preview {
        height: 500px;
    }

    .resume-link {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

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

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

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

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

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

    .nav-container {
        padding: 0 1rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }

    .form-buttons {
        flex-direction: column;
    }
}

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

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
