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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 300;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    transition: transform 0.3s ease;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, transparent, #666, transparent);
    transition: width 0.3s ease, opacity 0.3s ease;
}

h2:hover::after {
    width: 50%;
    opacity: 0.8;
}

p {
    margin-bottom: 20px;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.menu-item {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.menu-item:hover {
    color: #666;
}

.menu-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #666;
    transition: width 0.3s ease;
}

.menu-item:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
}

/* Hero Section */
.hero {
    background-image: url('static/background_1.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

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

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #333;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: #333;
    color: #fff;
}

/* Portfolio Section */
.portfolio {
    padding: 40px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    cursor: pointer;
}

.buy-button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
}

.buy-button:hover {
    background-color: #666;
}

/* About Section */
.about {
    background-color: #fff;
    padding: 20px 0;
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
    max-width: 400px;
    border-radius: 4px;
}

.about-text {
    flex: 2;
}

/* Contact Section */
.contact {
    background-color: #fff;
    padding: 40px 0 20px;
    position: relative;
}

.contact-info {
    text-align: center;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: #333;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Updated email style */
.contact-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-info a:hover {
    color: #666;
    border-color: #999;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ddd;
}

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

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px 20px 20px;
    position: relative;
}

.lightbox-content img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

#lightbox-caption {
    position: absolute;
    top: 4.85rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    color: #fff;
    text-align: center;
    padding: 10px;
    z-index: 1001;
}

#lightbox-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

#lightbox-caption p {
    font-size: 1rem;
    margin-bottom: 5px;
}

#lightbox-buy-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    z-index: 1001;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    color: #333;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

#prev-button {
    left: 20px;
}

#next-button {
    right: 20px;
}

/* Content Pages (Privacy Policy and Terms of Service) */
.content-section {
    padding: 120px 0 80px;
    background-color: #fff;
}

.content-section h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: left;
    position: relative;
    padding-bottom: 15px;
}

.content-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: #666;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    padding-bottom: 10px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: #999;
}

.content-section p {
    margin-bottom: 20px;
}

.content-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 10px;
}

.portfolio-container {
    max-width: 100% !important;
}

/* Hide buy button on desktop for expanded view */
@media (min-width: 769px) {
    #lightbox-buy-button {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .nav-button {
        font-size: 18px;
        padding: 8px 12px;
    }

    #prev-button {
        left: 10px;
    }

    #next-button {
        right: 10px;
    }

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

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

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    .portfolio-overlay {
        display: none;
    }

    .portfolio-item:hover .portfolio-image {
        transform: none;
    }

    .lightbox-content {
        padding: 60px 10px 70px;
    }

    .lightbox-content img {
        width: 100%;
        height: calc(100% - 130px);
    }

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

    #lightbox-caption {
        top: 5rem;
        padding: 5px;
    }

    #lightbox-caption h3 {
        font-size: 1.2rem;
    }

    #lightbox-caption p {
        font-size: 0.9rem;
    }

    #lightbox-buy-button {
        display: block;
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        margin-top: 10px;
        text-align: center;
    }
}
