/* Font Face Declarations */
@font-face {
    font-family: 'Malignant';
    src: url('../fonts/Malignant.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Scratches';
    src: url('../fonts/Scratches.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'e Edisi Misteri';
    src: url('../fonts/e Edisi Misteri.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Variables */
:root {
    --color-black: #000000;
    --color-pink: #ff006e;
    --color-pink-dark: #8c0046;
    --color-gray: #dddddd;
    --color-white: #ffffff;
    --color-red: #FF0000;
}

/* General Reset & Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    transform-origin: top left;
    transform: scale(1);
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto; /* Ensure vertical scroll is always allowed */
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1em;
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.site-header {
    padding: 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--color-gray);
    background-color: var(--color-white);
    overflow: hidden;
    transition: padding 0.3s ease, background-color 0.3s ease;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 100;
}

.site-header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: blur(3px);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.site-header::before::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.site-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 60%;
    right: 0;
    bottom: 0;
    background-image: none;
    display: none;
}

.site-header > * {
    position: relative;
    z-index: 1;
}

.header-top-left {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    display: none;
}

.header-buttons-container {
    margin-top: 0.75rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.about-button, .explore-button {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 3px var(--color-pink);
}

.about-button::after, 
.explore-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/bloody-x.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.about-button:hover, .explore-button:hover {
    background-color: transparent;
    color: var(--color-pink);
    text-shadow: 0 0 8px var(--color-red);
    box-shadow: none;
    text-decoration: none;
}

.about-button:hover::after, 
.explore-button:hover::after {
    opacity: 1;
}

.header-top-right {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
}

.search-container {
    background-color: var(--color-gray);
    border-radius: 20px;
    padding: 0.3rem 0.3rem 0.3rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
}

.search-input {
    background: transparent;
    border: none;
    color: var(--color-black);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    padding-right: 0.5rem;
    flex-grow: 1;
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.search-button {
    background: transparent;
    border: none;
    color: var(--color-black);
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: var(--color-pink);
}

.search-button i {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block; /* Needed for transform */
}

.search-button:hover i {
    transform: scale(1.2) rotate(15deg);
    color: var(--color-pink);
}

.menu-icon-container {
    position: relative;
}

.menu-icon {
    font-size: 1.5rem;
    color: var(--color-black);
    cursor: pointer;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.menu-icon:hover {
    color: var(--color-pink);
    text-shadow: 0 0 8px var(--color-pink);
}

.menu-icon.red-x {
    color: var(--color-red);
    font-size: 1.7rem;
}

.menu-icon.red-x:hover {
    color: var(--color-pink);
    text-shadow: 0 0 8px var(--color-pink);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    right: 100%;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    z-index: 11;
    min-width: 150px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-black);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.active a {
    opacity: 1;
    transform: translateX(0);
}

.dropdown-menu a:nth-child(1) { transition-delay: 0.1s; }
.dropdown-menu a:nth-child(2) { transition-delay: 0.2s; }
.dropdown-menu a:nth-child(3) { transition-delay: 0.3s; }

.dropdown-menu a:hover {
    background-color: var(--color-gray);
    color: var(--color-pink);
}

.logo-container {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.site-logo {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 0 6px var(--color-pink)) 
            brightness(1.3) 
            drop-shadow(0 0 12px rgba(255, 255, 255, 0.7))
            drop-shadow(0 0 20px rgba(255, 0, 110, 0.5));
    transition: all 0.5s ease;
    cursor: pointer;
    animation: slowSpin 25s linear infinite;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 50%;
}

.site-logo:hover {
    filter: drop-shadow(0 0 12px var(--color-pink)) brightness(1.2);
    transform: scale(1.1);
    animation-duration: 5s;
}

.logo-link {
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* Existing logo zoom animation, repurposed for click - REMOVED */
/*
@keyframes logoZoomOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(15); // Zoom out significantly
        opacity: 0;
    }
}
*/

.logo-link.transitioning { /* Keep this potentially? Or rename/reuse? Let's remove for now and use new class */
    /* REMOVING THIS - Using new class .logo-transition-active */
    /* position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(5);
    opacity: 0;
    z-index: 9999;
    pointer-events: none; */
}

/* NEW Transition Styles for Logo Click */
@keyframes logoTransitionZoom {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(30); /* Scale up massively */
        opacity: 0;
    }
}

.logo-link.logo-transition-active {
    position: fixed;
    top: var(--logo-top);
    left: var(--logo-left);
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 40px; /* Increased margin to move logo further down */
}

.logo-link.logo-transition-active .site-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    animation: logoZoom 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes logoZoom {
    0% {
        transform: scale(1) rotate(0deg) translateY(0);
        opacity: 1;
        filter: brightness(1.2) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    }
    30% {
        transform: scale(10) rotate(180deg) translateY(20px);
        opacity: 1;
        filter: brightness(1.5) drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
    }
    100% {
        transform: scale(20) rotate(360deg) translateY(40px);
        opacity: 0;
        filter: brightness(2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
    }
}

.logo-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.logo-transition-overlay.active {
    opacity: 1;
}

.transition-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 12px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.transition-text.active {
    opacity: 1;
    animation: fadeInOut 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotateX(-10deg);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateX(0deg);
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.1) rotateX(10deg);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    }
}

.temp-logo {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.site-header h1 {
    font-family: 'e Edisi Misteri';
    font-size: 2rem;
    letter-spacing: 0.8vw;
    font-weight: normal;
    color: var(--color-black);
    text-shadow: 0 0 8px var(--color-pink);
    -webkit-text-stroke: 1px var(--color-red);
    text-stroke: 1px var(--color-red);
    text-transform: uppercase;
    opacity: 0.99;
    text-align: center;
    width: 100%;
    margin-top: 0.5rem;
    padding-left: 1.5vw;
    padding-right: 1.5vw;
}

.site-header h1 span {
    display: inline-block;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.site-header h1 span:hover {
    transform: scale(1.1) translateY(-3px);
    text-shadow: 0 0 15px var(--color-pink), 0 0 25px var(--color-red);
    cursor: default;
}

.header-subtitle {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    color: var(--color-black);
    letter-spacing: 3px;
    margin-top: 0.15rem;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.8;
    text-shadow: 0 0 5px var(--color-pink);
}

/* Main Content Area */
main {
    flex-grow: 1;
    padding: 3rem 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 70vh;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    filter: grayscale(50%) brightness(0.8);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(255,0,110,0.3));
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-black);
    text-shadow: 0 0 20px var(--color-pink);
}

.hero-text p {
    font-size: 1rem;
    color: var(--color-black);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
    opacity: 0.8;
}

/* Gallery Section */
.gallery {
    padding: 2rem 1rem;
    margin: 0 auto;
    max-width: 800px;
    background-color: var(--color-white);
}

.gallery h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-black);
    position: relative;
}

.gallery h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-pink);
}

.gallery p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-black);
    font-size: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
}

.gallery-item {
    flex: 1;
    max-width: calc(33.333% - 0.67rem);
    text-decoration: none;
    color: var(--color-black);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background-color: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: scale(0.8);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background-color: var(--color-black);
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.15);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-item h3 {
    font-size: 0.9rem;
    margin: 0;
    padding: 0.5rem;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background-color: var(--color-white);
}

.gallery-item:hover h3 {
    color: var(--color-pink);
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .gallery-grid {
        padding: 0 0.8rem;
        gap: 1.5rem;
    }
    
    .gallery-row {
        gap: 0.8rem;
    }
    
    .gallery-item {
        max-width: calc(33.333% - 0.53rem);
    }
}

@media (max-width: 768px) {
    .gallery {
        padding: 1.5rem 0.8rem;
    }
    
    .gallery-grid {
        padding: 0 0.8rem;
        gap: 1.2rem;
    }
    
    .gallery-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-item {
        max-width: 100%;
    }
    
    .gallery h2 {
        font-size: 1.5rem;
    }
    
    .gallery h2::after {
        width: 40px;
    }
    
    .gallery p {
        font-size: 0.9rem;
    }
}

/* Footer */
.site-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--color-gray);
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 300;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
    min-width: 200px;
}

.footer-left {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-center {
    text-align: center;
}

.footer-right {
    text-align: right;
}

.footer-link-button {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 0.4rem 0;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-align: left;
}

.footer-link-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/bloody-x.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.footer-link-button:hover {
    background-color: transparent;
    color: var(--color-pink);
    text-shadow: 0 0 8px var(--color-red);
    box-shadow: none;
    text-decoration: none;
}

.footer-link-button:hover::after {
    opacity: 1;
}

/* Newsletter Form Styles */
.newsletter-form h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--color-pink);
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-gray);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 0.9rem;
    border-radius: 0;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    justify-content: flex-end;
}

.newsletter-form .checkbox-container input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--color-pink);
}

.newsletter-form button[type="submit"] {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    color: var(--color-white);
    background-color: var(--color-pink);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 0;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.newsletter-form button[type="submit"]:hover {
    background-color: var(--color-pink-dark);
    box-shadow: 0 0 10px var(--color-pink);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    .hero-text h2 {
        font-size: 1.8rem;
    }
    main {
        padding: 2rem 4%;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    .gallery-image, .gallery-image-placeholder {
        height: 280px;
    }
    .gallery-item.featured {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .site-header h1 {
        font-size: 1.3rem;
    }
    .hero-image {
        height: 40vh;
    }
    .hero-text h2 {
        font-size: 1.6rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* X Line */
.x-line {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 4px;
    color: var(--color-white);
    text-shadow: 0 0 5px var(--color-black);
    background-color: var(--color-black);
    padding: 10px 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    border-bottom: 1px solid var(--color-gray);
}

/* Add specific grid layout for larger screens */
@media (min-width: 992px) {
    .gallery-grid {
        /* Explicitly set 3 columns for large screens */
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Keyframes for spinning animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.eye-text {
    /* Keep existing animation if desired, or remove if causing issues */
    /* animation: blink 4s infinite; */ 
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-black);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--color-pink);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--color-pink);
    transform: translateY(-3px);
}

/* X Border */
.x-border {
    position: fixed;
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove top/bottom rules */

.x-border-left,
.x-border-right {
    top: 0;
    bottom: 0;
    width: 15px; /* Reduced width from 20px */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    line-height: 1; /* Adjust for single character */
    padding: 10px 0; /* Add some padding */
}

.x-border-left { left: 0; }
.x-border-right { right: 0; }

/* Logo Spin */
@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.site-logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 2px var(--color-pink));
    transition: all 0.5s ease;
    cursor: pointer;
    animation: slowSpin 25s linear infinite;
}

.site-logo:hover {
    filter: drop-shadow(0 0 12px var(--color-pink)) brightness(1.2);
    transform: scale(1.1);
    animation-duration: 5s;
}

/* Shrinking Header */
.site-header.header-scrolled {
    position: fixed;
    padding: 0.3rem 2rem; /* Reduced from 0.5rem */
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-header.header-scrolled .site-logo {
    width: 50px; /* Reduced from 60px */
    animation-duration: 15s;
}

.site-header.header-scrolled h1 {
    font-size: 1.2rem; /* Reduced from 1.5rem */
    margin-top: 0.3rem; /* Reduced from 0.5rem */
    letter-spacing: 0.5vw;
    animation: none;
}

.site-header.header-scrolled .eye-text {
    animation: none;
}

.site-header.header-scrolled .header-subtitle {
    display: none;
}

.site-header.header-scrolled .about-button,
.site-header.header-scrolled .explore-button {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

.site-header.header-scrolled .search-container {
    padding: 0.2rem 0.2rem 0.2rem 0.6rem;
}

.site-header.header-scrolled .search-input {
    font-size: 0.8rem;
    width: 100px;
}

.site-header.header-scrolled .menu-icon {
    font-size: 1.2rem;
}

/* Class to hide backgrounds */
.site-header.header-background-hidden::before,
.site-header.header-background-hidden::after {
    opacity: 0;
}

/* Add viewport scaling fix */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Add X and I to borders */
.x-border-left::before {
    content: 'X';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--color-white);
    text-shadow: 0 0 5px var(--color-pink);
}

.x-border-right::before {
    content: 'I';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--color-white);
    text-shadow: 0 0 5px var(--color-pink);
}

/* Re-add styles for info/video section */
.info-video-container {
    width: 100%;
    max-width: none;
    margin: 4rem 0;
    padding: 0 2rem;
    background-color: var(--color-white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.info-section {
    padding: 2rem;
    background-color: var(--color-black);
    color: var(--color-white);
}

.video-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem; /* Add padding for consistency */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%; /* Ensure it takes available width */
    max-width: 640px; /* Optional: constrain video width */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    text-align: center;
    color: var(--color-black);
    font-style: italic;
    margin-top: 1rem;
    font-size: 1.1rem;
    width: 100%;
    max-width: 640px; /* Match video container width */
}

@media (max-width: 768px) {
    .info-video-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin: 2rem 0;
    }
    .info-section {
        padding: 1.5rem;
    }
    .video-section {
        padding: 1.5rem;
    }
}

/* End re-added styles */

/* About Page Styles */
.about-content {
    max-width: none; /* Remove max-width */
    margin: 4rem 2rem; /* Restore original margin */
    padding: 0; /* Restore original padding */
}

.about-section {
    background-color: var(--color-black);
    padding: 3rem; /* Restore original padding */
    border: 1px solid var(--color-gray);
    color: var(--color-white);
    /* Removed max-width and margin:auto */
}

.about-section h2 {
    color: var(--color-pink);
    font-size: 1.8rem; /* Restore original size */
    margin-top: 2rem; /* Restore original margin */
    margin-bottom: 1rem; /* Restore original margin */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-section h2:first-child {
    margin-top: 0;
}

.about-section p {
    color: var(--color-white);
    font-size: 1.1rem; /* Restore original size */
    line-height: 1.8; /* Restore original line-height */
    margin-bottom: 2rem; /* Restore original margin */
    opacity: 0.9;
}

/* Keep original media query rules for about page if they existed */
@media (max-width: 768px) {
    .about-section {
        padding: 2rem; /* Adjusted padding for smaller screens */
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
    
    .about-section p {
        font-size: 1rem;
    }
}

/* Restore original About Page Styles */
.about-content {
    max-width: none; /* Remove max-width */
    margin: 4rem 2rem; /* Restore original margin */
    padding: 0; /* Restore original padding */
}

.about-section {
    background-color: var(--color-black);
    padding: 3rem; /* Restore original padding */
    border: 1px solid var(--color-gray);
    color: var(--color-white);
    max-width: none; /* Remove max-width */
    margin: 0; /* Remove auto margin */
}

.about-section h2 {
    color: var(--color-pink);
    font-size: 1.8rem; /* Restore original size */
    margin-top: 2rem; /* Restore original margin */
    margin-bottom: 1rem; /* Restore original margin */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-section h2:first-child {
    margin-top: 0;
}

.about-section p {
    color: var(--color-white);
    font-size: 1.1rem; /* Restore original size */
    line-height: 1.8; /* Restore original line-height */
    margin-bottom: 2rem; /* Restore original margin */
    opacity: 0.9;
}

/* Remove media query overrides if they were specific to the smaller layout */
/* @media (max-width: 768px) { ... } */

/* Restore original About Page Styles */
.about-content {
    max-width: none; /* Remove max-width */
    margin: 4rem 2rem; /* Restore original margin */
    padding: 0; /* Restore original padding */
}

.about-section {
    background-color: var(--color-black);
    padding: 3rem; /* Restore original padding */
    border: 1px solid var(--color-gray);
    color: var(--color-white);
    max-width: none; /* Remove max-width */
    margin: 0; /* Remove auto margin */
}

.about-section h2 {
    color: var(--color-pink);
    font-size: 1.8rem; /* Restore original size */
    margin-top: 2rem; /* Restore original margin */
    margin-bottom: 1rem; /* Restore original margin */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-section h2:first-child {
    margin-top: 0;
}

.about-section p {
    color: var(--color-white);
    font-size: 1.1rem; /* Restore original size */
    line-height: 1.8; /* Restore original line-height */
    margin-bottom: 2rem; /* Restore original margin */
    opacity: 0.9;
}

/* Remove media query overrides if they were specific to the smaller layout */
/* @media (max-width: 768px) { ... } */

/* Restore original About Page Styles */
.about-content {
    max-width: none; /* Remove max-width */
    margin: 4rem 2rem; /* Restore original margin */
    padding: 0; /* Restore original padding */
}

.about-section {
    background-color: var(--color-black);
    padding: 3rem; /* Restore original padding */
    border: 1px solid var(--color-gray);
    color: var(--color-white);
    max-width: none; /* Remove max-width */
    margin: 0; /* Remove auto margin */
}

.about-section h2 {
    color: var(--color-pink);
    font-size: 1.8rem; /* Restore original size */
    margin-top: 2rem; /* Restore original margin */
    margin-bottom: 1rem; /* Restore original margin */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-section h2:first-child {
    margin-top: 0;
}

.about-section p {
    color: var(--color-white);
    font-size: 1.1rem; /* Restore original size */
    line-height: 1.8; /* Restore original line-height */
    margin-bottom: 2rem; /* Restore original margin */
    opacity: 0.9;
}

/* Remove media query overrides if they were specific to the smaller layout */
/* @media (max-width: 768px) { ... } */ 

/* Design Detail Page Styles */
.design-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: transform 0.3s ease-in-out;
}

.design-detail-container::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-white) 20%, 
        var(--color-white) 80%, 
        transparent 100%
    );
    opacity: 0.2;
}

.design-detail-container::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-white) 20%, 
        var(--color-white) 80%, 
        transparent 100%
    );
    opacity: 0.2;
}

.design-detail-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.design-detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 0, 110, 0.2), rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.design-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease-in-out;
}

.design-detail-image:hover img {
    transform: scale(1.05);
}

.design-detail-image:hover::before {
    opacity: 1;
}

.design-detail-info {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease-in-out;
}

.design-detail-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}

.design-detail-info h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-pink);
    transition: width 0.3s ease-in-out;
}

.design-detail-info h2:hover {
    color: var(--color-pink);
    text-shadow: 0 0 8px rgba(255, 0, 110, 0.3);
}

.design-detail-info h2:hover::after {
    width: 100%;
}

.design-detail-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-black);
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.design-detail-info p:hover {
    transform: translateX(10px);
    color: var(--color-pink);
}

.design-detail-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 2px solid var(--color-black);
    color: var(--color-black);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.design-detail-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-pink);
    transition: transform 0.3s ease-in-out;
    z-index: -1;
}

.design-detail-link:hover {
    color: var(--color-white);
    border-color: var(--color-pink);
}

.design-detail-link:hover::before {
    transform: translateX(100%);
}

@media (max-width: 768px) {
    .design-detail-container {
        margin: 2rem auto;
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .design-detail-image {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .design-detail-info h2 {
        font-size: 2.6rem;
        margin-bottom: 1.5rem;
        letter-spacing: 3px;
    }
    
    .design-detail-info p {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        padding-left: 1rem;
    }
}

/* Logo Transition Enhancements */
.logo-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.logo-transition-overlay.active {
    opacity: 1;
}

.transition-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 12px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.transition-text.active {
    opacity: 1;
    animation: fadeInOut 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotateX(-10deg);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateX(0deg);
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.1) rotateX(10deg);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    }
}

.temp-logo {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Navigation Link Transitions */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    will-change: transform, opacity;
}

.nav-link:hover {
    opacity: 0.8;
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Ensure these elements are present on all pages */
.logo-transition-overlay,
.transition-text {
    display: block !important;
}

.generations {
    padding: 2rem;
    background-color: var(--color-white);
    color: var(--color-black);
    max-width: 1200px;
    margin: 0 auto;
}

.generations h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-black);
}

.generations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.generation-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray);
    padding: 1rem;
}

.generation-item.featured {
    grid-template-columns: 1fr 1fr;
}

.generation-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.generation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.generation-info {
    padding: 1rem;
}

.generation-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--color-black);
}

.generation-info p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-black);
}

@media (max-width: 768px) {
    .generation-item {
        grid-template-columns: 1fr;
    }
    
    .generation-image {
        height: 250px;
    }
}

/* Ensure these elements are present in all pages */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

/* End of file */ 