/* Homepage specific styles */
.homepage {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    position: relative;
}

.home-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.6s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: opacity;
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
}

.home-container.transitioning {
    opacity: 0;
    transform: translate(-50%, -50%);
}

.home-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.home-nav a {
    color: #000;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 0.05em;
    transition: opacity 0.2s ease;
    position: relative;
    font-weight: 400;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.home-nav a:hover {
    opacity: 0.6;
}

/* Content view with fixed header */
.content-container {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.content-container.active {
    display: block !important;
    opacity: 1;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 40px;
    border-bottom: 1px solid #f0f0f0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
}

.content-container.active .fixed-header {
    opacity: 1;
    transform: translateY(0);
}


.fixed-header h1 {
    margin: 0;
    font-size: 14px;
    text-align: center;
    width: 100%;
    transition: all 0.6s ease;
}

.horizontal-nav {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
    transition: all 0.6s ease;
}

.horizontal-nav a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease;
}

.horizontal-nav a:hover {
    opacity: 0.6;
}

.horizontal-nav a.active {
    text-decoration: underline;
}

.content {
    padding: 100px 40px 40px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.content-container.active .content {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .fixed-header {
        padding: 15px 20px;
    }
    
    .horizontal-nav {
        gap: 20px;
    }
    
    .content {
        padding-top: 120px;
        padding-bottom: 80px;
    }
}

/* Footer styles */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    z-index: 50;
    white-space: nowrap;
}

.main-footer p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #000;
    letter-spacing: 0.02em;
    text-align: center;
    width: 100%;
    line-height: 1;
}

.email-capture {
    margin-top: 0;
}

.email-capture form {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    background: #fff;
    transition: border-color 0.2s ease;
    width: 200px;
    max-width: 100%;
}

.email-capture form:focus-within {
    border-color: #000;
}

.email-capture input[type="email"] {
    padding: 4px 6px;
    border: none;
    font-size: 12px;
    font-family: 'Times', 'Times New Roman', serif;
    flex: 1 1 90%;
    min-width: 0;
    background: transparent;
    color: #000;
    letter-spacing: 0.02em;
    outline: none;
}

.email-capture input[type="email"]::placeholder {
    color: #666;
    font-style: italic;
    font-size: 11px;
}

.email-capture button {
    padding: 4px 6px;
    background: transparent;
    color: #000;
    border: none;
    font-size: 14px;
    font-family: 'Times', 'Times New Roman', serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    flex: 0 0 10%;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.email-capture button:hover {
    color: #666;
}

.email-capture button:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.message {
    margin-top: 10px;
    font-size: 13px;
    color: #000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message.show {
    opacity: 1;
}

.message.error {
    color: #d32f2f;
}

.message.success {
    color: #2e7d32;
}

@media (max-width: 768px) {
    .email-capture form {
        width: 180px;
    }
    
    .email-capture input[type="email"] {
        font-size: 11px;
    }
    
    .email-capture input[type="email"]::placeholder {
        font-size: 10px;
    }
}
    
    .email-capture input[type="email"] {
        width: 100%;
        max-width: 250px;
    }
    
    .email-capture button {
        width: 100%;
        max-width: 250px;
    }
}