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

html, body {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(200, 200, 200, 0.15) 2px,
        rgba(200, 200, 200, 0.15) 4px
    );
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Home Page */
.home-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-footer {
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.home-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.hero-subtitle {
    font-size: 16px;
    letter-spacing: 4px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.hero-contact {
    font-size: 15px;
    color: #555;
    margin-bottom: 0;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.profile-photo {
    width: 224px;
    height: 224px;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* Contact Section */
.contact-section {
    background: #f9f9f9;
    padding: 60px 40px;
    border-radius: 8px;
    margin-bottom: 60px;
}

.contact-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

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

.contact-label {
    font-size: 13px;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
    font-weight: 600;
}

.contact-link {
    font-size: 18px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #0073e6;
}

.social-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.social-section p {
    font-size: 15px;
    color: #555;
}

.facebook-link {
    color: #0073e6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.facebook-link:hover {
    color: #005bb3;
}

.footer-note {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    font-style: italic;
}

/* Login Page */
.gallery-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px;
}

.login-box {
    background: white;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.login-header p {
    font-size: 12px;
    letter-spacing: 3px;
    color: #888;
    text-transform: uppercase;
}

.login-description {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.password-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.password-input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.login-button {
    width: 100%;
    padding: 14px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.login-button:hover {
    background: #333;
}

.error-message {
    background: #fee;
    color: #c00;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* Gallery Page */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.gallery-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.gallery-header p {
    font-size: 13px;
    letter-spacing: 4px;
    color: #888;
    text-transform: uppercase;
}

.gallery-footer {
    margin-top: auto;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 30px;
}

.home-link:hover {
    color: #1a1a1a;
}

.home-link svg {
    width: 14px;
    height: 14px;
}

.gallery-footer > p {
    border-top: 1px solid #eee;
    padding-top: 20px;
    color: #999;
    font-size: 13px;
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-thumbnail {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

.lightbox.active {
    display: flex;
    opacity: 1;
}

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

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 48px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 40px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-section {
        padding: 40px 25px;
        margin-bottom: 40px;
    }

    .contact-section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .lightbox-prev,
    .lightbox-next {
        position: static;
        transform: none;
        width: 45px;
        height: 45px;
        padding: 5px;
        font-size: 28px;
    }

    .lightbox-content {
        gap: 0;
    }

    .lightbox-prev {
        order: 1;
    }

    .lightbox-image {
        order: 2;
        max-height: 70vh;
    }

    .lightbox-next {
        order: 3;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 32px;
    }

    .login-box {
        padding: 40px 30px;
    }

    .gallery-header h1 {
        font-size: 28px;
    }

    .gallery-header p {
        font-size: 11px;
    }
}

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

    .home-container {
        padding: 40px 15px;
    }

    .home-hero {
        margin-bottom: 40px;
    }

    .contact-section {
        padding: 30px 20px;
    }

    .contact-label {
        font-size: 12px;
    }

    .contact-link {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .login-header h1 {
        font-size: 24px;
    }

    .lightbox-counter {
        font-size: 12px;
        padding: 6px 12px;
    }
}
