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

:root {
    --primary-red: #c41e3a;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
    --bg-light: #f8f8f8;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 40px;
}

.contact-info {
    text-align: right;
    padding-right: 40px;
    margin-bottom: 20px;
    font-size: 14px;
}

.contact-info a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-red);
}

.site-title {
    text-align: center;
    font-size: 3em;
    font-weight: normal;
    margin: 30px 0;
    letter-spacing: 2px;
}

/* Navigation Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding-top: 15px;
    padding-bottom: 15px;
}

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

.navbar a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar a:hover {
    color: var(--primary-red);
}

.navbar a.active {
    background-color: var(--primary-red);
    color: white;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-dark);
    font-size: 18px;
    transition: color 0.3s ease;
    padding: 0;
}

.social-links a:hover {
    color: var(--primary-red);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.hero {
    margin-bottom: 60px;
}

.hero-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.profile-image {
    flex: 0 0 250px;
}

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

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: normal;
}

.hero-text p {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Content Sections */
.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: normal;
}

.content-section > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1em;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.video-card {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.video-card h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: normal;
}

.video-embed {
    margin: 20px 0;
    border-radius: 4px;
    overflow: hidden;
}

.video-embed iframe {
    border-radius: 4px;
}

.video-card p {
    color: var(--text-light);
    font-size: 0.95em;
    line-height: 1.7;
}

.youtube-note {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 4px;
    margin-top: 30px;
}

.youtube-note a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.youtube-note a:hover {
    text-decoration: underline;
}

/* Project Showcase */
.project-showcase {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 40px;
}

.project-showcase-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.project-showcase-card h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.project-images-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: zoom-in;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-images-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.project-image-single {
    margin-bottom: 20px;
}

.project-image-single img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    cursor: zoom-in;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image-single img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.project-description {
    color: var(--text-light);
    font-size: 1em;
    line-height: 1.8;
    margin-top: 10px;
}

/* Project Image Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.lightbox-overlay.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: min(1200px, 95vw);
    max-height: 90vh;
}

.lightbox-image {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Bio Content */
.bio-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.bio-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1em;
}

.bio-content h3 {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.skills-list {
    list-style: none;
    margin-left: 0;
    margin-bottom: 20px;
}

.skills-list li {
    padding: 10px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
}

.skills-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.bio-content a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.bio-content a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--bg-light);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2em;
    }

    .navbar {
        flex-direction: column;
        gap: 20px;
        padding: 20px 20px;
    }

    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .navbar a {
        font-size: 12px;
        padding: 8px 10px;
    }

    .social-links {
        width: 100%;
        justify-content: center;
    }

    main {
        padding: 0 20px;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .profile-image {
        flex: 0 0 200px;
    }

    .hero-text h2 {
        font-size: 2em;
    }

    .content-section h2 {
        font-size: 2em;
    }

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

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

    .contact-info {
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5em;
        margin: 20px 0;
    }

    .navbar ul {
        gap: 5px;
    }

    .navbar a {
        font-size: 11px;
        padding: 6px 8px;
    }

    .hero-text h2 {
        font-size: 1.5em;
    }

    .content-section h2 {
        font-size: 1.5em;
    }

    .video-card {
        padding: 15px;
    }

    .project-card {
        padding: 15px;
    }
}
