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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background: #2c3e50;
    color: white;
    padding: 2rem;
    text-align: center;
}

nav {
    margin-top: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin: 3rem 0;
}

h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
}

@font-face {
    font-family: 'Roboto Regular';
    src: url('fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Type Machine', monospace, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header h1 a:hover {
    opacity: 0.8;
}

.pdf-container {
    width: 90%;
    max-width: 900px;
    margin: 2rem auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pdf-container iframe {
    display: block;
    border: none;
    width: 100%;
}

.download-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #2980b9;
}

.project {
    background: #f4f4f4;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.project h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.project-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.05);
}

.project p {
    margin: 0.75rem 0;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    margin: 1rem 0;
    font-size: 1.1rem;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

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

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 80%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    transition: opacity 0.3s;
    z-index: 1001;
}

.lightbox-arrow:hover {
    opacity: 0.7;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Make sure gallery images still show they're clickable */
.project-gallery img {
    cursor: pointer;
}

/* Replace the existing .about-content styles with these */

.about-content {
    display: flex;
    gap: 2rem;
    align-items: stretch;  /* Changed from flex-start */
}

.about-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-text {
    margin-bottom: 2rem;
}

.contact-section {
    margin-top: auto;
}

.contact-section h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-section p:first-of-type {
    margin-bottom: 1rem;
}

.about-image {
    flex: 0 0 300px;
    width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Make it stack on mobile */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-left {
        min-height: auto;
    }
    
    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Video wrapper for play button overlay */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-wrapper:hover {
    transform: scale(1.05);
}

/* Video thumbnail styles */
.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Dark overlay */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 1;
    transition: background 0.3s ease;
}

/* Play button circle with icon */
.video-wrapper::after {
    content: '\25B6';
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 50px;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 1);
    font-size: 28px;
    color: #2c3e50;
    padding-left: 4px;
}

/* .video-wrapper:hover::before {
    background: rgba(0, 0, 0, 0.1);
} */

.lightbox-media-container {
    max-width: 80%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-video {
    display: none;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-image {
    display: none;
}