/* Inverted Lens Mask: darkens everything outside a transparent circle */
.lens-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    /* Use a radial-gradient with transparent center and dark outside */
    background: radial-gradient(circle at 50% 50%, transparent 22vw, rgba(34,34,34,0.96) 23vw, #111 100%);
    /* Add a soft edge to the mask for realism */
    box-shadow: 0 0 60px 10px #000a inset, 0 0 0 8px #222 inset, 0 0 0 20px #111a inset;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a:link {
    text-decoration: none;
    color: #67bed9;
}

a:visited {
    text-decoration: none;
    color: #a766d9;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Aperture Section */
.aperture-section {
    position: relative;
    height: 200vh;
    background: #0a0a0a;
}

.aperture-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.aperture {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Aperture Blades - 8 blade design */
.blade {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    transition: transform 0.1s ease-out;
}

.blade::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #0f0f0f 100%);
}

/* Position each blade around the center */
.blade-1 {
    clip-path: polygon(50% 50%, 30% 0%, 70% 0%);
    transform-origin: 50% 50%;
}

.blade-2 {
    clip-path: polygon(50% 50%, 70% 0%, 100% 30%);
    transform-origin: 50% 50%;
}

.blade-3 {
    clip-path: polygon(50% 50%, 100% 30%, 100% 70%);
    transform-origin: 50% 50%;
}

.blade-4 {
    clip-path: polygon(50% 50%, 100% 70%, 70% 100%);
    transform-origin: 50% 50%;
}

.blade-5 {
    clip-path: polygon(50% 50%, 70% 100%, 30% 100%);
    transform-origin: 50% 50%;
}

.blade-6 {
    clip-path: polygon(50% 50%, 30% 100%, 0% 70%);
    transform-origin: 50% 50%;
}

.blade-7 {
    clip-path: polygon(50% 50%, 0% 70%, 0% 30%);
    transform-origin: 50% 50%;
}

.blade-8 {
    clip-path: polygon(50% 50%, 0% 30%, 30% 0%);
    transform-origin: 50% 50%;
}

/* Blade styling for metallic look */
.blade-1::before { background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%); }
.blade-2::before { background: linear-gradient(225deg, #3a3a3a 0%, #1a1a1a 100%); }
.blade-3::before { background: linear-gradient(270deg, #3a3a3a 0%, #1a1a1a 100%); }
.blade-4::before { background: linear-gradient(315deg, #3a3a3a 0%, #1a1a1a 100%); }
.blade-5::before { background: linear-gradient(0deg, #3a3a3a 0%, #1a1a1a 100%); }
.blade-6::before { background: linear-gradient(45deg, #3a3a3a 0%, #1a1a1a 100%); }
.blade-7::before { background: linear-gradient(90deg, #3a3a3a 0%, #1a1a1a 100%); }
.blade-8::before { background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 100%); }

/* Aperture Content (text inside) */
.aperture-content {
    position: relative;
    text-align: center;
    z-index: 5;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: lowercase;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #888888;
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll Hint */
.scroll-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 15;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-hint span {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #666;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    margin: 10px auto 0;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(10px) rotate(45deg);
    }
    60% {
        transform: translateY(5px) rotate(45deg);
    }
}

/* Gallery Section */
.gallery-section {
    position: relative;
    min-height: 100vh;
    padding: 100px 5%;
    background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
    z-index: 20;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}

/* About Section */
.about-section {
    position: relative;
    min-height: 100vh;
    padding: 100px 5%;
    background: #0a0a0a;
    z-index: 20;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.about-image img:hover {
    filter: grayscale(0%);
}

.about-text {
    flex: 1.5;
    min-width: 300px;
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #aaaaaa;
    margin-bottom: 20px;
    font-weight: 300;
}

.contact-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #ffffff;
    color: #0a0a0a;
}

/* Footer */
.footer {
    padding: 40px;
    text-align: center;
    background: #050505;
    z-index: 20;
    position: relative;
}

.footer p {
    color: #666;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.instagram-link {
    display: inline-block;
    margin-bottom: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.instagram-link:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin: 0 auto;
    }
}

/* Hide aperture when fully open */
.aperture-container.hidden {
    opacity: 0;
    pointer-events: none;
}
