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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #FAFAF8;
    padding-top: 60px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #FAFAF8;
    border-bottom: 1px solid #E8E6E0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: #2c2c2c;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

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

.nav-menu a {
    color: #8B7D6B;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #5C5040;
}

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

.hamburger span {
    width: 25px;
    height: 2px;
    background: #333;
    margin: 4px 0;
    transition: 0.3s;
}

/* Hero Section - Removed for minimalist design */

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2c2c2c;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Gallery Section */
.gallery-section {
    padding: 3rem 3rem 5rem;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-grid {
    column-count: 7;
    column-gap: 8px;
}

/* Wider screens get even more columns */
@media (min-width: 1800px) {
    .gallery-grid {
        column-count: 8;
    }
}

@media (min-width: 2200px) {
    .gallery-grid {
        column-count: 9;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 8px;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
    z-index: 10001;
    transition: opacity 0.3s;
}

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

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
    z-index: 10001;
    transition: opacity 0.3s;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Code Section */
.code-section {
    padding: 5rem 3rem;
    background: #F5F5F0;
}

.experience-container {
    max-width: 900px;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-card {
    background: #FAFAF8;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(139, 125, 107, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.experience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 125, 107, 0.15);
}

.experience-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.company-logo {
    width: 100px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.experience-details {
    flex: 1;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.experience-card h3 {
    font-size: 1.5rem;
    color: #2c2c2c;
    margin: 0;
}

.experience-duration {
    font-size: 0.9rem;
    color: #8B7D6B;
    font-weight: 600;
}

.experience-role {
    color: #8B7D6B;
    font-size: 1.1rem;
    margin: 0;
}

.education-title {
    margin-top: 2rem;
}

/* Tennis Section */
.tennis-section {
    padding: 5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tennis-photos-grid.captured-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tennis-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.tennis-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.tennis-photo-item:hover img {
    opacity: 0.9;
}

/* Gear Section */
.gear-section {
    padding: 5rem 3rem;
    background: #FAFAF8;
}

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

.gear-card {
    background: #F5F5F0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(139, 125, 107, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gear-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 125, 107, 0.15);
}

.gear-icon {
    width: 100%;
    height: 140px;
    background: #FAFAF8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    padding: 2rem;
}

.gear-info {
    padding: 1.5rem;
    text-align: center;
}

.gear-info h3 {
    font-size: 1.2rem;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.gear-info p {
    color: #8B7D6B;
    font-size: 0.95rem;
    margin: 0;
}

/* About Section */
.about-section {
    padding: 5rem 3rem;
    background: #F5F5F0;
}

.about-container {
    max-width: 2400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

.about-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    color: #8B7D6B;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.social-links a {
    color: #5C5040;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #C9B896;
}

/* Contact Section */
.contact-section {
    padding: 5rem 3rem;
    max-width: 2400px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #E8E6E0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #FAFAF8;
    color: #2c2c2c;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #C9B896;
}

.submit-button {
    padding: 1rem 2rem;
    background: #5C5040;
    color: #FAFAF8;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
    transform: translateY(-2px);
    background: #C9B896;
    color: #2c2c2c;
    box-shadow: 0 8px 20px rgba(139, 125, 107, 0.2);
}

/* Footer */
.footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1600px) {
    .gallery-grid {
        column-count: 6;
    }
}

@media (max-width: 1400px) {
    .gallery-grid {
        column-count: 5;
    }
}

@media (max-width: 1200px) {
    .gallery-grid {
        column-count: 4;
    }
}

@media (max-width: 1000px) {
    .gallery-grid {
        column-count: 3;
    }
}

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

    .nav-menu {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .gallery-grid {
        column-count: 2;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 15px;
    }

    .lightbox-close {
        font-size: 35px;
        top: 10px;
        right: 10px;
    }

    .tennis-photos-grid.captured-photos {
        grid-template-columns: 1fr;
    }

    .about-images {
        grid-template-columns: 1fr;
    }

    .about-photo {
        height: 250px;
    }

    .gear-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .experience-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .company-logo {
        width: 80px;
        height: 50px;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .experience-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .gallery-grid {
        column-count: 1;
    }

    .tennis-photos-grid.captured-photos {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 25px;
        padding: 10px;
    }

    .lightbox-close {
        font-size: 30px;
        top: 5px;
        right: 5px;
    }

    .lightbox-content {
        max-width: 95%;
    }

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